Attempt 2, first one was closed. so this time I will be more concrete.
lets say someone chatted this:
/w Felicia OMG YOU NOOB!
/w- Option To Send Private Message
Felicia- The Receivers Name
OMG YOU NOOB! - The Message
Event:FireClient(Player, Message)
How to I Get Player and message from the string?
Btw give me a WARNING before closing it.
I've gotten this so far -
game.Players.PlayerAdded:connect(function(Player)
Player.Chatted:connect(function(Message)
if string.sub(Message, 1,2) == "/w"
then
end
end)
end)

3 comments
Your previous question was closed because you showed no effort in searching the solution. Have you tried searching Roblox wiki/forums? Or Scripting Helpers questions?
Yes ma'am.
Who ever answers this gets a Taco.