Advertisement
Fedorian_A_Mp5

Untitled

Aug 10th, 2022
1,015
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.87 KB | None | 0 0
  1. --print("This goes into serverscriptservice, and adds better explosion effects and makes players unable to die from explosions.")
  2. workspace.DescendantAdded:Connect(function(Explosion)
  3.     if Explosion:IsA("Explosion") then
  4.         Explosion.ExplosionType = Enum.ExplosionType.CratersAndDebris
  5.         Explosion.DestroyJointRadiusPercent = 0
  6.         Explosion.Hit:Connect(function(hitPart)
  7.             hitPart.AssemblyLinearVelocity *= 2
  8.             hitPart.AssemblyAngularVelocity *= 2
  9.             if not game.Players:FindFirstChild(hitPart.Parent.Name) and not game.Players:FindFirstChild(hitPart.Parent.Parent.Name) and hitPart.Anchored == false then
  10.                 hitPart:BreakJoints()
  11.                 hitPart.BrickColor = BrickColor.new("Really black")
  12.                 hitPart.Material = Enum.Material.Slate
  13.                 if not hitPart.Transparency == 1 then
  14.                     hitPart.CanCollide = true
  15.                 end
  16.                 game.Debris:AddItem(hitPart,35)
  17.             end
  18.         end)
  19.     end
  20. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement