Since I realize that this may be a bit vague for the question, here is probably a more elaborate description of my problem. As of right now, I'm trying to make it so that when a player is targeted in chat, you don't have to completely fill out there name (ie. To target me, you say I or IXL).
So far I have this (doing this on mobile so pardon my tabs; I know how to correctly tab my scripts):
function findTargets(caller, target)
local marks = {}
for i, v in pairs(game.Players:GetPlayers) do
if string.lower(target) == string.lower(v) then
table.insert(marks, v)
end
end
return marks
end
However, it takes my entire name in order for me to be targeted. Anyway how to fix it?

1 comment
You could try using string.find. I'll research string.find and try to give you a helpful answer.