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

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

Asked by 6 years ago

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)

0
The Activated event has no parameters. User#19524 175 — 6y

1 answer

Log in to vote
0
Answered by
mattscy 3725 Moderation Voter Community Moderator
6 years ago
Edited 6 years ago

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
Ad

Answer this question