Character not loading through LoadCharacter()

I am trying to create a menu where you can choose a team and then spawn in the game.

For some reason the player does not spawn - only their team is set.

https://i.gyazo.com/e911a165229223c22136e1cec4d5940f.mp4

When the player clicks confirm, a RemoteEvent is fired to the server which spawns the player and sets their team.

Here is the code that spawns the user and sets their team. I cannot understand what is going wrong.

local otherTeam = team == Teams.Red and Teams.Blue or Teams.Red
if #team:GetPlayers() <= #otherTeam:GetPlayers() then
	player.Team = team
	player:LoadCharacter()
end
2 Likes

I am guessing this issue could have something to do with this;

Your code seems fine, I wouldn’t blame that.

9 Likes

That’s what I thought. Thanks for the second opinion.

3 Likes

This should be marked as the solution, I don’t see any other reason.

2 Likes

I thought it was best to wait until the problem was fixed but now that his reply has so many likes I will.

1 Like