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

How do you detect what is inside a TextBox?

I am trying to make a Hotel Check-In System and I was trying to make a text box that when the submit button is clicked, it would search all the players for the username. But I can't even figure out how to get the submit button working or how would it even work. I am very stuck right now! Thanks in advance!

3 answers

✓ Accepted answer

As far as I am aware, using :GetPropertyChangedSignal() might be your best bet. Here is the Link. Hope this helped!

Shoot me a friend request @TheLastHabanero on Roblox and I can help you in real-time. I cannot give you the answer in writing. I can show you how to do it. Ill do it for free this afternoon if you want.

From what I'm getting, you want to put a player's name into a textbox, and check if that player exists. If so, you can use this function.

Pass textbox.Text into the function.

local function getPlayerFromName(name)
   for _, player in pairs(Players:GetPlayers()) do
      if player.Name:lower() == name:lower() then
		print(player.Name)
		return player
      end
   end
end

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