Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local donthit = {}
- for i,v in pairs(owner.Character:GetDescendants()) do
- pcall(function()
- table.insert(donthit,v)
- end)
- end
- for i,v in pairs(workspace:GetDescendants()) do
- pcall(function()
- if v.Name == "Base" then
- table.insert(donthit,v)
- end
- end)
- end
- blackhole = Instance.new("SpawnLocation",owner.Character)
- blackhole.Enabled = false
- blackhole.Name = "bh"
- blackhole.CanQuery = false
- blackhole.CanCollide = false
- blackhole.Shape = "Ball"
- blackhole.Color = Color3.fromRGB()
- blackhole.Material = "Neon"
- blackhole.Size = Vector3.new()
- blackhole.CFrame = owner.Character.HumanoidRootPart.CFrame
- b = Instance.new("BodyVelocity",blackhole)
- b.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- blackhole:SetNetworkOwner(owner)
- NLS([[
- bh = owner.Character:WaitForChild("bh")
- game:GetService("RunService").RenderStepped:Connect(function()
- bh.CFrame = owner.Character.HumanoidRootPart.CFrame
- end)
- ]],owner.PlayerGui)
- alive = true
- wait()
- coroutine.wrap(function()
- while alive do
- task.wait()
- local overlap = OverlapParams.new()
- overlap.FilterDescendantsInstances = {donthit}
- overlap.FilterType = Enum.RaycastFilterType.Blacklist
- for i, hit in pairs(workspace:GetPartsInPart(blackhole,overlap)) do
- if hit.Name ~= "Base" then
- pcall(function()
- if hit:FindFirstChildOfClass("SpecialMesh") then
- hit:FindFirstChildOfClass("SpecialMesh"):Destroy()
- end
- local U = hit:SubtractAsync({blackhole})
- local O = hit.Parent
- hit.Parent = nil
- U.Parent = O
- end)
- end
- end
- end
- end)()
- local tweenService = game:GetService("TweenService")
- local timeToFade = 1
- local object = blackhole
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.Size = Vector3.new(20,20,20)
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
Add Comment
Please, Sign In to add comment