Soo, I want to check if in TextBox first letters is matches with player to give him tool, I did a bit research, this thing show no errors (at least in script, I didn't tested it), but how do I use it?

local player = game.Players:GetChildren()

text:GetPropertyChangedSignal("Text"):Connect(function()
text2 = text.Text
if player.Name:lower():find(text.Text:lower(), 1, true) then -- <this
	
end
end)

Can you help me? I dont even sure if this will work.

1 comment

0

How do you know you have no errors if you haven't tested it, theres also nothing inside the if statement.