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

I cant play animations in my characters?

i tried the roblox animtion plugin i tried the anima that some one made but its not working ither im very confused plz help me, im sorry i ment to play animations in characters like jump animation that plays every time you jump or a walk animation everytime you move

1 comment

0

thx and yea i just got into scripting so im still learning

1 answer

Well, I assume you've already made your animation and a LocalScript with and Animation as a child. For example it should look like this:

StarterPack
	-LocalScript
 			+Animation

(I won't make the whole script for you because you've shown no effort (proof) that you've tried scripting. This is not a requesting site.

wait(1)

local player = game.Players.LocalPlayer --You need to identify the Player
local Mouse = player:GetMouse() --You obviously need your mouse for the KeyDown function
local humanoid = player.Character.Humanoid --Humanoid
local s = humanoid:LoadAnimation(Animation) -- Put the LOCATION of your animation here, for instance, if you have your animation INSIDE of a local script in StarterPack, then you'd put (game.StarterPack.Localscript.Animation)

Mouse.KeyDown:connect(function(key)

-- code

end
end)

I hope I helped!

4 comments

0

yea i just got into scripting so im still learning

0

Did it work? If so, please thumb up and accept my answer! :D

0

uhhhhh sorry but no it did not D:

0

How..? It worked for me. Im using it right now!

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