how do i make a checkpoint?

Dx_X2x
Joined 31/10/2021
Posts 20
03:16 PM 30/10/2022
i made a obby but i dont know how to make a checkpoint im not a scripter or anything
i just need the checkpoints and thats all done


[ISLAM] MalaysianSulthan
Joined 15/09/2019
Posts 77,870
03:17 PM 30/10/2022
Listen you’re better off just asking the BH Discord on how to ask game-related questions

https://discord.gg/brick-hill


ROBLOX - Roblox Admin
Joined 08/10/2022
Posts 3
01:42 AM 31/10/2022
bro you forgot this man has no discord account


woman
Joined 30/05/2017
Posts 503
05:51 AM 01/11/2022
Quote from ROBLOX - Roblox Admin , 01:42 AM 31/10/2022
bro you forgot this man has no discord account
solution: create one


[RWB] MixaMega
Joined 23/12/2019
Posts 435
Moderator
09:45 PM 01/11/2022
Game.on("initialSpawn", (player) => player.checkpoint = 0)
world.bricks.filter(brick => brick.name?.startsWith("checkpoint")).forEach(brick => { //name the bricks checkpoint1, checkpoint2, checkpoint3 etc. etc.
brick.touching((player) => {
if(brick.name.slice(10) > player.checkpoint){
player.checkpoint = brick.name.slice(10)
player.centerPrint("Checkpoint!")
player.score = brick.name.slice(10)
player.spawnPosition = brick.center
}
})
})


[RWB] MixaMega
Joined 23/12/2019
Posts 435
Moderator
09:45 PM 01/11/2022
actually heres a pastebin because its cooler
https://pastebin.com/fEUrR8vw

1