Alright so I think I understand this...
Vector3 = a coordinate on a 3D space
But I am not too sure what Enum is...I am 70% enum as something to do with Vector3 and positioning, but I am not sure, any help would be lovely xD
Alright so I think I understand this...
Vector3 = a coordinate on a 3D space
But I am not too sure what Enum is...I am 70% enum as something to do with Vector3 and positioning, but I am not sure, any help would be lovely xD
Enum is short for Enumeration. It's basically just a bunch of predefined variables so you don't have to memorize stuff like "which number represents the 'Out' easing style?".
For example, if you're setting an animation's priority, you don't use 0, 1, 2, etc., you would use the enumerations given by ROBLOX.
local animation = humanoid:LoadAnimation(script.Parent)
animation.Priority = Enum.AnimationPriority.Action
Technically, Enum.AnimationPriority.Action actually is just the number 2. But this way, we don't have to memorize which number represents action.
Hope this helps! :)
Okay... so Enum(Enumeration) is jut a generalized word for a list of values?
You could put it that way, yes :)
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Enum is just a global variable that holds all of the enumerations, some properties are enumerations like BasePart.Material, it is recommended to use Enum over assigning it to a string