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

How do you get the Chatted event to fire with custom chat systems?

I have a Holo Script model that uses the chatted even to spawn maps. Some custom chat systems completely remove Roblox's chat bar, leaving only GUIs. This means that the chatted event does not fire, even when a player chats using the custom system.

Is there anyway to get around this, or check if a place has a custom chat system?

I do not expect a code answer, just ideas from scripters on how this would be accomplished. Any answers are appreciated.

3 comments

2

You can try to create a bindable or remote event. This depends on if it's done in a local or server script. Then fire the event whenever someone chatted. http://wiki.roblox.com/index.php?title=API:Class/BindableEvent

1

It would be impossible in general to differentiate between a 'custom chat bar' and just any old TextBox -- or worse, a text label listening to keypress events.

0

What do you think about my idea on the comment of Immortal's answer?

1 answer

✓ Accepted answer

You'd have to use remote events or remote functions, this would allow the script for the holo to get chats. But the .Chatted cannot be used. You'd have to fire the event with the message from a text box or so? And the PlayerName? But you still have to edit the custom chat system and holo script to use the remote event.

A bit of info on remote events: http://wiki.roblox.com/index.php?title=RemoteFunction_and_RemoteEvent_Tutorial#Server_Event

1 comment

1

I could easily make that work if I created the custom chat system, but it's more difficult when I would need it to work for almost all chat systems in other people's places. There may not be a way. I suppose I could use the KeyDown event and check if a series of key presses equals the command, but I don't think that would be very efficient...

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