Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --print("This goes into serverscriptservice, and adds better explosion effects and makes players unable to die from explosions.")
- workspace.DescendantAdded:Connect(function(Explosion)
- if Explosion:IsA("Explosion") then
- Explosion.ExplosionType = Enum.ExplosionType.CratersAndDebris
- Explosion.DestroyJointRadiusPercent = 0
- Explosion.Hit:Connect(function(hitPart)
- hitPart.AssemblyLinearVelocity *= 2
- hitPart.AssemblyAngularVelocity *= 2
- if not game.Players:FindFirstChild(hitPart.Parent.Name) and not game.Players:FindFirstChild(hitPart.Parent.Parent.Name) and hitPart.Anchored == false then
- hitPart:BreakJoints()
- hitPart.BrickColor = BrickColor.new("Really black")
- hitPart.Material = Enum.Material.Slate
- if not hitPart.Transparency == 1 then
- hitPart.CanCollide = true
- end
- game.Debris:AddItem(hitPart,35)
- end
- end)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement