17.01.2016, 19:27
The code I presented to you does exactly what you want it to do, it only detects if the player is holding space (sprinting) - if he's standing still, he isn't sprinting (Sprint = 0).
Holding W/A/S/D is not sprinting, if you want to detect if he's running you should probably do what Pottus came up with.
Holding W/A/S/D is not sprinting, if you want to detect if he's running you should probably do what Pottus came up with.