Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

My loop should enable a particle and then unenable it over and over again, what is wrong? [SOLVED]

Asked by
xsodar -5
5 months ago
Edited 5 months ago

This script should enable a particle named "Steam" and after 3 seconds it should disappear. It should also loop the whole thing forever.

The thing is that it just get stuck on "script.Parent.Steam.Enabled = true" and then nothing happens.

What is wrong with it?

while true do

script.Parent.Steam.Enabled = true
wait(3)
script.Parent.Steam.Enabled = false

end

Thanks

0
I highly recommend you to add a wait(3) on the 6th line, so it makes it works each 3 seconds properly. utrabem 5 — 5mo
0
I'll try that, thanks xsodar -5 — 5mo
0
It worked, thanks xsodar -5 — 5mo
0
what is happening is that it immediately goes from line 5 to line 3 again in a split second because there's no wait(3) in between. Trew86 175 — 5mo
0
Yeah I see that now :P xsodar -5 — 5mo

Answer this question