I watched a video about OnClose()
and I saw that it was deprecated. But, I wonder if ther is a another way of doing the same thing. Can someone please tell me a least one way?
Putting this into a question so it can be closed.
http://wiki.roblox.com/index.php?title=API:Class/DataModel/BindToClose
1 | game:BindToClose( function () |
2 | --Do stuff |
3 | end ) |
Credit to: M39a9am3R