local K=script.StageAdd:Clone()local h=script.onModelTouched:Clone()local R=script.Parent:GetChildren()for R,V in pairs(R)do if V.ClassName=="\077\111\100\101\108"then local R=K:Clone()R.Parent=V.Finish local m=K:Clone()m.Parent=V.SpawnLocation local B=h:Clone()B.Parent=V.Finish local d=h:Clone()d.Parent=V.SpawnLocation R.Disabled=false B.Disabled=false d.Disabled=false m.Disabled=false end end local V=script.Parent:GetChildren()local m={}

local scr1 = script.StageAdd:Clone()
local scr2 = script.onModelTouched:Clone()

local elements = script.Parent:GetChildren() -- взять дочек

for a,b in pairs(elements) do
	if b.ClassName == "Model" then -- проверить дочек на модель
		-- клонируем скрипты на свои места
		local s1=scr1:Clone()
		s1.Parent = b.Finish
		local s4=scr1:Clone()
		s4.Parent = b.SpawnLocation

		local s2=scr2:Clone()
		s2.Parent = b.Finish
		local s3=scr2:Clone()
		s3.Parent = b.SpawnLocation

		-- включаем скрипты
		s1.Disabled = false
		s2.Disabled = false
		s3.Disabled = false
		s4.Disabled = false
	end
end


local tmp = script.Parent:GetChildren()
local models = {}	-- пустой массив моделей
