Hi, I’m trying to teleport a player to a brick that the value of is in a table but Idk how here is the code
> local spawnpoints = cloneMap:FindFirstChild(“Spawnpoints”)
local availableSpawnpoints = spawnpoints:GetChildren()
availableSpawnpoints = availableSpawnpoints
for i, player in pairs(players) do
if player then
local character = player.Character
if character then
character:FindFirstChild("HumanoidRootPart").CFrame = availableSpawnpoints[1].CFrame
table.remove(availableSpawnpoints, 1)