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

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

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 comment

1 answer

✓ Accepted answer

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!

2 comments

0

Thanks this helped a lot :D

0

No problem, happy scripting!

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