So I was trying to make a morph GUI, even tried to follow tutorials and browsed online for sources. Anyway, I kept having this specific error:
"Model:GetPrimaryCFrame() failed because no PrimaryPart has been set, or the PrimaryPart no longer exists. Please set Model.PrimaryPart before using this.
Here's the script in problem in ServerScriptService:
local event = game.ReplicatedStorage.ChangeChar event.OnServerEvent:Connect(function(player,model) local Char = model:Clone() local Pos = player.Character:GetPrimaryPartCFrame() player.Character:Destroy() player.Character = Char Char.Parent = workspace Char:SetPrimaryPartCFrame(Pos) end)
If you have any tips for a morph GUI though to fix this entire mess, I'd gladly listen..
It's easy! Just follow these 2 simple steps:
1
2
And there you have it. It should set your model's position to your Pos variable.
All the best,
PrismaticFruits