Advertisement
Guest User

Assassin Script OP

a guest
Oct 2nd, 2019
1,611
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1. --Only works for target rounds. Not FFA or Infected.
  2. --Just click to kill a random person. (The box around you is a "person")
  3. --Made by yummychips734#9430
  4. --PRESS X FOR BOX
  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. local Hitbox = Instance.new("Part")
  25. Hitbox.Transparency = 0.6
  26. Hitbox.Color = Color3.new(1, 1, 1)
  27. Hitbox.Size = Vector3.new(3, 3, 3)
  28. Hitbox.Material = "SmoothPlastic"
  29. Hitbox.CanCollide = false
  30. Hitbox.Anchored = true
  31.  
  32. local S = Instance.new("SelectionBox", Hitbox)
  33. S.Adornee = Hitbox
  34. S.Transparency = 0.3
  35. S.SurfaceTransparency = 1
  36. S.Color3 = Color3.new(0, 0, 0)
  37. S.LineThickness = 0.05
  38.  
  39. game:GetService("RunService"):BindToRenderStep(tostring(math.random(1, 10000)), 1, function()
  40. if Player and Player.Character then
  41. if Player.Character:findFirstChild("HumanoidRootPart") then
  42. local HRP = Player.Character:findFirstChild("HumanoidRootPart")
  43. Hitbox.CFrame = HRP.CFrame * CFrame.new(0, 0, 0)
  44. end
  45. if Player.PlayerGui.ScreenGui.UI.Target.Visible == false then
  46. Hitbox.Transparency = 1
  47. else
  48. Hitbox.Transparency = 0.6
  49. end
  50. end
  51. end)
  52.  
  53. function c3lerp(a,b,t)
  54. return Color3.new(a.r * (1-t) + (b.r*t),a.g * (1-t) + (b.g*t),a.b * (1-t) + (b.b*t))
  55. end
  56.  
  57. local Rainbow = {
  58. Color3.new(1,0,0);
  59. Color3.new(0,1,0);
  60. Color3.new(0,0,1);
  61. Color3.new(0,1,1);
  62. Color3.new(1,0,1);
  63. Color3.new(1,1,0);
  64. }
  65.  
  66. spawn(function()
  67. while true do
  68. local k=Hitbox.Color
  69. local b=Rainbow[math.random(1,#Rainbow)]
  70. local slow=100
  71. for i=1, slow do
  72. Hitbox.Color=c3lerp(k,b,i/slow)
  73. wait()
  74. end
  75. end
  76. end)
  77.  
  78. GetTarget = function()
  79. local Target = nil
  80. local TargetName = nil
  81. pcall(function()
  82. TargetName = Player.PlayerGui.ScreenGui.UI.Target.TargetText.Text
  83. end)
  84. if TargetName then
  85. if Players:findFirstChild(TargetName) then
  86. Target = Players:findFirstChild(TargetName)
  87. end
  88. end
  89. return Target
  90. end
  91.  
  92. while wait() do
  93. if Enabled then
  94. local Target = GetTarget()
  95. if Target and Target.Character then
  96. Hitbox.Parent = Target.Character
  97. else
  98. Hitbox.Parent = workspace
  99. end
  100. else
  101. Hitbox.Parent = nil
  102. end
  103. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement