✓ Accepted answer
Hello, your title is a bit misleading... but I think I understand what your asking.
If not, then just let me know and I can answer it more accurately (:
I am not sure if this website allows us to just GIVE the answer away,
So I will put comments indicating what some of the lines do.
Coding :
local contains = function(tab, mat)
for i, v in pairs(tab)do
if(v == mat)then
return true
end
end
return false
end
local randomize = function(model)
local children = model:GetChildren()
local amount = #children
local used = {}
for i=1, amount do
local index = math.random(1, amount)
repeat index = math.random(1, amount) until not contains(used, index)
children[index].Name = i
end
end
....After coding all of that I just realized something ...
I could have just did :
local function func() end
qq oh well, PM me if you need additional help (:
2 comments
Please put your code in a code block. Click the Lua button and put your code between the lines
First of all, edit your question, click the little blue Lua button, and put your code between the lines.