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

Image Gui Changer Not Functional?

Asked by
sammiya1 134
7 years ago
Image = script.Parent

while true do
wait(2)
for i = 1,0,-0.1 do
Image.ImageTransparency = i
wait(1)
Image.Image = "http://www.roblox.com/asset/?id=446332683"
wait()
for i = 0,1,0.1 do
Image.ImageTransparency = i
end
end

What is suppose to happens is that the gui fades out after 2 seconds and once it reaches 1 or invisible it changes the image to the image address above then immediately after that it blurs in to show the image but it wont work?

1 answer

Log in to vote
0
Answered by 7 years ago

I've not tested it, as I'm currently unable to. But I believe your error was that you forgot an end for the first loop.

Image = script.Parent

while true do
    wait(2)
    for i = 1,0,-0.1 do
        Image.ImageTransparency = i
        wait(1)
    end --Hey! You forgot me!!
    Image.Image = "http://www.roblox.com/asset/?id=446332683"
    wait()
    for i = 0,1,0.1 do
        Image.ImageTransparency = i
    end
end
0
0
works well and thx kingdom sammiya1 134 — 7y
0
Also i would not se wait https://scriptinghelpers.org/questions/29070/how-long-is-wait. Is will be much smoother fade if you use tick() as it is seporate from the processing User#5423 17 — 7y
Ad

Answer this question