I made this exploding wall for my ROBLOX game, thoughts? I’m new to coding and I think it turned out good, but I wanna see if there’s ways I could improve it!
Looks good. Maybe add a simple feature that breaks that wall into pieces?
I just wanted to type the same.
As @Valkyrop said it looks good, but you also maybe need to make smooth appearing of bombs with tween service.
- Since the large use of
script.Parent
, it would look more pleasing if you put it as a variable on the top of the script. I generally avoid using.Parent
without making the thing a variable - Regular
wait()
is pretty much outdated due to the Task Library, which hastask.wait()
, supersedingwait()
. - Others have also said, breaking the wall into pieces instead of it suddenly disappearing would look great.
Thanks for the help! I’ll try to also do the breaking into pieces thing.
Okay! I don’t really know how to use tween service so I’ll be reading about it so see how I can use it.
Okay! I’ll try, how would I be able to do that though?
Instead of the wall being one single part, you can cut it into multiple parts, use the force from the explosion to boost them and then delete the model.
I don’t think there’s no any tutorial about that. Try to found it on dev forum or youtube.
Here’s a demo file for you to test out ;p Explosion.rbxm (5.5 KB)
Here’s the material I used for the bricks: Material.rbxm (905 Bytes)
Download, Right Click Workspace, Insert From File
It’s a good demo but the thing about it is that you already have the blocks there, I need it to be one whole block in the beginning, then it goes invisible and a few smaller blocks spawn after explosion, it helps out with performance, and yours also doesn’t respawn back after exploding, it just stays like that.
I guess a visual thing, but maybe have the player hold the bomb out while the ProximetyPrompt timer is working, like they are about to place it.
It seems a little choppy with the Proximety prompt circle, a bomb suddenly appearing at the player’s hand, the bomb suddenly appearing on the wall, then the sudden explosion.
If there was even a simple animation with the player holding the bomb up while the timer is rotating around, then the bomb disappearing from their hand then appearing on the wall it would seem a bit smoother.
Okay that’s actually really cool. Maybe a animation for for the wall exploding?