Multiplayer Mode

Hello! So my Multiplayer game has a Reserved Server Script so if you touched a part it teleports the group into there own server but I cannot make it so the groups are split up. In any case if a player in the group of 4 leaves, a random person would end up in the server.

Script: local telePart = script.Parent

local TeleportService = game:GetService(‘TeleportService’)

local placeID = - - game ID

local canTeleport = true

local function otherGame(otherPart)
local player = game.Players:FindFirstChild(otherPart.Parent.Name)
if player and canTeleport then
canTeleport = false
TeleportService:Teleport(placeID, player)
end
end

telePart.Touched:Connect(otherGame)

1 Like

I have never worked with reserved servers before, but you could try to recheck their username or user ID before teleporting.

1 Like

You should specify the otherPart parameter with a humanoid object just in case if your teleporting some random part

2 Likes

Yes but the issue with it is it doesn’t matter wi the other part as of a player leaves in the first half, when they teleport, they have a possibly chance of joining a random group.

I could but once again wouldn’t make it so the groups go into there own server such as cloning servers for the certain group of players