RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"script a text label that can close a gui when a players input a code"
-- local script local textBox = script.Parent.TextBox local submitButton = script.Parent.SubmitButton local gui = script.Parent.Parent local function closeGUI() gui.Enabled = false end local function checkCode() local code = textBox.Text if code == "your_secret_code" then closeGUI() else textBox.Text = "Invalid code. Try again." end end submitButton.MouseButton1Click:Connect(checkCode)