I am trying to figure out how to count how many children (or players) are in a players. Here is something I tried but it didn't work.
function scanclick()
if game.Players.Children < 2 then
wait(3)
Instance.new("Part", game.Workspace)
Part.Anchored = true
Part.Name = "Not Enough Players"
end
end
game.StarterGui.ScreenGui.Frame.TextButton.MouseButton1Click:connect(scanclick)
