Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----- Script made by Pedrorb03 -----
- black = true
- light = 0
- void = nil
- local health = 100
- local maxhealth = 100
- game:GetService("UserInputService").InputBegan:connect(function(key)
- if key.KeyCode == Enum.KeyCode.C then
- if void == nil then
- health = game.Players.LocalPlayer.Character.Humanoid.Health
- maxhealth = game.Players.LocalPlayer.Character.Humanoid.MaxHealth
- game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 999999999
- game.Players.LocalPlayer.Character.Humanoid.Health = 99999999999
- local voido = Instance.new("Part",game.Workspace) voido.Name = "VOIDGOAWAY" voido.Size = Vector3.new(62.5,62.5,62.5) voido.Anchored = false 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,light,0)
- end
- if game.Players.LocalPlayer.Name == "TheNeonKaratedKid" then
- void.Color = Color3.fromRGB(0,0,light)
- end
- void.Trail.Color = ColorSequence.new(void.Color)
- local bodyforce = Instance.new("BodyForce",void) bodyforce.Force = Vector3.new(0, game.Workspace.Gravity, 0) * void:GetMass()
- void.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position)
- local weld = Instance.new("Weld",void) weld.Part0 = void weld.Part1 = game.Players.LocalPlayer.Character.HumanoidRootPart
- 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,light,0)
- end
- if game.Players.LocalPlayer.Name == "TheNeonKaratedKid" then
- void.Color = Color3.fromRGB(0,0,light)
- end
- void.Trail.Color = ColorSequence.new(void.Color)
- 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
- else
- if void ~= nil then
- void:remove()
- void = nil
- game.Players.LocalPlayer.Character.Humanoid.MaxHealth = maxhealth
- game.Players.LocalPlayer.Character.Humanoid.Health = health
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement