menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripters
how to turn enums into strings
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
how to turn enums into strings
rowerowe71
Join Date: 2013-04-14
Post Count: 1999
#182845739
Monday, February 01, 2016 9:28 PM GMT
ik ive asked this before but i forgot
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
powerhotmail123
Join Date: 2011-04-11
Post Count: 5041
#182845922
Monday, February 01, 2016 9:31 PM GMT
Don't enums have stings already. Part.Material = "Grass" Is the same thing as: Part.Material = Enum.Material.Grass Enjoying your stay at the Scripters Forum? Join this!
http://www.roblox.com/My/Groups.aspx?gid=2582784
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
LegendaryAccount
Join Date: 2010-06-02
Post Count: 13193
#182846000
Monday, February 01, 2016 9:32 PM GMT
theres a name property of the enum
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
ray_revenge
Join Date: 2011-02-18
Post Count: 6074
#182846024
Monday, February 01, 2016 9:32 PM GMT
EnumItem.Name or EnumItem.Value might be better suited for your purposes
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
powerhotmail123
Join Date: 2011-04-11
Post Count: 5041
#182846069
Monday, February 01, 2016 9:33 PM GMT
Learn something new everyday. Enjoying your stay at the Scripters Forum? Join this!
http://www.roblox.com/My/Groups.aspx?gid=2582784
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
rowerowe71
Join Date: 2013-04-14
Post Count: 1999
#182865484
Tuesday, February 02, 2016 2:42 AM GMT
thanks guys didn't know about those properties
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
LilMcManiac
Join Date: 2011-10-31
Post Count: 2812
#182865849
Tuesday, February 02, 2016 2:48 AM GMT
local materials = {"Grass", "Plastic", "Ice", "Cobblestone"} local randomMaterial = materials[math.random(1,#materials)] script.Parent.Material = Enum.Material[randomMaterial]
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right