castray.OnServerEvent:Connect(function(k,K,V)local H=Instance.new("\080\097\114\116")H.BrickColor=BrickColor.new("\082\101\097\108\108\121 \114\101\100")H.FormFactor=Enum.FormFactor.Custom H.Material=Enum.Material.Neon H.Transparency=0 H.Anchored=true H.Locked=true H.CanCollide=false H.Parent=workspace local b=((tool:WaitForChild("\072\111\108\101")).CFrame.p-V).Magnitude H.Size=Vector3.new(.1,.1,b)H.CFrame=CFrame.new((tool:WaitForChild("\072\111\108\101")).CFrame.p,V)*CFrame.new(0,0,-b/2);(game:GetService("\068\101\098\114\105\115")):AddItem(H,.025)end)
-- Cast Ray
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)
