So basically, I want to know if there's a more efficient was of getting a random thing. Let's say i have 100 parts, and I want to get a random one out of all of them. I could do the math.random() method, but it would be tedious. Is there any other efficient way?
-- Declaration Section local model = game:GetService("Workspace").Parts local parts = model:GetChildren() -- Output Section local randomInteger = math.random(#parts) local randomPart = parts[randomInteger] print (randomPart)