Can someone help me with coding a secret double jump. I got a deathrun server and want only me to be able to double jump.
Search: "double jump site:facepunch.com" on Google.
There are several scripts there.
If you want to code your own there are several ways to do it. On Jump, if jump is pressed again then set the variable that double-jump has been used. SetVelocity on the player to the current velocity + a positive amount in the Z coordinate ( the third one ). Then, OnPlayerHitGround, reset the variable so it can be done again.
Be careful; if you add this to your server and use it to cheat; people will leave your server and stop playing there.. It's not nice to give yourself an unfair advantage over other players. A better solution would be to purchase a double-jump perk from a pointshop; and only allow one or two uses per round.
words from a very wise man.
Sorry, you need to Log In to post a reply to this thread.