Help with Custom Chat Gui?
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..
01 | function 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 = = "13" then |
08 | v.Name = "line" .. tostring ( tonumber (LineNumber) + 1 ) |
09 | v.Position = v.Position - UDim 2. new( 0 , 0 , 0 , 15 ) |
15 | game:GetService( "Players" ).PlayerAdded:connect( function (player) |
16 | player.Chatted:connect( function (msg) |
17 | for _,v in ipairs (game:GetService( "Players" ):GetChildren()) do |
18 | UpdateOldLabels(v:WaitForChild( "PlayerGui" ).ScreenGui.Frame) |
19 | newchatline = Instance.new( "TextLabel" ,v:WaitForChild( "PlayerGui" ).ScreenGui.Frame) |
20 | newchatline.Text = player.Name.. "- " ..msg |
21 | newchatline.Size = UDim 2. new( 1 , 0 , 0 , 15 ) |
22 | newchatline.Position = UDim 2. new( 0 , 0 , 1 ,- 14 ) |
23 | newchatline.Font = "ArialBold" |
24 | newchatline.TextColor 3 = Color 3. new( 255 , 0 , 0 ) |
25 | newchatline.TextStrokeTransparency = 0 |
26 | newchatline.BackgroundTransparency = 1 |
27 | newchatline.BorderSizePixel = 0 |
28 | newchatline.FontSize = "Size16" |
29 | newchatline.TextXAlignment = "Left" |
30 | newchatline.TextYAlignment = "Top" |
31 | newchatline.ClipsDescendants = true |
32 | newchatline.Name = "line1" |
34 | UpdateOldLabels(game:GetService( "StarterGui" ).ScreenGui.Frame) |
35 | newchatline:Clone().Parent = game:GetService( "StarterGui" ).ScreenGui.Frame |
Ok Thanks I will add more detail to my chat GUI when I know its working later. :) Comment if you have any questions Below..:)