function makeRay(q,U)local y=Instance.new("\080\097\114\116")y.Name="\082\097\121\080\097\114\116"y.BrickColor=BrickColor.new("\066\114\105\103\104\116 \114\101\100")y.Transparency=.5 y.Anchored=true y.CanCollide=false y.TopSurface=Enum.SurfaceType.Smooth y.BottomSurface=Enum.SurfaceType.Smooth y.formFactor=Enum.FormFactor.Custom y.CFrame=q y.Size=U y.Parent=m ignoreList[#ignoreList+1]=y end local q=parts.Parent.Gun.Muzzle:clone()q.Parent=game.Workspace q.Anchored=true parts.Parent.Gun.Muzzle.Sound:Play()local U=q.PointLight:clone()U.Parent=q U.Enabled=true local y=q.Flash:clone()y.Parent=q y.Enabled=true game.Debris:AddItem(U,.07)game.Debris:AddItem(y,2)game.Debris:AddItem(q,.08)round=Instance.new("\080\097\114\116",user)round.Name="\082\097\121\080\097\114\116"round.Transparency=0 round.Anchored=true round.CanCollide=true round.TopSurface=Enum.SurfaceType.Smooth round.BottomSurface=Enum.SurfaceType.Smooth round.Material=Enum.Material.Neon round.formFactor=Enum.FormFactor.Custom round.BrickColor=BrickColor.new("\068\097\105\115\121 \111\114\097\110\103\101")yOffset=-0.2 local M=Instance.new("\080\111\105\110\116\076\105\103\104\116")M.Parent=round M.Brightness=50 M.Color=Color3.new(255,255,0)M.Range=10 M.Shadows=true

function makeRay(cframe, size)
	local p						= Instance.new("Part")
	p.Name						= "RayPart"
	p.BrickColor				= BrickColor.new("Bright red")
	p.Transparency				= 0.5
	p.Anchored					= true
	p.CanCollide				= false
	p.TopSurface				= Enum.SurfaceType.Smooth
	p.BottomSurface				= Enum.SurfaceType.Smooth
	p.formFactor				= Enum.FormFactor.Custom
	p.CFrame					= cframe
	p.Size						= size
	p.Parent					= m
	ignoreList[#ignoreList+1]	= p
end

		local flash = parts.Parent.Gun.Muzzle:clone()
		
	    
		flash.Parent = game.Workspace
		
		
		flash.Anchored = true

		parts.Parent.Gun.Muzzle.Sound:Play();
		local FL				= flash.PointLight:clone()
		FL.Parent				= flash
		FL.Enabled = true
		local Flashy = flash.Flash:clone()
		Flashy.Parent = flash
		Flashy.Enabled = true
		game.Debris:AddItem(FL, .07)
		game.Debris:AddItem(Flashy, 2)
		game.Debris:AddItem(flash, .08)

round					= Instance.new("Part", user)
round.Name				= "RayPart"
round.Transparency		= 0
round.Anchored			= true
round.CanCollide		= true
round.TopSurface		= Enum.SurfaceType.Smooth
round.BottomSurface		= Enum.SurfaceType.Smooth
round.Material			= Enum.Material.Neon
round.formFactor		= Enum.FormFactor.Custom
round.BrickColor		= BrickColor.new("Daisy orange")
yOffset					= -0.2

local PL				= Instance.new("PointLight")
PL.Parent				= round
PL.Brightness			= 50
PL.Color				= Color3.new(255, 255, 0)
PL.Range				= 10
PL.Shadows				= true

