how to make everyone on team see each other name roblox

-- Step 1: Get the player service
local Players = game:GetService("Players")

-- Step 2: Iterate through each player
for _, player in pairs(Players:GetPlayers()) do
    -- Step 3: Get the player's name
    local playerName = player.Name

    -- Step 4: Iterate through each team
    for _, team in pairs(game:GetService("Teams"):GetTeams()) do
        -- Step 5: Add each player's name to the team

        -- Step 6: Iterate through each member of the team
        for _, member in pairs(team:GetPlayers()) do
            -- Step 7: Set the display name for each member to be the player's name
            member.DisplayName = playerName