I Need a Teleport Script

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

[cop] CoolPoopyGuy69_XD
Joined 30/12/2017
Posts 6485
04:11 AM 21/07/2019
HhahHh ur making a game noooob

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

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

[cop] CoolPoopyGuy69_XD
Joined 30/12/2017
Posts 6485
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 3695
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.

[uwu] Galia
Joined 19/06/2019
Posts 8239
02:11 PM 21/07/2019
Go to the scripting subforum if you haven't already

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

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

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

[MATH] integral
Joined 28/07/2019
Posts 213
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