RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make sure the textBox clears anything entered and place holder says hi"
-- local script local button = script.Parent local textBox = button.Parent.TextBox local textLabel = button.Parent.TextLabel local function checkCode() local code = textLabel.Text if textBox.Text == code then -- run your function here print("Correct code!") -- replace this with your function else print("Incorrect code.") end textBox.Text = "" -- clear the textBox textBox.PlaceholderText = "Hi" -- set the placeholder text to "Hi" end button.MouseButton1Click:Connect(checkCode)