This is a server script/ normal script inside server script service. What is wrong is when 1 player joins the person is allocated a base and the value of owner changes to their name whereas when player 2 joins the value of owner doesn't change
game.Players.PlayerAdded:Connect(function(plr)
if workspace.Bases.Blue.Owner.Value == "" then
workspace.Bases.Blue.Owner.Value = plr.Name
elseif workspace.Bases.Red.Owner.Value == "" then
workspace.Bases.Red.Owner.Value = plr.Name
elseif workspace.Bases.Yellow.Owner.Value == "" then
workspace.Bases.Yellow.Owner.Value = plr.Name
elseif workspace.Bases.Green.Owner.Value == "" then
workspace.Bases.Green.Owner.Value = plr.Name
end

1 comment
I forgot the end