Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how do functions work when they are not being ran?

Asked by 3 years ago

basically what i wanna know is if i have a minigames that calls a function that runs specifically for each game and each of those functions has a player died function thats connected when the game starts what exactly will happen when the next game starts, would it connect to both died functions or is there away to turn off a function idk

0
You cannot turn off functions. Just simply make a variable that only runs the function if its true iNot_here 93 — 3y

1 answer

Log in to vote
0
Answered by
Jac_00b 157
3 years ago
Edited 3 years ago

When functions are not being ran, they are, well, not being ran. Just make sure to separate each function with (insert function name here)() or else the functions below the function that is running would be classified as a part of the function that is running. You can learn more about functions here: https://developer.roblox.com/en-us/articles/Function

Ad

Answer this question