How to find Players using a text

You can write your topic however you want, but you need to answer these questions:

  1. sorry for that double post but I wondered how I would get a player using a text

  2. I basically have a text and I want the server to get the text and see if anyone has the same name that’s in the text.

of course, I am sure the script down below won’t work but how would I make it search for the text value in the players. for example, if the text is Dev_Simphony, it will look in the players and see if there is someone named like that.

local remote = game.ReplicatedStorage.fireServer

remote.OnServerEvent:Connect(function(player, text)
	
	if game.Players.text then
		print("Player found")
	end
end)
if game.Players.text then

Should be

if game:GetService("Players"):FindFirstChild(text) then
3 Likes

WOW!! your so fast and so knowledgeable Thank you so much!! I can’t believe the mistake was that simple. I never knew findFirstchild would be the fix. thanks again!!

1 Like