Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How to transfer clothes onto morph?

Asked by 5 years ago

I made a morph button that morphs the player into a character I made. Everything works fine but i cant seem to make the player get the clothes too. This is my script

local Player = game.Players.LocalPlayer
local C = Player.Character
Dummy = game.ServerStorage.Rookie --Name of my character--
D = C:GetChildren()

local   T = Dummy.Torso:clone()
        T.Parent = Player.Character.Torso
local w1 = Instance.new("Weld")
        w1.Parent = C
        w1.Part0 = C.Torso
        w1.Part1 = T
        w1.C0 = CFrame.new(0,0,0)

i tried to move the shirt to the Dummys torso but that didnt work, so then i tried to make a separate line for the shirt by itself i came up with this

local T = Dummy.Shirt:clone()
      T.Parent = Player.Character.Torso
local w1 = Instance.new("Weld")
      w1.Parent = C
      w1.Part0 = C.Torso
      w1.Part1 = T

but it still doesnt work!

0
You can't access server storage on the client, and :clone is deprecated. User#19524 175 — 5y
0
so what should i do? Wad_dles 15 — 5y

1 answer

Log in to vote
0
Answered by
PolyyDev 214 Moderation Voter
5 years ago
Edited 5 years ago

You will need to put the dummy in ReplicatedStorage first of all. The shirt does not go in the torso, it goes in the character itself. And why are you welding a texture to a part? This is assuming that the shirt is a Shirt instance. You will need to change the shirt part to:

local T = Dummy.Shirt:Clone()
      T.Parent = Player.Character

You will also want to change all your :clone()'s to :Clone() as the lower case C is deprecated.

0
Accept if this helped PolyyDev 214 — 5y
Ad

Answer this question