|| Self Destruction Protocol For My Facility Map ||

I’ve been learning how to code the past 2 or 3 months and I have been trying to learn how to code back in 2022, 2021, etc bht could never stick to it in I’ll this year, and i had a lot of fun doing so and I’ve gotten confident enough to code things like boss fights and data stores and I decided to attempt to code a self destruction system which is still being worked on, this is its latest progression

I resorted to using youtube to upload the video since devforums won’t

2 Likes

Hey aspiring developer. I am here to break down the steps for making that
1)The button
for the button, you would want to use roblox proximity prompts.It feature a lot of customisation and it is easy to use. The detection of the proximity prompts should be a server script

ProximityPrompt.Triggered:Connect(function(plr)— plr is referring to the plr that activated the prompt
end)

2)ok got how proximity prompts work?Now lets make the camera shake and the warning ui pop up. You would want to use remote event.

RemoteEvent:FireAllClient()
that part of the script should we written in a server script

3)ok now . Lets say that the total time taken for the warning message to disappear is 6 seconds and you want a 1 second delay before the fire and explosion appear
in the proximity prompt script, you should put a 7 second delay before adding the fire particle. You can put part that is transparent,Anchored off and can collide off in a folder called “EffectsFolder” in workspace

script summery:

PropximityPromt.Triggered:Connect(function()
PropximityPromt.Enabled = false-- make the propximitypromt no longer visible so that it can’t be activated
RemoveEvent:FireAllClient()
wait(8)-- delay can be anything
for i , e in pairs(effectsFolder:GetChildren())-- i is referring to how many times this loop happen and e is the part in the folder
local Effects = Instants.new(“Fire”,e)--Instants.new(<Item Name>,<Parent>)
end
end)

feel free to ask me any question
here is my discord profile if you want to do a dim
skyblox#1777

2 Likes

Oh uh actually I made it I don’t know if I mis communicated in the post or whatever but this was a nice guide on how it could possibly be broken down still tho bht my bad if it seemed like I wanted to know how to do it or whatever and sorry for the late reply

2 Likes