Hey there,
my code for a group changer doesnt work here it is:
local GroupId = 9423809
local MinimalRank = 200
local Dev = BrickColor.new("New Yeller")
game.Players.PlayerAdded:Connect(function(Player)
if Player:GetRankInGroup(GroupId) >= MinimalRank then
Player.TeamColor = dev
else
end
end)
local GroupId = 9423809
local MinimalRank = 200
local Dev = BrickColor.new("New Yeller")
game.Players.PlayerAdded:Connect(function(Player)
if Player:GetRankInGroup(GroupId) >= MinimalRank then
Player.TeamColor = Dev
else
end
end)
local GroupId = 9423809
local MinimalRank = 200
local Dev = BrickColor.new("New Yeller")
game.Players.PlayerAdded:Connect(function(Player)
if Player:GetRankInGroup(GroupId) >= MinimalRank then
print("Player is a dev")
Player.TeamColor = Dev
else
print("Player is not a dev")
end
end)
The Player.Team documentation says that if there’s no team with the associated color, the player won’t be given a team
game.Players.PlayerAdded:Connect(function(plr)
if plr:GetRankInGroup(9423809) >= 200 then
plr:TeamColor = brickColor.new("New Yeller")
end
end)
game.Players.PlayerAdded:Connect(plr)