12:13 AM 21/11/2020
And I need help. In Bigshots Pizzaria you click bricks and the dummies walk away. Also, how do you make a money counter that updates in a chosen amount of time.
02:54 AM 30/11/2020
let button = new Brick(new Vector3(2,2,2), new Vector3(-1,10,-1), "#ff0000"
button.clickable = true
button.clickDistance = 10
let bot = new Bot("customer")
bot.setPosition(new Vector3(-2,-5,-2)
Game.newBrick(button)
Game.newBot(bot)
setInterval(function(){
bot.moveTowardsPoint(new Vector3(-2,9,-2), 5)
},5000)
button.clicked((player, secure) => {
if (!secure) return
bot.moveTowardsPoint(new Vector3(-2,-5,-2), 5)
})
idk this might work
of course you can change things such as where the button is and where the bot goes but this is just a little thing
button.clickable = true
button.clickDistance = 10
let bot = new Bot("customer")
bot.setPosition(new Vector3(-2,-5,-2)
Game.newBrick(button)
Game.newBot(bot)
setInterval(function(){
bot.moveTowardsPoint(new Vector3(-2,9,-2), 5)
},5000)
button.clicked((player, secure) => {
if (!secure) return
bot.moveTowardsPoint(new Vector3(-2,-5,-2), 5)
})
idk this might work
of course you can change things such as where the button is and where the bot goes but this is just a little thing
06:59 AM 30/11/2020
Quote from vv0id1sm , 02:54 AM 30/11/2020That isn't valid
let button = new Brick(new Vector3(2,2,2), new Vector3(-1,10,-1), "#ff0000"
button.clickable = true
button.clickDistance = 10
let bot = new Bot("customer")
bot.setPosition(new Vector3(-2,-5,-2)
Game.newBrick(button)
Game.newBot(bot)
setInterval(function(){
bot.moveTowardsPoint(new Vector3(-2,9,-2), 5)
},5000)
button.clicked((player, secure) => {
if (!secure) return
bot.moveTowardsPoint(new Vector3(-2,-5,-2), 5)
})
idk this might work
of course you can change things such as where the button is and where the bot goes but this is just a little thing
Here are some problems
You are missing ) on the first line
You are missing ) on the 5th line
move towards point =/= move to point
Move towards point will move 1 100th of a stud multiplied by the speed towards a point
Making this every 5 seconds will practically not move it
As for the button, you can spam it to keep the bot at the start