Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make this output one possible answer instead of every possible answer?

for m,p in pairs(script.Parent.LeaderBoard.Holder.players:GetChildren()) do
	if tostring(scores[g]) == p.Kills.Text then
            print(scores[g].." Kills matches with user "..p.Name)
	end
end

Any help would be appreciated!

1 answer

for m,p in pairs(script.Parent.LeaderBoard.Holder.players:GetChildren()) do
	if tostring(scores[g]) == p.Kills.Text then
		print(scores[g].." Kills matches with user "..p.Name)
		break
	end
end

This discussion is preserved as it was. New answers, comments, and votes are closed.