So my script is supposed to change and change a value again when a person leaves and connects. I will only show you a portion of the script but here it is:
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) for i, v in pairs(game.StarterGui.Leaderboard.Players:GetChildren()) do if v:IsA("StringValue") then if v.Name == "Player1" then if v.Value == "" then v.Value = char.Name end
and the playeremoved function:
game.Players.PlayerRemoving:connect(function(plrl) for i, v in pairs(game.StarterGui.Leaderboard.Players:GetChildren()) do if v:IsA("StringValue") then if v.Name == "Player1" then if v.Value == plrl.Name then v.Value = "" end