I am making a winter survival campaign, and I need it so that when the player is not under a brick, the players loses some "body heat". When the "body heat" runs out, the player begins to lose health until they find shelter (in other words, when they get under a brick) and body heat regenerates.
Unfortunately I am a bad scripter and have no idea how it would be done.
Basically like gmod survival but instead of lose health when no shelter while sleeping, lose health while outside.