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 8 years ago
1while true do
2    wait(math.random(3500))
3script.Parent.Fire.Enabled = true
4end
0
That'll work, but why use a loop? OldPalHappy 1477 — 8y
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 — 8y

1 answer

Log in to vote
1
Answered by 8 years ago

If you want to test it then remove the

1wait(math.random(3500))

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

1wait(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 — 8y
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 — 8y
Ad

Answer this question