Advertisement
Guest User

Kohls Admin House GUI

a guest
May 3rd, 2019
21,138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 5.85 KB | None | 0 0
  1. -- Kohls Admin House GUI by Dearth
  2. -- Instances:
  3. local HaxGui = Instance.new("ScreenGui")
  4. local GUI_frame = Instance.new("Frame")
  5. local kohlgui_lbl = Instance.new("TextLabel")
  6. local exit_btn = Instance.new("TextButton")
  7. local options_scrfrm = Instance.new("ScrollingFrame")
  8. local ban_btn = Instance.new("TextButton")
  9. local kick_btn = Instance.new("TextButton")
  10. local plrname_txtbox = Instance.new("TextBox")
  11. local getadmin_btn = Instance.new("TextButton")
  12. local un_btn = Instance.new("TextButton")
  13. local OpenGUI = Instance.new("Frame")
  14. local Open_btn = Instance.new("TextButton")
  15. --Properties:
  16. HaxGui.Name = "HaxGui"
  17. HaxGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  18.  
  19. GUI_frame.Name = "GUI_frame"
  20. GUI_frame.Parent = HaxGui
  21. GUI_frame.BackgroundColor3 = Color3.new(1, 1, 1)
  22. GUI_frame.Position = UDim2.new(0.320406288, 0, 0.227805689, 0)
  23. GUI_frame.Selectable = true
  24. GUI_frame.Size = UDim2.new(0, 511, 0, 324)
  25. GUI_frame.Visible = false
  26.  
  27. kohlgui_lbl.Name = "kohlgui_lbl"
  28. kohlgui_lbl.Parent = GUI_frame
  29. kohlgui_lbl.BackgroundColor3 = Color3.new(0, 0, 0)
  30. kohlgui_lbl.Position = UDim2.new(-0.00053307222, 0, 0, 0)
  31. kohlgui_lbl.Size = UDim2.new(0, 511, 0, 49)
  32. kohlgui_lbl.Font = Enum.Font.SciFi
  33. kohlgui_lbl.Text = "Kohls Admin House GUI"
  34. kohlgui_lbl.TextColor3 = Color3.new(0.180392, 1, 0)
  35. kohlgui_lbl.TextSize = 20
  36.  
  37. exit_btn.Name = "exit_btn"
  38. exit_btn.Parent = GUI_frame
  39. exit_btn.BackgroundColor3 = Color3.new(0, 0, 0)
  40. exit_btn.BorderSizePixel = 0
  41. exit_btn.Position = UDim2.new(0.929257154, 0, -0.00226442516, 0)
  42. exit_btn.Size = UDim2.new(0, 35, 0, 31)
  43. exit_btn.Font = Enum.Font.SourceSans
  44. exit_btn.Text = "x"
  45. exit_btn.TextColor3 = Color3.new(0, 1, 0)
  46. exit_btn.TextSize = 25
  47.  
  48. options_scrfrm.Name = "options_scrfrm"
  49. options_scrfrm.Parent = GUI_frame
  50. options_scrfrm.BackgroundColor3 = Color3.new(0.407843, 0.407843, 0.407843)
  51. options_scrfrm.Position = UDim2.new(-0.00064140663, 0, 0.149978265, 0)
  52. options_scrfrm.Size = UDim2.new(0, 510, 0, 275)
  53.  
  54. ban_btn.Name = "ban_btn"
  55. ban_btn.Parent = options_scrfrm
  56. ban_btn.BackgroundColor3 = Color3.new(0, 0, 0)
  57. ban_btn.BorderColor3 = Color3.new(0, 0, 0)
  58. ban_btn.Position = UDim2.new(0.115509763, 0, 0.131172851, 0)
  59. ban_btn.Size = UDim2.new(0, 176, 0, 42)
  60. ban_btn.Font = Enum.Font.SciFi
  61. ban_btn.Text = "Ban"
  62. ban_btn.TextColor3 = Color3.new(0, 1, 0)
  63. ban_btn.TextSize = 14
  64.  
  65. kick_btn.Name = "kick_btn"
  66. kick_btn.Parent = options_scrfrm
  67. kick_btn.BackgroundColor3 = Color3.new(0, 0, 0)
  68. kick_btn.BorderColor3 = Color3.new(0, 0, 0)
  69. kick_btn.Position = UDim2.new(0.521392107, 0, 0.131172851, 0)
  70. kick_btn.Size = UDim2.new(0, 176, 0, 42)
  71. kick_btn.Font = Enum.Font.SciFi
  72. kick_btn.Text = "Kick"
  73. kick_btn.TextColor3 = Color3.new(0, 1, 0)
  74. kick_btn.TextSize = 14
  75.  
  76. plrname_txtbox.Name = "plrname_txtbox"
  77. plrname_txtbox.Parent = options_scrfrm
  78. plrname_txtbox.BackgroundColor3 = Color3.new(0, 0, 0)
  79. plrname_txtbox.BorderSizePixel = 0
  80. plrname_txtbox.Position = UDim2.new(0.115137666, 0, 0.0354938209, 0)
  81. plrname_txtbox.Size = UDim2.new(0, 383, 0, 50)
  82. plrname_txtbox.Font = Enum.Font.SciFi
  83. plrname_txtbox.Text = "Player Name"
  84. plrname_txtbox.TextColor3 = Color3.new(0, 1, 0)
  85. plrname_txtbox.TextSize = 14
  86.  
  87. getadmin_btn.Name = "getadmin_btn"
  88. getadmin_btn.Parent = options_scrfrm
  89. getadmin_btn.BackgroundColor3 = Color3.new(0, 0, 0)
  90. getadmin_btn.BorderColor3 = Color3.new(0, 0, 0)
  91. getadmin_btn.Position = UDim2.new(0.115509748, 0, 0.223765433, 0)
  92. getadmin_btn.Size = UDim2.new(0, 176, 0, 42)
  93. getadmin_btn.Font = Enum.Font.SciFi
  94. getadmin_btn.Text = "Get Admin"
  95. getadmin_btn.TextColor3 = Color3.new(0, 1, 0)
  96. getadmin_btn.TextSize = 14
  97.  
  98. un_btn.Name = "un_btn"
  99. un_btn.Parent = options_scrfrm
  100. un_btn.BackgroundColor3 = Color3.new(0, 0, 0)
  101. un_btn.BorderColor3 = Color3.new(0, 0, 0)
  102. un_btn.Position = UDim2.new(0.519431353, 0, 0.223765433, 0)
  103. un_btn.Size = UDim2.new(0, 176, 0, 42)
  104. un_btn.Font = Enum.Font.SciFi
  105. un_btn.Text = "Unpunish/Unjail me"
  106. un_btn.TextColor3 = Color3.new(0, 1, 0)
  107. un_btn.TextSize = 14
  108.  
  109. OpenGUI.Name = "OpenGUI"
  110. OpenGUI.Parent = HaxGui
  111. OpenGUI.BackgroundColor3 = Color3.new(1, 1, 1)
  112. OpenGUI.Position = UDim2.new(-0.00092334341, 0, 0.644891083, 0)
  113. OpenGUI.Size = UDim2.new(0, 99, 0, 47)
  114.  
  115. Open_btn.Name = "Open_btn"
  116. Open_btn.Parent = OpenGUI
  117. Open_btn.BackgroundColor3 = Color3.new(0, 0, 0)
  118. Open_btn.Position = UDim2.new(-0.00646352721, 0, -0.0163583755, 0)
  119. Open_btn.Size = UDim2.new(0, 105, 0, 47)
  120. Open_btn.Font = Enum.Font.SciFi
  121. Open_btn.Text = "Open GUI"
  122. Open_btn.TextColor3 = Color3.new(0, 1, 0)
  123. Open_btn.TextSize = 20
  124. -- Scripts:
  125.  
  126. getadmin_btn.MouseButton1Down:connect(function()
  127. now = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  128.  
  129. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  130. =
  131. game.Workspace.Terrain.GameFolder.Admin.Pads['Touch to get admin'].Head.CFrame
  132.  
  133. wait(0.2)
  134.  
  135. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = now
  136. end)
  137.  
  138. un_btn.MouseButton1Down:connect(function()
  139.     wait(1)
  140.     game:GetService'Players':Chat(":unjail me")
  141.     game:GetService'Players':Chat(":unpunish me")
  142. end)
  143.  
  144. function GetPlayer(plrname)
  145.     for _,player in pairs(game.Players:GetPlayers()) do
  146.         if plrname:lower() == player.Name:sub(1,plrname:len()):lower() then
  147.             return player
  148.         end
  149.     end
  150.     return nil
  151. end
  152.  
  153. local Banned = {}
  154.  
  155. ban_btn.MouseButton1Down:connect(function()
  156.     local target = GetPlayer(plrname_txtbox.Text)
  157.     if target then
  158.         table.insert(Banned,target.Name)
  159.         wait(0.5)
  160.         game.Players.LocalPlayer.Backpack.Delete.delete:FireServer(target)
  161. plrname_txtbox.Text = "Banned ! Player Name :" .. plrname_txtbox.Text
  162. print('Banned ! Player Name : ',plrname_txtbox.Text)
  163.     end
  164. end)
  165.  
  166. kick_btn.MouseButton1Down:connect(function()
  167.     local target = GetPlayer(plrname_txtbox.Text)
  168.     if target then
  169.         game.Players.LocalPlayer.Backpack.Delete.delete:FireServer(target)
  170. plrname_txtbox.Text = "Kicked ! Player Name :" .. plrname_txtbox.Text
  171. print("Kicked ! Player Name: ", plrname_txtbox.Text)
  172.     end
  173. end)
  174.  
  175. Open_btn.MouseButton1Down:connect(function()
  176. GUI_frame.Visible = true
  177. end)
  178.  
  179. exit_btn.MouseButton1Down:connect(function()
  180. GUI_frame.Visible = false
  181. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement