Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you make a script that rotates a part?

I am trying to make a brick rotate on only the Y axis, is there any way I can get this accomplished?

1 comment

0

Part.CFrame = Part.CFrame * CFrame.Angles(0,math.rad(deg),0)

2 answers

✓ Accepted answer
local part = Instance.new('Part')
part.Parent = Workspace
part.Anchored = true
part.CFrame = part.CFrame * CFrame.Angles(0, math.rad(5), 0) -- change as you wish

Here's a guide

Part.Orientation = Part.Orientation + Vector3.new(0,num,0)

1 comment

0

Cframe is much better cframe.Angle

This discussion is preserved as it was. New answers, comments, and votes are closed.