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

Help With This Custom Chat GUI?

Asked by 11 years ago

My custom chat GUI made to resemble the original ROBLOX chat is broken. Everything I type out comes out as gibberish and when I type another thing in it doesn't appear nor does the original line move up.

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...

Also, does anyone know if it's possible to make the names a separate color and add a semicolon (";") at the end of the name?

1 answer

Log in to vote
0
Answered by 11 years ago

CHnage it to:

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...

It adds a Tag beside you name It also has that a certain person has a certain color

0
You didn't really answer my question, but thanks. DapperLink123 30 — 11y
0
Well thats what you asked for... RedstoneStudios 0 — 11y
0
Sort of. I didn't need the tag, I only needed a semicolon after the name, and the color didn't work. On the bright side, you DID fix the moving up, the deleting, and the gibberish. :D Thanks. DapperLink123 30 — 11y
0
I just got -2 D: Your welcome RedstoneStudios 0 — 11y
Ad

Answer this question