Advertisement
SlyHades66

Chat 1

May 21st, 2016
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.70 KB | None | 0 0
  1. local newmsg = 1
  2. local previousmsg = 0
  3. script.Parent.OnServerEvent:connect(function(player)
  4.     game.ServerStorage.Value.Value = game.ServerStorage.Value.Value + 1
  5.     for i,v in ipairs(game.Players:GetChildren()) do
  6.             if script.Parent.Parent.player.Value == "DevScapter" then
  7.             local text = Instance.new("TextLabel", v.PlayerGui.ScreenGui.Frame)
  8.             text.Size = UDim2.new(1,0,0,20)
  9.             text.Position = UDim2.new(0,0,0.99,0)
  10.             text.Text = "[Owner] "..script.Parent.Parent.player.Value..": " ..script.Parent.Parent.msg.Value
  11.             text.FontSize = "Size18"
  12.             text.Name = game.ServerStorage.Value.Value
  13.             text.TextYAlignment = "Center"
  14.             text.TextScaled = true
  15.             text.TextXAlignment = "Left"
  16.             text.Font = "SourceSansBold"
  17.             local number = Instance.new("IntValue", text)
  18.             number.Value = newmsg
  19.             text.BackgroundTransparency = 1
  20.             text.TextColor3 = Color3.new(0,255,0)
  21.             previousmsg = newmsg
  22.             newmsg = newmsg + 1
  23.             for i,c in pairs(v.PlayerGui.ScreenGui.Frame:GetChildren()) do
  24.                     c.Position = c.Position-UDim2.new(0,0,0.01,0)
  25.             end
  26.             else
  27.                 if script.Parent.Parent.player.Value == "PixelatedCandy" or script.Parent.Parent.player.Value == "iiSpeeder" or script.Parent.Parent.player.Value == "HeadlessHorror" then
  28.             local text = Instance.new("TextLabel", v.PlayerGui.ScreenGui.Frame)
  29.             text.Size = UDim2.new(1,0,0,20)
  30.             text.Position = UDim2.new(0,0,0.99,0)
  31.             text.Text = "[Whore] "..script.Parent.Parent.player.Value..": " ..script.Parent.Parent.msg.Value
  32.             text.FontSize = "Size18"
  33.             text.BackgroundTransparency = 1
  34.             text.TextColor3 = Color3.new(255,0,255)
  35.             text.Name = game.ServerStorage.Value.Value
  36.             text.TextYAlignment = "Center"
  37.             text.TextScaled = true
  38.             text.TextXAlignment = "Left"
  39.             text.Font = "SourceSansBold"
  40.             local number = Instance.new("IntValue", text)
  41.             number.Value = newmsg
  42.             previousmsg = newmsg
  43.             newmsg = newmsg + 1
  44.             for i,c in pairs(v.PlayerGui.ScreenGui.Frame:GetChildren()) do
  45.                     c.Position = c.Position-UDim2.new(0,0,0.01,0)
  46.             end
  47.                 else
  48.                     if script.Parent.Parent.player.Value == "swetbuizell" or script.Parent.Parent.player.Value == "NaturalEvolution" then
  49.             local text = Instance.new("TextLabel", v.PlayerGui.ScreenGui.Frame)
  50.             text.Size = UDim2.new(1,0,0,20)
  51.             text.Position = UDim2.new(0,0,0.99,0)
  52.             text.Text = "[Buttmunch] "..script.Parent.Parent.player.Value..": " ..script.Parent.Parent.msg.Value
  53.             text.FontSize = "Size18"
  54.             text.Name = game.ServerStorage.Value.Value
  55.             text.TextYAlignment = "Center"
  56.             text.TextScaled = true
  57.             text.TextXAlignment = "Left"
  58.             text.Font = "SourceSansBold"
  59.             local number = Instance.new("IntValue", text)
  60.             number.Value = newmsg
  61.             text.BackgroundTransparency = 1
  62.             text.TextColor3 = Color3.new(255, 170, 0)
  63.             previousmsg = newmsg
  64.             newmsg = newmsg + 1
  65.             for i,c in pairs(v.PlayerGui.ScreenGui.Frame:GetChildren()) do
  66.                     c.Position = c.Position-UDim2.new(0,0,0.01,0)
  67.             end
  68.             else
  69.             local text = Instance.new("TextLabel", v.PlayerGui.ScreenGui.Frame)
  70.             text.Size = UDim2.new(1,0,0,20)
  71.             text.Position = UDim2.new(0,0,0.99,0)
  72.             text.Text = script.Parent.Parent.player.Value..": " ..script.Parent.Parent.msg.Value
  73.             text.FontSize = "Size18"
  74.             text.TextScaled = true
  75.             text.Name = game.ServerStorage.Value.Value
  76.             text.TextYAlignment = "Center"
  77.             text.TextXAlignment = "Left"
  78.             text.Font = "SourceSansBold"
  79.             local number = Instance.new("IntValue", text)
  80.             number.Value = newmsg
  81.             text.BackgroundTransparency = 1
  82.             text.TextColor3 = Color3.new(255,255,255)
  83.             previousmsg = newmsg
  84.             newmsg = newmsg + 1
  85.             for i,c in pairs(v.PlayerGui.ScreenGui.Frame:GetChildren()) do
  86.                     c.Position = c.Position-UDim2.new(0,0,0.01,0)
  87.                     end
  88.             end
  89.                 end
  90.                 end
  91.         end
  92. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement