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

What does the code/function: "Enum" mean?

Asked by 7 years ago
Edited 7 years ago

Recently, I've been following the wiki tutorial as I find it most reliable. However, there were some unclear statements from the wiki which I can't help myself but to ask. I like things to be specific and I'm a curious learner when it comes to computer programming.

In the day an night cycle tutorial: http://wiki.roblox.com/index.php?title=Making_a_Day/Night_Cycle The final peace of code for the lightstreet is this:

lightPart = game.Workspace.LightPart
minutesAfterMidnight = 0
while true do
    minutesAfterMidnight = minutesAfterMidnight + 10
    game.Lighting:SetMinutesAfterMidnight(minutesAfterMidnight)

    if game.Lighting:GetMinutesAfterMidnight() == 6 * 60 then
        lightPart.Material = Enum.Material.Plastic
        lightPart.PointLight.Enabled = false
    end

    wait(0.1)
end

On line 8 of this code: "Enum.Material.Plastic", what does the code "Enum" mean?

1 answer

Log in to vote
1
Answered by 7 years ago
Edited 7 years ago

All information of Enumeration can be found at either http://wiki.roblox.com/index.php?title=Enumeration or with M39a9am3R's answer at http:// https://scriptinghelpers.org/questions/33283/

Remember to accept my answer if it is correct or comment to tell me how I could have done better to help answer your question!

0
Thanks this helped a lot :D blueboy90780 74 — 7y
0
No problem, happy scripting! RockerCaleb1234 282 — 7y
Ad

Answer this question