whats the code for a teleport system

[CtRm] Vifuz
Joined 08/06/2021
Posts 888
04:04 AM 15/10/2021
help me please can someone give me some code


[Fruit] Evil-uz1
Joined 09/06/2021
Posts 1,987
04:06 AM 15/10/2021
[ Content Removed ]


[CtRm] Vifuz
Joined 08/06/2021
Posts 888
04:08 AM 15/10/2021
Quote from Evil-uz1 , 04:06 AM 15/10/2021
[ Content Removed ]
man give me the teleport code also its just merch im not apart of trasher clan


carlosabc
Joined 29/10/2019
Posts 59
02:13 PM 15/10/2021
let teleporter = world.bricks.find(brick => brick.name === "Teleporter");

teleporter.touching((Player) => {
Player.setPosition(0, 0, 0);
})

You can put any numbers there instead of the 0s.

Read this for more information on the setPosition method: https://brickhill.gitlab.io/open-source/node-hill/classes/player.html#setposition


[MILK] vv0id1sm
Joined 07/10/2019
Posts 16,080
05:39 AM 16/10/2021
Quote from carlosabc , 02:13 PM 15/10/2021
let teleporter = world.bricks.find(brick => brick.name === "Teleporter");

teleporter.touching((Player) => {
Player.setPosition(0, 0, 0);
})

You can put any numbers there instead of the 0s.

Read this for more information on the setPosition method: https://brickhill.gitlab.io/open-source/node-hill/classes/player.html#setposition
remember to do new Vector3(x,y,z) instead of just (x,y,z), otherwise it won't work


[Fruit] Evil-uz1
Joined 09/06/2021
Posts 1,987
06:57 AM 16/10/2021
Quote from Vifuz , 04:08 AM 15/10/2021
Quote from Evil-uz1 , 04:06 AM 15/10/2021
[ Content Removed ]

man give me the teleport code also its just merch im not apart of trasher clan
oh ma bad

1