local animation = script.Animation
local hum = script.Parent:WaitForChild("Humanoid")
local animTrack = hum:LoadAnimation(animation)
animTrack.Priority = Enum.AnimationPriority.Action
local isPlayingAnim = false
hum.Running:Connect(function(speed)
if speed > 0 then
if isPlayingAnim then return end
animTrack:Play()
isPlayingAnim = true
else
if not isPlayingAnim then return end
isPlayingAnim = false
animTrack:Stop()
end
end)
the anim is mixed with roblox default movement, how do I make it override without having to delete animate script