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

Roblox Animation problem? (Remove's walking animation)

Asked by 6 years ago
Edited 6 years ago

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
Set the animation priority. User#5423 17 — 6y

1 answer

Log in to vote
1
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
6 years ago
Edited 6 years ago

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.

Ad

Answer this question