-
What do you want to achieve? I want to achieve cloning the tool into player’s backpack with children.
-
What is the issue? :Clone() doesn’t clone with children for some reason.
-
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!
