Jumping

I made a button and when I click on it I want the player jumped.
I used this:

public int JumpSpeed = 30;

GameObject.Find("Player").transform.Translate(Vector3.up * JumpSpeed * Time.deltaTime);

but I do not like it because it looks as if he moved to a position and then just fell.
Can you please show me a better script?

Seriously, one post is enough.

please.

Please stop posting duplicate topics. Pick one category per topic only. (I’ve deleted the duplicates.)

–Eric

OK.

I would suggest you go through the lerpz tutorial…

it can be found in support at teh top of the page. It will cover all sorts of basic stuff such as jumping.