Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Made by E4erZ, BloXatoR :)
- -- Your Welcome guys :)
- local badWords = {"suck", "L", "apple", "trash"} -- use any types of words
- game.Players.PlayerAdded:Connect(function(player)
- local warningGiven = false -- Keeps track of whether a warning has been given to the player
- player.Chatted:Connect(function(msg)
- for i, v in pairs(badWords) do
- if string.find(msg:lower(), v:lower()) then
- if not warningGiven then
- player:Kick("Warning: Don't use bad words.")
- warningGiven = true
- else
- player:Kick("Kicked:bad words.")
- end
- end
- end
- end)
- end)
- --credit Twitch_E4erZyt, BloXatoR, E4erZ.
- --Leave a like and subscribe for more.
- --SUBSCRIBE to E4erZ and BloXatoR..
Advertisement
Add Comment
Please, Sign In to add comment