Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

When changing avatar(Morphing) the morph wont move?

https://gyazo.com/2a9d76392caa48d89b7df4656c8e481a

This is an example of the morph not moving, Here is the source code and hierarchy:

Hierarchy: https://gyazo.com/4b219d4796c932e8f8128bfdf02972f8

Main Control script:

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 = game.Workspace
	Char:SetPrimaryPartCFrame(Pos)
end)

GreenHead/Normal script:

script.Parent.MouseButton1Click:Connect(function()
	
	game.ReplicatedStorage.ChangeChar:FireServer(game.ReplicatedStorage.Dummy)
	
	
	
	
end)

The two Local scripts are different because they either refer to "Dummy" or "Dummy2"

Thanks in advance -snipperdiaper

1 answer

I'm not entirely sure if this is the problem, but the way I see it, you've just used :Destroy() on the player's character, then you're trying to set the player's character. So the script does not know what to do because it just destroyed the player's character. Also, Are you getting any error messages from the script?

2 comments

0

Nope none at all, I also deleted the Destroy char line and it didnt fix it

0

hmm, strange. Well sorry but thats I all can think of.

This discussion is preserved as it was. New answers, comments, and votes are closed.