Ive always been confused about what an enum is. Ive used them before with UserInputService but I never knew what the enum does or what it means. Can someone explain, thankss.
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.
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).
UIS.InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.E then --blah blah blah end end)