Help needed with a simple GUI animation

I believe this is the right place to post this, if it isn’t feel free to correct me lol

I need help with animating an imagelabel on my loading screen gui, heres an example of what i want it to look like. I can’t find any tutorials anywhere.

loading gif animation

I’m very new to scripting, it’s probably pretty easy and i’m just being dumb haha

If anyone could point me in the right direction, it’ll be appreciated!

1 Like

Sorry for the long wait lol, I was just rushing to answer this question so much that I made a lot of mistakes, I think this script can work for you:

local textlabel = script.Parent.TextLabel
local TweenService = game:GetService('TweenService')

while task.wait(2) do
	TweenService:Create(textlabel,TweenInfo.new(2,Enum.EasingStyle.Linear),{Rotation = 20}):Play()
	task.wait(2)
	TweenService:Create(textlabel,TweenInfo.new(2,Enum.EasingStyle.Linear),{Rotation = -20}):Play()
end

image

Edit:

2 Likes

Thank you! it works perfectly!

1 Like