Hello everyone, I’ve been working on game filter.
Players have full control of server and that’s ok, but not ok is when it comes to kicking.
People are using bad words for reason to kick players.
I was wondering if that’s possible to stop kicking function before filtering the reason.
2 Likes
Yeah, but when you are being kicked, you can’t stop the process and you see unfiltered reason.
I wonder if it’s possible to stop proccess to filter the reason
1 Like
Not that I know of. Just filter the message before kicking them.
Here https://scriptinghelpers.org/questions/42579/how-to-check-if-a-message-is-filtered
It has a script that checks if the filtered text is the same as the original text.
local function compare(this,toThis) --Define the function
if this:lower() == toThis:lower() then --If the two strings are exact, meaning unfiltered.
return true --Return true
else
return false --Return False
end
end
local unFiltered = "Hi guis il ieme me"
local filtered = game:GetService("Chat"):FilterStringForBroadcast(unFiltered,game.Players.LocalPlayer) --Filter the text
if compare(filtered,unFiltered) then --Call the function, which returns true or false
print("NOT FILTERED!")
end
Edit: This game seems very interesting, what is it about exactly?
Like, people execute their scripts and they don’t care about the reason.
You’ll have to use TextService | Roblox Creator Documentation.
- Filter the reason (string).
- Kick them with the filtered reason (string)
If your game is a script executor, you can always search the string for a Player:Kick() method, and then replace the string inside with a filtered one.