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

Image Gui Changer Not Functional?

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

✓ Accepted answer

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

3 comments

0

works well and thx kingdom

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

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