Hey y’all. This is incredibly embarrassing, but I can’t seem to get the following to work. This is a sample out of a slightly larger script, but print statements both before and after the snip confirm that this area of the script is indeed loading. There are no errors. I’ve tried putting it alone in its own script. But for some reason none of the logic I’ve put inside of the function never runs, even when the only statement inside is the following:
It prints out the name of the LocalPlayer, as expected, but no chat events are fired.
Did Roblox change something? This exact script that I’m having issues with worked without a hitch about 2 months ago (The last time I actually got on to develop) and has since stopped working.
I dont think it works on the client since its a global event or it has the wrong Parent @Alan489@HugeCoolboy2007
Edit: This is not the case, i think i found i fix as i was playing around with the script, i put the LocalScript into StarterCharacterScripts and wrote this code:
So it looks like the game itself is having issues for some reason. I opened up a blank baseplate, and tried the exact same setup with a localscript in StarterPlayerScripts. That works. Going to have to do some digging into the specific game that I’m working in to see if there’s something blocking somewhere. Looks like I didnt forget how to script after all, lol. ROBLOX is just pulling a “lol” on me.
Alright, so after some more digging I found the issue was with the new “TextChatService.” Setting this back to “LegacyChatService” did the trick.