Run anim is wonky

https://gyazo.com/22467f796637f40faece9ff30e531e73

script:

local uis = game:GetService("UserInputService")

local player = game.Players.LocalPlayer

local char = player.Character or player.CharacterAdded:Wait()

local hum = char:WaitForChild("Humanoid")

local cam = game.Workspace.Camera

local anim = Instance.new("Animation")

anim.AnimationId = "rbxassetid://10278241509"

local playanim = hum:LoadAnimation(anim)

uis.InputBegan:Connect(function(input)

if input.KeyCode == Enum.KeyCode.Z then

cam.FieldOfView = 90

hum.WalkSpeed = 36

playanim.Priority = "Movement"

playanim:Play()

end

end)

uis.InputEnded:Connect(function(input)

if input.KeyCode == Enum.KeyCode.Z then

cam.FieldOfView = 70

hum.WalkSpeed = 16

playanim:Stop()

end

end)
1 Like

Try setting the animation priority to Action. Are there any other scripts that play animations to the character other than this?

nope, and alr tried and didnt fix anything

its like playing my walking animation and the run animation at the same time

Try this

local Animator = humanoid:WaitForChild(“Animator”)
local anim = Instance.new(“Animation”)
anim.AnimationId = “rbxassetid://10278241509”
local animTrack = Animator:LoadAnimation(anim)
snapAnimationTrack.Priority = Enum.AnimationPriority.Movement
snapAnimationTrack.Looped = true