game.Players.PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msg)
if msg == '/kick' then
print("kick")
end
end)
end)
Where it says if msg == 'kick', I want to see if i can find a player name by saying "(prefix)kick NAME". Any solutions?

2 comments
@RobloxWhizYT
(7, #msg)that's redundant; you don't need the#msgbit.subwill get the rest of the string, starting at position 7.print(string.sub('boop', 2)) --> oopTrue.