Advertisement
Guest User

OP aimbot script | Roblox

a guest
Jul 12th, 2022
1,925
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.30 KB | None | 0 0
  1. -- Instances:
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local Frame = Instance.new("Frame")
  5. local Credits = Instance.new("Frame")
  6. local TXT = Instance.new("TextLabel")
  7. local UICorner = Instance.new("UICorner")
  8. local Menu = Instance.new("ScrollingFrame")
  9. local UIListLayout = Instance.new("UIListLayout")
  10. local AimBot = Instance.new("TextButton")
  11. local UICorner_2 = Instance.new("UICorner")
  12. local Credit = Instance.new("TextButton")
  13. local UICorner_3 = Instance.new("UICorner")
  14. local pre = Instance.new("Frame")
  15. local AimBotGui = Instance.new("Frame")
  16. local aimbot = Instance.new("TextLabel")
  17. local UICorner_4 = Instance.new("UICorner")
  18. local ONOFF = Instance.new("TextButton")
  19. local UICorner_5 = Instance.new("UICorner")
  20. local Menu_2 = Instance.new("TextButton")
  21. local UICorner_6 = Instance.new("UICorner")
  22.  
  23. --Properties:
  24.  
  25. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  26. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  27.  
  28. Frame.Parent = ScreenGui
  29. Frame.BackgroundColor3 = Color3.fromRGB(170, 0, 255)
  30. Frame.BorderColor3 = Color3.fromRGB(100, 0, 150)
  31. Frame.BorderSizePixel = 4
  32. Frame.Position = UDim2.new(0.157318741, 0, 0.119289339, 0)
  33. Frame.Size = UDim2.new(0.684678495, 0, 0.761421323, 0)
  34. Frame.Visible = false
  35.  
  36. Credits.Name = "Credits"
  37. Credits.Parent = Frame
  38. Credits.BackgroundColor3 = Color3.fromRGB(170, 0, 255)
  39. Credits.BorderColor3 = Color3.fromRGB(100, 0, 150)
  40. Credits.BorderSizePixel = 4
  41. Credits.Position = UDim2.new(0.2013188, 0, -0.000710652675, 0)
  42. Credits.Size = UDim2.new(0.7986812, 0, 1.00071061, 0)
  43. Credits.Visible = false
  44.  
  45. TXT.Name = "TXT"
  46. TXT.Parent = Credits
  47. TXT.BackgroundColor3 = Color3.fromRGB(80, 0, 120)
  48. TXT.Position = UDim2.new(-0.00250632153, 0, 0, 0)
  49. TXT.Size = UDim2.new(1.00250626, 0, 0.333806753, 0)
  50. TXT.Font = Enum.Font.GothamBold
  51. TXT.Text = "MADE BY RUXTS#2176"
  52. TXT.TextColor3 = Color3.fromRGB(170, 0, 255)
  53. TXT.TextSize = 14.000
  54. TXT.TextStrokeTransparency = 0.000
  55.  
  56. UICorner.CornerRadius = UDim.new(0, 3)
  57. UICorner.Parent = TXT
  58.  
  59. Menu.Name = "Menu"
  60. Menu.Parent = Frame
  61. Menu.Active = true
  62. Menu.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  63. Menu.BackgroundTransparency = 1.000
  64. Menu.Position = UDim2.new(-1.52435469e-08, 0, 0, 0)
  65. Menu.Size = UDim2.new(0.199317083, 0, 1, 0)
  66. Menu.ScrollBarThickness = 0
  67.  
  68. UIListLayout.Parent = Menu
  69. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  70. UIListLayout.Padding = UDim.new(0, 2)
  71.  
  72. AimBot.Name = "AimBot"
  73. AimBot.Parent = Menu
  74. AimBot.BackgroundColor3 = Color3.fromRGB(80, 0, 120)
  75. AimBot.Size = UDim2.new(1, 0, 0.0500000007, 0)
  76. AimBot.Font = Enum.Font.GothamBold
  77. AimBot.Text = "Aim Bot"
  78. AimBot.TextColor3 = Color3.fromRGB(170, 0, 255)
  79. AimBot.TextSize = 14.000
  80. AimBot.TextStrokeTransparency = 0.000
  81.  
  82. UICorner_2.CornerRadius = UDim.new(0, 3)
  83. UICorner_2.Parent = AimBot
  84.  
  85. Credit.Name = "Credit"
  86. Credit.Parent = Menu
  87. Credit.BackgroundColor3 = Color3.fromRGB(80, 0, 120)
  88. Credit.Size = UDim2.new(1, 0, 0.0500000007, 0)
  89. Credit.Font = Enum.Font.GothamBold
  90. Credit.Text = "Credits"
  91. Credit.TextColor3 = Color3.fromRGB(170, 0, 255)
  92. Credit.TextSize = 14.000
  93. Credit.TextStrokeTransparency = 0.000
  94.  
  95. UICorner_3.CornerRadius = UDim.new(0, 3)
  96. UICorner_3.Parent = Credit
  97.  
  98. pre.Name = "pre"
  99. pre.Parent = Frame
  100. pre.BackgroundColor3 = Color3.fromRGB(170, 0, 255)
  101. pre.BorderColor3 = Color3.fromRGB(100, 0, 150)
  102. pre.BorderSizePixel = 4
  103. pre.Position = UDim2.new(0.201318741, 0, -0.000710652675, 0)
  104. pre.Size = UDim2.new(0.798681438, 0, 1.00071061, 0)
  105.  
  106. AimBotGui.Name = "AimBotGui"
  107. AimBotGui.Parent = Frame
  108. AimBotGui.BackgroundColor3 = Color3.fromRGB(170, 0, 255)
  109. AimBotGui.BorderColor3 = Color3.fromRGB(100, 0, 150)
  110. AimBotGui.BorderSizePixel = 4
  111. AimBotGui.Position = UDim2.new(0.2013188, 0, -0.000710652675, 0)
  112. AimBotGui.Size = UDim2.new(0.7986812, 0, 1.00071061, 0)
  113. AimBotGui.Visible = false
  114.  
  115. aimbot.Name = "aimbot"
  116. aimbot.Parent = AimBotGui
  117. aimbot.BackgroundColor3 = Color3.fromRGB(80, 0, 120)
  118. aimbot.Position = UDim2.new(-0.00250632153, 0, 0, 0)
  119. aimbot.Size = UDim2.new(0.877745628, 0, 0.100639135, 0)
  120. aimbot.Font = Enum.Font.GothamBold
  121. aimbot.Text = "ENABLE AIMBOT"
  122. aimbot.TextColor3 = Color3.fromRGB(170, 0, 255)
  123. aimbot.TextSize = 14.000
  124. aimbot.TextStrokeTransparency = 0.000
  125.  
  126. UICorner_4.CornerRadius = UDim.new(0, 3)
  127. UICorner_4.Parent = aimbot
  128.  
  129. ONOFF.Name = "ON/OFF"
  130. ONOFF.Parent = aimbot
  131. ONOFF.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  132. ONOFF.Position = UDim2.new(1.00000012, 0, 0, 0)
  133. ONOFF.Size = UDim2.new(0.143000007, 0, 1, 0)
  134. ONOFF.Font = Enum.Font.SourceSans
  135. ONOFF.Text = "OFF"
  136. ONOFF.TextColor3 = Color3.fromRGB(0, 0, 0)
  137. ONOFF.TextSize = 14.000
  138.  
  139. UICorner_5.CornerRadius = UDim.new(0, 3)
  140. UICorner_5.Parent = ONOFF
  141.  
  142. Menu_2.Name = "Menu"
  143. Menu_2.Parent = ScreenGui
  144. Menu_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  145. Menu_2.BackgroundTransparency = 1.000
  146. Menu_2.Position = UDim2.new(0.930232525, 0, 0.870558441, 0)
  147. Menu_2.Size = UDim2.new(0.0690834448, 0, 0.126903579, 0)
  148. Menu_2.Font = Enum.Font.GothamBold
  149. Menu_2.Text = "Menu"
  150. Menu_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  151. Menu_2.TextSize = 14.000
  152. Menu_2.TextStrokeTransparency = 0.000
  153.  
  154. UICorner_6.CornerRadius = UDim.new(0, 3)
  155. UICorner_6.Parent = Menu_2
  156.  
  157. -- Scripts:
  158.  
  159. local function UQIDQ_fake_script() -- AimBot.LocalScript
  160. local script = Instance.new('LocalScript', AimBot)
  161.  
  162. local aimbotToggle = false
  163.  
  164. script.Parent.MouseButton1Click:Connect(function()
  165. if aimbotToggle == false then
  166. aimbotToggle = true
  167. script.Parent.Parent.Parent.AimBotGui.Visible = true
  168. script.Parent.Parent.Parent.pre.Visible = false
  169. else
  170. aimbotToggle = false
  171. script.Parent.Parent.Parent.AimBotGui.Visible = false
  172. script.Parent.Parent.Parent.pre.Visible = true
  173. end
  174. end)
  175. end
  176. coroutine.wrap(UQIDQ_fake_script)()
  177. local function BAHW_fake_script() -- Credit.LocalScript
  178. local script = Instance.new('LocalScript', Credit)
  179.  
  180. local Credits = false
  181.  
  182. script.Parent.MouseButton1Click:Connect(function()
  183. if Credits == false then
  184. Credits = true
  185. script.Parent.Parent.Parent.Credits.Visible = true
  186. script.Parent.Parent.Parent.pre.Visible = false
  187. else
  188. Credits = false
  189. script.Parent.Parent.Parent.Credits.Visible = false
  190. script.Parent.Parent.Parent.pre.Visible = true
  191. end
  192. end)
  193. end
  194. coroutine.wrap(BAHW_fake_script)()
  195. local function STAA_fake_script() -- ONOFF.LocalScript
  196. local script = Instance.new('LocalScript', ONOFF)
  197.  
  198. _G.aimbot = false
  199. local camera = game.Workspace.CurrentCamera
  200. local localplayer = game:GetService("Players").LocalPlayer
  201.  
  202. script.Parent.MouseButton1Click:Connect(function()
  203. if _G.aimbot == false then
  204. _G.aimbot = true
  205. script.Parent.BackgroundColor3 = Color3.fromRGB(0,255,0)
  206. script.Parent.Text = "ON"
  207. function closestplayer()
  208. local dist = math.huge
  209. local target = nil
  210. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  211. if v ~= localplayer then
  212. if v.Character and v.Character:FindFirstChild("Head") and v.TeamColor ~= localplayer.Team and _G.aimbot then
  213. local magnitude = (v.Character.Head.Position - localplayer.Character.Head.Position).magnitude
  214. if magnitude < dist then
  215. dist = magnitude
  216. target = v
  217. end
  218. end
  219. end
  220. end
  221. return target
  222. end
  223. else
  224. _G.aimbot = false
  225. script.Parent.BackgroundColor3 = Color3.fromRGB(255,0,0)
  226. script.Parent.Text = "OFF"
  227. end
  228. end)
  229.  
  230. local setting = {
  231. aimbotKeybind = Enum.UserInputType.MouseButton2
  232. }
  233.  
  234. local UIS = game:GetService("UserInputService")
  235. local aiming = false
  236.  
  237. UIS.InputBegan:Connect(function(inp)
  238. if inp.UserInputType == settings.aimbotKeybind then
  239. aiming = true
  240. end
  241. end)
  242.  
  243. UIS.InputEnded:Connect(function(inp)
  244. if inp.UserInputType == settings.aimbotKeybind then
  245. aiming = false
  246. end
  247. end)
  248.  
  249. game:GetService("RunService").RenderStepped:Connect(function()
  250. camera.CFrame = CFrame.new(camera.CFrame.Position,closestplayer().Character.Head.Position)
  251. end)
  252. end
  253. coroutine.wrap(STAA_fake_script)()
  254. local function QJDTS_fake_script() -- Menu_2.LocalScript
  255. local script = Instance.new('LocalScript', Menu_2)
  256.  
  257. local toggle = false
  258.  
  259. script.Parent.MouseButton1Click:Connect(function()
  260. if toggle == false then
  261. toggle = true
  262. script.Parent.Parent.Frame.Visible = true
  263. else
  264. toggle = false
  265. script.Parent.Parent.Frame.Visible = false
  266. end
  267. end)
  268. end
  269. coroutine.wrap(QJDTS_fake_script)()
  270.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement