local function h(h,o)local W=getPlayerToolHandle(h)if W then eventsFolder.LaserFired:FireAllClients(h,W,o)end end function damageCharacter(h,o,W)local Q=o:FindFirstChild("\072\117\109\097\110\111\105\100")local M=isHitValid(h,o,W)if Q and M then Q.Health-=LASER_DAMAGE end end

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
