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?
How can I make a Player's arm move to a certain position?
1 answer
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.
3 comments
I wanted to animate the Player's arm using Weld scripts... Not Animation
o idk then srry
well then try yourself
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
please try first. use renderstepped and animate using lerp.
please try first. use renderstepped and animate using lerp.
That's the thing, I don't know how to do that.
then do easier things before stepping up to this part