function dropcore2(name)
local drop2 = game.ReplicatedStorage:FindFirstChild(name2.Text):Clone()
drop2.Parent = game.Workspace
end
the above script works sort of okay. every time i use it, it happens like this:
used once: _ the underscore is a part
used twice: _ _
i use :Destroy() on them right after the part gets made
used 13 time _ _ _ _ _ _ _ _ _ _ _ _ (13 underscores)
it keeps cloning the item more and more, each time i use it. so i use it once, then destroy them. the second time i use it, it makes 2 parts, i destory those, and the third time i use it, it makes 3. It doesn't overwrite the clone. It's like the clone gets stored somewhere, and every time a new one is done, it clones all of the clones in that storage area.I don't know how to fix this, because it SHOULD be replacing the clone, not making more and more copies of it. I hope i explained this well enough.
/ is what fires it, and it's not anything with dropcore1().
script.Parent.MouseButton2Click:connect(function()
dropcore1(script.Parent)
frame.yes.MouseButton1Click:connect(function()
dropcore2(script.Parent)
end)
end)

1 comment
Each time the first click is registered it creates a new connection to frame.yes being clicked... You should move the second mouse connection outside of the first.