Issues with changing character?

Hello, I am trying to change the player’s character when they press a gui button, but it isn’t working:
The rig appears and the player body dissapears, before shortly appearing again, and the player going back to normal.

This is my code:

local ReplicatedStorage = game:GetService("ReplicatedStorage")

local RemoteEvents = ReplicatedStorage.Events
local Ships = ReplicatedStorage.Ships

RemoteEvents.ChangeCharacter.OnServerEvent:Connect(function(player, ship)
	local NewShip = Ships:FindFirstChild(ship):Clone()
	NewShip.Name = "StarterCharacter"
	NewShip.Parent = workspace
	player.Character = NewShip
	player:LoadCharacter()
end)

My model:
Screenshot 2023-09-04 at 12.10.02 PM

Any help is greatly appreciated, thank you!

Try to not call :LoadCharacter(). I recreated your problem in my own studio.

2 Likes

What else should I use then?
fileerrrr

nevermind i cant move now but its better than nothing, ill give you solution

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.