How do I make a certain set of objects I choose regenerate using a regen button? I don't care how simple this is, I don't care how much you think I can't script, just help me.
function onTouched(hit)
Clone1 = Model:clone()
local h = hit.Parent:findFirstChild("Humanoid")
if h ~= nil then
Clone1.Parent = game.Workspace
Clone1:MakeJoints()
end
end
script.Parent.Touched:connect(onTouhed)