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

Debris = game:GetService("Debris")

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

function DestroyModel()
	if Model and Model.Parent then
		Debris:AddItem(Model, 1)
		if Model and Model.Parent then
			Model:Destroy()
		end
	end
	Debris:AddItem(script, 1)
	if script and script.Parent then
		script:Destroy()
	end
end

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

Creator = Creator.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)

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