We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a10a3e6 commit 36cd391Copy full SHA for 36cd391
tests/roblox/instance/properties.luau
@@ -33,6 +33,16 @@ part.Shape = Enum.PartType.Ball
33
34
assert(part.Shape == Enum.PartType.Ball)
35
36
+-- Enums should roundtrip through serde without problem
37
+
38
+local decal = Instance.new("Decal")
39
+decal.Face = Enum.NormalId.Top
40
41
+local decal_ser = roblox.serializeModel({ decal })
42
+local decal_de = roblox.deserializeModel(decal_ser)
43
44
+assert(decal_de[1].Face == Enum.NormalId.Top)
45
46
-- Properties that don't exist for a class should error
47
48
local meshPart = Instance.new("MeshPart")
0 commit comments