of     1   

TehIcyStar
#140041908Saturday, July 12, 2014 12:47 AM GMT

Lets say I have 10 bricks in a model. I want to get one of the bricks from it by random, do I do it like this? table = script.Parent.Model:GetChildren() randomthing = math.random(1,#table) randomthing.Transparency = 1 I don't think this will work... what's the proper way to do it?
AnonyAnonymous
#140042208Saturday, July 12, 2014 12:50 AM GMT

There's multiple ways to do this actually, an example would be, ModelTable = game.Workspace.ModelTable:GetChildren() print(ModelTable[math.random(1,#ModelTable).Name])
TehIcyStar
#140042458Saturday, July 12, 2014 12:53 AM GMT

>ModelTable[math.random(1,#ModelTable) Alright, that's all I needed to know thanks buddy c:

    of     1