Advertisement
Guest User

Roblox chat gui

a guest
Dec 12th, 2018
3,934
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.87 KB | None | 0 0
  1. -- Made by Kinglol
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local ImageLabel = Instance.new("ImageLabel")
  5. local Frame = Instance.new("Frame")
  6. local TextBox = Instance.new("TextBox")
  7. local TextButton = Instance.new("TextButton")
  8. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  9.  
  10. ImageLabel.Parent = ScreenGui
  11. ImageLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  12. ImageLabel.Position = UDim2.new(0.259786487, 0, 0.260273963, 0)
  13. ImageLabel.Size = UDim2.new(0, 357, 0, 25)
  14. ImageLabel.Image = "rbxassetid://32241532"
  15. ImageLabel.Draggable=true
  16. ImageLabel.Active=true
  17. ImageLabel.Selectable=true
  18.  
  19.  
  20. Frame.Parent = ImageLabel
  21. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  22. Frame.BorderSizePixel = 0
  23. Frame.Position = UDim2.new(0, 0, 1, 0)
  24. Frame.Size = UDim2.new(0, 357, 0, 170)
  25.  
  26. TextBox.Parent = ImageLabel
  27. TextBox.BackgroundColor3 = Color3.new(0.541176, 0.541176, 0.541176)
  28. TextBox.BorderSizePixel = 0
  29. TextBox.Position = UDim2.new(0.0364145674, 0, 1.39999998, 0)
  30. TextBox.Size = UDim2.new(0, 330, 0, 149)
  31. TextBox.Font = Enum.Font.Code
  32. TextBox.Text = ""
  33. TextBox.TextColor3 = Color3.new(0, 0, 0)
  34. TextBox.TextSize = 13
  35. TextBox.TextWrapped = true
  36. TextBox.TextXAlignment = Enum.TextXAlignment.Left
  37. TextBox.TextYAlignment = Enum.TextYAlignment.Top
  38.  
  39. TextButton.Parent = ImageLabel
  40. TextButton.BackgroundColor3 = Color3.new(1, 0, 0)
  41. TextButton.BorderSizePixel = 0
  42. TextButton.Position = UDim2.new(0.913165331, 0, 0.0799999982, 0)
  43. TextButton.Size = UDim2.new(0, 17, 0, 20)
  44. TextButton.Font = Enum.Font.SourceSans
  45. TextButton.Text = "X"
  46. TextButton.TextColor3 = Color3.new(0, 0, 0)
  47. TextButton.TextSize = 14
  48.  
  49.  
  50. local plr = game:GetService"Players":GetPlayers()
  51.    for i = 1,#plr do
  52.        plr[i].Chatted:connect(function(msg)
  53.        TextBox.Text =(TextBox.Text  ..i.Name ..": " ..msg .."\n")
  54.    end)
  55. end
  56.  
  57. TextButton.MouseButton1Click:connect(function()
  58.     ScreenGui:Destroy()
  59. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement