while true do
randround = math.random(1,1)
wait(1)
if randround == 1 and game.ReplicatedStorage.NumberOfModels.Value < 220 then
for f = 1,15 do
wait(.5)
for _,od in pairs(Lighting.ODers:GetChildren()) do
randod = (od[math.random(#od)])
randod.Parent = workspace
randod:MoveTo(workspace:WaitForChild("EnabledSpawnBrick").Position + Vector3.new(0,10,0))
randod:MakeJoints()
end
end
timer()
msg:Destroy()
end
local pickzom = math.random(1,3)
wait(.5)
if pickzom == 1 then
zh = Lighting.Zombie:clone()
zh.Parent = workspace
zh:MoveTo(workspace:WaitForChild("EnabledSpawnBrick").Position + Vector3.new(0,10,0))
zh:MakeJoints()
2 comments
There are more than one thing wrong with this. What are you trying to do?
Randomly select one child out of a model and clone it.