Advertisement
Mdr721

eating food

Sep 26th, 2022
1,046
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let tool = new Tool("Golden potatos")
  2.  
  3. let foodbar = 5
  4. tool.model = 70659
  5. Game.on("playerJoin", (player) => {
  6.    player.on("initialSpawn", () => {
  7.        player.equipTool(tool)
  8.    })
  9.  
  10.    player.setInterval(() =>{
  11.     if (foodbar == 5){player.bottomPrint("{ | | | | |}",1)}
  12.     if (foodbar == 4){player.bottomPrint("{ | | | |  }",1)}
  13.     if (foodbar == 3){player.bottomPrint("{ | | |    }",1)}
  14.     if (foodbar == 2){player.bottomPrint("{ | |      }",1)}
  15.     if (foodbar == 1){player.bottomPrint("{ |        }",1)}
  16.     if (foodbar == 0){player.bottomPrint("",1)
  17.                     tool.destroy()
  18. }
  19. },500)
  20.  
  21.  
  22. })
  23. tool.on("activated", (p) => {
  24.     if (foodbar > 0){
  25.         foodbar -= 1
  26.     }
  27.  
  28. })
  29.  
  30.  
  31.  
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement