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

Help Getting CFrame Angles?

Asked by
Scootakip 299 Moderation Voter
9 years ago
        local c = game.Players.LocalPlayer.CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))

I'm trying to get a way to have the player's arm go up on command (kinda like they equipped a sword) and according to Wiki I need to use CFrame.Angles

Now I know that Wiki isn't always extremely reliable, but I thought that I'd give it a try... It didn't work.

Is there something I'm doing wrong, or is Wiki just simply making stuff up? It always says in the Output that 'Angles' isn't a valid member. Someone help?

1 answer

Log in to vote
0
Answered by 9 years ago

First of all you could use animation editor. This would be very simple. Another thing would be what you trying to do. You need to go offen the motors in the hips and shoulders. To do this you will need the character.

game.Players.LocalPlayer.Character this will bring u to the character.

game.Players.LocalPlayer.Character.Torso['Left Hip'] that is the left hip motor.

lh.C0 = lh.C0 *CFrame.Angles(0,0,0) that would rotate the left hip in what ever direction you put in. so say lh.C0= lh.C0 *CFrame.Angles(1,0,0)

Ad

Answer this question