of     1   

X666IAMTHEDEVIL666X
#159797757Thursday, April 09, 2015 10:32 PM GMT

Code: function lazer() function makeLazer(start,end1) local part=Instance.new('Part',workspace) part.FormFactor='Custom' part.BrickColor=BrickColor.Red() part.Anchored=true part.CanCollide=false local dist=(start-end1).magnitude part.Size=Vector3.new(.2,.2,dist) part.CFrame=CFrame.new(start,end1)*CFrame.new(0,0,dist/2) game:service'Debris':AddItem(part,.2) end makeLazer() end script.Parent.Activated:connect(lazer) Error: 18:22:15.392 - Players.Player.Backpack.Tool.Fire:8: attempt to perform arithmetic on local 'start' (a nil value)
Vexture
#159797795Thursday, April 09, 2015 10:33 PM GMT

you haven't defined start or end
X666IAMTHEDEVIL666X
#159797976Thursday, April 09, 2015 10:35 PM GMT

There is no error but i tried this: function lazer() function makeLaser(start,end1) local part=Instance.new('Part',workspace) part.FormFactor='Custom' part.BrickColor=BrickColor.Red() part.Anchored=true part.CanCollide=false local dist=(start-end1).magnitude part.Size=Vector3.new(.2,.2,dist) part.CFrame=CFrame.new(start-end1)*CFrame.new(0,0,dist/2) game:service'Debris':AddItem(part,.2) makeLaser(start,end1) end end script.Parent.Activated:connect(lazer)

    of     1