Buzzy

Loading...

Buzzy

Register

Roblox Studio Tutorials - October 6, 2021

How to Make an Exploding NPC on Touch

1

Buzzy Beth

@buzzygamesbeth

Download – Exploding NPC Script

How To – Make an Exploding NPC on Roblox Studio

What’s up everyone welcome to buzzygames, my name is BuzzyGamesBeth and today I’ll be teaching you how to make an exploding NPC on touch!

  • I have this dummy right over here and you know if itouch it nothing happens at all. So what I want to do is anytime we touch the npc, we go boom!
  • So first thing you want to do is go ahead and add a script inside of our rig or any npc that you have! Go ahead and rename that script to anything you want just for organization reasons. I guess you could say i’m just going to do exploding script on my end.
  • Once you’re done with that, go ahead and delete the print statement. Right now we’re going to go ahead and define our variables and we’re going to create a touched function where any time if a player touches this npc. then we’re just going to explode!
  • We’re going to set the blast radius to 5, you can change it to any number you want. The bigger (the number) it is the bigger the explosion will be and then our explosion position is going to be equal to limb position.
  • So that anytime you hop into the game and you touch the dummy rig, the limbs or your body part is going to detach!