of     1   

TheEliteDonphan
#123465095Sunday, January 19, 2014 2:32 AM GMT

local gun=script.Parent local plr; gun.Equipped:connect(function(mouse) plr=gun.Parent mouse.Button1Down:connect(function() local aa=Ray.new(gun.Handle.CFrame.p,(mouse.Hit.p-gun.Handle.CFrame.p).unit*300) local h,pos=Workspace:FindPartOnRay(ray,plr) local hum=h and h.Parent and h.Parent:findFirstChild("Humanoid") if hum then hum:TakeDamage(30) end local dist=(pos-gun.Handle.CFrame.p).magnitude local bb=Instance.new("Part",plr) bb.Name="LAZOR" bb.BrickColor=BrickColor.new("Bright red") bb.Transparency=0.5 bb.Anchored=true bb.CanCollide=false--gg no re bb.TopSurface=1 bb.BottomSurface=1 bb.Formfactor="Custom" bb.Size=Vector3.new(0.2,0.2,dist) bb.CFrame=CFrame.new(pos,gun.Handle.CFrame.p)*CFrame.new(0,0,-dist/2) game.Debris:AddItem(rayPart,0.1) end) end) I don't see a missing variable..
Funse
#123465265Sunday, January 19, 2014 2:34 AM GMT

delete local plr; at the top Mr.Teddy for President ˁ(⦿ᴥ⦿)ˀ
Thaeh
#123465291Sunday, January 19, 2014 2:34 AM GMT

What line?
TheEliteDonphan
#123465387Sunday, January 19, 2014 2:35 AM GMT

@tha No line, it just says @ROBLOX I used local plr; to define plr later
TheEliteDonphan
#123466025Sunday, January 19, 2014 2:42 AM GMT

b
Lacryma
#123467351Sunday, January 19, 2014 2:55 AM GMT

you don't need local plr
Infocus
#123467463Sunday, January 19, 2014 2:56 AM GMT

Yes he does, if he wants the tool to be able to be picked up.
TheEliteDonphan
#123471543Sunday, January 19, 2014 3:39 AM GMT

b2

    of     1