This is a local script in Starter Character Scripts
local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local localPlayer = Players.LocalPlayer
local humanoid = localPlayer.Character:WaitForChild("Humanoid", 1)
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://6793653980"
animation.Parent = humanoid
loadedAnimation = humanoid.Animator:LoadAnimation(animation)
UserInputService.InputBegan:Connect(function(input, gameProccesed)
if gameProccesed then
return
else
if input.KeyCode == Enum.KeyCode.LeftShift then
humanoid.WalkSpeed = 25
loadedAnimation:Play()
end
end
end)
UserInputService.InputEnded:Connect(function(input, gameProccesed)
if gameProccesed then
return
else
if input.KeyCode == Enum.KeyCode.LeftShift then
humanoid.WalkSpeed = 16
loadedAnimation:Stop()
end
end
end)
I don't understand why this is happening, I have made it so the server runs it, same problem, I'm thinking it's because the walk animation is overwriting it. I tried fixing it, no luck. Need help!
(THIS IS NOT MY SCRIPT, I MUST SAY, I HAVE EDITED IT HOWEVER.)
Update: I found out that it is only happening on my side, I could see my alt running however it didn't show me running on the alt side. Fixes? Also, updated script.
Update2: Randomly fixed itself. If you can please close the thread/question
Many thanks, Narwhal

8 comments
You should be using Animator:LoadAnimation() as Humanoid:LoadAnimation() is deprecated. Also, what is the AnimationPriority of the animation?
Im pretty sure its core, and ill take that,
Changed it to movement if it'd help, didnt, also changed it to animator didnt work either.
try setting the networkOwnerShip? maybe that will work
i think your trying to make a run script
i dont get why you think the animation is only playing on the client because the client owns the character and anything that happens in the character happens automatically on the server
if you really cant get it playing then just use a remote event
this script is strange. instead of loading the animation only once, it makes a new animation every time you press shift. the way it should happen is that you only load it once and it is stored to be played later. if you are unsure how to implement ask and I will post later.