Need help setting an NPC's model as a character

Im not sure what I am doing wrong, but this is loading the players character, even though it is printing “Character Loading”… and “Character Loaded”

print("Character Loading")
			Player:LoadCharacter()
			local CurrentCharacter = Player.Character
			local Character = CharacterFiles:Clone()
			Character.Name = Player.Name
			Character.Parent = Player.Character
			Character:PivotTo(CurrentCharacter:GetPivot())
			Character.PrimaryPart:SetNetworkOwner(Player)
			Player.Character = Character
			ReplicatedStorage.CharactersSystem.ChangeCharacter:FireClient(Player, Character)
			CurrentCharacter:Destroy()
			print("Character loaded")

The RemoteEvent is to change the players Camera to the characters Humanoid.

If you can help, please let me know.

Thanks in advance!

You could probobly change this to;

local CurrentCharacter = Player.Character or Player.CharacterAdded:Wait()

This should be

Character.Parent = game.Workspace

Edit;
It shouldn’t be Character.Parent = Player.Character because Character when used like this, is a property and not an object or a place. But rather something like stored information.

1 Like

That was probably the weirdest typo I have ever made. Thanks for helping me fix it.

1 Like