i want to kick a player if they say something bad in my game but it only works if they only say the bad word can i get help?
current code
game.Players.PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msg)
if msg == "stupid" or msg == "trash" or msg == "clapped" or msg == "claped" or msg == "stoopid" then
plr:Kick("Bad words")
end
end)
end)

1 comment
Yh but what he ment was well lets say he made a fps game he wouldnt want people flexing on others kind of thing because they wont be #