Here is my code:
local leaderDead = false game.Players.PlayerAdded:Connect(function(plr) if game.Workspace.leaderQueue.Surface.board.CurrentLeader.TextLabel.Text == '' then game.Workspace.leaderQueue.Surface.board.CurrentLeader.TextLabel.Text = plr.Name leaderDead = false elseif game.Workspace.leaderQueue.Surface.board.QueuePos1.TextLabel.Text == '' then game.Workspace.leaderQueue.Surface.board.QueuePos1.TextLabel.Text = plr.name elseif game.Workspace.leaderQueue.Surface.board.QueuePos2.TextLabel.Text == '' then game.Workspace.leaderQueue.Surface.board.QueuePos2.TextLabel.Text = plr.name elseif game.Workspace.leaderQueue.Surface.board.QueuePos3.TextLabel.Text == '' then game.Workspace.leaderQueue.Surface.board.QueuePos3.TextLabel.Text = plr.name end local leader = game.Worskpace.leaderQueue.Surface.board.CurrentLeader.TextLabel.Text while true do if game.Worskpace['leader'].Humanoid.Health == 0 then game.Worskpace.leaderQueue.Surface.board.CurrentLeader.TextLabel.Text = game.Worskpace.leaderQueue.Surface.board.QueuePos1.TextLabel.Text game.Worskpace.leaderQueue.Surface.board.QueuePos1.TextLabel.Text = game.Workspace.leaderQueue.Surface.board.QueuePos2.TextLabel.Text game.Worskpace.leaderQueue.Surface.board.QueuePos2.TextLabel.Text = game.Workspace.leaderQueue.Surface.board.QueuePos3.TextLabel.Text game.Workspace.leaderQueue.Surface.board.QueuePos3.TextLabel.Text = '' end end end)
Sorry that it's a bit long.