Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local bomb = game.Workspace.Bomb
- local defuser = script.Parent
- --Check if the bomb is in the workspace and if it is, start the defusal process
- if bomb then
- --Set the bomb's Defused property to true, i--Defuse Bomb Script
- ndicating that it has been defused
- bomb.Defused = true
- --Play a sound effect to indicate that the bomb has been defused
- defuser.Parent:FindFirstChild("Humanoid"):PlaySound(bomb.DefuseSound)
- --Wait for a few seconds before destroying the bomb
- wait(3)
- --Destroy the bomb object from the workspace
- bomb:Destroy()
- --Print a message to indicate that the bomb has been successfully defused
- print("Bomb successfully defused!")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement