Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I add an increase number to a string?

Asked by 9 years ago
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

Log in to vote
0
Answered by 9 years ago
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.

0
Thanks Dev :) Smrtcircleline12 -5 — 9y
0
Accept User#5978 25 — 9y
Ad

Answer this question