airsoftjake1

Untitled

Sep 22nd, 2018
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.80 KB | None | 0 0
  1. --[AimBot Settings]--
  2. local FreeForAll = false
  3.  
  4. local AimingFor = "Head"
  5.  
  6. local AutoAim = false
  7.  
  8. local Chams = true
  9.  
  10. local PointToAiming = false
  11.  
  12. local IgnoreFOV = false
  13. --[End AimBot Settings]--
  14.  
  15. --[AimBot HotKeys]--
  16. local ModeSwitch = "Q" --Changes whether games FFA or TDM (shoot at all or only enemies).
  17.  
  18. local AimSwitch = "E" --Change where to shoot at the 'Head' or 'HumanoidRootPart'.
  19.  
  20. local AutoAimKey = "P" --Change whether you manually lockon or auto-lockon.
  21.  
  22. local ChamSwitch = "T" --Change whether chams(esp) is disabled or enabled)
  23.  
  24. local PointSwitch = "I" --Change wherer to render a line between you and who you're aiming at.
  25.  
  26. local WallSwitch = "Y" --Change whether to be able to aim at people through walls.
  27. --[End AimBot HotKeys]--
  28.  
  29. --[[
  30. NOTHING BELOW HERE NEEDS TO BE EDITED
  31. NOTHING BELOW HERE NEEDS TO BE EDITED
  32. NOTHING BELOW HERE NEEDS TO BE EDITED
  33. NOTHING BELOW HERE NEEDS TO BE EDITED
  34. --]]
  35.  
  36. --[[
  37.  
  38. /$$$$$$ /$$ /$$ /$$$$$$$ /$$$$$$ /$$
  39. /$$__ $$ | $$ | $$ | $$__ $$ /$$__ $$ | $$
  40. | $$ \__/ /$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$$ | $$ \ $$ /$$ /$$ /$$ | $$ \__/ /$$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$
  41. | $$ /$$__ $$ /$$__ $$ /$$__ $$ /$$__ $$ | $$$$$$$ | $$ | $$|__/ | $$$$$$ /$$_____/ |____ $$ /$$__ $$|_ $$_/ /$$__ $$ /$$__ $$
  42. | $$ | $$ \ $$| $$ | $$| $$$$$$$$| $$ | $$ | $$__ $$| $$ | $$ \____ $$| $$ /$$$$$$$| $$ \ $$ | $$ | $$$$$$$$| $$ \__/
  43. | $$ $$| $$ | $$| $$ | $$| $$_____/| $$ | $$ | $$ \ $$| $$ | $$ /$$ /$$ \ $$| $$ /$$__ $$| $$ | $$ | $$ /$$| $$_____/| $$
  44. | $$$$$$/| $$$$$$/| $$$$$$$| $$$$$$$| $$$$$$$ | $$$$$$$/| $$$$$$$|__/ | $$$$$$/| $$$$$$$| $$$$$$$| $$$$$$$/ | $$$$/| $$$$$$$| $$
  45. \______/ \______/ \_______/ \_______/ \_______/ |_______/ \____ $$ \______/ \_______/ \_______/| $$____/ \___/ \_______/|__/
  46. /$$ | $$ | $$
  47. | $$$$$$/ | $$
  48. \______/ |__/
  49.  
  50. --]]
  51.  
  52. warn("[ScapAssist] Your Hotkeys Are: ModeSwitch["..ModeSwitch.."], AimSwitch["..AimSwitch.."], AutoAimKey["..AutoAimKey.."], ChamSwitch["..ChamSwitch.."], PointSwitch["..PointSwitch.."], WallSwitch["..WallSwitch.."]")
  53.  
  54. --[Aimbot Hooks]--
  55. local AimingAt = nil
  56.  
  57. local Distance = 0
  58.  
  59. local Camera = game.Workspace.CurrentCamera
  60.  
  61. local Mouse = game.Players.LocalPlayer:GetMouse()
  62.  
  63. local MouseDown = false
  64.  
  65. local Vals = {}
  66.  
  67. local Dist = {}
  68. --[End Aimbot Hooks]--
  69.  
  70. --[Aimbot Framework]--
  71. game:GetService("RunService").RenderStepped:connect(function()
  72. if game.Workspace:FindFirstChild(game.Players.LocalPlayer.Name) then
  73. for i,c in pairs(Vals) do
  74. table.remove(Vals, i)
  75. end
  76. for i,c in pairs(Dist) do
  77. table.remove(Dist, i)
  78. end
  79. for _,v in pairs(game.Players:GetChildren()) do
  80. if game.Workspace:FindFirstChild(v.Name) then
  81. if FreeForAll == true then
  82. if v.Name ~= game.Players.LocalPlayer.Name and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild(AimingFor) and game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
  83. local Distance = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position-v.Character.HumanoidRootPart.Position).magnitude
  84. local Position,Bool = Camera:WorldToScreenPoint(v.Character[AimingFor].Position)
  85. if IgnoreFOV == false then
  86. if Bool == true then
  87. table.insert(Vals, {v.Name, Distance})
  88. table.insert(Dist, Distance)
  89. end
  90. else
  91. table.insert(Vals, {v.Name, Distance})
  92. table.insert(Dist, Distance)
  93. end
  94. end
  95. elseif FreeForAll == false then
  96. if v.Name ~= game.Players.LocalPlayer.Name and v.TeamColor ~= game.Players.LocalPlayer.TeamColor and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild(AimingFor) and game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
  97. local Distance = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position-v.Character.HumanoidRootPart.Position).magnitude
  98. local Position,Bool = Camera:WorldToScreenPoint(v.Character[AimingFor].Position)
  99. if IgnoreFOV == false then
  100. if Bool == true then
  101. table.insert(Vals, {v.Name, Distance})
  102. table.insert(Dist, Distance)
  103. end
  104. else
  105. table.insert(Vals, {v.Name, Distance})
  106. table.insert(Dist, Distance)
  107. end
  108. end
  109. end
  110. end
  111. end
  112. for _,t in pairs(Vals) do
  113. if t[2] == math.min(unpack(Dist)) then
  114. AimingAt = t[1]
  115. end
  116. end
  117. if AutoAim == true or MouseDown == true and AimingAt ~= nil and game.Players[AimingAt].Character:FindFirstChild(AimingFor) and game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
  118. local Position,Bool = Camera:WorldToScreenPoint(game.Players[AimingAt].Character[AimingFor].Position)
  119. if IgnoreFOV == true then
  120. if game.Players[AimingAt].Character:FindFirstChild(AimingFor) then
  121. Camera.CoordinateFrame = CFrame.new(Camera.Focus.p, game.Players[AimingAt].Character[AimingFor].Position)
  122. end
  123. elseif IgnoreFOV == false then
  124. if game.Players[AimingAt].Character:FindFirstChild(AimingFor) and Bool == true then
  125. Camera.CoordinateFrame = CFrame.new(Camera.Focus.p, game.Players[AimingAt].Character[AimingFor].Position)
  126. end
  127. end
  128. end
  129.  
  130. if PointToAiming and AimingAt ~= nil and game.Players[AimingAt].Character:FindFirstChild(AimingFor) and game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
  131. if game.Players[AimingAt].Character[AimingFor]:FindFirstChild("Attachment") then
  132. game.Players[AimingAt].Character[AimingFor].Attachment:Destroy()
  133. end
  134. local Attach = Instance.new("Attachment")
  135. Attach.Parent = game.Players[AimingAt].Character[AimingFor]
  136. if game.Players.LocalPlayer.Character.HumanoidRootPart:FindFirstChild("Attachment") then
  137. game.Players.LocalPlayer.Character.HumanoidRootPart.Attachment:Destroy()
  138. end
  139. local Attach2 = Instance.new("Attachment")
  140. Attach.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  141. if game.Players.LocalPlayer.Character.HumanoidRootPart:FindFirstChild("RodConstraint") then
  142. game.Players.LocalPlayer.Character.HumanoidRootPart.RodConstraint:Destroy()
  143. end
  144. local Con = Instance.new("RodConstraint")
  145. Con.Attachment0 = Attach
  146. Con.Attachment1 = Attach2
  147. Con.Visible = true
  148. Con.Thickness = 5
  149. Con.Color = BrickColor.new("Lime green")
  150. Con.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  151. elseif not PointToAiming then
  152. if game.Players.LocalPlayer.Character.HumanoidRootPart:FindFirstChild("RodConstraint") then
  153. game.Players.LocalPlayer.Character.HumanoidRootPart.RodConstraint:Destroy()
  154. end
  155. end
  156.  
  157. if Chams and AimingAt ~= nil and game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
  158. for _,q in pairs(Camera:GetChildren()) do
  159. if q:IsA("BoxHandleAdornment") then
  160. q:Destroy()
  161. end
  162. end
  163. for _,v in pairs(game.Players:GetChildren()) do
  164. if v.Name ~= game.Players.LocalPlayer.Name and game.Workspace:FindFirstChild(v.Name) then
  165. for _,c in pairs(v.Character:GetChildren()) do
  166. if c:IsA("BasePart") then
  167. if v.TeamColor == game.Players.LocalPlayer.TeamColor then
  168. local esp = Instance.new("BoxHandleAdornment", Camera)
  169. esp.Color3 = Color3.new(0, 255, 0)
  170. esp.Size = c.Size
  171. esp.AlwaysOnTop = true
  172. esp.ZIndex = 1
  173. esp.Adornee = c
  174. elseif v.TeamColor ~= game.Players.LocalPlayer.TeamColor then
  175. local esp = Instance.new("BoxHandleAdornment", Camera)
  176. esp.Color3 = Color3.new(255, 0, 0)
  177. esp.Size = c.Size
  178. esp.AlwaysOnTop = true
  179. esp.ZIndex = 1
  180. esp.Adornee = c
  181. end
  182. end
  183. end
  184. end
  185. end
  186. elseif not Chams then
  187. for _,q in pairs(Camera:GetChildren()) do
  188. if q:IsA("BoxHandleAdornment") then
  189. q:Destroy()
  190. end
  191. end
  192. end
  193. end
  194. end)
  195.  
  196. game:GetService("UserInputService").InputBegan:connect(function(key)
  197. if key.UserInputType == Enum.UserInputType.Keyboard then
  198. if key.KeyCode == Enum.KeyCode[ModeSwitch] then
  199. if FreeForAll == true then
  200. FreeForAll = false
  201. warn("[ScapAssist] FreeForAll set to: false")
  202. else
  203. FreeForAll = true
  204. warn("[ScapAssist] FreeForAll set to: true")
  205. end
  206. elseif key.KeyCode == Enum.KeyCode[AimSwitch] then
  207. if AimingFor == "Head" then
  208. AimingFor = "HumanoidRootPart"
  209. elseif AimingFor == "HumanoidRootPart" then
  210. AimingFor = "Head"
  211.  
  212. end
  213. warn("[ScapAssist] AimingFor set to: "..AimingFor)
  214. elseif key.KeyCode == Enum.KeyCode[AutoAimKey] then
  215. if AutoAim == true then
  216. AutoAim = false
  217. warn("[ScapAssist] AutoAim set to: false")
  218. else
  219. AutoAim = true
  220. warn("[ScapAssist] AutoAim set to: true")
  221. end
  222. elseif key.KeyCode == Enum.KeyCode[ChamSwitch] then
  223. if Chams == true then
  224. Chams = false
  225. warn("[ScapAssist] Chams set to: false")
  226. else
  227. Chams = true
  228. warn("[ScapAssist] Chams set to: true")
  229. end
  230. end
  231. end
  232. end)
  233.  
  234. Mouse.Button2Down:connect(function()
  235. MouseDown = true
  236. end)
  237.  
  238. Mouse.Button2Up:connect(function()
  239. MouseDown = false
  240. end)
  241. --[End Aimbot Framework]--
Add Comment
Please, Sign In to add comment