of     1   

cocoaboys
#221224288Thursday, July 13, 2017 6:10 PM GMT

Hey, I am wondering if someone know about an easy way to rotate a Model. I want to rotate it using a for-loop, only a certain amount of degrees. For example like this, but not with the part, but with a whole model: local lower = script.Parent.Lower for i=0, 30 do lower.CFrame = lower.CFrame * CFrame.Angles(0,-i/400,0) wait(0.01) end
Niveum
#221224652Thursday, July 13, 2017 6:15 PM GMT

local model = -- your model model.PrimaryPart = -- part you want to rotate around model:SetPrimaryPartCFrame(desired_cframe) ~ S P I C Y ~
cocoaboys
#221224976Thursday, July 13, 2017 6:20 PM GMT

Thanks! But what about the parenthesis: local lower = script.Parent.Lower for i=0, 30 do local model = script.Parent model.PrimaryPart = lower model:SetPrimaryPartCFrame(CFrame * CFrame.Angles(0,-0.01,0)) -- This line end
Niveum
#221225106Thursday, July 13, 2017 6:22 PM GMT

for i=0, 30 do local model = script.Parent model.PrimaryPart = lower model:SetPrimaryPartCFrame(model.PrimaryPart.CFrame * CFrame.Angles(0,-0.01,0)) -- This line end ~ S P I C Y ~
cocoaboys
#221225235Thursday, July 13, 2017 6:24 PM GMT

Thanks :)

    of     1