06-14-2011, 11:46 PM
(This post was last modified: 06-14-2011, 11:48 PM by Morgan_Freeman.)
Where seeing it do absolutely anything would be a freaking miracle.
Debug, anyone?
EDIT: Fixed one thing, code now is current, but still not working. t-t
Debug, anyone?
Code:
enabled = true
link(script.Parent.Clicked, function(player, btn)
if not enabled then return end
enabled = false
lazorcharges=50
for i=1,lazorcharges do
sleep(0.1)
Charge = Instance.new("Box")
Charge.Parent = game.World
Charge.Position = Vec2D.new(math.random(340,342),math.random(19,21))
Charge.Color = script.Parent.Color
Charge.Size = Vec2D.new(0.1,0.1)
Charge.Collidable = false
Charge.CharacterCollidable = false
Charge.Fixed = false
Charge.Rotation = 0
Charge.Velocity = Vec2D.new(0,0.5)
firemylazor()
enabled = true
end
end)
function firemylazor()
Matter = Instance.new("Box")
Matter.Parent = game.World
Matter.Position = Vec2D.new(math.random(340,342),math.random(19,21))
Matter.Color = script.Parent.Color
Charge.Size = Vec2D.new(0.1,0.1)
Charge.Collidable = false
Charge.CharacterCollidable = false
Charge.Fixed = false
Charge.Rotation = 0
Charge.Velocity = Vec2D.new(-20,0)
end
EDIT: Fixed one thing, code now is current, but still not working. t-t
~Phoenix, Buildism's resident flaming bird, CubeBomb Moderator, Lua Coder, and overall mature individual. :3