pz_java

Void Mouse

Sep 8th, 2017
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. ----- Script made by Pedrorb03 -----
  2. black = true
  3. light = 0
  4. void = nil
  5.  
  6. game:GetService("UserInputService").InputBegan:connect(function(key)
  7. if key.KeyCode == Enum.KeyCode.V then
  8. if void == nil then
  9. local voido = Instance.new("Part",game.Workspace) voido.Name = "VOIDGOAWAY" voido.Size = Vector3.new(12.5,12.5,12.5) voido.Anchored = true voido.CanCollide = false
  10. voido.Color = Color3.new(0,0,0)
  11. voido.Shape = Enum.PartType.Ball
  12. voido.Locked = true
  13. voido.Material = Enum.Material.Neon
  14. voido.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  15. voido.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  16. voido.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  17. voido.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  18. voido.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  19. voido.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  20. local attach1 = Instance.new("Attachment",voido) attach1.Position = Vector3.new(0,6.25,0)
  21. local attach2 = Instance.new("Attachment",voido) attach2.Position = Vector3.new(0,-6.25,0)
  22. local trail = Instance.new("Trail",voido) trail.Attachment0 = attach1 trail.Attachment1 = attach2 trail.Lifetime = 0.5
  23. trail.MinLength = 0.01 trail.FaceCamera = true trail.Transparency = NumberSequence.new(0.25,1) trail.Color = ColorSequence.new(voido.Color) trail.LightEmission = 0.25
  24.  
  25. void = voido
  26. if game.Players.LocalPlayer.Name ~= "TheNeonKaratedKid" then
  27. void.Color = Color3.fromRGB(light,0,light)
  28. end
  29. if game.Players.LocalPlayer.Name == "TheNeonKaratedKid" then
  30. void.Color = Color3.fromRGB(light,0,0)
  31. end
  32. void.Trail.Color = ColorSequence.new(void.Color)
  33. void.CFrame = CFrame.new(game.Players.LocalPlayer:GetMouse().Hit.p)
  34.  
  35. game.Players.LocalPlayer:GetMouse().TargetFilter = void
  36. while void ~= nil do
  37. wait()
  38. if void ~= nil then
  39. if black == true then
  40. light = light+5
  41.  
  42.  
  43. if light >= 100 then
  44. light = 100
  45. black = false
  46. end
  47.  
  48.  
  49. elseif black == false then
  50. light = light-10
  51. if light <= 0 then
  52. black = true
  53. end
  54.  
  55.  
  56. end
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. if game.Players.LocalPlayer.Name ~= "TheNeonKaratedKid" then
  64. void.Color = Color3.fromRGB(light,0,light)
  65. end
  66. if game.Players.LocalPlayer.Name == "TheNeonKaratedKid" then
  67. void.Color = Color3.fromRGB(light,0,0)
  68. end
  69. void.Trail.Color = ColorSequence.new(void.Color)
  70. void.CFrame = CFrame.new(game.Players.LocalPlayer:GetMouse().Hit.p)
  71.  
  72. for _,child in pairs(game.Workspace:GetChildren()) do
  73. if child.Name ~= "Terrain" then
  74. if child ~= game.Players.LocalPlayer.Character then
  75. if child ~= void then
  76. if child:IsA("BasePart") then
  77.  
  78. if (child.Position-void.Position).magnitude <= 8 then
  79. child:remove()
  80.  
  81. end
  82. end
  83. for _,InChild in pairs(child:GetChildren()) do
  84. if InChild:IsA("BasePart") then
  85. if (InChild.Position-void.Position).magnitude <= 8 then
  86. InChild:remove()
  87. end
  88. end
  89. for _,InInChild in pairs(InChild:GetChildren()) do
  90. if InInChild:IsA("BasePart") then
  91. if (InInChild.Position-void.Position).magnitude <= 8 then
  92. InInChild:remove()
  93. end
  94. end
  95.  
  96. end
  97. end
  98.  
  99. end
  100. end
  101. end
  102. end
  103. end
  104. end
  105. end
  106. end
  107. end)
  108.  
  109.  
  110. game:GetService("UserInputService").InputEnded:connect(function(key)
  111. if key.KeyCode == Enum.KeyCode.V then
  112. if void ~= nil then
  113. void:remove()
  114. void = nil
  115. end
  116. end
  117. end)
Advertisement
Add Comment
Please, Sign In to add comment