Need help with morphing script!

im trying to fix an issue in my script.
Its currently not working as i hoped it would, please help!

goal of script: switch from r6 to r15 and back

local function ReRig(Player, Target)
	if Player and Target then
		local Pack_Table = {}
		for N, Thng in ipairs(Player.Character:GetChildren()) do
			if Thng.ClassName == "Part"or Thng.ClassName == "MeshPart"then --if part
			else
				table.insert(Pack_Table, Thng)
			end
		end
		local new = Rigs_R:FindFirstChild(string.upper(Target))
		if new then
			local newer = new:Clone()
			newer.Parent = workspace
			for N, Thingy in ipairs(Pack_Table) do
				if Thingy.ClassName == "Decal" then
					Thingy:Clone().Parent = newer:FindFirstChild("Head")
				else
					Thingy:Clone().Parent = newer
				end
				
			end
			wait(1)
			newer.Name = Player.Name
			Player.Character = newer
			newer:FindFirstChild("H"):Destroy()
		else
			print("rigtype not findable.")
		end
	end
end

edit: H is the name of the Humanoid already inside the preset.

1 Like

so apparently the guy that solved R6 to R15 mid game
is a genius…

im gonna test this out and then post if it works with accessory’s, shirts, etc.

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