Hello I am making a script that removes parts of normal parts and or unionoperations and every once in a while they dont load at all and im assuming their "corrupted" i tried debugging and making script that wait until the union is even a thing but it just doesnt work.

Image: https://ibb.co/kXT1GHm

local union
local e,b = pcall(function()
	union = touching:SubtractAsync({Part1,Part2})
end)

2 comments

0

Remember SubtractAsync returns a new instance and you have to set the parent of it, try parenting it after calling the function.

0

I did, and sometimes it errors saying index with nil with .Parent and i do repeat wait() union.Parent = workspace until union.Parent == worksapce