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

How to use CFrame to animate arms/legs?

Asked by 10 years ago

I've seen free models and people using CFrame angles to animate arm movement and stuff. For some reason when I try it, all it does is move the arm according to my arm in a split of a second instead of seeing it MOVE. Its quite weird, can anyone tell me?

for i=1,30 do
part.CFrame=part.CFrame*CFrame.Angles(0,1,0)
end

That works, but you cant see the part rotate. It just...rotates.

1 answer

Log in to vote
2
Answered by
Diitto 230 Moderation Voter
10 years ago

For one, you did not have the For Loop sleep during the rotation. Insert a wait() after the part.CFrame so that you can see your arm move.

I would recommend that you learn about Euler Angles and Radians, for animating using CFrame requires a good amount of knowledge on how to rotate parts in certain directions by a certain offset.

0
:D Hey was up diitto!!!! MessorAdmin 598 — 10y
0
Jill, why are you stalking me? Diitto 230 — 10y
0
;-; I have been on SC for a long while now... My main got terminated before I could script good xD ( I was user 579 ) just look it up on the search bar. And your 4 rep is from me to say hai. (:3) ;D MessorAdmin 598 — 10y
0
Aleksa is also on SC. ( The guy from Solar ) :P MessorAdmin 598 — 10y
0
I know. Diitto 230 — 10y
Ad

Answer this question