Is there a way to make it so a script waits 60 seconds or until something happens. For example, it waits 20 seconds, then a part gets destroyed so then it just heads to the next bit of code but if the part isn't destroyed, it waits 60 seconds then does the next bit of code.
I've tried
repeat wait() until game.Workspace:FindFirstChild(ClonedBuild.Name) == nil or wait(60)
but that doesn't do anything.

2 comments
you dont do bool waited you do local waited = false in lua
right sorry, got languages mixed up