Advertisement
YourMain12

Defusal Script

Feb 18th, 2023
410
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. local bomb = game.Workspace.Bomb
  2. local defuser = script.Parent
  3.  
  4. --Check if the bomb is in the workspace and if it is, start the defusal process
  5. if bomb then
  6.  
  7. --Set the bomb's Defused property to true, i--Defuse Bomb Script
  8. ndicating that it has been defused
  9. bomb.Defused = true
  10.  
  11. --Play a sound effect to indicate that the bomb has been defused
  12. defuser.Parent:FindFirstChild("Humanoid"):PlaySound(bomb.DefuseSound)
  13.  
  14. --Wait for a few seconds before destroying the bomb
  15. wait(3)
  16.  
  17. --Destroy the bomb object from the workspace
  18. bomb:Destroy()
  19.  
  20. --Print a message to indicate that the bomb has been successfully defused
  21. print("Bomb successfully defused!")
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement