Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I teleport from one game to another game to a Spawn?

Asked by 5 years ago

So, This is my first time scripting. I'm more of a builder but since I don't know anyone who actually scripts, I'm doing it myself. My game is called Light VS Shadow Ninjas. I already got a portal to the other game that I made for the main one, but I want that Other Game portal teleport you to a specific spawn. Is there a way to do that?

0
Is there teams, so a specific spawn for the team you are on before hand? Fad99 286 — 5y
0
i have 2 teams, and one neutral where you first spawn in Phelios_Helius 2 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

Hi, you can use the TeleportToSpawnByName function in order to teleport the player to a specific spawn.

Example :

game:GetService('TeleportService'):TeleportToSpawnByName(PlaceId,"Spawn Name")
0
does this allow player to be teleported from another game? Phelios_Helius 2 — 5y
0
I have not tried this myself but according to the wiki page, yes, it does allow the player to teleport to different places even if they're outside the current universe. strongrussianboy123 68 — 5y
0
ok,thanks Phelios_Helius 2 — 5y
0
ok, so I tried it out, it doesn't work Phelios_Helius 2 — 5y
Ad

Answer this question