game.Players.LocalPlayer.Chatted:Connect(function(msg)
if active then
sendMessage(msg)
end
if msg == "CLEAR ONE "..ClearOnePlayer then
print(ClearOnePlayer()
end
end)
I'm an experienced scripter but I don't really know how to do this. I want it to be so that if you type "CLEAR ONE" and a username of a player that is in the server it'll print the name..

5 comments
Also, the code shows "print(ClearOnePlayer) not print(ClearOnePlayer()
use a bit of string manipulation, sub, match, find, and gsub could all be used
use a bit of string manipulation, sub, match, find, and gsub could all be used
^ this should be an answer
I've been trying for the past few hours to get this working, it still won't work. Can you go into studio and try this?