Morph doesn't replace player

Hello There!

As the title says, the issue I am experiencing is that I cannot seem to make this morph script work correctly. Although for a more proper explanation, the text below me is a snippet from a round system script where if you an administrator you’ll be randomly given a mutation (Or in the game, ‘Roll’) and depending on the mutation/roll you have will have certain abilities and if you know what Telamon is, then you know that the current roll you can have is Shedletsky.

The issue is that the morph will simply won’t replace my avatar, only just appearing in workspace and just teleporting to me and I am stumped on why it’s doing such.

for _, Player in pairs(Players:GetChildren()) do
			Player:LoadCharacter()
			task.wait(0.5)

			local Telamon = game:GetService("ReplicatedStorage").Shedletsky:Clone()

			Telamon:SetPrimaryPartCFrame(Player.Character.PrimaryPart)
			
			Player.Character = Telamon
			Telamon.Parent = game.Workspace
		end

This line isn’t correct. If you’re setting the CFrame of a part, then the information inside the parentheses also needs to be a CFrame. And on another note, :SetPrimaryPartCFrame() is deprecated, so we can try :PivotTo() instead.

There is also a chance that the HRP of the new character may be anchored, so let’s see if that maybe that is part of the problem.

Try the following:

Telamon.HumanoidRootPart.Anchored = false
Telamon:PivotTo(Player.Character.PrimaryPart.CFrame)

Huh, that apparently worked. Thanks!

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