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

How do you use getplayers() for a textbox? (read thing if this doesnt make sense)

im tryna make a textbox where if you click a button and the textbox has a players name in there it does something to the player help

1 comment

0

You can do textbutton.MouseButton1Click:Connect(function()) for i,player in pairs(game.Players:GetPlayers()) do if textBox.Text == player.Name then

1 answer

Try this, it should work:

button.MouseButton1Click:Connect(function(plays)
	local player = game.Players:FindFirstChild(textBox.Text)

	if player then
		--code
	end
emd

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