currently making admin panel and decided to add a “rejoin” button to rejoin all players. But keep getting this error message that says validation error. Who knows how to fix this?
script.Parent.MouseButton1Click:Connect(function()
local id = game.GameId
local serverid = game.JobId
local tp = game:GetService("TeleportService")
for i,v in pairs(game.Players:GetChildren()) do
tp:TeleportToPlaceInstance(id, serverid, v)
end
end)
It works with the teleport part but when it actually rejoins it comes up with this weird error message for disconnecting I have tried this a few times and this always comes up. huh?