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

how i make a part clone with his childs?

Asked by 2 years ago

im making a skins system and when i put all the effects of a skin in the folder with the base part when i clone the base part it doesnt clone with his childs(the effects of the skin)

Global script

01local Pos = game.ReplicatedStorage.LaunchTruss --/-RemoteEvent
02 
03 
04 
05 
06Pos.OnServerEvent:Connect(function(player, Mouse)
07    local char = player.Character or player.CharacterAdded:Wait()
08    local folder = char:WaitForChild("gfx")
09    local Ladder = folder:WaitForChild("KLICKPART"):Clone()
10    Ladder.Parent = workspace
11    Ladder.Anchored = false
12    Ladder.CFrame = CFrame.new(Mouse) * CFrame.new(0,3,0)
13    wait(5)
14    Ladder:Destroy()
15end)

Local script

01local player = game.Players.LocalPlayer
02local char = player.Character
03local keyboard = game:GetService("UserInputService")
04 
05local ROOT = char:WaitForChild("HumanoidRootPart")
06 
07local folder = game.Players.LocalPlayer.Character:WaitForChild("gfx")
08local part = folder.KLICKPART
09local mouse = player:GetMouse()
10local db = false
11local db2 = false
12 
13 
14keyboard.InputBegan:Connect(function(io, key)
15    if io.KeyCode == Enum.KeyCode.E then
View all 39 lines...
0
Are you sure the effects are inside the basepart? Xapelize 2658 — 2y
0
the effect are in the replicated storage part and when they press the button to equip the effect then i clone them to the base part ImDragron 7 — 2y

Answer this question