I have a ChatFilter script that kicks players whenever they say a certain word in the blacklist. Although, this is not the case. Whenever a player joins the game, before they even speak, this error is printed to the output: 'Error occurred, no output from Lua'.
I am not sure what this means, as I have never heard of or even experienced this before. The error occurs on line 7.
local Players = game:GetService("Players")
local blacklist = {
"the code is", "code", "alpha";
}
Players.PlayerChatted:Connect(function(messageType, player, message)
for _, blocked in next, blacklist do
if string.match(message, blocked) then
player:Kick("[ChatFilter] You have said a word or phrase that has caused you to be kicked. You may rejoin.")
print("[Kick]"..player.Name.." has been kicked by [ChatFilter].")
end
end
end)

1 comment
If you are playing it on voidacity's script builder Or another script builder, Sometimes it dont allows you to Do lua scripts, I don't know what to say, just saying this.