Crea un LocalScript en StarterPlayer StarterCharacterScripts
Y pega esto:
Script:
local player = game.Players.LocalPlayer
local character = player.Character
local humanoid = character:WaitForChild("Humanoid")
local sprinting = false
game:GetService("UserInputService").InputBegan:Connect(function(input, gameProcessed)
if input.KeyCode == Enum.KeyCode.W then
if not gameProcessed and not sprinting then
sprinting = true
humanoid.WalkSpeed = humanoid.WalkSpeed * 20.0
end
end
end)
game:GetService("UserInputService").InputEnded:Connect(function(input, gameProcessed)
if input.KeyCode == Enum.KeyCode.W then
if not gameProcessed and sprinting then
sprinting = false
humanoid.WalkSpeed = humanoid.WalkSpeed / 4.0
end
end
end)