the animation starts playing just fine! but it wont stop. i have no clue how to fix this. pls help lol
this is a repost btw bc the last one didn't get any response. (and a 2nd time when i deleted the question by mistake, woops)
local Tool = script.Parent
local Animation = Tool.IdleAnim
script.Parent.Equipped:Connect(function()
local Character = Tool.Parent
local Humanoid = Character.Humanoid
local AnimationTrack = Humanoid:LoadAnimation(Animation)
AnimationTrack:Play()
end)
script.Parent.Unequipped:Connect(function()
local Character = Tool.Parent
local Humanoid = Character.Humanoid
local AnimationTrack = Humanoid:LoadAnimation(Animation)
AnimationTrack:Stop()
end)

1 comment
Just the code for this won't be enough. Perhaps show us how the animation looks like in the editor?