#Not cloning children of children?

1 messages · Page 1 of 1 (latest)

pallid pike
#

I have this script in ServerScriptStorage and StudyBook in ServerStorage

game.Players.PlayerAdded:Connect(function(plr)
    plr.CharacterAdded:Connect(function(char)
        local book = game.ServerStorage.StudyBook:Clone()
        
        book.Parent = char
        book.PrimaryPart.CFrame = char.LeftHand.CFrame
        book.Body.Part0 = char.LeftHand
    end)
end)

This is the structure of StudyBook

devout wedge
#

And try clone then from there

pallid pike
#

ok 👍

#

nope

#

It still doesn't close TheBook's children :/

devout wedge
#

Does it give you any errors?

pallid pike
#

no

#

I checked the cloned one in the workspace when I ran the game, still nothing :(

devout wedge
#

So it’s cloning it but not closing it?

pallid pike
#

How do I say this uh

devout wedge
#

Wait

pallid pike
#

It cloned the StudyBook and the Welds and TheBook and TouchingPart but not the things inside TheBook

devout wedge
#

Should work with it

#

If ur book is welded

#

And not anchored

pallid pike
#

SetPrimaryPartCFrame?

devout wedge
#

Yep

pallid pike
#

where tho ;-;

devout wedge
#

Wdym

pallid pike
#

under the local?

devout wedge
#

Bruh

pallid pike
#

wait no i mean

pallid pike
#

The argument

devout wedge
#

Instead of book.primaryoart.cframe you do book:setprimatypartcframe(char.lefthand.cframe)and the rest

devout wedge
pallid pike
#
game.Players.PlayerAdded:Connect(function(plr)
    plr.CharacterAdded:Connect(function(char)
        local book = game.ReplicatedStorage.StudyBook:Clone()
        
        book.Parent = char
        book:SetPrimaryPartCFrame(char.LeftHand.CFrame)
        book.Body.Part0 = char.LeftHand
    end)
end)

Like this?

#

Cus it still doesn't clone :/

#

😭

devout wedge
#

You did that?

pallid pike
#

em

pallid pike
devout wedge
#

Yoy don’t understand

#

Ur books children not welded

pallid pike
#

Ohhh

devout wedge
#

Like you need to weld every part

pallid pike
#

ima just use EasyWeld and join them :D

devout wedge
#

It’s easy enough

devout wedge
#

I’m just using Roblox auto weld one

pallid pike
#

:O

#

Where is that

devout wedge
#

Idk how to explain since again I’m on phone 😭

#

It upped tabs

pallid pike
#

Ya

#

I found it

#

yay

#

I did it

#

:DD

#

Thanks for ur help :3

devout wedge
#

Np

devout wedge
#

And not the whole part