07-07-2011, 05:10 PM
[lua]t = script.Parent
function FIREINTHEHOLE()
if game.World:getChild("Bullet") ~= nil then
game.World:getChild("Bullet"):remove()
end
script.Parent.Texture = "http://desmond.imageshack.us/Himg217/scaled.php?server=217&filename=guntexture0002.png&res=gal"
local e = t.Bullet:clone()
local R = t:getAngle()
e.Rotation = R - 90
e.Parent = game.World
sleep(0.3)
script.Parent.Texture = "http://desmond.imageshack.us/Himg59/scaled.php?server=59&filename=guntexture0001.png&res=gal"
sleep(4.7)
e:remove()
end
link(t.MouseDown, FIREINTHEHOLE)[/lua]
The bullet just keeps respawning every 5 seconds and it doesn't disappear when I MouseDown
function FIREINTHEHOLE()
if game.World:getChild("Bullet") ~= nil then
game.World:getChild("Bullet"):remove()
end
script.Parent.Texture = "http://desmond.imageshack.us/Himg217/scaled.php?server=217&filename=guntexture0002.png&res=gal"
local e = t.Bullet:clone()
local R = t:getAngle()
e.Rotation = R - 90
e.Parent = game.World
sleep(0.3)
script.Parent.Texture = "http://desmond.imageshack.us/Himg59/scaled.php?server=59&filename=guntexture0001.png&res=gal"
sleep(4.7)
e:remove()
end
link(t.MouseDown, FIREINTHEHOLE)[/lua]
The bullet just keeps respawning every 5 seconds and it doesn't disappear when I MouseDown