Tynexx
|
  |
| Joined: 11 Jul 2012 |
| Total Posts: 1559 |
|
|
| 15 Jul 2014 05:59 PM |
SO I've edited the Pseudo Chat script from the wiki. So that it would work with mine. But it didn't.. Help?
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 == "12" 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) local chat = player.PlayerGui:WaitForChild("Chat").CurrentChat if chat.Value~="" then for _,v in ipairs(game:GetService("Players"):GetChildren()) do UpdateOldLabels(v:WaitForChild("PlayerGui").CHATGUI.Frame) newchatline = Instance.new("TextLabel",v:WaitForChild("PlayerGui").CHATGUI.Frame) newchatline.Text = player.Name.. ": " ..chat.Value newchatline.Size = UDim2.new(1,0,0,15) newchatline.Position = UDim2.new(0,0,1,-15) newchatline.Font = "SourceSansBold" newchatline.TextColor3 = Color3.new(1,1,1) newchatline.TextStrokeTransparency = 0 newchatline.BackgroundTransparency = 1 newchatline.BorderSizePixel = 0 newchatline.FontSize = "Size14" newchatline.TextXAlignment = "Left" newchatline.TextYAlignment = "Top" newchatline.ClipsDescendants = true newchatline.Name = "line1" end UpdateOldLabels(game:GetService("StarterGui").CHATGUI.Frame) newchatline:Clone().Parent = game:GetService("StarterGui").CHATGUI.Frame end end)
No errors nothing in output.. ~Tynexx |
|
|
| Report Abuse |
|