Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----- Script made by Pedrorb03 -----
- black = true
- light = 0
- void = nil
- game:GetService("UserInputService").InputBegan:connect(function(key)
- if key.KeyCode == Enum.KeyCode.V then
- if void == nil then
- local voido = Instance.new("Part",game.Workspace) voido.Name = "VOIDGOAWAY" voido.Size = Vector3.new(62.5,62.5,62.5) voido.Anchored = true voido.CanCollide = false
- voido.Color = Color3.new(0,0,0)
- voido.Shape = Enum.PartType.Ball
- voido.Locked = true
- voido.Material = Enum.Material.Neon
- voido.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- voido.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- voido.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- voido.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- voido.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- voido.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- local attach1 = Instance.new("Attachment",voido) attach1.Position = Vector3.new(0,62.5/2,0)
- local attach2 = Instance.new("Attachment",voido) attach2.Position = Vector3.new(0,-62.5/2,0)
- local trail = Instance.new("Trail",voido) trail.Attachment0 = attach1 trail.Attachment1 = attach2 trail.Lifetime = 0.5
- trail.MinLength = 0.01 trail.FaceCamera = true trail.Transparency = NumberSequence.new(0.25,1) trail.Color = ColorSequence.new(voido.Color) trail.LightEmission = 0.25
- void = voido
- if game.Players.LocalPlayer.Name ~= "TheNeonKaratedKid" then
- void.Color = Color3.fromRGB(0,0,light)
- end
- if game.Players.LocalPlayer.Name == "TheNeonKaratedKid" then
- void.Color = Color3.fromRGB(0,light,0)
- end
- void.Trail.Color = ColorSequence.new(void.Color)
- void.CFrame = CFrame.new(game.Players.LocalPlayer:GetMouse().Hit.p)
- game.Players.LocalPlayer:GetMouse().TargetFilter = void
- while void ~= nil do
- wait()
- if void ~= nil then
- if black == true then
- light = light+5
- if light >= 100 then
- light = 100
- black = false
- end
- elseif black == false then
- light = light-10
- if light <= 0 then
- black = true
- end
- end
- if game.Players.LocalPlayer.Name ~= "TheNeonKaratedKid" then
- void.Color = Color3.fromRGB(0,0,light)
- end
- if game.Players.LocalPlayer.Name == "TheNeonKaratedKid" then
- void.Color = Color3.fromRGB(0,light,0)
- end
- void.Trail.Color = ColorSequence.new(void.Color)
- void.CFrame = CFrame.new(game.Players.LocalPlayer:GetMouse().Hit.p)
- for _,child in pairs(game.Workspace:GetChildren()) do
- if child.Name ~= "Terrain" then
- if child ~= game.Players.LocalPlayer.Character then
- if child ~= void then
- if child:IsA("BasePart") then
- if (child.Position-void.Position).magnitude <= 58 then
- child:remove()
- end
- end
- for _,InChild in pairs(child:GetChildren()) do
- if InChild:IsA("BasePart") then
- if (InChild.Position-void.Position).magnitude <= 58 then
- InChild:remove()
- end
- end
- for _,InInChild in pairs(InChild:GetChildren()) do
- if InInChild:IsA("BasePart") then
- if (InInChild.Position-void.Position).magnitude <= 58 then
- InInChild:remove()
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end)
- game:GetService("UserInputService").InputEnded:connect(function(key)
- if key.KeyCode == Enum.KeyCode.V then
- if void ~= nil then
- void:remove()
- void = nil
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment