iChaboyy
|
  |
| Joined: 19 Dec 2012 |
| Total Posts: 121 |
|
|
| 14 Sep 2016 02:10 AM |
Alright, so I've made this script for a custom chat ive made for one of my games (Vip color id is not done yet) And uh, it doesn't seem to work and the chat text doesnt seem to pop up online, so I wondering if I could get some help on this, feel free to visit my game (The Sky Cafe) to prove it :p Here is the script below. (Note this does involve a screen Gui and a frame)-- iChaboyy --
local vipPass =
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 == "16" then v:Destroy() else v: Name = "line" .. toatring (tonumber(LineNumber) + 1) v: Position = v.Position - Udim2.New(0,0,15) end end end end
game.Players.PlayerAdded:connect(function(player) for _,v in ipairs(game:GetService("Players"):GetChildren ()) do wait () UpdateOldLabels(v:WaitForChild("PlayerGui").ChatGui.Frame) if player then newchatline = Instance.new("TextLabel",v:WaitForChild("PlayerGui").ChatGui.Frame newchatline.Text = "[Server] " ..Player.Name.. " has joined the server" newchatline.Size = Udim2.New(1,0,0,20) newchatline.Position = Udim2.New(0,0,1,-15) newchatline.Font = "ArialBold" newchatline.TextStrokeTransparency = 0 newchatline.BackgroundTransparency = 1 newchatline.BorderSizePixel = 0 newchatline.FontSize = "Size14" newchatline.TextXAlignment = "Left" newchatline.TextYAlignment = "Top" newchatline.ClipsDescendants = true newchatline.Name = "line1" newchatline.TextColor3 = Color3.new(1, 1, 1) end end elseif game:GetService("GamePassService"):PlayerHasPass(player, vipPass) then UpdateOldLabels(v:WaitForChild("PlayerGui").ChatGui.Frame) newchatline = Instance.new("TextLabel",v:WaitForChild("PlayerGui").ChatGui.Frame newchatline.Text = "[VIP] "..player.Name.. ": " ..msg newchatline.Size = UDim2.new(1,0,0,20) newchatline.Position = UDim2.new(0,0,1,-15) newchatline.Font = "ArialBold" newchatline.TextStrokeTransparency = 0 newchatline.BackgroundTransparency = 1 newchatline.BorderSizePixel = 0 newchatline.FontSize = "Size14" newchatline.TextXAlignment = "Left" newchatline.TextYAlignment = "Top" newchatline.ClipsDescendants = true newchatline.Name = "line1" newchatline.TextColor3 = Color3.new(1,1,127/255) UpdateOldLabels(game:GetService("StarterGui").ChatGui.Frame) newscriptline:Clone().Parent = game:GetService("StaterGui").ChatGui.Frame player.Chatted:connect(function(msg) 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.. ": " ..msg newchatline.Size = UDim2.new(1,0,0,20) newchatline.Position = UDim2.new(0,0,1,-15) newchatline.Font = "ArialBold" newchatline.TextStrokeTransparency = 0 newchatline.BackgroundTransparency = 1 newchatline.BorderSizePixel = 0 newchatline.FontSize = "Size14" newchatline.TextXAlignment = "Left" newchatline.TextYAlignment = "Top" newchatline.ClipsDescendants = true newchatline.Name = "line1" newchatline.TextColor3 = Color3.new(1, 1, 1) end UpdateOldLabels(game:GetService("StarterGui").ChatGui.Frame newchatline:Clone().Parent = game:GetService("StarterGui").ChatGui.Frame end) end)
Kind Regards, Chaboyy
|
|
|
| Report Abuse |
|
nacker
|
  |
| Joined: 06 Oct 2009 |
| Total Posts: 6034 |
|
| |
iChaboyy
|
  |
| Joined: 19 Dec 2012 |
| Total Posts: 121 |
|
|
| 14 Sep 2016 03:06 AM |
Is it all too much for you :p
-- Previously ben9417 |
|
|
| Report Abuse |
|
llaserx
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 53069 |
|
|
| 14 Sep 2016 04:13 AM |
| I dont think u know wut ur doing |
|
|
| Report Abuse |
|
iChaboyy
|
  |
| Joined: 19 Dec 2012 |
| Total Posts: 121 |
|
|
| 14 Sep 2016 04:24 AM |
Nope I don't xd
-- Previously ben9417 |
|
|
| Report Abuse |
|