2DWorlds Forums
I'm having issues with explosions not exploding. - Printable Version

+- 2DWorlds Forums (http://2dworlds.buildism.net/forum)
+-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4)
+--- Forum: Bug Reports (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=23)
+--- Thread: I'm having issues with explosions not exploding. (/showthread.php?tid=6085)



I'm having issues with explosions not exploding. - Qwertygiy - 06-22-2011

Here's a really basic sample of the code I'm using:

[lua]
local tool = script.Parent

selectedz = false

function selected()
selectedz = true
while selectedz do
sleep(0.5)
e = create("Explosion")
e.Parent = game.World
e.Position = tool.Parent.Parent.Character.Body.Position
e.Radius = 15
e.Force = 3000
end
end

link(tool.Selected, selected)
[/lua]

Bomb tool of Jacob_'s works fine though.


RE: I'm having issues with explosions not exploding. - Login - 06-22-2011

What you're saying is basically to make World explode...


RE: I'm having issues with explosions not exploding. - Qwertygiy - 06-22-2011

No, tool.Parent.Parent is the player. The positioning part works fine.
The explosion shows up in the AT display but not the 2D world.


RE: I'm having issues with explosions not exploding. - Jacob__mybb_import1 - 06-22-2011

You have to change the properties before setting the parent.