Helicopter tool help
#3
function keyDown(c, hit)
if c == "b" then
local bomb = create("Box")
bomb.Name = "Bomb"
bomb.Size = Vec2D(2, 5)
bomb.Position = script.Parent.Flier.Position
if bomb.hit.Type = "Character" or "Box" then
local ex = create("Explosion")
ex.Position = bomb.Position
end
end
end


At the end of the script:

link(script.Parent.KeyDown, keyDown)
Reply


Messages In This Thread
Helicopter tool help - by Vast - 08-07-2011, 08:43 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)