So what you want to do is you want to use the player.Chatted event and the :Kick() method.
This will only work in server script for what I know.
Server Script
local Players = game:GetService("Players")
local function onChatKick(player)
player:Kick("You used a word which is not allowed in this game")
end
local function chattedEvent(player)
player.Chatted:Connect(function(msg)
if string.lower(msg) == "free" then
onChatKick(player)
end
end)
end
for _,player in pairs(Players:GetChildren()) do
chattedEvent(player)
end
I'm so sorry if this didn't work. I tried and I don't have studio open right now so I can't check whether what I did works or doesn't. If there are any problems here feel free to comment on this answer and tell me your problem. I can try to fix it for you.
Thank you.
23 comments
You can only do that on Custom Chat
When bot says free the Server announcement says: [Server Announcement]: Daddy_Francisco has been kicked for saying "free" word
Sir OriginalOrNot, Please close this guy's question his question is not allowed please moderate his question link here: https://scriptinghelpers.org/questions/101605/how-to-make-infinite-moving-road-please-help-me-im-poor-scripter
Wow nshow your a really bad person for doing that on an innocent person's question
Who's innocent person?
Ahem. https://scriptinghelpers.org/help/community-guidelines "Do not harass user."
I was stopping him to ask that question about moving road script just like kumihari's vibe train moving tunnel script i was angry over him
Why were you trying to stop him? It's a normal question and don't forget that all game makers receive inspiration from other games. That's how roblox works.
Francisco was a real fucking toxic at looking programming school like this and lua learning
Francisco was a real fucking toxic well his question is closed as not constructive XD
WHAT THE FUCK!? my reputation CAUSE OF YOU
You're a real toxic sir that's why your reputation is poor sir cuz ur question is not constructive
Fuck you then those fucking contributors hates me now :(
Yeah nobody cares if you ask about kumihari's moving railway script so that's why contributors hates you
YOU FUCKING BASTARD
Ok boomer
FUCK YOU dude thanks to you my rep is -10
Yeah contributors and scripters will never help you cause moderators hates you
FUCK YOU BRO YOUR QUESTION WILL CLOSE
Nah this question will not close THIS IS CONSTRUCTIVE don't be toxic fran before moderator will perm ban ya
You are not innocent francis you are TOXIC that's why moderator closed ur question :P
FUCK YOU ASSHOLE!!!!!!!!! >:(
Chill out man. When is my answer going to get accepted?