i’m trying to get all player names from this scrollingframe and teleport them to a place but i keep getting this error.
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: