UserInputService = game:GetService("UserInputService") local players = game.Players.LocalPlayer
local LeftShiftPressed = false
UserInputService.InputBegan:Connect(function(input,gameProccesedEvent) if input.KeyCode == Enum.KeyCode.LeftShift then LeftShiftPressed = true if players:FindFirstChild("Humanoid") then players.Humanoid.CharacterWalkSpeed = 90
UserInputService.InputBegan:Connect(function(input,gameProccesedEvent)
if input.KeyCode == Enum.KeyCode.LeftShift then
LeftShiftPressed = false
if players:FindFirstChild("Humanoid") then
players.Humanoid.CharacterWalkSpeed = 16
end
end
end)
while LeftShiftPressed == true do
wait()
players.Humanoid.CharacterWalkSpeed = 90
end

6 comments
You have the code so what exactly do u need. Is your code not working?
yes
it do not work
Can I see the variable for players?
/?
its at the beggining where it says game.Players.LocalPlayer