Advertisement
MAD_HACKS

Assassin Aimbot

Apr 15th, 2020
722
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.35 KB | None | 0 0
  1. --Only works for target rounds. Not FFA or Infected.
  2. --Just cick to kill a random person. (The box around you is a "person")
  3. -- This Script was modified by MAD_HACKS
  4.  
  5. local Players = game:GetService("Players")
  6. local Player = Players.LocalPlayer
  7. local Mouse = Player:GetMouse()
  8.  
  9. local Enabled = false
  10. Mouse.KeyDown:connect(function(key)
  11.     key = key:upper()
  12.     if key == "X" then
  13.         if Enabled then
  14.             Enabled = false
  15.             print("Disabled")
  16.         else
  17.             Enabled = true
  18.             print("Enabled")
  19.         end
  20.     end
  21. end)
  22.  
  23. local Hitbox = Instance.new("Part")
  24. Hitbox.Transparency = 0.6
  25. Hitbox.Color = Color3.new(1, 1, 1)
  26. Hitbox.Size = Vector3.new(3, 3, 3)
  27. Hitbox.Material = "SmoothPlastic"
  28. Hitbox.CanCollide = false
  29. Hitbox.Anchored = true
  30.  
  31. local S = Instance.new("SelectionBox", Hitbox)
  32. S.Adornee = Hitbox
  33. S.Transparency = 0.3
  34. S.SurfaceTransparency = 1
  35. S.Color3 = Color3.new(0, 0, 0)
  36. S.LineThickness = 0.05
  37.  
  38. game:GetService("RunService"):BindToRenderStep(tostring(math.random(1, 10000)), 1, function()
  39.     if Player and Player.Character then
  40.         if Player.Character:findFirstChild("HumanoidRootPart") then
  41.             local HRP = Player.Character:findFirstChild("HumanoidRootPart")
  42.             Hitbox.CFrame = HRP.CFrame * CFrame.new(0, 0, 0)
  43.         end
  44.         if Player.PlayerGui.ScreenGui.UI.Target.Visible == false then
  45.             Hitbox.Transparency = 1
  46.         else
  47.             Hitbox.Transparency = 0.6
  48.         end
  49.     end
  50. end)
  51.  
  52. function c3lerp(a,b,t)
  53.     return Color3.new(a.r * (1-t) + (b.r*t),a.g * (1-t) + (b.g*t),a.b * (1-t) + (b.b*t))
  54. end
  55.  
  56. local Rainbow = {
  57.     Color3.new(1,0,0);
  58.     Color3.new(0,1,0);
  59.     Color3.new(0,0,1);
  60.     Color3.new(0,1,1);
  61.     Color3.new(1,0,1);
  62.     Color3.new(1,1,0);
  63. }
  64.  
  65. spawn(function()
  66.     while true do
  67.         local k=Hitbox.Color
  68.         local b=Rainbow[math.random(1,#Rainbow)]
  69.         local slow=100
  70.         for i=1, slow do
  71.             Hitbox.Color=c3lerp(k,b,i/slow)
  72.             wait()
  73.         end
  74.     end
  75. end)
  76.  
  77. GetTarget = function()
  78.     local Target = nil
  79.     local TargetName = nil
  80.     pcall(function()
  81.         TargetName = Player.PlayerGui.ScreenGui.UI.Target.TargetText.Text
  82.     end)
  83.     if TargetName then
  84.         if Players:findFirstChild(TargetName) then
  85.             Target = Players:findFirstChild(TargetName)
  86.         end
  87.     end
  88.     return Target
  89. end
  90.  
  91. while wait() do
  92.     if Enabled then
  93.         local Target = GetTarget()
  94.         if Target and Target.Character then
  95.             Hitbox.Parent = Target.Character
  96.         else
  97.             Hitbox.Parent = workspace
  98.         end
  99.     else
  100.         Hitbox.Parent = nil
  101.     end
  102. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement