Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I got a question about Vector3 and Enum?

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

1 comment

0

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

1 answer

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! :)

2 comments

0

Okay... so Enum(Enumeration) is jut a generalized word for a list of values?

0

You could put it that way, yes :)

This discussion is preserved as it was. New answers, comments, and votes are closed.