GeometryService (GenerateFragmentSites) just crashes you if u pass negative or 0

GeometryService:GenerateFragmentSites() just crashes you when your SitesSpacing is 0 or negative

local geo = game:GetService( "GeometryService" )

local p    = workspace.Part
p.Size     = Vector3.new( 4, 4, 4 )

geo:GenerateFragmentSites( p, { SiteSpacing = 0 } )


--// whole studio crash

update :
it doesn’t always crash you (i have a strong pc) but it takes like 3mins for you to load because of it and 90% of the time it just crashes you

another update :
negative values dont crash you 0 does

another another update :
0 = 90% crash
-1 = not showing anything in pcall
0.0001 = bad allocation error
math.huge = returns 0

2 Likes

Hey, thanks for reporting this. Will look into this :slight_smile:

1 Like