Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make text on a GUI continuously change until clicked?

I am trying to make a GUI that has the text continuously change until clicked to type other text in, but nothing is working, could someone help? (Btw I have a boolean value) (It's also a text box.)

script.Parent.MouseButton1Click:connect(function()
script.Parent.Value = false
end)

if true then
wait(1)
script.Parent.Text = "PassWord_"
wait(1)
script.Parent.Text = "PassWord"
end

Also, I am somewhat of a noob when it comes to scripting, so could you go a little easy on me?

1 answer

✓ Accepted answer

Local Script, Hopefully this is what you mean.

local texts = {"Hi", "wixjfjs", "912838", "wjiapapsjfjfk", "What", "This will keep going until clicked"}
local clicked = false


while clicked == false do
    for _, v in pairs(texts) do
        script.Parent.Text = v
        wait(1) -- Add this so it doesn't immediately change.
    end
    wait()
end

script.Parent.MouseButton1Click:Connect(function()
    clicked = true
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.