Helloo scriptinghelpers community, I have a tool in roblox where if you click it plays an animation.
It plays the animation fine, but when the animation ends, it removes the walking animation from the player. What I mean is that, the animation plays, the players arms and legs don't move though.
what happens --> http://youtu.be/INrot_biO4w
If anyone can help, that'd be great!
(This is the script, its a local script)
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:wait()
local Humanoid = character:WaitForChild("Humanoid")
local PlayAnim = script.Parent:WaitForChild("PlayAnim")
local tool = script.Parent
tool.Equipped:connect(function(mouse)
mouse.Button1Down:connect(function()
local anim = Humanoid:LoadAnimation(PlayAnim)
anim:Play()
end)
end)

1 comment
Set the animation priority.