Roblox In-game Textbox Predictive text

Any solution @Wunder_Wulfe ?? Because I have no idea why it isnt firing

Any response to this??? Its been half an hour no solution found yet to my issue that came up

Maybe you are just not getting any results from the matches?

local matchedPlayer
for _, player in ipairs(Players:GetPlayers()) do
    if player.Name:lower():find(text:lower(), 1, true) == 1 then
        matchedPlayer = player
        break
    end
end
if matchedPlayer then
    thing.Text = matchedPlayer.Name
else
    thing.Text = ""
end
1 Like

No it does, it just wont change it for some reason

Have you tried using just .Changed? Also, does it say anything if you put a print statement inside of the connected function?

Pardon? where do i put this? Im confused.

  1. Does anything print if you try to use a print statement inside of the function?
  2. Are any players actually matched at all by the function?
  3. Are you typing into the correct label/box?
  4. Have you tried using Changed instead of GetPropertyChangedSignal?

Question is there a way to find out if there is more then one match in the getplayers for

if string.sub(v.Name,1,string.len(script.Parent.Frame.UserBox.Text)) == script.Parent.Frame.UserBox.Text then```
1 Like

I mean, if the statement is looking for a match, then literally just add them to an array or something if they fit the match instead of just setting the text or storing the matched player.