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

How to let a script repeat itself?

Asked by 5 years ago

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.

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

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

Log in to vote
0
Answered by 5 years ago
  1. I think you should do that:
1while true do
2    script.Parent.Image = "http://www.roblox.com/asset/?id=4877293166"
3    wait (20)
4    script.Parent.Image = "http://www.roblox.com/asset/?id=4877292665"
5    wait (20)
6end

However, to 2, I don't know.

0
Yes its working thanks alot loganmatt3 10 — 5y
Ad

Answer this question