Advertisement
Guest User

OP aimbot script | Roblox

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