#The script isnt working, please help!
7 messages · Page 1 of 1 (latest)
well
you are basically loading in a new Idle animation track instance with :LoadAnimation
and not the current one that you loaded in the .Equipped function
What you can do is load the animation outside of the functions and do it as such
...
local Idle = character:WaitForChild("Humanoid").Animator:LoadAnimation(IdleAnim)
Idle.Priority = Enum.AnimationPriority.Action4
tool.Equipped:Connect(function()
...
wait(0.18)
Idle:Play()
end)
tool.Unequipped:Connect(function()
wait(0.02)
Idle:Stop()
end)
||(the ... are the rest of your code)||