Help with Teams

I have a problem, I have two teams and I need to find one random player from the LocalPlayers opposite team, But I tried and realized I needed help.
Thanks!

If you’re using the literal Roblox Team instances in the Teams service, you can use the Team:GetPlayers() method to get an array of players on that team; then you can use the length of that array to create a random index (via math.random or something else) and index your array with that.

You shouldn’t be relying on the client to manage Teams. You should manage Teams on the Server.