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 6 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 6 years ago

Did you try unanchoring it?

or try putting this script into the part

local spin = script.Parent 
local a = 0
repeat
    spin.Rotation = Vector3.new( 0, a, 0) 
    a = a + 1
until 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 — 6y
Ad
Log in to vote
0
Answered by 6 years ago
while true do
 script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(.1,.1,.1)
 wait()
end

Answer this question