Advertisement
artbarte

Big Brother Kill GUI

Aug 24th, 2017
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.74 KB | None | 0 0
  1. -- Objects
  2.  
  3. local KillGui = Instance.new("ScreenGui")
  4. local Frame = Instance.new("Frame")
  5. local Close = Instance.new("TextButton")
  6. local Drag = Instance.new("TextButton")
  7. local Kill = Instance.new("TextButton")
  8. local Box = Instance.new("TextBox")
  9. local KillAll = Instance.new("TextButton")
  10. local Open = Instance.new("TextButton")
  11.  
  12. -- Properties
  13.  
  14. KillGui.Name = "KillGui"
  15. KillGui.Parent = game.CoreGui
  16.  
  17. Frame.Parent = KillGui
  18. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  19. Frame.BackgroundTransparency = 0.5
  20. Frame.Position = UDim2.new(0.5, 0, 0.5, 0)
  21. Frame.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
  22.  
  23. Close.Name = "Close"
  24. Close.Parent = Frame
  25. Close.BackgroundColor3 = Color3.new(1, 0, 0)
  26. Close.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
  27. Close.Font = Enum.Font.SourceSansBold
  28. Close.FontSize = Enum.FontSize.Size14
  29. Close.Text = "Close"
  30. Close.TextColor3 = Color3.new(0, 0, 0)
  31. Close.TextSize = 14
  32.  
  33. Drag.Name = "Drag"
  34. Drag.Parent = Frame
  35. Drag.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  36. Drag.Position = UDim2.new(0.200000003, 0, 0, 0)
  37. Drag.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
  38. Drag.AutoButtonColor = false
  39. Drag.Font = Enum.Font.SourceSansBold
  40. Drag.FontSize = Enum.FontSize.Size14
  41. Drag.Text = "Drag"
  42. Drag.TextColor3 = Color3.new(0, 0, 0)
  43. Drag.TextSize = 14
  44.  
  45. Kill.Name = "Kill"
  46. Kill.Parent = Frame
  47. Kill.BackgroundColor3 = Color3.new(0.407843, 0.407843, 0.407843)
  48. Kill.Position = UDim2.new(0.100000001, 0, 0.349999994, 0)
  49. Kill.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
  50. Kill.Font = Enum.Font.SourceSansBold
  51. Kill.FontSize = Enum.FontSize.Size32
  52. Kill.Text = "Kill"
  53. Kill.TextColor3 = Color3.new(0, 0, 0)
  54. Kill.TextSize = 30
  55.  
  56. Box.Name = "Box"
  57. Box.Parent = Frame
  58. Box.BackgroundColor3 = Color3.new(0.407843, 0.407843, 0.407843)
  59. Box.Position = UDim2.new(0.400000006, 0, 0.349999994, 0)
  60. Box.Size = UDim2.new(0.5, 0, 0.200000003, 0)
  61. Box.Font = Enum.Font.SourceSansBold
  62. Box.FontSize = Enum.FontSize.Size24
  63. Box.TextColor3 = Color3.new(0, 0, 0)
  64. Box.TextSize = 20
  65.  
  66. KillAll.Name = "KillAll"
  67. KillAll.Parent = Frame
  68. KillAll.BackgroundColor3 = Color3.new(0.407843, 0.407843, 0.407843)
  69. KillAll.Position = UDim2.new(0.300000012, 0, 0.730000019, 0)
  70. KillAll.Size = UDim2.new(0.400000006, 0, 0.200000003, 0)
  71. KillAll.Font = Enum.Font.SourceSansBold
  72. KillAll.FontSize = Enum.FontSize.Size32
  73. KillAll.Text = "Kill All"
  74. KillAll.TextColor3 = Color3.new(0, 0, 0)
  75. KillAll.TextSize = 30
  76.  
  77. Open.Name = "Open"
  78. Open.Parent = KillGui
  79. Open.BackgroundColor3 = Color3.new(0, 1, 0)
  80. Open.Position = UDim2.new(0, 0, 0.5, 0)
  81. Open.Size = UDim2.new(0.0500000007, 0, 0.0500000007, 0)
  82. Open.Visible = false
  83. Open.Font = Enum.Font.SourceSansBold
  84. Open.FontSize = Enum.FontSize.Size32
  85. Open.Text = "Open"
  86. Open.TextColor3 = Color3.new(0, 0, 0)
  87. Open.TextSize = 30
  88.  
  89. local frame = game.CoreGui.KillGui.Frame
  90.  
  91. held = false
  92. base = UDim2.new(0,0,0,0)
  93.  
  94. frame.Drag.MouseButton1Down:connect(function(x,y)
  95. base = UDim2.new(0,x,0,y) - frame.Position
  96. held = true
  97. end)
  98. frame.Drag.MouseButton1Up:connect(function()
  99. base = UDim2.new(0,0,0,0)
  100. held = false
  101. end)
  102. frame.Drag.Parent.MouseMoved:connect(function(x,y)
  103. if held then
  104. frame.Position = UDim2.new(0,x,0,y) - base
  105. end
  106. end)
  107.  
  108. frame.Close.MouseButton1Click:connect(function()
  109. frame.Visible = false
  110. frame.Parent.Open.Visible = true
  111. end)
  112.  
  113. frame.Parent.Open.MouseButton1Click:connect(function()
  114. frame.Visible = true
  115. frame.Parent.Open.Visible = false
  116. end)
  117.  
  118. frame.Kill.MouseButton1Click:connect(function()
  119. game.ReplicatedStorage.RemoteEvents.Kill:FireServer(workspace:FindFirstChild(frame.Box.Text).Humanoid)
  120. end)
  121.  
  122. frame.KillAll.MouseButton1Click:connect(function()
  123. for _,v in pairs(game.Players:GetChildren()) do
  124. game.ReplicatedStorage.RemoteEvents.Kill:FireServer(v.Character.Humanoid)
  125. end
  126. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement