Hello i wanted to know if it were possible to find the player, if it were only given a few letters of his name for exemple “Sag” and then it finds “Saganoj”
Code:
Code:
local prefix = 'Sag'
local chosenPlayer
for _, player in game:GetService('Players'):GetPlayers() do
if (player.Name):lower():match(`^{prefix:lower()}`) then
chosenPlayer = player
break
end
end
I just made a few changes but it works, thanks!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.