Why wont this work?

Does anyone have any idea why this wont work?


local tr = self.Owner:GetEyeTrace()
local tre = tr.HitPos
	
local effectdata = EffectData()
effectdata:SetOrigin( tre )
effectdata:SetStart( self.Owner:GetShootPos() )
effectdata:SetAttachment( 1 )
effectdata:SetEntity( self.Weapon )
util.Effect( "ToolTracer", effectdata )

im looking to make a effect like the tool gun for my gun

[editline]3rd February 2017[/editline]

doesnt matter fixed it :stuck_out_tongue:


local tr = self.Owner:GetEyeTrace()
local tre = tr.HitPos
	
local effectdata = EffectData() 
effectdata:SetOrigin( tre ) 
effectdata:SetStart( self.Owner:GetShootPos() )
effectdata:SetAttachment( 1 ) 
effectdata:SetEntity( self.Weapon )
util.Effect( "ToolTracer", effectdata, true, true )