Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can i make a chat logger that only logs Specific Words?

Ok. So I've been scripting for about 2 months now and my current project is learning how to do a chat logging system that only logs when someone would say "/e change". I'm Still very new to scripting and need help with basic things so I can get better.

So Basically my request is help with a script that webhook logs when someone says "/e change". it would log their name and entire message in the log. But would only log it if they say "/e change" Help with this is greatly appreciated. i already have a chat logging system made i just dont know how to make it word specific

1 answer

✓ Accepted answer
game.Players.PlayerAdded:Connect(function(plr) -- whenever a player joined it will do this function, the argument plr is the player

plr.Chatted:Connect(function(msg) -- pretty much the same as above but instead of getting the player it instead gets the message he sent

if msg.lower() == "/e change".lower() then -- if the message is /e change then it will start running the code under, lower makes it both lowercase so if they say /E cHanGe it will still work

print("i said /e change")

end

end)



end)

1 comment

0

so would i just add a webhook script to this? or would i just add it onto my current chat log script?

This discussion is preserved as it was. New answers, comments, and votes are closed.