Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Safechat test kicker kicks people without safechat?

Hi,I'm trying to make a safechat test where if you have it, it will kick you. But, when I use the script it always kicks me when I don't have it. How do I fix it so it will only kick the safechatters?

game.Players.PlayerAdded:connect(function(player)
local chat= game:GetService("Chat"):FilterStringAsync("C7RN",player,player)
if chat== "####" then
	player:Kick(chat)
end
end)

3 comments

0

But why?

0

Why bully the 12 year olds :c

0

^^ Many cafe's don't let their "workers" have safechat because it can interfere with what they're saying and attempting to communicate with customers. Therefore, they need to be tested when doing an application centre so you'd use this.

1 answer

Safechat is enabled for users 12 and below. As age is a privacy issue, there is no built in way to detect a safechatter. Filtering the text could be a good method, but the filter is being updated every so often as more patches are fixed, and the algorithms are changed. Solution: There is no solution. Giving users access to a players age is a security breach. :P

1 comment

0

When you use "FilterStringForAsync" it will filter the string or is supposed to based on their settings (their age) according to Roblox WIki.

This discussion is preserved as it was. New answers, comments, and votes are closed.