Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

this sprint works but once a player dies it stops working why is that??

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)

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.