|
| 02 Aug 2011 01:09 PM |
There is no output, nothing happens, the game was not paused. The connecting line is fine, and there are no errors with LUA parents and LUA children.
Please tell me why the dogturd every script I write NEVER WORKS! Oh, and explain how to fix this one too. That'd be nice. |
|
|
| Report Abuse |
|
|
|
| 02 Aug 2011 01:10 PM |
function Blowthecrapoutathisplace() wait(.5) x = Instance.new("Explosion") x.Position = Workspace.umgh4x.Poop.Position x.BlastRadius = 5 wait (.5) p = Instance.new("Explosion") p.Position = Workspace.umgh4x.Poop2.Position p.BlastRadius = 5 wait (.5) q = Instance.new("Explosion") q.Position = Workspace.umgh4x.Poop3.Position q.BlastRadius = 5 wait (.5) h = Instance.new("Explosion") h.Position = Workspace.umgh4x.Poop4.Position h.BlastRadius = 5 wait (.5) j = Instance.new("Explosion") j.Position = Workspace.umgh4x.Poop5.Position j.BlastRadius = 5 wait (.5) o = Instance.new("Explosion") o.Position = Workspace.umgh4x.Poop6.Position o.BlastRadius = 5 wait (.5) z = Instance.new("Explosion") z.Position = Workspace.umgh4x.Poop7.Position z.BlastRadius = 5 wait (.5) y = Instance.new("Explosion") y.Position = Workspace.umgh4x.Poop8.Position y.BlastRadius = 5 wait (.5) d = Instance.new("Explosion") d.Position = Workspace.umgh4x.Poop9.Position d.BlastRadius = 10 wait (.5) end script.Parent.ClickDetector.MouseClick:connect(Blowthecrapoutathisplace) |
|
|
| Report Abuse |
|
|
|
| 02 Aug 2011 01:10 PM |
"Poop.Position"
This is a very immature game you're making, I'm sure. |
|
|
| Report Abuse |
|
|
|
| 02 Aug 2011 01:13 PM |
| Don't judge me. And it's not actualy poop, it's just the name of the part. It's not a game either. I need multiple exploding bricks that go off in sequence for a film. |
|
|
| Report Abuse |
|
|
|
| 02 Aug 2011 01:18 PM |
Bump.
Step right up and find the oblivious error I made. |
|
|
| Report Abuse |
|
|
|
| 02 Aug 2011 01:21 PM |
script.Parent.ClickDetector.MouseClick:connect(function()
local p = game.Workspace.umgh4x:GetChildren()
for i = 1, #p do if p[i].Name == "Poop"..[i] then local ex = Instance.new("Explosion") ex.Position = p[i].Position ex.BlastRadius = 5 wait(.5)
end end end)
Try that. Less .. Complicated. |
|
|
| Report Abuse |
|
|
|
| 02 Aug 2011 01:24 PM |
Workspace.umgh4x.Button.Script:6: unexpected symbol near '['
Can you please fix my existing script? I can't read the one you posted very well, and would be difficult for myself to edit. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 02 Aug 2011 01:39 PM |
You didn't define the Parent of the explosion
Can be done like this:
exp = Instance.new("Explosion", game.Workspace)
or
exp = Instance.new("Explosion") exp.Parent = game.Workspace |
|
|
| Report Abuse |
|
|
|
| 02 Aug 2011 01:44 PM |
Also, you can just use x as your only variable for all the explosions.
y = workspace local x = Instance.new("Part") x.parent = y local x = Instance.new("Part") x.parent = y local x = Instance.new("Part") x.parent = y
That will create 3 parts. |
|
|
| Report Abuse |
|
|
| |
|
|
| 02 Aug 2011 01:50 PM |
script.Parent.ClickDetector.MouseClick:connect(function() wait(.5) x = Instance.new("Explosion") x.Position = Workspace.umgh4x.Poop.Position x.BlastRadius = 5 wait (.5) p = Instance.new("Explosion") p.Position = Workspace.umgh4x.Poop2.Position p.BlastRadius = 5 wait (.5) q = Instance.new("Explosion", workspace) q.Position = Workspace.umgh4x.Poop3.Position q.BlastRadius = 5 wait (.5) h = Instance.new("Explosion", workspace) h.Position = Workspace.umgh4x.Poop4.Position h.BlastRadius = 5 wait (.5) j = Instance.new("Explosion", workspace) j.Position = Workspace.umgh4x.Poop5.Position j.BlastRadius = 5 wait (.5) o = Instance.new("Explosion", workspace) o.Position = Workspace.umgh4x.Poop6.Position o.BlastRadius = 5 wait (.5) z = Instance.new("Explosion", workspace) z.Position = Workspace.umgh4x.Poop7.Position z.BlastRadius = 5 wait (.5) y = Instance.new("Explosion", workspace) y.Position = Workspace.umgh4x.Poop8.Position y.BlastRadius = 5 wait (.5) d = Instance.new("Explosion", workspace) d.Position = Workspace.umgh4x.Poop9.Position d.BlastRadius = 10 wait (.5) end)
Very inefficient but whatever.
|
|
|
| Report Abuse |
|
|