Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //code by mdr721
- //Date June 1st,2021
- // example from the doc
- // Game.on("initialSpawn", (player) => {
- // player.speedCooldown = false
- // player.keypress(async(key) => {
- // if (player.speedCooldown) return
- // if (key === "shift") {
- // player.speedCooldown = true
- // player.bottomPrint("Boost activated!", 3)
- // player.setSpeed(8)
- // await sleep(3000)
- // player.setSpeed(4)
- // player.bottomPrint("Boost cooldown...", 6)
- // setTimeout(() => {
- // player.speedCooldown = false
- // }, 6000)
- // }
- // })
- // })
- Game.on("initialSpawn", (player) =>{
- player.keypress(async(key) =>{
- console.log('pressed key: '+ key)
- if (key == 'shift'){
- }
- if (key == 'e'){
- }
- if (key == 'q'){
- }
- if (key == 'r'){
- }
- })
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement