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

Roblox Animation problem? (Remove's walking animation)

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

1

Set the animation priority.

1 answer

This has to do with your animation's Priority setting. Here is the order:

[from wiki]

  • Core (lowest priority)

  • Idle

  • Movement

  • Action (highest priority)

Set your Animation's Priority under the Edit tab. Make it closer to the higher priority settings in order to override the walking animation.

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