UserInputService.InputBegan:Connect(function(Y)if Y.KeyCode==Enum.KeyCode.LeftShift then Character.Humanoid.WalkSpeed=SpeedBoost end end)UserInputService.InputEnded:Connect(function(Y)if Y.KeyCode==Enum.KeyCode.LeftShift then Character.Humanoid.WalkSpeed=DefaultSpeed end end)

UserInputService.InputBegan:Connect(function(key) --When player holds shift key, run code
 if key.KeyCode == Enum.KeyCode.LeftShift then
 Character.Humanoid.WalkSpeed = SpeedBoost
 end 
end)

UserInputService.InputEnded:Connect(function(key)-- When player lets go of shift key, run code
 if key.KeyCode == Enum.KeyCode.LeftShift then
 Character.Humanoid.WalkSpeed = DefaultSpeed
 end
end)
