TaskMagnet:AttributeConnection(player, connName, conn) TaskMagnet:AttributeTask(player, taskName, function) magnet connection : a connection related to the player’s presence in game.magnet task : a task related to the player’s presence in game (which means that if the player leaves the task will be canceled).To makes things easier, we’ll define a few words before getting into the documentation : So, we’ll make a for loop, and we’ll have to check if the player is still here at every iteration which is not very clean and may cause problems. For example, let’s say we want to make a BillboardGui above the player’s head that displays a cooldown of 10 seconds. Sometimes, when coding a game it, it may happen that you want to create tasks related to the player’s presence. The library is called “TaskMagnet” like a magnet would be stick to the player with tasks & connections in it.Īnd, this means that if the player leaves the game, every tasks related to him will be stopped. TaskMagnet is a free open source library for roblox studio.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |