So as you know, Basic Admin hints have the Title textLabel that display’s the user’s username that ran the command. I wanted to add a [ Rank ] tag next to the username (group rank) which I did. Below you can see the single line of code I’ve used:
The only issue I’m facing and need help is with errors and server messages. Apparently, since Player is the parameter used, the code finds the player who used the command and then displays the user’s grouip rank on the Error message/server message. Here is what I mean:
So, what are you trying to acomplish, do you have like an anonymous header? If so whats the title, that would be what you replace "Server Message" with.
You can ultimately acomplish your end goal by doing the following
hintTitleText.Text = Data[1] == "Server hint or whatever the title is for your server hint" and Data[1] or Data[1] .. '<font transparency="0.65"> [ ' .. Player:GetRoleInGroup(15886999) .. ' ] </font>'
I did that. My mainModule has more titles that the hintTitleText gets replaced with. I’ve tried adding "text one" or "text two" or "text three" but that does not work, instead breaks the code.
Hi thank you, so I did it with using your code but modified it a bit to make the hint work and organize it. The issue I’m getting with the message while using this technique is that the group rank is not appearing. My code is:
local messageTitle = {
"Server Message",
"Shakiez Announcement",
}
topTitle.Text = Title == "Error" or messageTitle and Title or Title .. '<font transparency="0.65"> [ ' .. Player:GetRoleInGroup(15886999) .. ' ] </font>'