MY attempt, which of course didn't work >.>
for i,v in pairs(workspace:GetChildren())
if v.ClassName == "Model" then
models = v
end
end
for i = 1, #v do
script.Parent.Value = i[v]
end
MY attempt, which of course didn't work >.>
for i,v in pairs(workspace:GetChildren())
if v.ClassName == "Model" then
models = v
end
end
for i = 1, #v do
script.Parent.Value = i[v]
end
Some of your syntax is a bit splotchy, I fixed it up for you.
I mean, having a loop might generate a little lag.
while wait(1) do
numModels = 0
for i,v in pairs (game.Workspace:GetChildren()) do
if v:IsA("Model") then
numModels = numModels + 1
end
end
print(numModels)
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
i wanted it every second?
thank you sir :D