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 add an increase number to a string?

while true do
Wait (7)
Script.Parent.TextLabel.Text.Name = "Round 1"
Wait (2)
Script.Parent.TextLabel.Text.Name = ""
Wait (14)
End

(Keeps repeating and adding increase number)
E.g. Script.Parent.TextLabel.Text.Name = "Round <What I want to increase>"

Hello scripters, is there a way I can increase the number inside a string while keeping some text the same?

Thank you :)

1 answer

✓ Accepted answer
num = 0
while true do
Wait (7)
Script.Parent.TextLabel.Text.Name = "Round "..num
Wait (2)
Script.Parent.TextLabel.Text.Name = ""
Wait (14)
num = num+1
End

.. work as a spacer sorta so you can add more then 1 string type.

2 comments

0

Thanks Dev :)

0

Accept

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