TeagueHewlett

Assassin Aimbot Script

Jun 2nd, 2019
90,374
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Only works for target road unds. Not FFA or Infected.
  2. --Just cick to kill a random person. (The box around you is a "person")
  3.  
  4. --Only works for target rounds. Not FFA or Infected.
  5. --Just cick to kill a random person. (The box around you is a "person")
  6.  
  7. local Players = game:GetService("Players")
  8. local Player = Players.LocalPlayer
  9. local Mouse = Player:GetMouse()
  10.  
  11. local Enabled = false
  12. Mouse.KeyDown:connect(function(key)
  13. key = key:upper()
  14. if key == "X" then
  15. if Enabled then
  16. Enabled = false
  17. print("Disabled")
  18. else
  19. Enabled = true
  20. print("Enabled")
  21. end
  22. end
  23. end)
  24.  
  25. local Hitbox = Instance.new("Part")
  26. Hitbox.Transparency = 0.6
  27. Hitbox.Color = Color3.new(1, 1, 1)
  28. Hitbox.Size = Vector3.new(3, 3, 3)
  29. Hitbox.Material = "SmoothPlastic"
  30. Hitbox.CanCollide = false
  31. Hitbox.Anchored = true
  32.  
  33. local S = Instance.new("SelectionBox", Hitbox)
  34. S.Adornee = Hitbox
  35. S.Transparency = 0.3
  36. S.SurfaceTransparency = 1
  37. S.Color3 = Color3.new(0, 0, 0)
  38. S.LineThickness = 0.05
  39.  
  40. game:GetService("RunService"):BindToRenderStep(tostring(math.random(1, 10000)), 1, function()
  41. if Player and Player.Character then
  42. if Player.Character:findFirstChild("HumanoidRootPart") then
  43. local HRP = Player.Character:findFirstChild("HumanoidRootPart")
  44. Hitbox.CFrame = HRP.CFrame * CFrame.new(0, 0, 0)
  45. end
  46. if Player.PlayerGui.ScreenGui.UI.Target.Visible == false then
  47. Hitbox.Transparency = 1
  48. else
  49. Hitbox.Transparency = 0.6
  50. end
  51. end
  52. end)
  53.  
  54. function c3lerp(a,b,t)
  55. return Color3.new(a.r * (1-t) + (b.r*t),a.g * (1-t) + (b.g*t),a.b * (1-t) + (b.b*t))
  56. end
  57.  
  58. local Rainbow = {
  59. Color3.new(1,0,0);
  60. Color3.new(0,1,0);
  61. Color3.new(0,0,1);
  62. Color3.new(0,1,1);
  63. Color3.new(1,0,1);
  64. Color3.new(1,1,0);
  65. }
  66.  
  67. spawn(function()
  68. while true do
  69. local k=Hitbox.Color
  70. local b=Rainbow[math.random(1,#Rainbow)]
  71. local slow=100
  72. for i=1, slow do
  73. Hitbox.Color=c3lerp(k,b,i/slow)
  74. wait()
  75. end
  76. end
  77. end)
  78.  
  79. GetTarget = function()
  80. local Target = nil
  81. local TargetName = nil
  82. pcall(function()
  83. TargetName = Player.PlayerGui.ScreenGui.UI.Target.TargetText.Text
  84. end)
  85. if TargetName then
  86. if Players:findFirstChild(TargetName) then
  87. Target = Players:findFirstChild(TargetName)
  88. end
  89. end
  90. return Target
  91. end
  92.  
  93. while wait() do
  94. if Enabled then
  95. local Target = GetTarget()
  96. if Target and Target.Character then
  97. Hitbox.Parent = Target.Character
  98. else
  99. Hitbox.Parent = workspace
  100. end
  101. else
  102. Hitbox.Parent = nil
  103. end
  104. end
  105. local Players = game:GetService("Players")
  106. local Player = Players.LocalPlayer
  107. local Mouse = Player:GetMouse()
  108.  
  109. local Enabled = false
  110. Mouse.KeyDown:connect(function(key)
  111. key = key:upper()
  112. if key == "X" then
  113. if Enabled then
  114. Enabled = false
  115. print("Disabled")
  116. else
  117. Enabled = true
  118. print("Enabled")
  119. end
  120. end
  121. end)
  122.  
  123. local Hitbox = Instance.new("Part")
  124. Hitbox.Transparency = 0.6
  125. Hitbox.Color = Color3.new(1, 1, 1)
  126. Hitbox.Size = Vector3.new(3, 3, 3)
  127. Hitbox.Material = "SmoothPlastic"
  128. Hitbox.CanCollide = false
  129. Hitbox.Anchored = true
  130.  
  131. local S = Instance.new("SelectionBox", Hitbox)
  132. S.Adornee = Hitbox
  133. S.Transparency = 0.3
  134. S.SurfaceTransparency = 1
  135. S.Color3 = Color3.new(0, 0, 0)
  136. S.LineThickness = 0.05
  137.  
  138. game:GetService("RunService"):BindToRenderStep(tostring(math.random(1, 10000)), 1, function()
  139. if Player and Player.Character then
  140. if Player.Character:findFirstChild("HumanoidRootPart") then
  141. local HRP = Player.Character:findFirstChild("HumanoidRootPart")
  142. Hitbox.CFrame = HRP.CFrame * CFrame.new(0, 0, 0)
  143. end
  144. if Player.PlayerGui.ScreenGui.UI.Target.Visible == false then
  145. Hitbox.Transparency = 1
  146. else
  147. Hitbox.Transparency = 0.6
  148. end
  149. end
  150. end)
  151.  
  152. function c3lerp(a,b,t)
  153. return Color3.new(a.r * (1-t) + (b.r*t),a.g * (1-t) + (b.g*t),a.b * (1-t) + (b.b*t))
  154. end
  155.  
  156. local Rainbow = {
  157. Color3.new(1,0,0);
  158. Color3.new(0,1,0);
  159. Color3.new(0,0,1);
  160. Color3.new(0,1,1);
  161. Color3.new(1,0,1);
  162. Color3.new(1,1,0);
  163. }
  164.  
  165. spawn(function()
  166. while true do
  167. local k=Hitbox.Color
  168. local b=Rainbow[math.random(1,#Rainbow)]
  169. local slow=100
  170. for i=1, slow do
  171. Hitbox.Color=c3lerp(k,b,i/slow)
  172. wait()
  173. end
  174. end
  175. end)
  176.  
  177. GetTarget = function()
  178. local Target = nil
  179. local TargetName = nil
  180. pcall(function()
  181. TargetName = Player.PlayerGui.ScreenGui.UI.Target.TargetText.Text
  182. end)
  183. if TargetName then
  184. if Players:findFirstChild(TargetName) then
  185. Target = Players:findFirstChild(TargetName)
  186. end
  187. end
  188. return Target
  189. end
  190.  
  191. while wait() do
  192. if Enabled then
  193. local Target = GetTarget()
  194. if Target and Target.Character then
  195. Hitbox.Parent = Target.Character
  196. else
  197. Hitbox.Parent = workspace
  198. end
  199. else
  200. Hitbox.Parent = nil
  201. end
  202. end--Only works for target rounds. Not FFA or Infected.
  203. --Just cick to kill a random person. (The box around you is a "person")
  204.  
  205. local Players = game:GetService("Players")
  206. local Player = Players.LocalPlayer
  207. local Mouse = Player:GetMouse()
  208.  
  209. local Enabled = false
  210. Mouse.KeyDown:connect(function(key)
  211. key = key:upper()
  212. if key == "X" then
  213. if Enabled then
  214. Enabled = false
  215. print("Disabled")
  216. else
  217. Enabled = true
  218. print("Enabled")
  219. end
  220. end
  221. end)
  222.  
  223. local Hitbox = Instance.new("Part")
  224. Hitbox.Transparency = 0.6
  225. Hitbox.Color = Color3.new(1, 1, 1)
  226. Hitbox.Size = Vector3.new(3, 3, 3)
  227. Hitbox.Material = "SmoothPlastic"
  228. Hitbox.CanCollide = false
  229. Hitbox.Anchored = true
  230.  
  231. local S = Instance.new("SelectionBox", Hitbox)
  232. S.Adornee = Hitbox
  233. S.Transparency = 0.3
  234. S.SurfaceTransparency = 1
  235. S.Color3 = Color3.new(0, 0, 0)
  236. S.LineThickness = 0.05
  237.  
  238. game:GetService("RunService"):BindToRenderStep(tostring(math.random(1, 10000)), 1, function()
  239. if Player and Player.Character then
  240. if Player.Character:findFirstChild("HumanoidRootPart") then
  241. local HRP = Player.Character:findFirstChild("HumanoidRootPart")
  242. Hitbox.CFrame = HRP.CFrame * CFrame.new(0, 0, 0)
  243. end
  244. if Player.PlayerGui.ScreenGui.UI.Target.Visible == false then
  245. Hitbox.Transparency = 1
  246. else
  247. Hitbox.Transparency = 0.6
  248. end
  249. end
  250. end)
  251.  
  252. function c3lerp(a,b,t)
  253. return Color3.new(a.r * (1-t) + (b.r*t),a.g * (1-t) + (b.g*t),a.b * (1-t) + (b.b*t))
  254. end
  255.  
  256. local Rainbow = {
  257. Color3.new(1,0,0);
  258. Color3.new(0,1,0);
  259. Color3.new(0,0,1);
  260. Color3.new(0,1,1);
  261. Color3.new(1,0,1);
  262. Color3.new(1,1,0);
  263. }
  264.  
  265. spawn(function()
  266. while true do
  267. local k=Hitbox.Color
  268. local b=Rainbow[math.random(1,#Rainbow)]
  269. local slow=100
  270. for i=1, slow do
  271. Hitbox.Color=c3lerp(k,b,i/slow)
  272. wait()
  273. end
  274. end
  275. end)
  276.  
  277. GetTarget = function()
  278. local Target = nil
  279. local TargetName = nil
  280. pcall(function()
  281. TargetName = Player.PlayerGui.ScreenGui.UI.Target.TargetText.Text
  282. end)
  283. if TargetName then
  284. if Players:findFirstChild(TargetName) then
  285. Target = Players:findFirstChild(TargetName)
  286. end
  287. end
  288. return Target
  289. end
  290.  
  291. while wait() do
  292. if Enabled then
  293. local Target = GetTarget()
  294. if Target and Target.Character then
  295. Hitbox.Parent = Target.Character
  296. else
  297. Hitbox.Parent = workspace
  298. end
  299. else
  300. Hitbox.Parent = nil
  301. end
  302. end
RAW Paste Data