hi, im trying to get players to spawn on a map. the trouble is, they sometimes spawn inside parts of the map.
i'm trying to find the empty spaces within the map so i can teleport the players there, but i'm unsure how to do this.
i was thinking of having a table with all the possible coordinates and then choosing one, and to get the possible coordinates i'd use FindPartsInRegion3 to find the parts that aren't empty, and then subtract that from the whole region to find the empty spaces, but have no idea how to do so.
any ideas?