#Rotating UI
2 messages · Page 1 of 1 (latest)
local TweenService = game:GetService("TweenService")
local ui = script.Parent.Parent
local tweenInfo = TweenInfo.new(
3, -- The time the tween takes to complete
Enum.EasingStyle.Quad, -- The tween style.
Enum.EasingDirection.InOut, -- EasingDirection
0, -- 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 Tween1 = TweenService:Create(ui, tweenInfo, {Rotation = 15})
local Tween2 = TweenService:Create(ui, tweenInfo, {Rotation = -15})
while true do
Tween1:Play()
Tween1.Ended:Wait()
Tween2:Play()
Tween2.Ended:Wait()
end