-- Handle user input began differently depending on whether a shift key is pressed

local function Input(input, gameProcessedEvent)
	while IsShiftKeyDown() do
		wait()
		game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
	end
	game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 25
end
 
UserInputService.InputBegan:Connect(Input)
