I Need a Teleport Script

[EXO] EX0
Joined 20/06/2019
Posts 809
04:11 AM 21/07/2019
Could someone give me a teleport script pls?

[cop] Vague is a no lifer
Joined 30/12/2017
Posts 12,145
04:11 AM 21/07/2019
HhahHh ur making a game noooob

[weeb] NoobDev
Joined 19/04/2018
Posts 5,055
04:11 AM 21/07/2019
no.

[EXO] EX0
Joined 20/06/2019
Posts 809
04:12 AM 21/07/2019
Would this be a good time to hide in my closet?

[cop] Vague is a no lifer
Joined 30/12/2017
Posts 12,145
04:12 AM 21/07/2019
Quote from EX0 , 04:12 AM 21/07/2019
Would this be a good time to hide in my closet?
yes

[weeb] NoobDev
Joined 19/04/2018
Posts 5,055
04:13 AM 21/07/2019
Quote from EX0 , 04:12 AM 21/07/2019
Would this be a good time to hide in my closet?
yes.

Galia
Joined 19/06/2019
Posts 16,979
02:11 PM 21/07/2019
Go to the scripting subforum if you haven't already

[EXO] EX0
Joined 20/06/2019
Posts 809
06:37 PM 21/07/2019
sorry that was me being an idiot

haloreach
Joined 20/07/2019
Posts 440
06:56 PM 21/07/2019
there are many in the scripting subforum

luciferous
Joined 03/07/2019
Posts 978
12:39 AM 22/07/2019
ok

cheats
Joined 28/07/2019
Posts 307
04:37 AM 09/08/2019
function getPlayer(name) {
const username = name.toLowerCase()
for (let player of Game.players) { // Gets specific player
if (player.username.toLowerCase().indexOf(username) == 0) {
const victim = Game.findPlayerByUsername(player.username)
return victim
}
}
}

Game.on('tpCmd', (plr, msg) => {
let victim = getPlayer(msg)
if (victim) {
plr.position = victim.position
}
})
1 2