SubstractAsync is not a valid member of Part "Workspace.Part"

Hello. Rn I made a simple script, which should substract 1 part with another one, like unioning with negative part:

local Ceil = Instance.new("Part")
Ceil.Anchored = true
Ceil.Position = Vector3.new(GridX * CeilSize, GridY * CeilSize, GridZ * CeilSize) + StartOffset
Ceil.Size = Vector3.new(CeilSize, CeilSize, CeilSize) -- Vector3.new(2, 2, 2)
Ceil.Parent = workspace

local success, newUnion = pcall(function()
	return Ceil:SubstractAsync({IntersectedPart})
end)
print(success)
print(newUnion)
if success and newUnion then
	IntersectedVolume = newUnion.Mass / newUnion.CostomPhysicalProperties.Density
else
	IntersectedVolume = 8
end

NewUnion contains strange for me error:
SubstractAsync is not a valid member of Part "Workspace.Part"
image
Can someone say me, why I’m receiving this error?

1 Like

Error found:
I write SubstractAsync instead of SubtractAsync.

3 Likes