Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //A mdr721 script
- //date: june 1st, 2021
- //Getting tools ready!!!
- //constructor
- let tool = new Tool("Balloon")
- tool.model = 84038
- //Code:
- //function
- Game.on("playerJoin", (player) => {
- player.on("initialSpawn", () => {
- player.equipTool(tool)
- })
- })
- tool.on("activated", (p) => {
- console.log(p.username + " has clicked with the tool equipped!")
- })
- tool.on("equipped", (p) =>{
- console.log(p.username + "has eqquiped a tool")
- })
- tool.equipped((p) => {
- p.setSpeed(30)
- p.setJumpPower(20)
- })
- tool.unequipped((p)=> {
- p.setJumpPower(5)
- p.setSpeed(10)
- })
- // tool.destroy// will destroy the tool
Add Comment
Please, Sign In to add comment