function checksamount()
for _,snipers in pairs(workspace:GetChildren())do
if snipers.Name == "Soldier3" and snipers:FindFirstChild("Owner") and snipers.Owner.Value == player then
return #snipers
end
end
end
So from the for loop, I fetch the children of workspace. Then I filter all of the children through the if statement to get every object called soldier3. Now I end up with a variable with all of the soldier3's. How do I get the number of soldier3's in the variable?

2 comments
koolkid your answer doest match the question, sorry but there is nothing you can do about it
thanks