Hello everyone,
I am trying to get all players of a team and teleport them somewhere, but even though I have some players in the team the table doesnt seem to get any of them.
function LoadPlayer()
if workspace.Map then
local PlayerTable = game.Teams.XYZ:GetChildren()
for i, v in pairs(PlayerTable) do
v.Character.HumanoidRootPart.CFrame = workspace.Map.Spawn.CFrame
end
end
end
I have tried to look at the other posts and videos about this but I cant figure out whats going wrong here.