:Clone() doesn't clone children of a tool

  1. What do you want to achieve? I want to achieve cloning the tool into player’s backpack with children.

  2. What is the issue? :Clone() doesn’t clone with children for some reason.

  3. What solutions have you tried so far? I’ve looked for solutions on Devforum, but i didnt find anything.
    I’ve also tried moving the tool, but that didn’t solve the problem.

local price = 100
local db = true
local model = game:GetService("ServerStorage").guns.MP5
local cooldown = 1

script.Parent.ClickDetector.MouseClick:connect(function(player)
	if player.leaderstats.Coins.Value >= price then
		player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - price
		db = false
		script.Parent.BrickColor = BrickColor.new("Bright red")
		model:Destroy()
		wait(0.1)
		local amogus = model:Clone()
		amogus.Parent = player.Backpack
		wait(cooldown)
		script.Parent.BrickColor = BrickColor.new("Bright green")
		db = true
	end
end)

Would appreciate the help!

image
And yes, they are archivable.

Maybe because you destroyed the model before you tried to clone it?

Oh yeah, i forgor💀 about the model:Destroy(). Thanks!

1 Like