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

How to let a script repeat itself?

I am making a main menu with a imagelabel in the background. i was trying to make it that the background changes every 20 seconds.

while true do
	script.Parent.Image = "http://www.roblox.com/asset/?id=4877293166"
	wait(1)
	script.Parent.Image = "http://www.roblox.com/asset/?id=4877292665"
end

this is teh code that i have and i cant find a fix for its so thats why its here now.

second question: Can i make the images fade in and out?

1 answer

✓ Accepted answer
  1. I think you should do that:
while true do
	script.Parent.Image = "http://www.roblox.com/asset/?id=4877293166"
	wait (20)
	script.Parent.Image = "http://www.roblox.com/asset/?id=4877292665"
	wait (20)
end

However, to 2, I don't know.

1 comment

0

Yes its working thanks alot

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