Anyway to disable past chat messages

hey developers, i’ve been trying to disable the recent chat messages if you are below a certain rank in a group, and due to my lack of chat experience, i have no idea what i am doing.

local plr = game.Players.LocalPlayer

if plr:GetRankInGroup(0000000) > 5 then
   print('Player is a high enough rank to view this information')
else
   --Disable recent chat messages script here
end

any answers or suggestions would be greatly appreciated
thanks

Have you done any research?

yes i have done research, and found nothing that’s why i am here. and no that is not what i am looking for, how can i change that script from a local script, i tried using remoteevents, but that didn’t work either.

What you can do is putting your script in the module script and set the module.BubbleChat to true or false, depending on the player. You don’t need to change into a local script, because module scripts can do this. Trust me, I tried it with UserInputService.

I had the same exact idea what @Theyoloman1920 had.
I’ll show a quick example of how it should look alike in the script

local plr = game.Players.LocalPlayer

if plr:GetRankInGroup(0000000) > 5 then
   print('Player is a high enough rank to view this information')
else
module.BubbleChatEnabled = false

As you might already understand, the module.BubbleChatEnabled should be by default set at true. Although, if you do not want to really change anything in the chat scripts, just use global variables.

1 Like