how i make a part clone with his childs?
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
01 | local Pos = game.ReplicatedStorage.LaunchTruss |
06 | Pos.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 ) |
Local script
01 | local player = game.Players.LocalPlayer |
02 | local char = player.Character |
03 | local keyboard = game:GetService( "UserInputService" ) |
05 | local ROOT = char:WaitForChild( "HumanoidRootPart" ) |
07 | local folder = game.Players.LocalPlayer.Character:WaitForChild( "gfx" ) |
08 | local part = folder.KLICKPART |
09 | local mouse = player:GetMouse() |
14 | keyboard.InputBegan:Connect( function (io, key) |
15 | if io.KeyCode = = Enum.KeyCode.E then |
19 | game.ReplicatedStorage.LaunchTruss:FireServer(mouse.Hit.Position) |
21 | script.Parent.TextLabel.Text = "E : USE TRUSS PART" |
28 | keyboard.InputBegan:Connect( function (io,key) |
29 | if io.KeyCode = = Enum.KeyCode.E then |
33 | script.Parent.TextLabel.Text = i |