Debris=game:GetService("\068\101\098\114\105\115")Creator=script:FindFirstChild("\067\114\101\097\116\111\114")Tool=script:FindFirstChild("\084\111\111\108")Model=script:WaitForChild("\077\111\100\101\108")function DestroyModel()if Model and Model.Parent then Debris:AddItem(Model,2)end Debris:AddItem(script,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 or not Model or not Model.Value then DestroyModel()return end Creator=Creator.Value Tool=Tool.Value Model=Model.Value Character=Creator.Character if not Character then DestroyModel()return end Creator.Changed:connect(function(q)if q=="\080\097\114\101\110\116"and not Creator.Parent then DestroyModel()end end)Character.Changed:connect(function(q)if q=="\080\097\114\101\110\116"and not Character.Parent then DestroyModel()end end)Tool.Changed:connect(function(q)if q=="\080\097\114\101\110\116"then DestroyModel()end end)Model.Changed:connect(function(q)if q=="\080\097\114\101\110\116"and not Model.Parent then DestroyModel()end end)


Debris = game:GetService("Debris")

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

function DestroyModel()
	if Model and Model.Parent then
		Debris:AddItem(Model, 2)
	end
	Debris:AddItem(script, 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 or not Model or not Model.Value then
	DestroyModel()
	return
end

Creator = Creator.Value
Tool = Tool.Value
Model = Model.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" then
		DestroyModel()
	end
end)

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