Does anyone know how to make a teleporter than teleporter everybody in the game like the mimic?

you need to define the teleportservice

1 Like

uh, why dont you add a TS (TeleportService) variable?

1 Like

local ts = game:GetService("TeleportService")
local placeId = 666

local db = false

if not db then
	db = true
	
	for _, player in pairs(game.Players:GetPlayers()) do
		ts:Teleport(placeId, player)
	end
	
	wait(0.5)
	
	db = false
end
2 Likes

still only teleported one plater idk why

1 Like

Maybe because you are the only person in the game?

1 Like

No I had my friend come in to me and it only teleports the person who touches it the other person who doesn’t touch it doesn’t get teleported

1 Like

Is the script a serverscript or local script?

2 Likes

Server script idk why it’s doing this

1 Like

Do u have any ideas or no I tried a lot but it ain’t working

1 Like

Use the party teleport feature, apparently it will not always work when going through a for loop and using a teleport

local TeleportService = game:GetService("TeleportService")
TeleportService:TeleportPartyAsync(placeid,game.Players:GetPlayers())
3 Likes

I will try it later Thanks I will tell u if it works

1 Like

doesntt teleport them until i leave the game i tried so much nothing works dude

1 Like

the game is connected to the lobby by assest manager is that a problem i did that so nobody can join it without getting teleported

1 Like

If its not working now then I don’t know, you can review the api reference here to debug: TeleportService | Roblox Creator Documentation

1 Like

all I did was put it in a block

1 Like

Dummy check, I don’t think this will do anything but have the script wait like 5 secs.

wait(5)

--code

It may or may not help, the only reason I suggest this, is because you have it to where it is not bounded by anything and it plays immediately.

1 Like

I gotchu homie:

I had this same question a few months and struggled to find what I needed. This video has the same exact teleportation model that The Mimic used and everything functions the same.

2 Likes

Hello, Cosnez. I have made a script for anyone to use for your game.
Here’s the link: Teleporting All Players Script - Roblox

1 Like