#how to teleport certain players to certian cords

1 messages · Page 1 of 1 (latest)

lethal lynx
#

first of all i would use offline player, dont think there is a thing called target player and then set a variabel to a location and then tp the player to that variabel/location

icy crescent
#

wdym ??

lethal lynx
#

i mean what i say??

icy crescent
#

with offline players

lethal lynx
#

i dont think that targetplayer is a thing dude, where did you get that from?

icy crescent
#

my brain

lethal lynx
#

use player

icy crescent
#

but about targetplayer whit that i mean like i can select any online player

#

u know how to do that

lethal lynx
#

use player

icy crescent
lethal lynx
#

dude no syntax in the ENTIRE world has targetplayer

#

use player

#

and then try to send it again

icy crescent
#

ok so instead targetplayer to player

#

lemme try

lethal lynx
#

yeah and send the script but it will still not work

cursive coyote
#

targetPlayer is not a valid type, you can use [offline ]player and the correct syntax for location is location (x, y, z)

icy crescent
cursive coyote
#

if you don't know, [] means its optional

icy crescent
#

ahh ok

#

quick question

lethal lynx
#

?

icy crescent
cursive coyote
lethal lynx
#

where you have the targetplayer

icy crescent
#

so all target play is gonna be [offline ]player

lethal lynx
#

no

#

offline player at the first and then player

cursive coyote
#

if you see your code, you will always use a player in the command, so remove [] and use <player>, because you wont be able to teleport an offline player, right?

#

and instead of targetplayer in the teleport, use argument, since you will be using the player you typed in the command

icy crescent
lethal lynx
#

no

#
command /jail [<player>]:
    trigger:
        teleport arg-1 to location(100,200,500)```
icy crescent
#

ok lemme try

#

it works thanks

lethal lynx
#

i think you want the changed

icy crescent
#

what is arg-1

#

never heard of it

lethal lynx
#

the player that you write

icy crescent
#

ok

lethal lynx
#

like /jail person and the person you write is the one who gets tped

icy crescent
#

ok

#

imma try to understand this all lol