Advertisement
artbarte

Kick Gui By Mewpo

Apr 28th, 2017
524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.69 KB | None | 0 0
  1. -- Kick Gui By Mewpo (i was looking to contribute so i did this quickly)
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local open = Instance.new("Frame")
  5. local TextButton = Instance.new("TextButton")
  6. local guif = Instance.new("Frame")
  7. local close = Instance.new("Frame")
  8. local TextButton_2 = Instance.new("TextButton")
  9. local pbox = Instance.new("TextBox")
  10. local kickbttn = Instance.new("TextButton")
  11. local TextLabel = Instance.new("TextLabel")
  12. local pgui = game.Players.LocalPlayer.PlayerGui
  13.  
  14. -- Properties
  15.  
  16. ScreenGui.Parent = pgui
  17.  
  18. open.Name = "open"
  19. open.Parent = ScreenGui
  20. open.BackgroundColor3 = Color3.new(0.458824, 0.458824, 0.458824)
  21. open.BackgroundTransparency = 0.30000001192093
  22. open.BorderColor3 = Color3.new(1, 1, 1)
  23. open.BorderSizePixel = 5
  24. open.Position = UDim2.new(0, 769, 0, 0)
  25. open.Size = UDim2.new(0, 118, 0, 28)
  26.  
  27. TextButton.Parent = open
  28. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  29. TextButton.BackgroundTransparency = 1
  30. TextButton.BorderSizePixel = 0
  31. TextButton.Size = UDim2.new(0, 118, 0, 28)
  32. TextButton.Font = Enum.Font.SourceSansItalic
  33. TextButton.FontSize = Enum.FontSize.Size18
  34. TextButton.Text = "Open"
  35. TextButton.TextSize = 18
  36.  
  37. guif.Name = "guif"
  38. guif.Parent = ScreenGui
  39. guif.Active = true
  40. guif.BackgroundColor3 = Color3.new(1, 1, 1)
  41. guif.BackgroundTransparency = 0.20000000298023
  42. guif.BorderColor3 = Color3.new(0.247059, 0.14902, 1)
  43. guif.BorderSizePixel = 10
  44. guif.Draggable = true
  45. guif.Position = UDim2.new(0, 507, 0, 293)
  46. guif.Size = UDim2.new(0, 279, 0, 230)
  47. guif.Visible = false
  48.  
  49. close.Name = "close"
  50. close.Parent = guif
  51. close.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
  52. close.BorderSizePixel = 0
  53. close.Position = UDim2.new(0, 253, 0, 0)
  54. close.Size = UDim2.new(0, 26, 0, 26)
  55.  
  56. TextButton_2.Parent = close
  57. TextButton_2.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
  58. TextButton_2.BackgroundTransparency = 1
  59. TextButton_2.BorderSizePixel = 0
  60. TextButton_2.Position = UDim2.new(0, 0, 0, 1)
  61. TextButton_2.Size = UDim2.new(0, 26, 0, 25)
  62. TextButton_2.Font = Enum.Font.SciFi
  63. TextButton_2.FontSize = Enum.FontSize.Size24
  64. TextButton_2.Text = "X"
  65. TextButton_2.TextColor3 = Color3.new(0.00784314, 0.0196078, 0.027451)
  66. TextButton_2.TextSize = 24
  67.  
  68. pbox.Name = "pbox"
  69. pbox.Parent = guif
  70. pbox.BackgroundColor3 = Color3.new(0.129412, 0.129412, 0.129412)
  71. pbox.BorderColor3 = Color3.new(0.262745, 0.666667, 0.976471)
  72. pbox.BorderSizePixel = 0
  73. pbox.Position = UDim2.new(0, 0, 0, 69)
  74. pbox.Size = UDim2.new(0, 279, 0, 46)
  75. pbox.Font = Enum.Font.SourceSansItalic
  76. pbox.FontSize = Enum.FontSize.Size18
  77. pbox.Text = "Player"
  78. pbox.TextColor3 = Color3.new(0.996078, 0.996078, 0.996078)
  79. pbox.TextSize = 18
  80.  
  81. kickbttn.Name = "kickbttn"
  82. kickbttn.Parent = guif
  83. kickbttn.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  84. kickbttn.BorderColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  85. kickbttn.BorderSizePixel = 0
  86. kickbttn.Position = UDim2.new(0, 40, 0, 174)
  87. kickbttn.Size = UDim2.new(0, 200, 0, 39)
  88. kickbttn.Font = Enum.Font.SourceSansItalic
  89. kickbttn.FontSize = Enum.FontSize.Size28
  90. kickbttn.Text = "Kick"
  91. kickbttn.TextColor3 = Color3.new(1, 1, 1)
  92. kickbttn.TextSize = 28
  93.  
  94. TextLabel.Parent = guif
  95. TextLabel.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  96. TextLabel.BorderSizePixel = 0
  97. TextLabel.Size = UDim2.new(0, 200, 0, 26)
  98. TextLabel.Font = Enum.Font.SourceSansItalic
  99. TextLabel.FontSize = Enum.FontSize.Size18
  100. TextLabel.Text = "Kick GUI by Mewpo"
  101. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  102. TextLabel.TextSize = 18
  103.  
  104. open.TextButton.MouseButton1Down:connect(function()
  105. guif.Visible = true
  106. open.Visible = false
  107. end)
  108.  
  109. close.TextButton.MouseButton1Down:connect(function()
  110. guif.Visible = false
  111. open.Visible = true
  112. end)
  113.  
  114. kickbttn.MouseButton1Down:connect(function()
  115. function senkick(P)
  116. spawn(function()
  117. if P.Character and P.Character:FindFirstChild('HumanoidRootPart') and P.Character:FindFirstChild('Torso') then
  118. P.Character.HumanoidRootPart.CFrame = CFrame.new(math.random(999000, 1001000), 1000000, 1000000)
  119. local SP = Instance.new('SkateboardPlatform', P.Character) SP.Position = P.Character.HumanoidRootPart.Position SP.Transparency = 1
  120. spawn(function()
  121. repeat wait()
  122. if P.Character and P.Character:FindFirstChild('HumanoidRootPart') then SP.Position = P.Character.HumanoidRootPart.Position end
  123. until not game:GetService('Players'):FindFirstChild(P.Name)
  124. end)
  125. P.Character.Torso.Anchored = true
  126. end
  127. end)
  128. repeat wait() senkick(P) until not game:GetService("Players"):FindFirstChild(P)
  129. warn("Player: '"..P.."' was kicked from the game.")
  130. end
  131.  
  132. senkick(game.Players[pbox.text])
  133. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement