Advertisement
hi09212

roblox assassin auto kill moded

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