why isnt this working? can u tell me precisely whats wrong
local players, teams = game:GetService("Players"), game:GetService("Teams") players.PlayerAdded:Connect(function(player) if player:GetRankInGroup(5086504) == 199 then local team = game:getservice("teams")["Game Developer"] else end end)
Do not tag your post as "EMERGENCY". Please read what the first comment said. There is absolutely no point in doing that at all. Since I'm nice, I went ahead and fixed your script.
Please accept this answer if this helped!
local players = game:GetService("Players") players.PlayerAdded:Connect(function(player) if player:GetRankInGroup(5086504) == 199 then player.Team = "Game Developer" -- make sure you have a team called Game Developer end end)
Try doing this:
local players = game:GetService("Players") local Teams= game:GetService("Teams") players.PlayerAdded:Connect(function(player) if player:GetRankInGroup(5086504) == 199 then player.Team = Teams["Game Developer"] end end)
Just note that Player.Teams is not replicated.