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

How to add a number (not set) to a Number Vaule?

I already made a system that will detect if its higher then 0. But now I need to make a script that will add 1 to its count every 3 seconds. How is this possible?

if game.Workspace.global.Value > 0 then

(PS, Please give me the remove and set also ;) )

2 answers

✓ Accepted answer
local value = game.Workspace.global.Value
if value > 0 then
while wait(3) do
value = value + 1
end
else return end

1 comment

0

Wouldn't it be better to do while value < 1 do?

Scripting Helpers is not a request site but I will tell you how to do it:

inside a loop with a wait of 3 seconds have a line that goes ....Value=....Value+1

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