#so why is this just a bunch of 1's 0's and a center piece for your gaming setup at the moment

1 messages · Page 1 of 1 (latest)

formal snow
#

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

#

^ raw text if you need it ^

fringe ermine
#

You should format it differently. Edit your message

formal snow
#
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 
fringe ermine
# formal snow thks

Also could you explain what you're actually asking about? Your title makes no sense

formal snow
#

"why is this completly usless and not working"

#
local reallyblack = Color3.new(0,0,0)
local neonorange = Color3.new(0.835294, 0.45098, 0.239216)
local neonred = Color3.new(1, 0, 0)
while true do
    
if script.Parent.Material == Enum.Material.Neon and script.Parent.Parent:GetAttribute("Armed") == true then repeat
script.Parent.Color = reallyblack
script.Parent.SurfaceLight.Enabled = false
wait(0.5) 
script.Parent.Color = neonorange 
script.Parent.SurfaceLight.Enabled = true
wait(1.5)
until script.Parent.Material ~= Enum.Material.Neon
else script.Parent.Material = Enum.Material.glass end

if script.Parent.Parent:GetAttribute("Triggered") == true then 
    repeat
        script.Parent.Color = reallyblack
        script.Parent.SurfaceLight.Enabled = false
        wait(0.01) 
        script.Parent.Color = neonred 
        script.Parent.SurfaceLight.Enabled = true
        wait(0.01)
    until script.Parent.Parent:GetAttribute("TriggerTime") == 0
    script.Parent.Parent:SetAttribute("explode",true)
end wait(0.2)
end

script2

fringe ermine
formal snow
#

nothing

#

its acting like the script is functioning fine

#

but nothing happens

#
script.Parent.Color = reallyblack
script.Parent.SurfaceLight.Enabled = false
wait(0.5) 
script.Parent.Color = neonorange 
script.Parent.SurfaceLight.Enabled = true
wait(1.5)
until script.Parent.Material ~= Enum.Material.Neon

is the only working part of the two

formal snow
#

blink & explode

fringe ermine
formal snow
#

didnt add any

#

could you tell me where i might need some

#

wait studio is updating now

fringe ermine
formal snow
#

i wrote it all

#

it only detects part of its self as a touching part

fringe ermine
formal snow
#
local touching = script.Parent.Parent:GetTouchingParts()

if script.Parent.Parent:GetAttribute("Armed") == true then while true do
for i, part in ipairs(touching) do
                local PartN = part
                print(PartN.Name)
```?
fringe ermine
formal snow
#

at first i just had script.parent and it didnt work

#

im so confused

neon crescentBOT
#

studio** You are now Level 4! **studio

formal snow
#
if PartN ~= nil and script.Parent.Parent:GetAttribute("Armed" == true) then script.Parent.Parent:SetAttribute("Triggered",true) end 
#
if PartN ~= nil and script.Parent.Parent:GetAttribute("Armed") == true then script.Parent.Parent:SetAttribute("Triggered",true) end

just breaks it

#

again

#

its not broken it just dosent output anything at all

fringe ermine
formal snow
#

yeah

#

i have to check later though

#

so not very sure

formal snow
#

k back