Here is the script where I create the spawn and set it's teamcolor property:

								local team = Instance.new("Team")
								local castleSpawn = Instance.new("SpawnLocation")
								local teamColor 
								
								repeat 
								
									teamColor = BrickColor.Random()
								
								until noTeamColorMatch(teamColor)
								
								team.TeamColor = teamColor
								team.Name = plr.Name.."'s Castle"
								team.Parent = teams
								plr.Team = team
								castleSpawn.Neutral = false
								castleSpawn.TeamColor = teamColor
								castleSpawn.Transparency = 1 
								castleSpawn.Name = "CastleSpawn"
								castleSpawn.Size = Vector3.new(6, 0.1, 6)
								castleSpawn.CFrame = CFrame.new(tycoon.SpawnPosition.Value)
								castleSpawn.Parent = tycoon.TycoonEssentials

I printed both the spawns color and the teams color and they were the same. The spawn will not consistently spawn you in on the team spawn. Sometimes it will spawn you on the neutral spawn. The wiki says: "When Neutral is false, only the players with a TeamColor property matching this object's TeamColor will respawn above it. Teams will be automatically generated for SpawnLocations belonging to teams that don't exist." so I have no idea what is going on. You can see in the script that I set the Neutral property to false. I would really appreciate some help. Thanks!

3 comments

0

try resetting, does the player still spawn in a neutral team?

0

Yes. I have preformed these tests with reseting. The other spawn is a Neutral spawn. Does that have anything to do with it?

0

Do all the spawns have to be different teams for the player to spawn on only one kind?