while true do
local touching = script.Parent:GetTouchingParts()
if script.Parent.Parent:GetAttribute("Armed") == true then while true do
for i, part in ipairs(touching) do
local PartN = part
if PartN ~= script.Parent.Parent.base or PartN.CanTouch == true and script.Parent.Parent:GetAttribute("Armed" == true) then script.Parent.Parent:SetAttribute("Triggered",true) end
if script.Parent.Parent:GetAttribute("Triggered") == true then
repeat
script.Parent.Parent:SetAttribute("TriggerTime",("TriggerTime" - 1))
until script.Parent.Parent:GetAttribute("TriggerTime") == 0
end
if script.Parent.Parent:GetAttribute("Explode") == true then
local explosion = Instance.new("Explosion")
explosion.BlastRadius = script.Parent.Parent:GetAttribute("BlastRad")
explosion.BlastPressure = script.Parent.Parent:GetAttribute("Strength")
explosion.DestroyJointRadiusPercent = script.Parent.Parent:GetAttribute("DestroyRad")
explosion.Position = script.Parent.Parent.base.Position
end
end wait(0.01)
end
end wait(0.01)
end
** You are now Level 4! **