Hi I am new to scripting scripting I have a problem with my bomb script tool to look at the video click link bomb - YouTube heres the code
local tool = script.Parent
local handle = tool.Handle
local debounce = false
local BlastRadius = 10
local BlastPressure = 10000
local FuseTime = 3
local cooldown = 5
tool.Activated:Connect(function()
if not debounce then
debounce = true
local bomb = handle:clone()
bomb.Parent = workspace
bomb.Position = handle.Position
bomb.CanCollide = true
bomb.Fuse:Play()
handle.Transparency = 1
delay(FuseTime,function()
local explosion = Instance.new("Explosion",workspace)
explosion.Parent = bomb.Position
explosion.BlastRadius = BlastRadius
explosion.BlastPressure = BlastPressure
bomb:Destroy()
end)
end
wait(cooldown)
handle.Transparency = 0
debounce = false
end)