Original works until it is the model is cloned.
--give cookie tray (put in inven, remove cookie tray, turn off oven
script.Parent.ClickDetector.MouseClick:connect(function(player)
local foodinventory = player:FindFirstChild("BakedGoods")
if foodinventory ~= nil then
print("yes")
local alreadyexists = foodinventory:FindFirstChild("ChocChipCookies")
if alreadyexists == nil then
print("yeet")
local tag = Instance.new("NumberValue",foodinventory)
tag.Name = "ChocChipCookies"
tag.Value = tag.Value + 12
else
print("yoot")
alreadyexists.Value = alreadyexists.Value + 12 --instead of making a new value, adds 12 to existing inventory value
end
end
workspace.Oven1.On.Value = false --turn off oven (will make oven w/player id tag attached later)
script.Parent.Parent:remove()
end)

6 comments
It doesn't work for me either, but what if you have the model cloned and pasted BEFORE the script breaks? Still doesn't work
Use :Connect() and :Destroy()
:remove() is domesticated :destroy(). also, :Connect() is :connect() but capitalized.
remove() isn't a pet @Fifkee, so it can't be domesticated
LOL
laughs