DEXLTH

Untitled

Sep 26th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local DragFrame = Instance.new("Frame")
  3. local Frame = Instance.new("Frame")
  4. local Frame_03 = Instance.new("Frame")
  5. local Say = Instance.new("TextButton")
  6. local TextBox = Instance.new("TextBox")
  7. local OpenCloseButton = Instance.new("TextButton")
  8. ScreenGui.Parent = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui")
  9. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  10. ScreenGui.ResetOnSpawn = false
  11. DragFrame.Name = "DragFrame"
  12. DragFrame.Parent = ScreenGui
  13. DragFrame.BackgroundColor3 = Color3.new(0.247059, 0.247059, 0.247059)
  14. DragFrame.BorderSizePixel = 0
  15. DragFrame.Position = UDim2.new(0.21339564, 0, 0.0282555241, 0)
  16. DragFrame.Size = UDim2.new(0, 236, 0, 15)
  17. Frame.Parent = DragFrame
  18. Frame.BackgroundColor3 = Color3.new(0.172549, 0.482353, 0.721569)
  19. Frame.BorderSizePixel = 0
  20. Frame.Position = UDim2.new(0, 0, 0.956674814, 0)
  21. Frame.Size = UDim2.new(0, 236, 0, 7)
  22. Frame_03.Name = "Frame_03"
  23. Frame_03.Parent = DragFrame
  24. Frame_03.BackgroundColor3 = Color3.new(0.247059, 0.247059, 0.247059)
  25. Frame_03.BorderSizePixel = 0
  26. Frame_03.Position = UDim2.new(-0.000158406925, 0, 1.38826621, 0)
  27. Frame_03.Size = UDim2.new(0, 236, 0, 60)
  28. Say.Name = "Say"
  29. Say.Parent = Frame_03
  30. Say.BackgroundColor3 = Color3.new(1, 1, 1)
  31. Say.BackgroundTransparency = 1
  32. Say.Position = UDim2.new(0.618644059, 0, 0.371596336, 0)
  33. Say.Size = UDim2.new(0, 79, 0, 15)
  34. Say.Font = Enum.Font.SourceSans
  35. Say.Text = "Say"
  36. Say.TextColor3 = Color3.new(1, 1, 1)
  37. Say.TextSize = 14
  38. TextBox.Parent = Frame_03
  39. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  40. TextBox.BackgroundTransparency = 1
  41. TextBox.BorderSizePixel = 0
  42. TextBox.Position = UDim2.new(0.0381355919, 0, 0.0833333358, 0)
  43. TextBox.Size = UDim2.new(0, 150, 0, 50)
  44. TextBox.Font = Enum.Font.SourceSans
  45. TextBox.Text = "Text Here"
  46. TextBox.TextColor3 = Color3.new(1, 1, 1)
  47. TextBox.TextSize = 14
  48. OpenCloseButton.Name = "OpenCloseButton"
  49. OpenCloseButton.Parent = DragFrame
  50. OpenCloseButton.BackgroundColor3 = Color3.new(1, 1, 1)
  51. OpenCloseButton.BackgroundTransparency = 1
  52. OpenCloseButton.Position = UDim2.new(0.822033882, 0, -0.066666536, 0)
  53. OpenCloseButton.Size = UDim2.new(0, 42, 0, 15)
  54. OpenCloseButton.Font = Enum.Font.SourceSans
  55. OpenCloseButton.Text = "-"
  56. OpenCloseButton.TextColor3 = Color3.new(1, 1, 1)
  57. OpenCloseButton.TextSize = 14
  58. OpenCloseButton.MouseButton1Click:Conect(function()
  59. if Frame_03.Visible = false then
  60. Frame_03.Visible = true
  61. else
  62. Frame_03.Visible false
  63. end)
  64. DragFrame.Active = true
  65. DragFrame.Draggable = true
  66. Say.MouseButton1Down:Connect(function()
  67. Plr = game:service("Players").LocalPlayer
  68. game:service("Chat"):Chat(Plr.Character.Head, TextBox.Text, Enum.ChatColor.Green)
  69. Plr.Chatted:connect(function(Msg)
  70. game:service("Chat"):Chat(Plr.Character.Head, Msg, Enum.ChatColor.Blue)
  71. end)
  72. end)
Add Comment
Please, Sign In to add comment