I just want a simple wait destroy script

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    i want my script to wait 20 seconds and destroy my fortnite agency
  2. What is the issue? Include screenshots / videos if possible!
    it says expected function call arguments after (
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

-- wait(20)

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

1 Like

oh sorry i forgot a solution didn’t know

1 Like

Notice how @Lyyrezim puts () after the Destroy. Destroy is a built in function, so to execute it you need to put () after. Hope that helped @go3jack.

it sure did! i will do this for all future destroy scripts!

1 Like

If your problem is solved, make sure to close this thread!

Press the “Solution” button on one of the replies.

The method Destroy() will work.

// BaseScript.LuaSourceContainer extends Instance -- means any Lua Sources inherit members from the baseclass; Instance
void BaseScript.LuaSourceContainer::Destroy<:Instance>(); // Clears all connections and permanently removes all references from it.
1 Like