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..
Hey guys! I appreciate the help on this, I tried that and now have a fix for it. Instead of finding it within the string it just detects if it's in another message after saying the message "CLEAR ONE" And instead of printing it it'll send the message. Btw this is for a police radio system that has worked out really well.