castray.OnServerEvent:Connect(function(I,J,z)local G=Instance.new("\080\097\114\116")G.BrickColor=BrickColor.new("\078\101\111\110 \111\114\097\110\103\101")G.FormFactor=Enum.FormFactor.Custom G.Material=Enum.Material.Neon G.Transparency=0 G.Anchored=true G.Locked=true G.CanCollide=false G.Parent=workspace local R=((tool:WaitForChild("\072\111\108\101")).CFrame.p-z).Magnitude G.Size=Vector3.new(.1,.1,R)G.CFrame=CFrame.new((tool:WaitForChild("\072\111\108\101")).CFrame.p,z)*CFrame.new(0,0,-R/2);(game:GetService("\068\101\098\114\105\115")):AddItem(G,.025)end)

castray.OnServerEvent:Connect(function(fired, ray, position)
	local beam = Instance.new("Part")
	
	beam.BrickColor = BrickColor.new("Neon orange")
	beam.FormFactor = Enum.FormFactor.Custom
	beam.Material = Enum.Material.Neon
	beam.Transparency = 0
	beam.Anchored = true
	beam.Locked = true
	beam.CanCollide = false
	beam.Parent = workspace
	
	local distance = (tool:WaitForChild("Hole").CFrame.p - position).Magnitude
	beam.Size = Vector3.new(0.1, 0.1, distance)
	beam.CFrame = CFrame.new(tool:WaitForChild("Hole").CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
	
	game:GetService("Debris"):AddItem(beam, 0.025)
end)
