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

Why doesen't a animated part dosen't move?

i made a animation for a tool. when playing it it dosen't move my animated part, only the head (that is animated too) only moves

Tool = script.Parent
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")

local animation = Tool["insert-2"]
local animation2 = Tool["insert-1"] 
local AnimTrack2 = hum:LoadAnimation(animation)

Tool.Activated:connect(function(mouse)
    AnimTrack2:Play()
end)

Tool.Unequipped:connect(function() 
    AnimTrack2:Stop()
end)

1 comment

0

The Activated event has no parameters.

1 answer

✓ Accepted answer

When using tools, the animation to hold up the right arm overwrites your own animation if it has a low priority. To solve this, change the AnimationPriority to action (the highest priority):

AnimTrack2.Priority = Enum.AnimationPriority.Action

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