So basicly im trying to make a character customization for my game, but im running thought this problem(as said in the title) here is my code:
local function replaceBody(char)
local humanoid = char:FindFirstChild("Humanoid")
local ut = char.UpperTorso
local torso = genderFolder:FindFirstChild(button.Name).UpperTorso:Clone()
local motor = ut.Waist
motor.Parent = torso
humanoid:ReplaceBodyPartR15(Enum.BodyPartR15.UpperTorso,torso)
motor.Part0 = char:FindFirstChild("LowerTorso")
motor.Part1 = char:FindFirstChild("UpperTorso")
end
I get no errors it just that he dies immediately, and the motor6d destroys itself for some reason without going into the new torso, i have tried many variations of my code, ive been trying to solve this for 3 hours alrdy, so if u can help plz let me know, i would appreciate it very much
