Answered by
6 years ago Edited 6 years ago
Is this what you're talking about? (This is a regular script.)
2 | for _,m in pairs (game.Workspace:GetChildren()) do |
3 | if m.ClassName = = "Model" then |
4 | if m.Name = = "Jimmy" then |
What this technically does is it stores a number that counts how many times the for loop detects a model named "Jimmy", and for every time there is a model named "Jimmy" the number gets 1 added to it. So if there were 6 models named "Jimmy" the number would be 6. It's actually pretty simple.