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

Photo Changer Gui?

Im trrying to make this image label ever "wait(10)" i tried but it wont work

Script:

while true do
"http://www.roblox.com/asset/?id=234007773"
wait(10)
"http://www.roblox.com/asset/?id=234007791"
wait(10)
"http://www.roblox.com/asset/?id=234007843"
wait(10)
repeat
end 

1 comment

0

Just remove the repeat, the script is looking for "until" and a condition which is not provided. While true do will continually repeat the script. Plus, you need to set what property of which decal you're changing as alan explains below.

1 answer

✓ Accepted answer

Your problem is, you're just putting links in a string.

First you have to get the Image property by doing:

script.Parent.Image -- If the script is INSIDE the imagelabel

(If the script is not inside the ImageLabel you can put it inside it.)

Then, you change the image by doing:

script.Parent.Image = "LinkHere"

Your script should look like this:

while true do
	script.Parent.Image = "http://www.roblox.com/asset/?id=234007773"
	wait(10)
	script.Parent.Image = "http://www.roblox.com/asset/?id=234007791"
	wait(10)
	script.Parent.Image = "http://www.roblox.com/asset/?id=234007843"
	wait(10)
end 

Oh and that repeat is useless, since that loops repeats itself by itself.

Hope it helped, and if it did please accept my answer?

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