local target = game.Workspace.SaveObject.Value
local id = game.Workspace.ack.Value
while wait() do
if workspace:FindFirstChild("ttest") then
print("Destroying object...")
if game.Workspace:FindFirstChild(game.workspace.ack.Value).Name == game.workspace.ack.Value then
game.Workspace.ack.Value.Parent:Destroy()
end
end
end
ack is a objectvalue and script deleets when ttest exists

6 comments
Came back with the nil value error :p
What have u set the value of the object too?
a model
ok i see
Edited code try now
code? (btw i meant part in model)