you need to define the teleportservice
uh, why dont you add a TS (TeleportService) variable?
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
still only teleported one plater idk why
Maybe because you are the only person in the game?
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
Is the script a serverscript or local script?
Server script idk why itâs doing this
Do u have any ideas or no I tried a lot but it ainât working
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())
I will try it later Thanks I will tell u if it works
doesntt teleport them until i leave the game i tried so much nothing works dude
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
If its not working now then I donât know, you can review the api reference here to debug: TeleportService | Roblox Creator Documentation
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.
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.
Hello, Cosnez. I have made a script for anyone to use for your game.
Hereâs the link: Teleporting All Players Script - Roblox