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

Help with strings?

Asked by 10 years ago

im trying to make a script that adds a dot every second on a string value. but im assuming this is impossible to do with roblox's inability to have the append feature?

1 answer

Log in to vote
1
Answered by
jakedies 315 Trusted Moderation Voter Administrator Community Moderator
10 years ago
local str = "";
while wait(1) do -- Every 1 second, do
    srt = str .. "."; -- Concatenate a dot to the string
end

Also (addition from ninjo) if you are talking about the StringValue object, you can just concatenate the dot to it's value. So str.Value = str.Value .. ".";

0
Where str is a reference to the StringValue instance. jakedies 315 — 10y
0
Oh thanks! Chaserox 62 — 10y
Ad

Answer this question