Ui Rotation Tween Problem

I want to Try to Make a Tween that Rotates a Little Bit and Stop after a Few Seconds

I Tried Looking up Tutorials on How to do that and I’ve Gotten Little to no Tutorials

Im Not Very Good at Scripting and Still Learning How to but I Tried to Make the Script Stop after waiting a Few Seconds then Nothing worked Anymore

If you Have Any Video Tutorials on How to Work on UI Tween Rotation that Will be Much appreciated

local Frame = script.Parent

while true do
wait(0.01)
Frame.Rotation = Frame.Rotation + 7

end

like it starts and stops in a looping way

like in the Roblox Loading Screen it spins then stops and goes on and on

yea but i want it to stop after a few seconds then spins again

So, what I’m hearing is, you want to Try to Make a Tween that Rotates a Little Bit and Stop after a Few Seconds?

correct i’ve been looking a way to figure this out for hours

something like this?
czopek#7877-282623396

local Frame = script.Parent

while true do 
	game:GetService("TweenService"):Create(Frame, TweenInfo.new(1.2, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut), {Rotation = Frame.Rotation + 360}):Play()
	task.wait(1.3)
end

yes that what i was exactly looking for