Mdr721

Tool tutorial bh

Jun 1st, 2021 (edited)
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //A mdr721 script
  2. //date: june 1st, 2021
  3.  
  4.  
  5. //Getting tools ready!!!
  6. //constructor
  7. let tool = new Tool("Balloon")
  8. tool.model = 84038
  9.  
  10. //Code:
  11.  
  12. //function
  13. Game.on("playerJoin", (player) => {
  14.    player.on("initialSpawn", () => {
  15.        player.equipTool(tool)
  16.    })
  17. })
  18.  
  19. tool.on("activated", (p) => {
  20.   console.log(p.username + " has clicked with the tool equipped!")
  21.  
  22. })
  23.  
  24. tool.on("equipped", (p) =>{
  25.    console.log(p.username + "has eqquiped a tool")
  26. })
  27.  
  28. tool.equipped((p) => {
  29.    p.setSpeed(30)
  30.    p.setJumpPower(20)
  31. })
  32. tool.unequipped((p)=> {
  33.    p.setJumpPower(5)
  34.    p.setSpeed(10)
  35. })
  36.  
  37.  
  38.  
  39. // tool.destroy// will destroy the tool
Add Comment
Please, Sign In to add comment