generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Help | Chat Censor

Previous Thread :: Next Thread 
Ryan_Akbari is not online. Ryan_Akbari
Joined: 05 May 2010
Total Posts: 179
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
Ryan_Akbari is not online. Ryan_Akbari
Joined: 05 May 2010
Total Posts: 179
07 Jan 2017 07:13 PM
lil' bump.





Report Abuse
HalfPinky456 is not online. HalfPinky456
Joined: 10 Apr 2011
Total Posts: 6236
07 Jan 2017 07:15 PM
:FilterStringAsync()

attempt to call girlfriend (a nil value) | (͠≖ ͜ʖ͠≖)👌 | nothin' like a good argument ¯\_(ツ)_/¯
Report Abuse
KritikalGunzz is not online. KritikalGunzz
Joined: 10 Nov 2013
Total Posts: 1633
07 Jan 2017 07:17 PM
FilterStringASync()

FilterStringForBroadcast()
http://wiki.roblox.com/index.php?title=API:Class/Chat/FilterStringForBroadcast


Report Abuse
Ryan_Akbari is not online. Ryan_Akbari
Joined: 05 May 2010
Total Posts: 179
07 Jan 2017 07:34 PM
Thanks.


Report Abuse
Ryan_Akbari is not online. Ryan_Akbari
Joined: 05 May 2010
Total Posts: 179
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
Ryan_Akbari is not online. Ryan_Akbari
Joined: 05 May 2010
Total Posts: 179
07 Jan 2017 08:44 PM
Anyone? ._.


Report Abuse
foreverpower is not online. foreverpower
Joined: 05 Feb 2011
Total Posts: 5578
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
Ryan_Akbari is not online. Ryan_Akbari
Joined: 05 May 2010
Total Posts: 179
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
Ryan_Akbari is not online. Ryan_Akbari
Joined: 05 May 2010
Total Posts: 179
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
LeCorneille is not online. LeCorneille
Joined: 08 Jan 2011
Total Posts: 1139
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
SirTipsAlot is not online. SirTipsAlot
Joined: 08 Feb 2012
Total Posts: 2431
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
brightstorm603 is not online. brightstorm603
Joined: 10 Apr 2010
Total Posts: 6807
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
LightFantom is online. LightFantom
Joined: 23 Sep 2014
Total Posts: 7830
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image