for i,v in pairs(Folder:GetChildren()) do
local Server = TeleportService:ReserveServer(12616151380)
TeleportService:TeleportToPrivateServer(12616151380, Server, {v.Value})
Folder:ClearAllChildren()
print(Server)
end
Have you actually published your game? Also, do you have permission to teleport to that specific place? Lastly, do you have API services on Studio enabled? Code itself looks fine to me, the issue is probably what the message says, you didn’t publish the game or do not have permission to teleport players there.
Basically a lobby thingy for horror game. When a person enters, a server script will make a ObjectValue, and when the game begins, the for loop will get all the instance, and will try to teleport all the players and deletes them.
The game is published including the place of teleportation. I have enabled all of the security. I don’t know what to do.