im making an idle animation for a tool. the animation wont stop tho ;-; it may be in plain sight idk im vary tired.
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)
this is a normal script not a local script btw
