how to rotate ui roblox code example
Example 1: how to make a part rotate roblox
local part = game.Workspace.Part
while true do wait(1)
part.CFrame = CFrame.Angles(0,math.rad(5),0)
end
Example 2: rotate modl roblox
--This will get rotated 90 degrees on X axis
Model:SetPrimaryPartCFrame(SpawnCFrame * CFrame.Angles(math.rad(90),0,0))