I need help with a third-party game teleport script

Good Morning Developers! (Or night for some.)

So, recently, I made this game under me, but I realized It got so good, I should make a group out of it. I don’t want to put the game link in the description because;

  1. It might just tag.
  2. It look tacky.

So, I want to try to make a automatic teleport script, such as; As soon as you join a game, you get teleported to (gameid).

Can anybody help?

This was an idea I thought of:

game.PlayerAdded.TeleportService -- dont know the rest, or if this even right. :/
1 Like
local TeleportService = game:GetService("TeleportService")
game.Players.PlayerAdded:Connect(function(player)
	TeleportService:Teleport(gameidhere,player)
end)

this should work

1 Like

So, does the id go on the same line as player?

local TeleportService = game:GetService("TeleportService")
game.Players.PlayerAdded:Connect(function(player)
	TeleportService:Teleport(00000000,player) -- like this?
end)
1 Like

yeah

IGNORE THIS

1 Like

Alright, going to test.

charssssssss ignore this.

1 Like

I put in my game ID, but it hasn’t worked.

I tried workspace, and ServerScriptService.

1 Like

You can’t teleport to a group.
Should be a normal script in ServerScriptService

1 Like

I’m trying to teleport to a GAME.

1 Like

Yeah?..

You said you put in your group id, not placeId

1 Like

oh whoops i said group id, i meant game id in my previous post.

1 Like

if your games isn’t teleported, maybe you can try this:

local TPS = game:GetService("TeleportService")
game.Player.PlayerAdded:Connect(function()
     TPS:Teleport(0) -- without ,player is enough, because i try it... its working
end)
1 Like