Ok, so basically, I created a simple script which makes your pet chat when you chat, and it repeats what you say. The one problem is, I put in a couple key phrases, like "I'm dumb" or "I'm an idiot" where it would instead say "You think I don't know that?" instead of repeating the player, to add a bit of humor. The one problem is, when I say those key phrases, it still repeats the player. Why is this?
local chatservice = game:GetService("Chat")
local plrname = script.Parent.Parent.Name
local plr = game.Players:FindFirstChild(plrname)
plr.Chatted:Connect(function(msg)
if msg == "I'm dumb" or msg == "I'm an idiot" or msg == "I'm stupid" or msg == "I'm an idot" then
wait(1)
chatservice:Chat(script.Parent, "You think I don't know that?", "White")
else
chatservice:Chat(script.Parent, msg, "White")
end
end)

4 comments
Are you writing the message properly? Its caps sensitive
Yes. I copy and pasted one of the phrases directly from the script.
Try printing msg
Well, the pet I have repeats what I say. So, printing the message would do the same thing the pet does, just in the output console.