Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I got a question about Vector3 and Enum?

Asked by 5 years ago

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

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 User#19524 175 — 5y

1 answer

Log in to vote
0
Answered by
chomboghai 2044 Moderation Voter Community Moderator
5 years ago

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

0
Okay... so Enum(Enumeration) is jut a generalized word for a list of values? hawkeye1940 8 — 5y
0
You could put it that way, yes :) chomboghai 2044 — 5y
Ad

Answer this question