game.Players.PlayerRemoving:Connect(function(plr)
if playerValue.Value == 1 then
playerValue.Value = playerValue.Value - 1
text.PlayerA.Visible = false
end
end)
Really stupid question but when the player leaves it's not getting through the if playerValue.Value == 1 part any help would be great. I also printed before the playerValue.Value == 1 and it worked.

2 comments
Have you defined what playerValue is?
Yes...