Whenever I join an empty server of mine in my game, it assigns me to the owner team no problem, however, as soon as I join a lobby with players in it, it assigns me to the default team, the “civilian” team (for a lack of a better term) rather the owner team. However, my owner tag/chat color remain completely fine, but in order for everything else to work, people would have to join me.
Your question is very vague, so next time be more specific and include your code. I couldn’t be sure whether your game was owned by you or a group, so I made it compatible with both. Read the comments for explanation on what the line does.
local Players = game:GetService("Players")
local Teams = game:GetService("Teams")
Players.PlayerAdded:Connect(function(Player) -- Runs everytime a new player joins
if game.CreatorType == Enum.CreatorType.User then -- Checks if the place is owned by an user
if Player.UserId == game.CreatorId then -- If the player is the creator (owner) of the place
Player.Team = Teams.Owner -- Teams the player to the owner team
end
else
if Player:GetRankInGroup(game.CreatorId) == 255 then -- Checks if the player is the owner of the group, change the number to the equivalent of another rank if you want to give them access to your team as well.
Player.Team = Teams.Owner -- Teams the player to the owner team
end
end
end)
Paste the code I wrote for you into a script inside ServerScriptService if you wish to use it, if not it’s still a good resource for you to learn.
What’s the issue you have? When I tested it (in a published place, of course) then it worked perfectly. Make sure the team is named “Owner”, else you’ll have to change the lines referencing to that team to your own team name.
Right, I have the owner team and everything, however the problem is when I join my game with people already in it, it doesn’t autoassign me to the owner team. It puts me on what everyone else would be on if they didn’t have a rank.
For instance. The “default” rank in my game would be the QWERTY team. Instead of myself being assigned to the “Owner” team. This also has began to happen to the admin team as well.
Keep in mind the “Autoassign” for both teams were unchecked, not sure if they should’ve been or not but I felt as if this was useful information