I want to get players in team

Yes searched for that and nothing, I need to get players from team in script. How to do it?

GetPlayers() is also a function of a Team object, so if you have the team object, can use it on it

local Teams = game:GetService("Teams")

print(Teams.RedTeam:GetPlayers()) -- Would print out all the player instances
--Of the players in RedTeam