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

Problem for me or all?

Asked by 9 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

While i was coding i notice that sometimes my code wouldn't work, i even tried the basics as you can see in the bottom and it still didnt work. I'm not sure if its affecting everyone or just me, but if so please respond to me!

while true do
script.Parent.BrickColor = BrickColor.new('Really black')
wait(0.1)
script.Parent.BrickColor = BrickColor.new('White')
end

1 answer

Log in to vote
1
Answered by 9 years ago

You're actually looping it faster than your screen can possibly see. Try:

while true do
script.Parent.BrickColor = BrickColor.new('Really black')
wait(0.1)
script.Parent.BrickColor = BrickColor.new('White')
wait(0.1)
end

You were doing this, First, It changes color to black, then waits then changes to white, then it instantly goes to the loop beginning then it instantly changes to black again without waiting for any time.

0
Oh, thats what i thought too but i didnt try that, thanks! UltraUnitMode 419 — 9y
Ad

Answer this question