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

How do I add Tags on my Chat Gui?

Asked by 11 years ago

I am trying to add like [MOD]/[OWNER] beside the ROBLOXian name but I dont know how to do that. PLease help

Script:

01function UpdateOldLabels(Parent)
02    for i,v in pairs(Parent:GetChildren()) do
03        if v.Name:sub(1,4):lower() == "line" then
04            local LineNumber = v.Name:sub(5)
05            if LineNumber == "12" then
06                v:Destroy()
07            else
08                v.Name = "line"..tostring(tonumber(LineNumber) + 1)
09                v.Position = v.Position - UDim2.new(0,0,0,15)
10            end
11        end
12    end
13end
14 
15game:GetService("Players").PlayerAdded:connect(function(player)
View all 37 lines...

1 answer

Log in to vote
1
Answered by 11 years ago
1newchatline.Text = player.Name.. ": " ..msg

Try this:

1newchatline.Text = player.Name=='EmperorF' and ("[OWNER] "..player.Name.. ": " ..msg) or (player.Name.. ": " ..msg)

Please note that I haven't tested this, but I believe that it will work if you change that one line to my code that I provided.

0
What line? EmperorF 0 — 11y
0
OMG it did work thanks! EmperorF 0 — 11y
0
Could you please upvote my answer and accept it? :) TheGuyWithAShortName 673 — 11y
Ad

Answer this question