function FindPlr(a, plr) local a = false for i,v in pairs(game.Players:GetPlayers()) do if string.find(string.lower(string.sub(v.Name,1,string.len(plr))),string.lower(plr),1,false) and plr ~= "" then a = v.Name end end return a end Functions.FindPlr.OnServerInvoke = FindPlr()
It's not being invoked though..........
If you put parenthesis ()
after a function, it will always run. To fix it just remove it, as you want it to store the function, not the value it returns.
Functions.FindPlr.OnServerInvoke = FindPlr