Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
Perci1 4988 Trusted Moderation Voter Community Moderator
9 years ago

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.

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 damagex443 325 — 9y
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. BlueTaslem 18071 — 9y
0
What do you think about my idea on the comment of Immortal's answer? Perci1 4988 — 9y

1 answer

Log in to vote
3
Answered by 9 years ago

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
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... Perci1 4988 — 9y
Ad

Answer this question