my script won’t change to the runnning animation i put into starterplayerscripts.
so i just want to play a running animation when one of the shift’s is activated, and when deactivated it starts playing the walking animation again
script:
local UIS = game:GetService("UserInputService")
local player = game.Players.LocalPlayer
local usualplayerspeed = 12
UIS.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.LeftShift or input.KeyCode == Enum.KeyCode.RightShift then
player.Character.Humanoid.WalkSpeed = 20
end
end)
UIS.InputEnded:Connect(function(input)
if input.KeyCode == Enum.KeyCode.LeftShift or input.KeyCode == Enum.KeyCode.RightShift then
player.Character.Humanoid.WalkSpeed = usualplayerspeed
end
end)
the only difference(maybe) is that i have a different running animation, which i took from the player’s “Animate” script, in run i put an id, that should work
i have no idea how to do a video, but i maybe could explain it better. basically i’m using the animate script form the player when you join the game, then put it in startercharacterscripts
this is the animate script
what im trying to achieve is the running animation, like you explained above, your video is showing what im trying to achieve, idk if you had just normal walking before, but i’m trying to make the running animation play after you press one of the shift buttons, when you release it goes back to walking animation, im not the best explainer, but hopefully we could go off this