I’m trying to print whats inside the region3, but nothing is printing and their is no error.
So this function is inside a modulescript but I’m calling the function inside a server script
The loop works fine it prints out hello alot but the region3 doesn’t work
function shop:OpenGui()
local platform = self.platform
local pos1 = platform.Position + (platform.Size/2)
local pos2 = platform.Position - (platform.Size/2)
local region = Region3.new(pos1, pos2)
print(region)
runService.Heartbeat:Connect(function()
wait()
print("hello")
local partsInRegion = workspace:FindPartsInRegion3(region, nil, 1000)
for _,v in pairs(partsInRegion) do
print(v)
end
end)
end