|
| 07 Jan 2017 07:09 PM |
I'm somewhat getting back into the fun of scripting, but I need assistance inputting the Roblox censor into my custom chat. I have no clue how on earth to use censoring, never had to use it before.
script.Parent = game.ServerScriptService game.Players.ChildAdded:connect(function(plr) if plr:IsA("Player") then plr.Chatted:connect(function(message) if message:sub(1,6):lower()== " " then return end script.Bubble.Value = script.Bubble.Value + 1 local plrmessage = script.ChatBubble:Clone() script.Bubble:clone().Parent = plrmessage plrmessage.Parent = game.workspace[plr.Name].Head plrmessage.Adornee = game.workspace[plr.Name].Head plrmessage.Text.Text = message plrmessage.Text.Script.Disabled = false end) end end)
|
|
|
| Report Abuse |
|
|
| |
|
|
| 07 Jan 2017 07:15 PM |
:FilterStringAsync()
attempt to call girlfriend (a nil value) | (͠≖ ͜ʖ͠≖)👌 | nothin' like a good argument ¯\_(ツ)_/¯ |
|
|
| Report Abuse |
|
|
|
| 07 Jan 2017 07:17 PM |
FilterStringASync()
FilterStringForBroadcast() http://wiki.roblox.com/index.php?title=API:Class/Chat/FilterStringForBroadcast
|
|
|
| Report Abuse |
|
|
| |
|
|
| 07 Jan 2017 07:41 PM |
Having scripter's block of the year ¯\_(ツ)_/¯
Don't have time to rest it off, I'll pay if anyone is willing to input the needed few lines to enable Roblox's chat filter into the custom chat.
|
|
|
| Report Abuse |
|
|
| |
|
|
| 07 Jan 2017 09:06 PM |
local chatService = game:GetService("Chat")
for i, toPlayer in pairs(game.Players:GetPlayers()) do messageCopy = chatService:FilterStringAsync(message, fromPlayer, toPlayer) sendMessageToPlayer(toPlayer, messageCopy) end
|
|
|
| Report Abuse |
|
|
|
| 07 Jan 2017 09:18 PM |
Needed a cup of tea to clear my mind, I see how to fix it now.
Gracias.
|
|
|
| Report Abuse |
|
|
|
| 07 Jan 2017 10:24 PM |
Thought I figured it out...
I'll pay anyone willing to add the Roblox chat filter into the script I've provided,
Group funds, - https://www.roblox.com/My/Groups.aspx?gid=1064400
|
|
|
| Report Abuse |
|
|
|
| 07 Jan 2017 10:36 PM |
script.Parent = game.ServerScriptService game.Players.ChildAdded:connect(function(plr) if plr:IsA("Player") then plr.Chatted:connect(function(message) if message:sub(1,6):lower()== " " then return end script.Bubble.Value = script.Bubble.Value + 1 local plrmessage = script.ChatBubble:Clone() script.Bubble:clone().Parent = plrmessage plrmessage.Parent = game.workspace[plr.Name].Head plrmessage.Adornee = game.workspace[plr.Name].Head plrmessage.Text.Text = game:service'Chat':FilterStringForBroadcast(message,plr); plrmessage.Text.Script.Disabled = false end) end end)
|
|
|
| Report Abuse |
|
|
|
| 07 Jan 2017 10:36 PM |
i'll do it for free
script.Parent = game.ServerScriptService game.Players.ChildAdded:connect(function(plr) if plr:IsA("Player") then plr.Chatted:connect(function(message) message=game:GetService('Chat'):FilterStringForBroadcast(message,plr) if message:sub(1,6):lower()== " " then return end script.Bubble.Value = script.Bubble.Value + 1 local plrmessage = script.ChatBubble:Clone() script.Bubble:clone().Parent = plrmessage plrmessage.Parent = game.workspace[plr.Name].Head plrmessage.Adornee = game.workspace[plr.Name].Head plrmessage.Text.Text = message plrmessage.Text.Script.Disabled = false end) end end)
my dps (dabs per seconds) is roughly 0x539, get on my level :) |
|
|
| Report Abuse |
|
|
|
| 07 Jan 2017 11:24 PM |
| Lol, I'm not sure why you would want to do that. The new filter is absolute trash! |
|
|
| Report Abuse |
|
|
|
| 07 Jan 2017 11:26 PM |
^ Because you can get your game deleted or even get banned if your custom chat does not include the filter...
Love breeds sacrifice... which in turn breeds hatred. Then you can know pain. |
|
|
| Report Abuse |
|
|
iAmZadock
|
  |
| Joined: 04 Feb 2012 |
| Total Posts: 595 |
|
|
| 07 Jan 2017 11:26 PM |
Bump
I build games that have 50k+ visits for ppl
|
|
|
| Report Abuse |
|
|