I have no idea why this code errors, but the error is Unable to cast value to Objects
. Here’s the code:
local RegionPart = SallowEnd
local MinSize = RegionPart.Position - (RegionPart.Size * 0.5)
local MaxSize = RegionPart.Position + (RegionPart.Size * 0.5)
local EntireRegion = Region3.new(MinSize, MaxSize)
local Region = workspace:FindPartsInRegion3WithWhiteList(EntireRegion, workspace.MapItself, 99999)