G’day there, I was looking for a possible method I could use that functions identically to the worldroot :GetPartBoundsInRadius() func.
Because this function only works for baseparts, Im wondering if you guys have any ideas as to how I can return attachments instead.
local rParts = workspace:GetPartBoundsInRadius(Position,Settings.ExplosionRadius,gBreakParam)
for i, cPart in pairs(rParts) do
if i % 300 == 0 then wait() end
if cPart.Name == gameRules.GlassName and cPart:IsA("Part") then
local size = 0.8 * cPart.Size * (math.random(-10,10) / 10)
BreakGlass(cPart,Position,Vector3.new(0.2,0.2,0.2))
wait()
elseif cPart:IsA("Attachment") then ...
where the function will be used^^
cheers