hello everyone, I made an animation, but when the player starts running, it doesn’t look pretty, you can make it so that when the player used the tool, he stood still, didn’t move at all, even his animation didn’t work, and when he removes the tool, everything comes back
local tool = script.Parent
local IdleAnim = Instance.new("Animation")
IdleAnim.AnimationId = "rbxassetid://14815238328"
local firstTrack
local plr = game.Players.LocalPlayer
tool.Equipped:Connect(function()
firstTrack = script.Parent.Parent.Humanoid:LoadAnimation(IdleAnim)
firstTrack.Priority = Enum.AnimationPriority.Action
firstTrack.Looped = false
firstTrack:Play()
script.Parent.isEquipped.Value = true
wait(1)
end)
tool.Unequipped:Connect(function()
if firstTrack then
firstTrack:Stop()
script.Parent.isEquipped.Value = false
end
end)