local function C(C,h)local g=getPlayerToolHandle(C)if g then eventsFolder.LaserFired:FireAllClients(C,g,h)end end function damageCharacter(C,h,g)local r=h:FindFirstChild("\072\117\109\097\110\111\105\100")local I=isHitValid(C,h,g)if r and I then r.Health-=LASER_DAMAGE end end
-- Notify all clients that a laser has been fired so they can display the laser
local function playerFiredLaser(playerFired, endPosition)
	local toolHandle = getPlayerToolHandle(playerFired)
	if toolHandle then
		eventsFolder.LaserFired:FireAllClients(playerFired, toolHandle, endPosition)
	end
end

function damageCharacter(playerFired, characterToDamage, hitPosition)
	local humanoid = characterToDamage:FindFirstChild("Humanoid")
	local validShot = isHitValid(playerFired, characterToDamage, hitPosition)
	if humanoid and validShot then
		-- Remove health from character
		humanoid.Health -= LASER_DAMAGE
	end
end
