How do i fix that morph script?

  1. I wanna my morph get clothes on, because now clotches no work

  2. Morph just have no clotches! Screenshot: image

  3. I was looking on youtube/devhub, but didn’t find anything

Here is script:
By the way i know what there is accesories section, but i have no idea what to put in clothes parent and part(You can find that in script)

Player = game.Players.LocalPlayer
C = Player.Character
Dummy = game.ReplicatedStorage.R6
D = C:GetChildren()


script.Parent.MouseButton1Click:Connect(function()
	Player:ClearCharacterAppearance()
	D = C:GetChildren()

	C.Torso.Transparency = 1
	C.Head.Transparency = 1
	C["Right Arm"].Transparency = 1
	C["Right Leg"].Transparency = 1
	C["Left Arm"].Transparency = 1
	C["Left Leg"].Transparency = 1
	C.Head["face"].Transparency = 1

	local button = script.Parent

	button:TweenPosition(UDim2.new(0.376, 0,0.012, 0), "Out", "Linear")
	wait(1)
	button:TweenPosition(UDim2.new(0.396, 0,1, 0), "Out", "Linear")
	wait(1)
	--BODY!
	T = Dummy.Torso:Clone()
	T.Parent = game.Workspace
	local w1 = Instance.new("Weld")
	w1.Parent = C
	w1.Part0 = C.Torso
	w1.Part1 = T
	w1.C0 = CFrame.new(0,0,0)

	T = Dummy.Head:Clone()
	T.Parent = game.Workspace
	local w1 = Instance.new("Weld")
	w1.Parent = C
	w1.Part0 = C.Head
	w1.Part1 = T
	w1.C0 = CFrame.new(0,0,0)

	T = Dummy["Right Arm"]:Clone()
	T.Parent = game.Workspace
	local w1 = Instance.new("Weld")
	w1.Parent = C
	w1.Part0 = C["Right Arm"]
	w1.Part1 = T
	w1.C0 = CFrame.new(0,0,0)

	T = Dummy["Right Leg"]:Clone()
	T.Parent = game.Workspace
	local w1 = Instance.new("Weld")
	w1.Parent = C
	w1.Part0 = C["Right Leg"]
	w1.Part1 = T
	w1.C0 = CFrame.new(0,0,0)


	T = Dummy["Left Arm"]:Clone()
	T.Parent = game.Workspace[Player.Name]
	local w1 = Instance.new("Weld")
	w1.Parent = C
	w1.Part0 = C["Left Arm"]
	w1.Part1 = T
	w1.C0 = CFrame.new(0,0,0)


	T = Dummy["Left Leg"]:Clone()
	T.Parent = game.Workspace
	local w1 = Instance.new("Weld")
	w1.Parent = C
	w1.Part0 = C["Left Leg"]
	w1.Part1 = T
	w1.C0 = CFrame.new(0,0,0)

	--ACCESORIES![Hairs,etc.]

	T = Dummy.Pants:Clone()
	T.Parent = game.Workspace[Player.Name]
	local w1 = Instance.new("Weld")
	w1.Parent = game.Workspace[Player.Name].ChestnutStyle.Handle
	w1.Part0 = game.Workspace[Player.Name].ChestnutStyle.Handle
	w1.Part1 = C["Head"]
	w1.C0 = CFrame.new(0,-0.3,0)

	T = Dummy.Shirt:Clone()
	T.Parent = game.Workspace[Player.Name]
	local w1 = Instance.new("Weld")
	w1.Parent = game.Workspace[Player.Name].Ring.Handle
	w1.Part0 = game.Workspace[Player.Name].Ring.Handle
	w1.Part1 = C["Left Arm"]
	w1.C0 = CFrame.new(0,-0.1,-0.2)

	T = Dummy.Tail:Clone()
	T.Parent = game.Workspace[Player.Name]
	local w1 = Instance.new("Weld")
	w1.Parent = game.Workspace[Player.Name].Ring2.Handle
	w1.Part0 = game.Workspace[Player.Name].Ring2.Handle
	w1.Part1 = C["Right Arm"]
	w1.C0 = CFrame.new(0,-0.1,-0.2)

	T = Dummy.Sword:Clone()
	T.Parent = game.Workspace[Player.Name]
	local w1 = Instance.new("Weld")
	w1.Parent = game.Workspace[Player.Name].Sword.Handle
	w1.Part0 = game.Workspace[Player.Name].Sword.Handle
	w1.Part1 = C["Torso"]
	w1.C0 = CFrame.new(0,0,-0.7)

	--tool
	game.ReplicatedStorage.LinkedSword:clone().Parent = Player.Backpack 


end)

Sorry i’m new scripter, so i can’t understand how to fix that.

Try doing:

local Player = game.Players.LocalPlayer
local Character = Player.Character

local Dummy = game.ReplicatedStorage.R6

script.Parent.MouseButton1Click:Connect(function()
local Clone = Dummy:Clone()

Clone.Parent = workspace
Player.Character = Clone

end)

Not works i just stuck in one position

This script works, but i need put shirt and pants into accesory section(at the end) and set w1 parent and part0 part1, so i don’t know what put in there

Do you mean a shirt like your avatar wears, or a model that’s supposed to be welded to the player’s character?

And also now i understand problem, cuz this is local script, so only me can see it

Yes shirt and pants look, i will show you screenshot of model

image

Can you show a screenshot of the Dummy model’s children?

This is model of that dummy, and it have clothes and i need clone them to player

image Here

I need to clone Pants, shirt, AnimeBoyHair2 and Tail

Alright, this should work then:

local PlayerShirt = game.Workspace[Player.Name]:FindFirstChild("Shirt")
local PlayerPants = game.Workspace[Player.Name]:FindFirstChild("Pants")

local ShirtID = Dummy.Shirt.ShirtTemplate
local PantsID = Dummy.Pants.PantsTemplate

PlayerShirt.ShirtTemplate = ShirtID
PlayerPants.PantsTemplate = PantsID

Wait where do i put that line of code?

And what i need for hair & tail

Replace the Dummy.Pants:Clone() and Dummy.Shirt:Clone() sections with those lines of code.

Lemme test that script, thanks

And also still question, how to make that will hair and tail?

Hmm, no works, still have no clothes

Could you show your script output? There’s probably an error or two somewhere.