I Need a Teleport Script

[Code] Dysthymia
Joined 20/06/2019
Posts 1,126
04:11 AM 21/07/2019
Could someone give me a teleport script pls?


[CtRm] c0p
Joined 30/12/2017
Posts 32,902
04:11 AM 21/07/2019
HhahHh ur making a game noooob


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


[Code] Dysthymia
Joined 20/06/2019
Posts 1,126
04:12 AM 21/07/2019
Would this be a good time to hide in my closet?


[CtRm] c0p
Joined 30/12/2017
Posts 32,902
04:12 AM 21/07/2019
Quote from Dysthymia , 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 6,670
04:13 AM 21/07/2019
Quote from Dysthymia , 04:12 AM 21/07/2019
Would this be a good time to hide in my closet?
yes.


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


[Code] Dysthymia
Joined 20/06/2019
Posts 1,126
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


[satan] luciferous
Joined 03/07/2019
Posts 1,618
12:39 AM 22/07/2019
ok


[PLUS] cheats
Joined 28/07/2019
Posts 692
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