Hello, I am a developer that needs help with chat tags. I have 2 scripts. One of them id a chat tag about group chat tags and VIP chat tags(in workspace). The other one is for owners and devs, etc. (In ServerScriptService). So basically, I have the VIp gamepass but i am also the owner of the game, and the VIP chat tags will appear but I want the owner chat tag to apepar instead. I only want the owner chat tag (not both) to appear instead. I have already tried searching online and on youtube but nothing seems to work. I also tried disabling the VIP scripts if i was an owner but i think it would interfere with other players if they had VIP. Please help.
(Sorry if i am posting in the wrong topic this is my first time posting)
Under the script for the VIP chat tag, add a few lines:
-- this goes at the top of the script
local admins = {} -- people who you want to have the other chat tag
Then, under the function
to add the vip tag:
if table.find(admins, player.Name) then return end
This is just a basic system. Hope it helps!
We’ll need to see how the chat tags script currently looks like to be able to help you solve your problem. Use triple backsticks to include the code in your reply like this:
```lua
– Your code goes inside here, example:
print(true)
```
I am not a real programmer yet, but it sounds like those two “overwrite” each other, e.g. each having their “on chat” events? If you set the tag in one and an other tag in the other script, they can’t be executed at the same time. You may want to add such tags in one script or for example run the chat message through a custom function that returns the tag with the highest importance.
It would do something like this:
Is the player the owner? Return the owner tag
Is the player a mod? Return the mod tag
Is the player a VIP? Return the VIP tag
Return the player tag
(In that exact order)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.