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: Rules for custom chat?

Previous Thread :: Next Thread 
minerioProgramer is not online. minerioProgramer
Joined: 21 Dec 2012
Total Posts: 432
09 May 2016 12:28 PM
I want to make a chat system in my game to replace roblox's current chat system, but am I allowed to? Are there any rules for having custom chat?

(BTW) No coding help, I already know how to do it, just need to know if I may.
Report Abuse
minerioProgramer is not online. minerioProgramer
Joined: 21 Dec 2012
Total Posts: 432
09 May 2016 12:32 PM
b1
Report Abuse
seliso is not online. seliso
Joined: 30 Jan 2011
Total Posts: 6443
09 May 2016 12:33 PM
I think there is a event that checks the chat to make sure its alright. you would have to check out the wiki.
Report Abuse
DevVince is not online. DevVince
Joined: 08 Nov 2008
Total Posts: 9245
09 May 2016 12:38 PM
There is a censor system they added just for custom chat systems, you need to use that.


Report Abuse
minerioProgramer is not online. minerioProgramer
Joined: 21 Dec 2012
Total Posts: 432
09 May 2016 12:55 PM
Can I have a link?
Report Abuse
minerioProgramer is not online. minerioProgramer
Joined: 21 Dec 2012
Total Posts: 432
09 May 2016 01:28 PM
b2 I need the cencor system link
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
09 May 2016 01:37 PM
google "roblox wiki censor chat", the second link for me
Report Abuse
WoolHat is not online. WoolHat
Joined: 19 May 2013
Total Posts: 1873
09 May 2016 01:37 PM
I think this is it. I've used what you're talk about before, but I forget if it is FilterStringForPlayerAsync or not
Report Abuse
minerioProgramer is not online. minerioProgramer
Joined: 21 Dec 2012
Total Posts: 432
09 May 2016 02:19 PM
Okay, I have it:

string FilterStringForPlayerAsync (
string stringToFilter,
Player playerToFilterFor
)


But I have no idea how to use it in my script!
Report Abuse
NovusTheory is not online. NovusTheory
Joined: 14 Oct 2009
Total Posts: 4532
09 May 2016 02:30 PM
Learn to read, you'd know how to use it.
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
09 May 2016 02:35 PM
string FilterStringForPlayerAsync (
string stringToFilter,
Player playerToFilterFor
)


English:

FilterStringForPlayerAsync is a method of the Chat service that takes two specified parameters: a string to filter, and a player to filter for. Essentially, it takes the supplied string and filters it based on the specified player's account settings.

It returns a string, or to be more precise, the supplied string after being filtered for that player.
Report Abuse
minerioProgramer is not online. minerioProgramer
Joined: 21 Dec 2012
Total Posts: 432
09 May 2016 02:46 PM
Okay, this is what I got:
-----------------------------------------------------------------------------------
script.Parent.MouseButton1Click:connect(function(cat)
game.Workspace.c3.Value = game.Workspace.c2.Value
game.Workspace.c2.Value = game.Workspace.c1.Value
game.Workspace.c1.Value = script.Parent.Parent.Parent.Parent.Name.. ": " ..script.Parent.Parent.chat.Text
script.Parent.Parent.chat.Text = "Type here to chat!"
end)
------------------------------------------------------------------------------------

I am a big noob at scripting, so how would I make so that when you finish typing, and click the send button to activate the script, I would like "script.Parent.Parent.chat.Text" to be filtered for the player typing it.

(Sorry if I am asking you to write code for me, I really didn't want it to come to that but oh well)
Report Abuse
minerioProgramer is not online. minerioProgramer
Joined: 21 Dec 2012
Total Posts: 432
09 May 2016 02:59 PM
b3
Also I made the script better, but not filtering yet:

---------------------------------------------------------------------------------
script.Parent.MouseButton1Click:connect(function(cat)
if script.Parent.Parent.chat.Text ~= "Type here to chat!" then
game.Workspace.c3.Value = game.Workspace.c2.Value
game.Workspace.c2.Value = game.Workspace.c1.Value
game.Workspace.c1.Value = script.Parent.Parent.Parent.Parent.Name.. ": " ..script.Parent.Parent.chat.Text
script.Parent.Parent.chat.Text = "Type here to chat!"
end
end)
--------------------------------------------------------------------------------------
Report Abuse
minerioProgramer is not online. minerioProgramer
Joined: 21 Dec 2012
Total Posts: 432
09 May 2016 03:10 PM
b4
Report Abuse
WoolHat is not online. WoolHat
Joined: 19 May 2013
Total Posts: 1873
09 May 2016 03:13 PM
You need to send the string to a ServerScript, via a RemoteFunction/Event (Preferably function for its returning capabilities). Then have the server return the now-formatted string to the localscript.
Report Abuse
WoolHat is not online. WoolHat
Joined: 19 May 2013
Total Posts: 1873
09 May 2016 03:14 PM
p.s, try not to bump your threads so frequently.

(yes this reply was a bit hypocritical, but I realized to advise it after I posted. soz)
Report Abuse
IPsec is not online. IPsec
Joined: 27 Jan 2016
Total Posts: 21
09 May 2016 03:25 PM
I'd just like to note here that this is a good exercise that can get challenging depending on how far you want to go. For example, you could add multicolor capabilities, emoticons (emojis, if you prefer), channels, cross-server integration, scrolling, mobile/console portability, GUI animations, and the list goes on. Not only is it a good beginner exercise, but it can also get challenging as the list of features you want grows.
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