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

Problem for me or all?

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

✓ Accepted answer

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.

1 comment

0

Oh, thats what i thought too but i didnt try that, thanks!

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