wait(1)
-- Frozen Death
local k = Instance.new("Sound")
k.SoundId = "rbxasset://747238556"
if game.Players.LocalPlayer.Temp.Value == -400 then -- THIS LINE
local children = Char:GetChildren()
for i = 1, #children do
local child = children[i]
if children:IsA("BasePart") or children:IsA("MeshPart") then
children.Anchored = true
if children:IsA("BodyColors") then
HeadColor3 = Color3.fromRGB(34, 165, 205)
LeftArmColor3 = Color3.fromRGB(34, 165, 205)
LeftLegColor3 = Color3.fromRGB(34, 165, 205)
HeadColor3 = Color3.fromRGB(34, 165, 205)
RightArmColor3 = Color3.fromRGB(34, 165, 205)
RightLegColor3 = Color3.fromRGB(34, 165, 205)
TorsoColor3 = Color3.fromRGB(34, 165, 205)
if children:IsA("Decal") then
Transparency = 1
wait(7)
Char.Humanoid.Health = 0
Char.Humanoid.MaxHealth = 0
wait(2)
Temp.Value = 0
k:Play()
end
end
end
end
end
COMMUNITY QUESTION
How do I know when a number is less than another number?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Change == to <. The < operator is the "less than" operator. There's also >, which is "greater than". <= is "less than OR equal to", >= is "greater than OR equal to"
^ this post is the exact reason why i don't use ==, i use >= or <=. may seem stupid but if i create a custom .Died function on the humanoid using .HealthChanged, ill have to use currentHp <= 0 otherwise if the humanoid health is lower than 0 then it wont run. this is good practice