I'm trying to make a ship-battling game where you fight other people in ships.
Instead of using a manual regeneration for the ships, I decided to make them automatically regenerate once the previous ship leaves its station. For this, I used Region3s
I put the min and max Vector3 values the position of two parts that are located in the top-rear and bottom-front of where the ship initially spawns.
But, for some reason, it says that there are no parts inside that region, even though there obviously are. Why is this?
Here is my regeneration script's source:
local station = script.Parent local function checkIfShipPresent() local region = Region3.new( station.RegionStart.Position, station.RegionEnd.Position ) local parts = workspace:FindPartsInRegion3(region, nil, math.huge) for i = 0, #parts do print(parts[i].Name) end end wait(1) checkIfShipPresent()