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

How do you manipulate players? [RESOLVED] [closed]

Asked by 10 years ago

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,

Locked by TheMyrco

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

2 answers

Log in to vote
1
Answered by 10 years ago

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.

0
And "Neck" is for the head. User#2 0 — 10y
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. User#348 0 — 10y
0
Woops, it's C0, not CFrame. Let me edit my answer. Thewsomeguy 448 — 10y
0
You could use C1 too, by the way. Thewsomeguy 448 — 10y
0
Thanks! User#348 0 — 10y
Ad
Log in to vote
0
Answered by 10 years ago

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.

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. User#348 0 — 10y
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. User#11893 186 — 10y