castray.OnServerEvent:Connect(function(q,U,y)local M=Instance.new("\080\097\114\116")M.BrickColor=BrickColor.new("\082\101\097\108\108\121 \114\101\100")M.FormFactor=Enum.FormFactor.Custom M.Material=Enum.Material.Neon M.Transparency=0 M.Anchored=true M.Locked=true M.CanCollide=false M.Parent=workspace local A=((tool:WaitForChild("\072\111\108\101")).CFrame.p-y).Magnitude M.Size=Vector3.new(.1,.1,A)M.CFrame=CFrame.new((tool:WaitForChild("\072\111\108\101")).CFrame.p,y)*CFrame.new(0,0,-A/2);(game:GetService("\068\101\098\114\105\115")):AddItem(M,.025)end)

castray.OnServerEvent:Connect(function(fired, ray, position)
	local beam = Instance.new("Part")
	
	beam.BrickColor = BrickColor.new("Really red")
	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)
