KingPhantom

bb-test

Nov 20th, 2019
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.67 KB | None | 0 0
  1. --[[
  2. Documentation:
  3.  
  4.  
  5. Todo:
  6.  
  7.  
  8. --]]
  9.  
  10.  
  11.  
  12. local player = game:GetService("Players").LocalPlayer
  13.  
  14. local RunService = game:GetService("RunService")
  15. local TweenService = game:GetService("TweenService")
  16. local UserInput = game:GetService("UserInputService")
  17. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  18. local CollectionService = game:GetService("CollectionService")
  19. local UserInputService = game:GetService("UserInputService")
  20. local StarterGui = game:GetService("StarterGui")
  21.  
  22. local UI = {}
  23. local Whitelist = {}
  24. local Webhook = {}
  25. local Hack = {}
  26. local Util = {}
  27. local Client = {}
  28.  
  29. ----------------------------|| SETUP ||----------------------------
  30.  
  31. --for i,v in pairs(getreg()) do
  32. -- if type(v) == "function" then
  33. -- for a,b in pairs(debug.getupvalues(v)) do
  34. --
  35. -- end
  36. -- end
  37. --end
  38.  
  39. -------------------------------------------------------------------
  40.  
  41. do --// Gui functions
  42. local self = UI
  43.  
  44. self.base = Instance.new("ScreenGui",RunService:IsStudio() and player.PlayerGui or game.CoreGui)
  45. self.menus = {}
  46.  
  47. function self:AddMenu(name)
  48. local frame = Instance.new("Frame",self.base)
  49. local title = Instance.new("TextLabel",self.base)
  50.  
  51. frame.Name = name
  52. frame.BackgroundColor3 = Color3.fromRGB(58,58,58)
  53. frame.BackgroundTransparency = 0.1
  54. frame.BorderSizePixel = 0
  55. frame.Position = UDim2.new(0.22,(236 * #self.menus) + 20, 0, 70)
  56. frame.Size = UDim2.new(0, 210, 0, 0)
  57.  
  58. title.Name = name.."_title"
  59. title.BackgroundColor3 = Color3.fromRGB(38,38,38)
  60. title.BackgroundTransparency = 0.1
  61. title.BorderSizePixel = 0
  62. title.Position = UDim2.new(0.22, (236 * #self.menus) + 20, 0, 15)
  63. title.Size = UDim2.new(0, 210, 0, 45)
  64. title.Font = Enum.Font.SourceSansBold
  65. title.Text = name
  66. title.TextColor3 = Color3.new(1, 1, 1)
  67. title.TextSize = 25
  68.  
  69. self.menus[#self.menus + 1] = {name = name,frame = frame,buttons = {}}
  70.  
  71. frame.ChildAdded:Connect(function(obj)
  72. frame.Size = frame.Size + UDim2.new(0,0,0,obj.Size.Y.Offset)
  73. end)
  74. end
  75.  
  76. local color = false
  77. function self:AddButton(frame,name,text,toggle,bind,onclick)
  78. if not self.base:FindFirstChild(frame) then error("Frame does not exist") end
  79.  
  80. local _tog
  81. local _bind
  82.  
  83. local btn = Instance.new("TextButton",self.base[frame])
  84. btn.Size = UDim2.new(1,0,0,25)
  85. btn.Position = UDim2.new(0,0,0,(#self.base[frame]:GetChildren() - 1) * 25)
  86. btn.BackgroundColor3 = color and Color3.fromRGB(58,58,58) or Color3.fromRGB(38,38,38);color = not color
  87. btn.BorderSizePixel = 0
  88. btn.Name = name
  89. btn.Text = text
  90. btn.Font = Enum.Font.SourceSansLight
  91. btn.TextSize = 20
  92. btn.TextColor3 = Color3.new(1,1,1)
  93.  
  94. if toggle then
  95. local tog = Instance.new("TextLabel",btn)
  96. tog.Size = UDim2.new(0.15,0,1,0)
  97. tog.AnchorPoint = Vector2.new(1,0)
  98. tog.Position = UDim2.new(1,0,0,0)
  99. tog.BackgroundTransparency = 1
  100. tog.Font = Enum.Font.SourceSansSemibold
  101. tog.TextColor3 = Color3.new(1,0,0)
  102. tog.Text = "OFF"
  103. tog.TextSize = 15
  104.  
  105. _tog = tog
  106. end
  107.  
  108. if bind then
  109. if Client[bind] ~= nil then
  110. _bind = true
  111. end
  112. end
  113.  
  114. local toggled = false
  115. btn.MouseButton1Click:Connect(function()
  116. if _tog then
  117. toggled = not toggled
  118.  
  119. _tog.Text = toggled and "ON" or "OFF"
  120. _tog.TextColor3 = toggled and Color3.new(0,1,0) or Color3.new(1,0,0)
  121.  
  122. if _bind then
  123. Client[bind] = toggled
  124. end
  125. else
  126. if _bind then
  127. Client[bind]()
  128. end
  129. end
  130. end)
  131. end
  132. end
  133.  
  134. do -- Client
  135. local self = Client
  136.  
  137.  
  138. end
  139.  
  140. UI:AddMenu("Cheats")
  141. UI:AddMenu("Settings")
  142.  
  143. UI:AddButton("Cheats","Aimbot","Aimbot",true,"Aimbot")
  144.  
  145. RunService.RenderStepped:Connect(function()
  146.  
  147. end)
Advertisement
Add Comment
Please, Sign In to add comment