So if a player had 'Xx' in there name, anywhere in there name, they'd get kicked when'd they try to join the game. Is this possible or not?
Yes. Not sure of this purpose though... Kind of discrimination...
function check(p) local maxCombo = string.len(p.Name) - 1 -- How many possible combinations where 'Xx' could be local i = 0 -- Current combo while true do -- A loop, to go through all combos if i == maxCombo then -- Searched all possible combinations, stop trying return false end local current = string.sub(p.Name, i + 1, i + 3) -- Grab combo that we are checking if string.lower(current) == "xx" then -- If our current combo matches, stop checking, return positive return true end i = i + 1 -- Move to the next combo end end check(game.Players.XxNamexX) -- > true check(game.Players.H4X0MSYT) -- > false