Tween animation Only works on ImageLabel

Tween animation only works on a imageLabel but dooesnt work on a imageButton

local TweenService = game:GetService("TweenService")
local Object = script.Parent -- The object you want to tween.

local tweenInfo = TweenInfo.new(
	3, -- The time the tween takes to complete
	Enum.EasingStyle.Linear, -- The tween style.
	Enum.EasingDirection.Out, -- EasingDirection
	-1, -- How many times you want the tween to repeat. If you make it less than 0 it will repeat forever.
	false, -- Reverse?
	0 -- Delay
)

local Tween = TweenService:Create(Object, tweenInfo, {Rotation = 360}) -- Creates the tween with the TweenInfo and what properties you want to change
Tween:Play() -- Plays the tween
1 Like

are you sure ? I tried your script on an imageButton and it worked well

probably something in the settings of the imageButton ill just create a new image button
and tell you if it worked

The absolute rotation stays 0 for some reason

that’s weird, did you put your script into a localscript ?

I know why it doesnt rotate, its becose of the ui list layout, how can i stop the ui list layout from stopping me from rotating