#unioning script

1 messages · Page 1 of 1 (latest)

livid scarab
#

whenever i run the script, the amount of touching parts is always 0, how can i fix this?

#
local parts_to_union = {}

print(#workspace.NegativePart:GetTouchingParts())

for i, v in workspace.NegativePart:GetTouchingParts() do
    table.insert(parts_to_union, v)
end

local operation = game:GetService("GeometryService"):UnionAsync(workspace.NegativePart, parts_to_union, {
    CollisionFidelity = Enum.CollisionFidelity.Default,
    RenderFidelity = Enum.RenderFidelity.Automatic,
    SplitApart = true
})

for i, v in operation do
    v.Parent = workspace
end
late adder
# livid scarab ```lua local parts_to_union = {} print(#workspace.NegativePart:GetTouchingParts...
#

GetTouchingParts is unreliable

livid scarab
#

oh ok