Model=script.Parent Players=game:GetService("\080\108\097\121\101\114\115")Debris=game:GetService("\068\101\098\114\105\115")Creator=Model:FindFirstChild("\067\114\101\097\116\111\114")Tool=Model:FindFirstChild("\084\111\111\108")function DestroyModel()Debris:AddItem(Model,2)end if not Creator or not Creator.Value or not Creator.Value:IsA("\080\108\097\121\101\114")or not Creator.Value.Parent or not Tool or not Tool.Value or not Tool.Value.Parent then DestroyModel()return end Creator=Creator.Value Tool=Tool.Value Character=Creator.Character if not Character then DestroyModel()return end Creator.Changed:connect(function(m)if m=="\080\097\114\101\110\116"and not Creator.Parent then DestroyModel()end end)Character.Changed:connect(function(m)if m=="\080\097\114\101\110\116"and not Character.Parent then DestroyModel()end end)Tool.Changed:connect(function(m)if m=="\080\097\114\101\110\116"and(not Tool.Parent or not Tool.Parent:IsA("\066\097\099\107\112\097\099\107")and not Players:GetPlayerFromCharacter(Tool.Parent))then DestroyModel()end end)


Model = script.Parent

Players = game:GetService("Players")
Debris = game:GetService("Debris")

Creator = Model:FindFirstChild("Creator")
Tool = Model:FindFirstChild("Tool")

function DestroyModel()
	Debris:AddItem(Model, 2)
end

if not Creator or not Creator.Value or not Creator.Value:IsA("Player") or not Creator.Value.Parent or not Tool or not Tool.Value or not Tool.Value.Parent then
	DestroyModel()
	return
end

Creator = Creator.Value
Tool = Tool.Value

Character = Creator.Character
if not Character then
	DestroyModel()
	return
end

Creator.Changed:connect(function(Property)
	if Property == "Parent" and not Creator.Parent then
		DestroyModel()
	end
end)

Character.Changed:connect(function(Property)
	if Property == "Parent" and not Character.Parent then
		DestroyModel()
	end
end)

Tool.Changed:connect(function(Property)
	if Property == "Parent" and (not Tool.Parent or (not Tool.Parent:IsA("Backpack") and not Players:GetPlayerFromCharacter(Tool.Parent))) then
		DestroyModel()
	end
end)
