Grenade shrapnel system

i’ve been working on a vietnam war game for the past 2-ish weeks, and during that time i’ve documented my process of making a realistic grenade with shrapnel.

the grenade started out as a simple toolbox model from danishfir06. i cannot find/relocate the original model for credits but i do have his user.

i dived into the shrapnel system head first, as i already had an idea of how to make grenades fragment: i would clone a part in replicated storage that had a damage script, and the script that cloned the shrapnel (grenade server) would run a module script that applied impulse to the shrapnel part in a random direction.

so i coded that into the grenade script. it would actually require a module script parented to the grenade server script first just cuz the grenade server was already a bit crowded.

below is a video of the first iteration

unfortunately, during the first test of the game with my friend, i came across the problem of client-server replication having a stroke when the 30-50+ shrapnel parts are cloned at once.
i posted on the devforum (How to handle lots of parts on server moving? - #3 by Gobironlang) askign for help, and my savior Gobironlang suggested i use raycasting, which i did.
now it works seamlessly

if this ever gets attention i can make a tut or smthn

6 Likes

This grenade shrapnel system looks AWESOME! Good job on it! This is a unique thing for a Roblox game! How long did it take to create this system? When will the game be released?

1 Like

ty! from the start of getting the grenade to adding shrapnel took ~1.5 weeks when adding school and personal things into the mix.
(did go thru some variations obv but didnt stray from original idea)

Ik this is off topic but that death screen is really cool I like the sfx the sharpnel system also looks really cool too the only thing im worried about is lag but i think im overdoing it

Anyways ur project overall looks really cool good luck bro

1 Like

ty man! if u ever have questions ab the systems or how i made it, lmk i’ll be more than happy to answer and teach!

Honestly I dont script so would get confused real quick if u explained it to me but whats the game gonna be like cause it looks really cool is it round based?

1 Like

im not entirely sure whether or not the game will be round-based, if i were to make other maps in a round-based system i’d probably have to make a terrain saver and loader, but there’s like NOTHING on the internet on how to make them lol.
the game is aimed to be a medium to large-scale milsim centered around the vietnam conflict with a cartoon stylized theme. one of the main pillars of gameplay is the inclusiveness of destruction physics; i plan on all bulidings and structures to be destructable. the second pillar is communication: using radios to communicate between fireteams is key.
anyways yeah too much yap LOL

This looks really cool! My grandpa actually served in the Vietnam conflict, so this game means a lot to me. Looks great so far! I’m also working on a realistic game that uses terrain. Like the system, and death screen!

1 Like

Damn this sounds really good theres not really alot of vietnam games on roblox not to say realistic ones so I have a feeling this project will be successful good luck bro

1 Like