Hi,
So I'm making admin commands and I need it so when you add 'me' as a player input it will detect the person who sent the message?
Basically, how to see who sent a chat message on Roblox.
I've been trying to find out how since this morning, but my research lead to- you guessed it- no avail.
Can I have some help? For the Player.Chatted
event.
-Biz
01 | local chattedconnections = { } |
02 |
03 | game.Players.PlayerAdded:Connect( function (Player) |
04 | chattedconnections [ Player.Name ] = Player.Chatted:Connect( function (msg) |
05 | if msg:lower() = = '!help' then |
06 | print ( 'helped' ) |
07 | end |
08 | end ) |
09 | end ) |
10 |
11 | game.Players.PlayerRemoving:Connect( function (Player) |
12 | if chattedconnections [ Player.Name ] then |
13 | chattedconnections [ Player.Name ] :Disconnect() |
14 | chattedconnections [ Player.Name ] = nil |
15 | end |
16 | end ) |