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

How do i rotate cframe 180 times?

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

✓ Accepted answer

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

1 comment

0

Thanks

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