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!
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