SHARE
TWEET

Kick gui by That_Blue_Guy

a guest Aug 24th, 2019 132 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local jakeskickgui = Instance.new("ScreenGui")
  2. local main = Instance.new("Frame")
  3. local title = Instance.new("TextLabel")
  4. local kick = Instance.new("TextButton")
  5. local kicktext = Instance.new("TextBox")
  6. local title_2 = Instance.new("TextLabel")
  7. local close = Instance.new("TextButton")
  8. local openmain = Instance.new("Frame")
  9. local open = Instance.new("TextButton")
  10. --Properties:
  11. jakeskickgui.Name = "jakeskickgui"
  12. jakeskickgui.Parent = game.CoreGui
  13.  
  14. main.Name = "main"
  15. main.Parent = jakeskickgui
  16. main.BackgroundColor3 = Color3.new(0, 0, 0)
  17. main.Position = UDim2.new(0.276372612, 0, 0.55282557, 0)
  18. main.Size = UDim2.new(0, 234, 0, 146)
  19. main.Active = true
  20. main.Draggable = true
  21.  
  22. local Players = game:GetService("Players")
  23. local LocalPlayer = Players.LocalPlayer
  24. local function RemoveSpaces(String)
  25.     return String:gsub("%s+", "") or String
  26. end
  27.  
  28. local function FindPlayer(String)
  29.     String = RemoveSpaces(String)
  30.     for _, _Player in pairs(Players:GetPlayers()) do
  31.         if _Player.Name:lower():match('^'.. String:lower()) then
  32.             return _Player
  33.         end
  34.     end
  35.     return nil
  36. end
  37.  
  38. title.Name = "title"
  39. title.Parent = main
  40. title.BackgroundColor3 = Color3.new(1, 1, 1)
  41. title.Size = UDim2.new(0, 234, 0, 31)
  42. title.Font = Enum.Font.GothamBold
  43. title.Text = "Kick Player Gui"
  44. title.TextColor3 = Color3.new(0, 0, 0)
  45. title.TextSize = 14
  46.  
  47. kick.Name = "kick"
  48. kick.Parent = main
  49. kick.BackgroundColor3 = Color3.new(1, 1, 1)
  50. kick.Position = UDim2.new(0.0726495758, 0, 0.534832001, 0)
  51. kick.Size = UDim2.new(0, 200, 0, 33)
  52. kick.Font = Enum.Font.GothamBlack
  53. kick.Text = "KICK"
  54. kick.TextColor3 = Color3.new(0, 0, 0)
  55. kick.TextSize = 14
  56. kick.MouseButton1Down:connect(function()
  57.     local kick = FindPlayer(kicktext.Text)
  58. for i,v in pairs(game.Players:GetChildren()) do
  59. if kick and kick.Character then
  60. if kick.TeamColor.Name == "Medium stone grey" then
  61. Workspace.Remote.TeamEvent:FireServer("Medium stone grey")
  62. wait(0.1)
  63. for l=1,10 do
  64. if v.Name == (kick.Name) then
  65. if v.Name ~= "jake11pric" then
  66. local tbl_main =
  67. {
  68.       "Start",
  69.       v
  70. }
  71. game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))
  72.  
  73. local tbl_main =
  74. {
  75.       "Vote"
  76. }
  77. game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))
  78. end
  79. end
  80. end
  81.         game:GetService("StarterGui"):SetCore("SendNotification", {
  82.         Title = "Kicking";
  83.         Text = (kick.Name);
  84.         })
  85. else
  86. if v.Name == (kick.Name) then
  87. if v.Name ~= "jake11pric" then
  88. saved = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  89. local tbl_main =
  90. {
  91.       game:GetService("Players").LocalPlayer,
  92.       (kick.TeamColor.Name)
  93. }
  94. game:GetService("Workspace").Remote.loadchar:InvokeServer(unpack(tbl_main))
  95. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = saved
  96. for l=1,10 do
  97. local tbl_main =
  98. {
  99.       "Start",
  100.       v
  101. }
  102. game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))
  103.  
  104. local tbl_main =
  105. {
  106.       "Vote"
  107. }
  108. game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))
  109. end
  110. end
  111. end
  112. end
  113. end
  114. end
  115.         game:GetService("StarterGui"):SetCore("SendNotification", {
  116.         Title = "Kicking";
  117.         Text = (kick.Name);
  118.         })
  119. end)
  120.  
  121. kicktext.Name = "kicktext"
  122. kicktext.Parent = main
  123. kicktext.BackgroundColor3 = Color3.new(1, 1, 1)
  124. kicktext.Position = UDim2.new(0.0726495758, 0, 0.254595488, 0)
  125. kicktext.Size = UDim2.new(0, 200, 0, 30)
  126. kicktext.Font = Enum.Font.Gotham
  127. kicktext.Text = "PlayerName"
  128. kicktext.TextColor3 = Color3.new(0, 0, 0)
  129. kicktext.TextSize = 14
  130.  
  131. title_2.Name = "title"
  132. title_2.Parent = main
  133. title_2.BackgroundColor3 = Color3.new(1, 1, 1)
  134. title_2.Position = UDim2.new(0, 0, 0.801369846, 0)
  135. title_2.Size = UDim2.new(0, 234, 0, 29)
  136. title_2.Font = Enum.Font.GothamBlack
  137. title_2.Text = "Made By Determined"
  138. title_2.TextColor3 = Color3.new(0, 0, 0)
  139. title_2.TextSize = 14
  140.  
  141. close.Name = "close"
  142. close.Parent = main
  143. close.BackgroundColor3 = Color3.new(0, 0, 0)
  144. close.Position = UDim2.new(0.85042733, 0, 0, 0)
  145. close.Size = UDim2.new(0, 35, 0, 31)
  146. close.Font = Enum.Font.GothamBold
  147. close.Text = "X"
  148. close.TextColor3 = Color3.new(1, 0, 0)
  149. close.TextScaled = true
  150. close.TextSize = 14
  151. close.TextWrapped = true
  152. close.MouseButton1Down:connect(function()
  153. main.Visible = false
  154. openmain.Visible = true
  155. end)
  156.  
  157. openmain.Name = "openmain"
  158. openmain.Parent = jakeskickgui
  159. openmain.BackgroundColor3 = Color3.new(0, 0, 0)
  160. openmain.Position = UDim2.new(0.00431832112, 0, 0.886977911, 0)
  161. openmain.Size = UDim2.new(0, 100, 0, 27)
  162. openmain.Visible = false
  163.  
  164. open.Name = "open"
  165. open.Parent = openmain
  166. open.BackgroundColor3 = Color3.new(0, 0, 0)
  167. open.Size = UDim2.new(0, 100, 0, 27)
  168. open.Font = Enum.Font.GothamBold
  169. open.Text = "OPEN"
  170. open.TextColor3 = Color3.new(1, 1, 1)
  171. open.TextSize = 14
  172. open.MouseButton1Down:connect(function()
  173. openmain.Visible = false
  174. main.Visible = true
  175. end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top