TheUnknownDiscord

blackhole ff

Dec 7th, 2021 (edited)
36
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local donthit = {}
  2. for i,v in pairs(owner.Character:GetDescendants()) do
  3. pcall(function()
  4. table.insert(donthit,v)
  5. end)
  6. end
  7. for i,v in pairs(workspace:GetDescendants()) do
  8. pcall(function()
  9. if v.Name == "Base" then
  10. table.insert(donthit,v)
  11. end
  12. end)
  13. end
  14. blackhole = Instance.new("SpawnLocation",owner.Character)
  15. blackhole.Enabled = false
  16. blackhole.Name = "bh"
  17. blackhole.CanQuery = false
  18. blackhole.CanCollide = false
  19. blackhole.Shape = "Ball"
  20. blackhole.Color = Color3.fromRGB()
  21. blackhole.Material = "Neon"
  22. blackhole.Size = Vector3.new()
  23. blackhole.CFrame = owner.Character.HumanoidRootPart.CFrame
  24. b = Instance.new("BodyVelocity",blackhole)
  25. b.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  26. blackhole:SetNetworkOwner(owner)
  27. NLS([[
  28. bh = owner.Character:WaitForChild("bh")
  29. game:GetService("RunService").RenderStepped:Connect(function()
  30. bh.CFrame = owner.Character.HumanoidRootPart.CFrame
  31. end)
  32. ]],owner.PlayerGui)
  33. alive = true
  34. wait()
  35. coroutine.wrap(function()
  36. while alive do
  37. task.wait()
  38. local overlap = OverlapParams.new()
  39. overlap.FilterDescendantsInstances = {donthit}
  40. overlap.FilterType = Enum.RaycastFilterType.Blacklist
  41. for i, hit in pairs(workspace:GetPartsInPart(blackhole,overlap)) do
  42. if hit.Name ~= "Base" then
  43. pcall(function()
  44. if hit:FindFirstChildOfClass("SpecialMesh") then
  45. hit:FindFirstChildOfClass("SpecialMesh"):Destroy()
  46. end
  47. local U = hit:SubtractAsync({blackhole})
  48. local O = hit.Parent
  49. hit.Parent = nil
  50. U.Parent = O
  51. end)
  52. end
  53. end
  54. end
  55. end)()
  56. local tweenService = game:GetService("TweenService")
  57. local timeToFade = 1
  58. local object = blackhole
  59. local tweenInfo = TweenInfo.new(timeToFade)
  60. local goal = {}
  61. goal.Size = Vector3.new(20,20,20)
  62. local tween = tweenService:Create(object, tweenInfo, goal)
  63. tween:Play()
RAW Paste Data Copied