|
| 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 |
|
|
| |
|
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
|
  |
| 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 |
|
|
| |
|
|
| 09 May 2016 01:28 PM |
| b2 I need the cencor system link |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 09 May 2016 02:30 PM |
| Learn to read, you'd know how to use it. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
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
|
  |
| 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
|
  |
| 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 |
|
|