i am making a simulator game so i made a tool and it can load an animation but i cant stop it. my script might look dumb but im still a beginner scripter:
script.Parent.Equipped:Connect(function()
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Hold)
animation:Play()
end)
script.Parent.Unequipped:Connect(function()
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Hold)
animation:Stop()
end)
that last part i cant stop the animation
btw i named the animation hold because im holding a tool

1 comment
Learn python instead. Lua is shi-t!