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
COMMUNITY QUESTION
How do you use getplayers() for a textbox? (read thing if this doesnt make sense)
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.

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