As shown in the title. Whenever I set my boolvalue to true it doesn’t print for some reason. I’ve been getting stressed from this and I still don’t know how to fix it? Any ideas?
game.Players.PlayerAdded:Connect(function(NewPlayer)
local Disease = Instance.new("BoolValue")
Disease.Name = "IsInfected"
Disease.Parent = NewPlayer
local Hygiene = Instance.new("IntValue")
Hygiene.Name = "Hygiene"
Hygiene.Value = 100
Hygiene.Parent = NewPlayer
if NewPlayer.IsInfected.Value == true then
print("yes")
end
end)