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

How do i rotate cframe 180 times?

Asked by 4 years ago

I was trying to make a part rotate 180 times but it gives me this error

for i = 1,180 do
    player["Right Arm"].CFrame = CFrame.Angles() + Vector3.new(0,0.1,0)
    wait ()
end

the error is Missing 3 arguments or nil. Please help

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

Here ya go. You can just move math.rad to the other arguments if what I gave isn't on the right axis you want to rotate by.

for i = 1,180 do
    player["Right Arm"].CFrame = player["Right Arm"].CFrame * CFrame.Angles(0,math.rad(i),0)
    wait ()
end
0
Thanks antoniorigo4 117 — 4y
Ad

Answer this question