So I’m trying to figure out GeometryService, and I literally copied the code from SubstituteGeometry, and it doesn’t work.

![]()
Someone, please help!
UnionAsyncReturnsUserData.rbxl (49.4 KB)
Thanks!!!
So I’m trying to figure out GeometryService, and I literally copied the code from SubstituteGeometry, and it doesn’t work.

![]()
Someone, please help!
UnionAsyncReturnsUserData.rbxl (49.4 KB)
Thanks!!!
The result you want is stored in newParts. I don’t think anything has gone wrong, try looking at its value in the debugger, it should be a UnionOperation.
You are correct. However, could you please tell me why the documentation says so on line 22 of the code sample? Why would they do that? When could the mainpart be a partOperation? Thanks!
Im not sure what they are trying to do in that example but type() and IsA() don’t do the same thing. Type returns a lua datatype, all roblox Instances are of type userdata. IsA checks if a Roblox Instance has the class (as in className property) specified, or is an ancestor of that class. So myPart:IsA("Part") and myPart:IsA("BasePart") are both true.
type() has a smaller range of types than typeof()
use typeof() to get all the roblox types
so there is:
type()
typeof()
:IsA()
.Classname = ""
everything is so confusing lol
Yes but typeof() does the same thing as getting the className.
type(instance) == “userdata”

UnionAsync returns an instance, who would have thought?
No…?
local object = Instance.new("Part")
print(object.ClassName) --> Part
print(typeof(object)) --> Instance
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.