Animated imagelabel issue

sooo im tryna make an animated imagelabel for a loading screen…
the animation doesnt seem to be working
this is the script inside the screengui (renamed Intro)

-- 
local Intro = script.Parent.Frame
local image = Intro.ImageLabel
local TweenSerive = game:GetService("TweenService")

game.ReplicatedFirst:RemoveDefaultLoadingScreen()
Intro.Visible = true

image.Image = "rbxassetid://7747995041"
wait(0.12)
image.Image = "rbxassetid://7747996183" 
wait(0.12)
image.Image = "rbxassetid://7747997106" 
wait(0.12)
----------------------------------------

(i cut out some repeating lines just of extra pics to make it shorter)
it just shows the default image & stands still
when i make a similiar script on a surface gui, or even just a decal, its perfectly fine

ive tried using both localscript & just regular script… niether work
anyway heres some pics & vid
image
heres it working on the surface gui, but not screen
UGH

i tried following along to this tutorial How To Make A Animated Image Label Intro To Your Game Roblox Studio Tutorial 7 - YouTube is it just outdated ? or did i make a mistake?

The problem is that you are using a Server script. If you copy the code to a LocalScript and put it in the same spot, it should work.

image

tried that, still doesnt work :frowning:

It is not working since this code only runs once. In order to make it work, you have to put this inside a loop.

local Intro = script.Parent.Frame
local image = Intro.ImageLabel

while task.wait() do
  image.Image = "rbxassetid://7747995041"
  task.wait(0.12)
  image.Image = "rbxassetid://7747996183" 
  task.wait(0.12)
  image.Image = "rbxassetid://7747997106" 
  task.wait(0.12)
end -- Make sure to stop this loop once the loading has been completed

(Also use a LocalScript instead of a Script)

OMG THANK YOU SO MUCH!!! :smiley:

this is my first post here… & im new to scripting, so i rly appreciate the help, even on a issue that should have ben obvious XD

1 Like