06-22-2011, 05:21 PM
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.
[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.