LoadCharacter not working

I currently experiencing issue, when player changing team and event in the replicatedstorage being fired, afterwards script in the ServerScriptStorage change player team only, afterwards it just skips Player:LoadCharacter() and moving to the end.

local Player = game:GetService("Players")

game.ReplicatedStorage.Change.OnServerEvent:Connect(function(p, team)
    p.Team = team
    Player: LoadCharacter()
end)

You must call the function Player:LoadCharacter on a player

local Player = game:GetService("Players")

game.ReplicatedStorage.Change.OnServerEvent:Connect(function(p, team)
	p.Team = team
	p:LoadCharacter()
end)
1 Like