Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let tool = new Tool("Golden potatos")
- let foodbar = 5
- tool.model = 70659
- Game.on("playerJoin", (player) => {
- player.on("initialSpawn", () => {
- player.equipTool(tool)
- })
- player.setInterval(() =>{
- if (foodbar == 5){player.bottomPrint("{ | | | | |}",1)}
- if (foodbar == 4){player.bottomPrint("{ | | | | }",1)}
- if (foodbar == 3){player.bottomPrint("{ | | | }",1)}
- if (foodbar == 2){player.bottomPrint("{ | | }",1)}
- if (foodbar == 1){player.bottomPrint("{ | }",1)}
- if (foodbar == 0){player.bottomPrint("",1)
- tool.destroy()
- }
- },500)
- })
- tool.on("activated", (p) => {
- if (foodbar > 0){
- foodbar -= 1
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement