HTTP 403 error when trying to teleport players

i’m trying to get all player names from this scrollingframe and teleport them to a place but i keep getting this error.
image
image

here is my script
client:

script.Parent.MouseButton1Down:Connect(function(player)
	local players = script.Parent.Parent.ScrollingFrame:GetChildren()
	game.ReplicatedStorage.Start:FireServer(players)
end)

server:

local ts = game:GetService("TeleportService")
local placeid = 15220495827
local players = {}
local code = ts:ReserveServer(placeid)

game.ReplicatedStorage.Start.OnServerEvent:Connect(function(player, plrs)
	for i,v in pairs(plrs) do
		if v:IsA("TextLabel") then
			local temp = game.Players:FindFirstChild(tostring(v.Text))
			table.insert(players,temp)
		end
	end	
	
	ts:TeleportToPrivateServer(placeid, code, players)
end)

EDIT:
i published the place and tried it there but now i got this error:

3 Likes

Could it be that the players table is empty? Try printing the content of it and let me know what it outputs.

2 Likes

yeah its empty for some reason

2 Likes

oh my bad i set the player name on a local script so the player name text was always empty

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.