I found a script where I can toggle LeftCTRL to sprint, But does anyone know how to add a custom running animation to this?
local player = game.Players.LocalPlayer
local humanoid = player.Character.Humanoid
local UIS = game:GetService("UserInputService")
UIS.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.LeftControl then
if humanoid.WalkSpeed == 35 then
humanoid.WalkSpeed = 16
else
humanoid.WalkSpeed = 35
end
end
end)

2 comments
You would have to load the animation onto the Humanoid then and play the animation. https://developer.roblox.com/en-us/api-reference/function/Humanoid/LoadAnimation
Sorry but, where would I put that code?