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

I cant play animations in my characters?

Asked by
Dax4244 20
8 years ago

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

0
thx and yea i just got into scripting so im still learning Dax4244 20 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

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!

0
yea i just got into scripting so im still learning Dax4244 20 — 8y
0
Did it work? If so, please thumb up and accept my answer! :D james24dj 90 — 8y
0
uhhhhh sorry but no it did not D: Dax4244 20 — 8y
0
How..? It worked for me. Im using it right now! james24dj 90 — 8y
Ad

Answer this question