I am making a heat system for my antarctica game, and made a script which slowly kills player, but it doesn’t work, anyone knows why?
local humanoid = script.Parent:FindFirstChild("Humanoid")
local player = game.Players:GetPlayerFromCharacter(humanoid.Parent)
local value = player:WaitForChild("Heated")
while true do
if value.Value == true then
humanoid.Health = humanoid.Health - 1
else
humanoid.Health = humanoid.Health + 1
end
task.wait(1)
end