FPS = 1 -- How many frames per second it will run at.



GIF = {"rbxassetid://614166207","http://www.roblox.com/asset/?id=614196198,rbxassetid://614212267","rbxassetid://614243948","rbxassetid://614245502","rbxassetid://614624256","rbxassetid://614652355","rbxassetid://614749146","rbxassetid://614750178","http://www.roblox.com/asset/?id=166249907","rbxassetid://614751359","rbxassetid://614755688","rbxassetid://614756818","http://www.roblox.com/asset/?id=166249942","http://www.roblox.com/asset/?id=166249964","rbxassetid://614758943","rbxassetid://614761035","rbxassetid://614764045","http://www.roblox.com/asset/?id=166250031"} 
script.Parent:WaitForChild("ImageLabel")
ImageLabel = script.Parent.ImageLabel


for N,F in ipairs(GIF) do
	game:GetService("ContentProvider"):Preload(F) -- This is supposed to preload each image, so images don't blindingly flash people in the face.

end


while true do
	for N,F in ipairs(GIF) do -- Run through the GIF table.
		ImageLabel.Image = F
		wait(0.1/FPS)
	end
end
    • The text below is part of the script in which does not function or work at all for reasons I don't l know.

for N,F in ipairs(GIF) do game:GetService("ContentProvider"):Preload(F)

5 comments

0

You never added an end

0

I added an end but I have the same result, nothing. I still help help because this is hard.

0

Have you done any debugging to figure out what code is running? If you print(F) after each Preload and after setting the Image, what do you get?

0

Suggest making a sprite, thats much easier and way less effort.

0

The line of code acts like its not there at all in the script. So if I delete it nothing happens tot he script at all. I want a way to preload the images so they don't flash in my face loading up.