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

Is this script script? as there is really no way to test it in game without waiting that long?

Asked by 7 years ago
while true do 
    wait(math.random(3500))
script.Parent.Fire.Enabled = true
end
0
That'll work, but why use a loop? OldPalHappy 1477 — 7y
0
As I want to to be a continuing thing in the game to give the game a realistic effect for the fire fighters, so it does not just start on fire then thats it. Dark_Dimensions 96 — 7y

1 answer

Log in to vote
1
Answered by 7 years ago

If you want to test it then remove the

wait(math.random(3500))

Test if you get the fire enabled and then if it works place the

wait(math.random(3500))

Back again ;)

0
That would cause the game to crash as it would have no wait time. and the math.random inside of a wait is what I was referring to about if it would work. Dark_Dimensions 96 — 7y
0
Oh yeah just put wait(1) instead of this then and then replace it back with wait(math.random(3500)) and if it works then it's fine :P VladimVladim 78 — 7y
Ad

Answer this question