so i made this script whichc is working

local tpservice = game:GetService("TeleportService")
local num = 0
game.Players.PlayerAdded:Connect(function(plr)
	if num >= 1 then
		wait(1)
		local owner = game.Players:FindFirstChild(script.Parent.Owner.Value)
		if plr:IsFriendsWith(owner.UserId) then
			print("yee haa")
		else
			tpservice:Teleport(5870060762,plr)
		end
	end
	num = num + 1
end)

but each time a person is teleported it tps to the same server so it does a loop where he keeps being teleported to the same server, is there any way to make it so it always makes a new server?

1 comment