ROBYPASSBLOX

Khols admin house script

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