Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a CFrame rotate model?

Asked by 7 years ago

How do I make this line: Model:SetPrimaryPartCFrame(Model:GetPrimaryPartCFrame() * CFrame.new(0,0.05,0)) Rotate?

2 answers

Log in to vote
0
Answered by 7 years ago

Did you try unanchoring it?

or try putting this script into the part

1local spin = script.Parent
2local a = 0
3repeat
4    spin.Rotation = Vector3.new( 0, a, 0)
5    a = a + 1
6until a == 6 --whatever number you like
0
btw i haven't tested out this short script and i just whipped it out of my head in a few minutes so if you have any problems just ask GIassWindows 141 — 7y
Ad
Log in to vote
0
Answered by 7 years ago
1while true do
2 script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(.1,.1,.1)
3 wait()
4end

Answer this question