Maximus12321378987

Untitled

May 9th, 2020
9
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local Player = Players.LocalPlayer
  3. local Mouse = Player:GetMouse()
  4.  
  5. local Enabled = false
  6. Mouse.KeyDown:connect(function(key)
  7. key = key:upper()
  8. if key == "X" then
  9. if Enabled then
  10. Enabled = false
  11. print("Disabled")
  12. else
  13. Enabled = true
  14. print("Enabled")
  15. end
  16. end
  17. end)
  18.  
  19. --// Created by EncryptedRBX/Floof //--
  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(10, 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. --// Created by EncryptedRBX/Floof //--
  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. --// Created by EncryptedRBX/Floof //--
  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. --// Created by Spho3nex //-
Add Comment
Please, Sign In to add comment