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

Help with Custom Chat Gui?

Asked by
iSvenDerp 233 Moderation Voter
9 years ago

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.

so I am making my own psuedo Custom Chat GUI. I have my scrpt in the serverscriptstorage. When I Looked at OutPut nothing seemed to be wrong so here it is. EDIT: as I said said above:) output shows nothing so what I need is for help trying to figure out whats wrong? An Ideas? This is in a normal script to..

function UpdateOldLabels(Parent)
    for i,v in pairs(Parent:GetChildren()) do
        if v.Name:sub(1,4):lower() == "line" then
            local LineNumber = v.Name:sub(5)
            if LineNumber == "13" then
                v:Destroy()
            else
                v.Name = "line"..tostring(tonumber(LineNumber) + 1)
                v.Position = v.Position - UDim2.new(0,0,0,15)
            end
        end
    end
end

game:GetService("Players").PlayerAdded:connect(function(player)
    player.Chatted:connect(function(msg)
        for _,v in ipairs(game:GetService("Players"):GetChildren()) do
            UpdateOldLabels(v:WaitForChild("PlayerGui").ScreenGui.Frame)
            newchatline = Instance.new("TextLabel",v:WaitForChild("PlayerGui").ScreenGui.Frame)
            newchatline.Text = player.Name.. "- " ..msg
            newchatline.Size = UDim2.new(1,0,0,15)
            newchatline.Position = UDim2.new(0,0,1,-14)
            newchatline.Font = "ArialBold"
            newchatline.TextColor3 = Color3.new(255,0,0)
            newchatline.TextStrokeTransparency = 0
            newchatline.BackgroundTransparency = 1
            newchatline.BorderSizePixel = 0
            newchatline.FontSize = "Size16"
            newchatline.TextXAlignment = "Left"
            newchatline.TextYAlignment = "Top"
            newchatline.ClipsDescendants = true
            newchatline.Name = "line1"
        end
        UpdateOldLabels(game:GetService("StarterGui").ScreenGui.Frame)
        newchatline:Clone().Parent = game:GetService("StarterGui").ScreenGui.Frame
    end)
end)

Ok Thanks I will add more detail to my chat GUI when I know its working later. :) Comment if you have any questions Below..:)

1
I can't very well help you if you won't say what the problem is. ZeroBits 142 — 9y
0
That's just it as I said above output was showing nothing so my problem is that idk why it's not working and I was looking for suggestions :) iSvenDerp 233 — 9y
0
Zero is asking what's wrong with it? Why do you need help? FearMeIAmLag 1161 — 9y
0
I have no idea i put it on here so we can figure out together whats wrong with is since it didnt show anything in output when i tested it in studio it was normal chat but when i went into to a running server it wasnt working. So i am trying to figure out without the output whatsw rong with it iSvenDerp 233 — 9y
View all comments (3 more)
0
When someone asks "what's wrong with it" it means that they do not know what it is not doing that you think it is supposed to be doing, and cannot help you with the issue because they do not know what the issue is about. 1waffle1 2908 — 8y
0
Sooo, what is the issue? Chat not showing? WHat us happening? You have to tell us a little fireboltofdeath 635 — 8y
0
The chat is not showing anything do u think i have to remove to core chat gui? Its just showing the regular chat iSvenDerp 233 — 8y

Answer this question