Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how do i find the vector3 value of an empty space within a region?

Asked by 6 years ago

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?

0
You can loop through all the characters and use magnitude to see if any players are near the coordinate http://wiki.roblox.com/index.php?title=Magnitude Decemus 141 — 6y
0
not quite what i was looking for. jiggiypuffs 30 — 6y

Answer this question