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

How can I make a Player's arm move to a certain position?

Asked by 6 years ago

So i'm trying to make a gun that when the Player reloads, the Player's hand moves to the Ammo Clip part and then Back to the Player. How would I make it so that The player's hand moves to a certain position?

0
please try first. use renderstepped and animate using lerp. abnotaddable 920 — 6y
0
please try first. use renderstepped and animate using lerp. abnotaddable 920 — 6y
0
That's the thing, I don't know how to do that. MRbraveDragon 374 — 6y
0
then do easier things before stepping up to this part hiimgoodpack 2009 — 6y

1 answer

Log in to vote
0
Answered by
iddash 45
6 years ago
Edited 6 years ago

NEXT TIME PLEASE TRY FIRST BEFORE ASKING

Go into play mode, take out the gun and click pause(In the Test tab). Then go to Workspace and copy your player. Go back into build mode and paste your character.

Then open the animation plugin ( or which ever one you have) and click on your character.Go to "Edit">"Set priority">"Idle".

Now make your animation. If u aren't using one of the body parts, make sure to click on the grey square next to the body parts name.

Once you have make your animation then go to "File">"Export".Save it and copy the link that is there. Open up notepad or something and paste it.

Now all you have to do is make animation play when the player reloads.

When you insert an animation into something ,for example a script, just paste that link that you copied and pasted into notepad, into the animations asset.

Here is one way to make the animation play:

--PUT THIS IN THE TOOL
local tool = script.Parent
local anim = PathToAnimation
local player =game:GetService("Players").LocalPlayer
local char = player.Character
local humanoid = char.Humanoid

local debounce = false

tool.Activated:Connect(function()--when the player uses the tool
    if not debounce then--if debounce is false
        debounce = true
        local load = humanoid:LoadAnimation(anim)--loads the animation into the players humanoid
        load:Play() --plays it
        wait(1)--set this to the length of ur animation
        debounce = false
    end
end)

You could also use ContextActionService to do this.

0
I wanted to animate the Player's arm using Weld scripts... Not Animation MRbraveDragon 374 — 6y
0
o idk then srry iddash 45 — 6y
0
well then try yourself abnotaddable 920 — 6y
Ad

Answer this question