wait(2)
local Player = game.Players.LocalPlayer
local UIS = game:GetService("UserInputService")
local Humanoid = Player.Character.Humanoid
UIS.InputBegan:Connect(function(input, GameProcessedEvent)
if input.KeyCode == Enum.KeyCode.LeftShift then
Humanoid.WalkSpeed = 50
end
end)
UIS.InputEnded:Connect(function(input, GameProcessedEvent)
if input.KeyCode == Enum.KeyCode.LeftShift then
Humanoid.WalkSpeed = 16
end
end)
COMMUNITY QUESTION
this sprint works but once a player dies it stops working why is that??
1 answer
i fixed it already by moving it to the startcharactersscripts isntead of starterplayerscripts
This discussion is preserved as it was. New answers, comments, and votes are closed.
