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

Photo Changer Gui?

Asked by
22To 70
9 years ago

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 
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. M39a9am3R 3210 — 9y

1 answer

Log in to vote
5
Answered by 9 years ago

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?

Ad

Answer this question