Hi today i made a battle royale game on roblox but when i try doing the matchmaking script it keeps erroring with "Argument 3 or missing nil" heres the script its erroring at line 18.
while true do
local Teleporters = {}
local IsInTable = false
local TS = game:GetService("TeleportService")
local code = TS:ReserveServer(5970897194)
script.Parent.Touched:Connect(function(t)
if t.Parent:FindFirstChild("Humanoid") then
if IsInTable == true then return end
table.insert(Teleporters,game.Players:FindFirstChild(t.Parent.Name))
IsInTable = true
for i = 10,0,-1 do
script.Parent.BillboardGui.TextLabel.Text = i
wait(1)
end
for i, v in pairs(Teleporters) do
TS:TeleportToPrivateServer(5970897194,code,game.Players:FindFirstChild(v))
table.remove(Teleporters,v)
end
end
end)
wait()
end
wait()

16 comments
It fixed that issue but new theres a error "unable to cast value to object"
What line?
line 11
wait wrong line lemme find it
Okay
line 19
ok it was 18 my bad again lol
Try removing the {} and see if that changes anything
ok
wait the table thingy?
Yeah
The ones next to v
If that doesn’t work I have a better way that most likely will work
but there is no {} next to the v
You still there?
Yeah sorry I’m back, I edited the script, try it now