Reece709Join Date: 2008-08-29 Post Count: 707 |
Why won't my nuke explode? This is the Touch script.
debounce = true
function onTouch(activate)
if debounce == false then return end
debounce = false
script.Parent.Anchored = true
wait(0.05)
Boom2 = Instance.new("Explosion")
Boom2.BlastRadius = 70
Boom2.Parent = game.Workspace
Boom2.Position = script.Parent.Position
wait(0.5)
Boom2:Remove()
Boom = Instance.new("Part")
Boom.Parent = game.Workspace
Boom.formFactor = 0
Boom.Shape = 0
Boom.BrickColor = BrickColor:Yellow()
Boom.Position = script.Parent.Position
Boom.Transparency = 0.3
Boom.Size = Vector3.new(4, 1, 4)
Boom.Anchored = true
Boom.TopSurface = "Smooth"
Boom.BottomSurface = "Smooth"
script.Parent.Transparency = 1
Script = script.Parent.Explosion
SC = Script:clone()
SC.Disabled = false
SC.Parent = Boom
Grow = script.Parent.Grow
GC = Grow:clone()
GC.Disabled = false
GC.Parent = Boom
Stay = script.Parent.Stay
SC = Stay:clone()
SC.Disabled = false
SC.Parent = Boom
Boom2 = Instance.new("Explosion")
Boom2.BlastRadius = 70
Boom2.Position = script.Parent.Position
wait(0.5)
Boom2:Remove()
wait(5)
script.Parent.Parent:Remove()
wait(100)
end
script.Parent.onTouched:connect(activate)
|
|
Reece709Join Date: 2008-08-29 Post Count: 707 |
BUMP |
|
harutsedoJoin Date: 2009-10-11 Post Count: 5150 |
script.Parent.onTouched:connect(activate)
should be
script.Parent.Touched:connect(onTouch)
|
|
harutsedoJoin Date: 2009-10-11 Post Count: 5150 |
script.Parent.onTouched:connect(activate)
should be
script.Parent.Touched:connect(onTouch)
|
|
Reece709Join Date: 2008-08-29 Post Count: 707 |
Still not working. |
|
CombradJoin Date: 2009-07-18 Post Count: 11025 |
script.Parent.Touched:connect(onTouch)
*Facepalm*
script.Parent.Touched:connect(activate) |
|
harutsedoJoin Date: 2009-10-11 Post Count: 5150 |
*facepalm*
He has no function called activate. |
|
Reece709Join Date: 2008-08-29 Post Count: 707 |
So what shall I change? |
|
Reece709Join Date: 2008-08-29 Post Count: 707 |
BUMP |
|
Reece709Join Date: 2008-08-29 Post Count: 707 |
BUMP |
|
Reece709Join Date: 2008-08-29 Post Count: 707 |
BUMP |
|
Reece709Join Date: 2008-08-29 Post Count: 707 |
BUMP |
|
Reece709Join Date: 2008-08-29 Post Count: 707 |
BUMP\ |
|
Reece709Join Date: 2008-08-29 Post Count: 707 |
Bump |
|
Reece709Join Date: 2008-08-29 Post Count: 707 |
BUMP |
|
FabunilJoin Date: 2013-10-25 Post Count: 4325 |
no output no help |
|
Reece709Join Date: 2008-08-29 Post Count: 707 |
Fine. I'll give you the output. |
|
|
"Boom.BrickColor = BrickColor:Yellow()" should be "Boom.BrickColor = BrickColor.Yellow()" or "Boom.BrickColor = BrickColor.new(24)", and "script.Parent.onTouched:connect(activate)" should be "script.Parent.Touched:connect(onTouch)" |
|
Reece709Join Date: 2008-08-29 Post Count: 707 |
This is the output.
Thu Aug 05 23:38:37 2010 - Running Script 'Touch'
Thu Aug 05 23:38:38 2010 - attempt to call a nil value
Thu Aug 05 23:38:38 2010 -
Thu Aug 05 23:38:49 2010 - Start RestoreResolution
Thu Aug 05 23:38:49 2010 - Done RestoreResolution |
|
Reece709Join Date: 2008-08-29 Post Count: 707 |
It works!!! Thank you so much Sonic! |
|
Reece709Join Date: 2008-08-29 Post Count: 707 |
No, it doesn't work. |
|
Reece709Join Date: 2008-08-29 Post Count: 707 |
Well it works but. I need it so it can fall through an open door. |
|
NEMESZISZJoin Date: 2010-08-01 Post Count: 149 |
BOOMM :3 |
|
Reece709Join Date: 2008-08-29 Post Count: 707 |
Um..... Why was that nessesary? |
|
Mew15Join Date: 2009-06-21 Post Count: 105 |
of course nemisis makes his first post on the the fourms spam |
|