How would I select a random child from a model?
COMMUNITY QUESTION
Selecting random children?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.
How would I select a random child from a model?
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
This has to do with Int Values and Addition how? Anyway, you just use Model:GetChildren()[math.random(#Model:GetChildren())] What it does is it will get the children of the model and index that random number between 1 and the amount of objects in the model.
Next time, please make sure your title is relevant to your question content and you're more descriptive with your questions.