So I have a few destructible things in my game and when you explode them they lag a lot. is there a way to delete only the exploded parts after a few seconds? The parts are held together with welds.
1 Like
Explosion.Hit:Connect(Function(hitpart)
hitpart:Destroy()
end)
3 Likes
Connected callbacks are also passed the hit distance as an argument.
Explosion.Hit:Connect(function(HitPart, HitDistance) --Do code. end)
1 Like