Answered by
4 years ago Edited 4 years ago
Enum is short for enumeration. Basically if you're trying to change say the material of a part which has a selection of mats for you to choose from (brick, neon, smooth plastic, etc), you use enum.
1 | Part.Material = Enum.Material.SmoothPlastic |
UserInputService is another thing you can use enums for. Say you're trying to detect when a player presses E. There's a selection of keys that you can choose from (W, Space, LeftAlt, RightShift, etc).
1 | UIS.InputBegan:Connect( function (input) |
2 | if input.KeyCode = = Enum.KeyCode.E then |