You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To assign an `Datatype.EnumItem` as the value of a property, use the full `Datatype.Enum` declaration. You can also use its `Datatype.EnumItem.Name|Name`.
48
+
To assign an `Datatype.EnumItem` as the value of a property, use the full `Datatype.Enum` declaration. You can also use the item's `Datatype.EnumItem.Name|Name` property as a string.
49
49
50
50
```lua
51
51
localWorkspace=game:GetService("Workspace")
52
52
53
53
localpart=Instance.new("Part") -- Create a new part
54
-
part.Shape=Enum.PartType.Cylinder-- By EnumItem (best practice)
55
-
part.Shape=Enum.PartType.Cylinder.Name-- By EnumItem Name
56
-
part.Shape="Cylinder" -- By EnumItem Name
54
+
55
+
part.Shape=Enum.PartType.Cylinder-- By full enum item declaration (best practice)
56
+
part.Shape="Cylinder" -- By enum item's name as a string
0 commit comments