How would I make a time bomb W/ a diffuser

I was wondering if making a mini time bomb that goes off in a set amount of time w/ a tool the enemy can use to diffuse it is complicated or not and what code would I use to go about making it.

At first, I thought about just using the bomb from brickbattle but it rolls around too much and goes off much earlier than I would like, the blast radius and strength is also very large, is it possible to change all those values and make there a way to diffuse it?

Hello,
There are multiple ways you can do this. The one I would think of first is using tick() to calculate the time where you finish (i.e tick() > oldtick + 60). This would allow you to put this in a repeat wait() loop (or any type of loop, doesnt matter) for defusing instead of it going off at a set time without defusal methods. You can also use a for loop (i.e for i = 1, 10 do if defuse then break end wait(1) end) to wait every few set intervals before the defusing method works.
On the topic of defusing, you could probably use RemoteEvents or BindableEvents to transfer data to see if the bomb is defusable or not, and if you can, then defuse it.

1 Like