I need help i'm making a military game and I need to make it so where if the player is in both of the groups they go on the electric blue team.
function onPlayerEntered(plyr) if plyr:GetRankInGroup(11525529) >= 147 then plyr.TeamColor = BrickColor.new('New Yeller') elseif plyr:GetRankInGroup(11525529) >= 1 then plyr.TeamColor = BrickColor.new("Really red") elseif plyr:GetRankInGroup(11578916) >=1 then plyr.TeamColor = BrickColor.new("Electric blue") if plyr:IsInGroup(11525529) and (11578916) then plyr.TeamColor = BrickColor.new("Electric blue") end end end
game.Players.PlayerAdded:Connect(onPlayerEntered)
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Wait() wait(1) player:LoadCharacter() end)