of     1   

AntonSaricI
#215674057Sunday, April 30, 2017 7:17 PM GMT

I don't want the previous model deleted once the regen button is touched. --Person299 --Put the objects you want regenned in the model, if the object's parent is changed it will not be deleted when the button is pushed again. debounce = false regen = {} last = {} for a,b in ipairs(script.Parent.Parent:GetChildren()) do if b ~= script.Parent then table.insert(regen,b:clone()) table.insert(last,b) end end script.Parent.Touched:connect(function(hit) if hit.Parent ~= nil then if game.Players:playerFromCharacter(hit.Parent) ~= nil and debounce == false then debounce = true for a,b in ipairs(last) do if b.Parent == script.Parent.Parent then b:remove() end end last = {} for a,b in ipairs(regen) do local c = b:clone() table.insert(last,c) c.Parent = script.Parent.Parent pcall(function() c:MakeJoints() end) end script.Parent.BrickColor = BrickColor.new(26) wait(2) script.Parent.BrickColor = BrickColor.new(104) debounce = false end end end)
HVAX
#215674820Sunday, April 30, 2017 7:28 PM GMT

stop using fm scripts
AntonSaricI
#215674970Sunday, April 30, 2017 7:30 PM GMT

plz help
Rising_Master
#215675099Sunday, April 30, 2017 7:32 PM GMT

its not suppose to work anton
Contriox
#215675112Sunday, April 30, 2017 7:32 PM GMT

What's not working?
Courviz
#215675122Sunday, April 30, 2017 7:33 PM GMT

u dont
AntonSaricI
#215675679Sunday, April 30, 2017 7:41 PM GMT

It deletes the previous model once the regen button is touched. I don't want the previous model to be deleted.
AntonSaricI
#215676206Sunday, April 30, 2017 7:49 PM GMT

bump
AntonSaricI
#215676679Sunday, April 30, 2017 7:56 PM GMT

b2
HateHouse
#215676727Sunday, April 30, 2017 7:57 PM GMT

Go ask on the scripter forums, not here.
HVAX
#215677091Sunday, April 30, 2017 8:02 PM GMT

Go ask on the scripter forums, not here.
Contriox
#215678479Sunday, April 30, 2017 8:21 PM GMT

Give me the model and I will fix it :]
Surgo
#215679442Sunday, April 30, 2017 8:33 PM GMT

based on what you said about deleting the previous model, this is what i would look into for a,b in ipairs(last) do if b.Parent == script.Parent.Parent then b:remove()
PropheticExtinction
#215679655Sunday, April 30, 2017 8:36 PM GMT

freemodelsss

    of     1