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

How do you manipulate players? [RESOLVED]

I want to figure out how to manipulate a player so I can make crouching, running, aiming, etc. I do not know how to do this and I do not know where to find out.

I know this is not very specific, but I just want to know how to make an arm/leg go from point A to point B without it falling off,

2 answers

✓ Accepted answer

You could change the c0/c1 of the motors for the arms/legs.

	local plr = game.Players['PlayerName']; --Replace "PlayerName" with the name of the player, or your's
	if plr and plr.Character then
		local char = plr.Character
		local torso = char.Torso

		torso['Left Hip']['C0'] = CFrame.new(0,0,0); --change this around until you get the look you want
	end

Note: Left Hip is Left Leg, Right Hip is Right Leg, Left Shoulder is Left Arm, and Right Shoulder is Right Arm.

5 comments

0

And "Neck" is for the head.

0

When I ran that code, It first told me that there was no LeftHip, so I added a space and that was fixed. But then it said CFrame is not a valid member of Motor6D.

0

Woops, it's C0, not CFrame. Let me edit my answer.

0

You could use C1 too, by the way.

0

Thanks!

What you are talking about is animations. ROBLOX provides a nice animation plugin for you to use, so I recommend you use that to create your animations.

2 comments

0

The only problem is I don't have enough robux for that, and even if I did, I wouldn't want to spend 30 robux to make a player move it's arm. I want to learn what they did before the plugin.

0

You can find a forked version of this plugin somewhere which allows you to run animations without uploading them. I don't have the link, but I know someone made one.

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