local M=getSetting("\068\097\109\097\103\105\110\103 \104\101\105\103\104\116")or 14 local C=getSetting("\076\101\116\104\097\108 \104\101\105\103\104\116")or 26;(game:GetService("\080\108\097\121\101\114\115")).PlayerAdded:Connect(function(F)F.CharacterAdded:Connect(function(F)local Q=F:WaitForChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")local t=F:WaitForChild("\072\117\109\097\110\111\105\100")if t and Q then local F wait(3)t.FreeFalling:Connect(function(b)if b then F=Q.Position.Y elseif not b and F~=nil then pcall(function()local b=F-Q.Position.Y if b>=C then t.Health=0 elseif b>=M then t.Health=t.Health-math.floor(b)end end)end end)end end)end)

local damageHeight = getSetting("Damaging height") or 14 -- The height at which the player will start getting damaged at
local lethalHeight = getSetting("Lethal height") or 26 -- The height at which the player will get killed

game:GetService("Players").PlayerAdded:Connect(function (plr)
	plr.CharacterAdded:Connect(function (char)
		
		local root = char:WaitForChild("HumanoidRootPart")
		local humanoid = char:WaitForChild("Humanoid")
		
		if humanoid and root then
			
			local headHeight
			
			wait(3) -- Prevent the player from dying on spawn
			humanoid.FreeFalling:Connect(function (state)
				if state then
					headHeight = root.Position.Y
				elseif not state and headHeight ~= nil then
					pcall(function ()
						
						local fell = headHeight - root.Position.Y
						
						if fell >= lethalHeight then
							humanoid.Health = 0
						elseif fell >= damageHeight then
							humanoid.Health = humanoid.Health - math.floor(fell)
						end
					end)
				end
			end)
		end
	end)
end)
