Advertisement
Guest User

Assassin ROBLOX Aimbot Script

a guest
Apr 3rd, 2020
8,834
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.55 KB | None | 0 0
  1. -- Press 'x' to enable and a box will show up.
  2. -- Throw your knife at the box until it is no longer colorful.
  3. -- This will only work if you have a target (not free for all/infected)
  4. -- made by chesterfieldleague, professional scripting
  5.  
  6. local Players = game:GetService("Players")
  7. local Player = Players.LocalPlayer
  8. local Mouse = Player:GetMouse()
  9.  
  10. local Enabled = false
  11. Mouse.KeyDown:connect(function(key)
  12.     key = key:upper()
  13.     if key == "X" then
  14.         if Enabled then
  15.             Enabled = false
  16.             print("Disabled")
  17.         else
  18.             Enabled = true
  19.             print("Enabled")
  20.         end
  21.     end
  22. end)
  23.  
  24. --// Created by IIPancakeCatII //--
  25.  
  26. local Hitbox = Instance.new("Part")
  27. Hitbox.Transparency = 0.6
  28. Hitbox.Color = Color3.new(1, 1, 1)
  29. Hitbox.Size = Vector3.new(3, 3, 3)
  30. Hitbox.Material = "SmoothPlastic"
  31. Hitbox.CanCollide = false
  32. Hitbox.Anchored = true
  33.  
  34. local S = Instance.new("SelectionBox", Hitbox)
  35. S.Adornee = Hitbox
  36. S.Transparency = 0.3
  37. S.SurfaceTransparency = 1
  38. S.Color3 = Color3.new(0, 0, 0)
  39. S.LineThickness = 0.05
  40.  
  41. game:GetService("RunService"):BindToRenderStep(tostring(math.random(1, 10000)), 1, function()
  42.     if Player and Player.Character then
  43.         if Player.Character:findFirstChild("HumanoidRootPart") then
  44.             local HRP = Player.Character:findFirstChild("HumanoidRootPart")
  45.             Hitbox.CFrame = HRP.CFrame * CFrame.new(10, 0, 0)
  46.         end
  47.         if Player.PlayerGui.ScreenGui.UI.Target.Visible == false then
  48.             Hitbox.Transparency = 1
  49.         else
  50.             Hitbox.Transparency = 0.6
  51.         end
  52.     end
  53. end)
  54.  
  55. --// Created by IIPancakeCatII //--
  56.  
  57. function c3lerp(a,b,t)
  58.     return Color3.new(a.r * (1-t) + (b.r*t),a.g * (1-t) + (b.g*t),a.b * (1-t) + (b.b*t))
  59. end
  60.  
  61. local Rainbow = {
  62.     Color3.new(1,0,0);
  63.     Color3.new(0,1,0);
  64.     Color3.new(0,0,1);
  65.     Color3.new(0,1,1);
  66.     Color3.new(1,0,1);
  67.     Color3.new(1,1,0);
  68. }
  69.  
  70. spawn(function()
  71.     while true do
  72.         local k=Hitbox.Color
  73.         local b=Rainbow[math.random(1,#Rainbow)]
  74.         local slow=100
  75.         for i=1, slow do
  76.             Hitbox.Color=c3lerp(k,b,i/slow)
  77.             wait()
  78.         end
  79.     end
  80. end)
  81.  
  82. --// Created by IIPancakeCatII //--
  83.  
  84. GetTarget = function()
  85.     local Target = nil
  86.     local TargetName = nil
  87.     pcall(function()
  88.         TargetName = Player.PlayerGui.ScreenGui.UI.Target.TargetText.Text
  89.     end)
  90.     if TargetName then
  91.         if Players:findFirstChild(TargetName) then
  92.             Target = Players:findFirstChild(TargetName)
  93.         end
  94.     end
  95.     return Target
  96. end
  97.  
  98. while wait() do
  99.     if Enabled then
  100.         local Target = GetTarget()
  101.         if Target and Target.Character then
  102.             Hitbox.Parent = Target.Character
  103.         else
  104.             Hitbox.Parent = workspace
  105.         end
  106.     else
  107.         Hitbox.Parent = nil
  108.     end
  109. end
  110. -- thanks!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement