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

Would this output a list of player names in hint?*VERY EASY q.)?

A.Text = v.Name.. "has got none."

That is just a snippet of code. V. is the players. Would it output this: Overpride, Player2, Player3, Player4, Etcs has got none.

Would it output that? If not, how can I fix it so that it does?

2 answers

names  =  {}
z = game.Players:GetPlayers()
for i= 1,#z do
table.insert(names,z[i].Name)
wait()
A.Text = table.concat(names,',').."has got more"
end

if this helped +1 if this answered your query checkmark.

1 comment

0

Please read my next reply.

But I have this:

function ToolCheck()
	wait(1)
	local Check = game.Players:GetChildren()
	for _,v in pairs(Check) do
		local found = false
		local BKP = v.Backpack:GetChildren()
		for __,x in pairs(BKP) do
			if x.Name == "AK47" then
				found = true
			end
		end
		if found == false then
			A.Text = v.Name.. " has got none."
		end
	end
end

What is wrong with that? I just want it to output "Player1, Player2, Player3 has got none."

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