Hi guys,
I made a confetti cannon in my game and I want it to have an explosion when it fires.
The problem is that I want to show the explosion without destroying the part.
I heard that you could use a tweenservice?
Hi guys,
I made a confetti cannon in my game and I want it to have an explosion when it fires.
The problem is that I want to show the explosion without destroying the part.
I heard that you could use a tweenservice?
If you’re using an Explosion, change the ExplosionType to NoCraters and the DestroyJointRadiusPercent to 0. This will void any destruction of welds and Terrain cells.
But I want to fire it without destroying the part.
All the other tutorials say to do
Part:Destroy()
Don’t destroy the part then. I don’t think you really need anything more than to just modify the code in ways that fit your needs. If you don’t want to destroy any parts, don’t destroy them. What’s stopping you?
How do I fire the explosion.
part.explosion:fire()?
The explosion will automatically occur when it is parented to the Workspace. Please read the documentation, there are helpful explanations there.
You don’t. If you inserted an explosion into a part, it will only play once, when the game starts, and destroy itself when it’s done.
You should create it instead.
local explosion = Instance.new("Explosion")
explosion.ExplosionType = Enum.ExplosionType.NoCraters
explosion.DestroyJointRadiusPercent = 0
explosion.Parent = yourParentPart
Here is the API Reference: Explosion | Documentation - Roblox Creator Hub