Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 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. local Players = game:GetService("Players")
  50. local Player = Players.LocalPlayer
  51. local Mouse = Player:GetMouse()
  52.  
  53. local Enabled = false
  54. Mouse.KeyDown:connect(function(key)
  55. key = key:upper()
  56. if key == "X" then
  57. if Enabled then
  58. Enabled = false
  59. print("Disabled")
  60. else
  61. Enabled = true
  62. print("Enabled")
  63. end
  64. end
  65. end)
  66.  
  67. --// Created by EncryptedRBX/Floof //--
  68.  
  69. local Hitbox = Instance.new("Part")
  70. Hitbox.Transparency = 0.6
  71. Hitbox.Color = Color3.new(1, 1, 1)
  72. Hitbox.Size = Vector3.new(3, 3, 3)
  73. Hitbox.Material = "SmoothPlastic"
  74. Hitbox.CanCollide = false
  75. Hitbox.Anchored = true
  76.  
  77. local S = Instance.new("SelectionBox", Hitbox)
  78. S.Adornee = Hitbox
  79. S.Transparency = 0.3
  80. S.SurfaceTransparency = 1
  81. S.Color3 = Color3.new(0, 0, 0)
  82. S.LineThickness = 0.05
  83.  
  84. game:GetService("RunService"):BindToRenderStep(tostring(math.random(1, 10000)), 1, function()
  85. if Player and Player.Character then
  86. if Player.Character:findFirstChild("HumanoidRootPart") then
  87. local HRP = Player.Character:findFirstChild("HumanoidRootPart")
  88. Hitbox.CFrame = HRP.CFrame * CFrame.new(10, 0, 0)
  89. end
  90. if Player.PlayerGui.ScreenGui.UI.Target.Visible == false then
  91. Hitbox.Transparency = 1
  92. else
  93. Hitbox.Transparency = 0.6
  94. end
  95. end
  96. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement