I tried making a script that finds a player through a textbox, but it won't work. Any help?
script.Parent.MouseButton1Down:Connect(function()
local target = script.Parent.Parent.NewTeamPlayerBox.Text
for _, player in pairs(game:GetService("Players"):GetPlayers()) do
if player.Name:lower() == target:lower() then
print("hi")
end
end
end)
