Finding Child of Folder

Hey there,

I am working on a team change system and I am using a remote even for my team change system.

The problem is I for some reason when I try to set the players team to that of the team value I get this error. Even though when I use FindFirstChild to find the value in the teams folder the FindFirstChild finds it perfectly fine.
Screen Shot 2020-12-30 at 11.24.12 PM
I have tried adding a .Name of the end of team and tried without it. I have also tried replacing team with a FindFirstChild for team and also for team.Name

This is probably a really easy fix but I would still greatly appreciate if you take some time out of your day to help me out.



player.Team =


player.Team = TeamsFolder:WaitForChild(team.Name)

If this doesn’t work, can you explain how you’re using teams and why you have a team folder in server storage?

To set a player’s team, do this:

PlayerName.Team = game.Teams.YourTeam

And, aren’t teams supposed to go in a folder named “Teams” in the game?
Here is a picture of its location:

Well yes, but sometimes it is not inserted by default. The two data model sevices that are not inserted by default are Teams and ReplicatedScriptService? I think. You should go to model and insert it from there. It should be at the far right I think

Yeah I just realized that I cant have teams inside server storage