Jumping problem

I have looked everywhere for a script for when I press space the player will jump everytime I press it. If someone could point me in the right direction that would be awesome
thanks

Check that link, includes snippet for jump.