How To Call A Function Roblox. I have always written functions like option 1. However, I realised there is another way and maybe it is even better performance wise. In my script there are many functions. I want to call one function from the other, but the problem is that the function which will be calling
To call a function, type the function's name including the () at the end. Under end, type printFood().
An alternative to _G is to use the also globally avaliable table, shared. Shared is used the same way _G is, but you must specify "shared"
function a() function b() return 'b' end end -- How to call function `b` from here and get the returned value?
I am trying to make admin but dont want to do loads of if statements im trying to get the array at the top and call the function local
In my script there are many functions. I want to call one function from the other, but the problem is that the function which will be calling
I don't think this code works, I tried a bunch of way to call a function inside a required module script but had no success. What I have had to
The body of the function executes when you call the function. To call a function, type its name followed by parentheses. You can define a variable to accept
I want to call one function from the other, but the problem is that the function roblox needs to load the function in first but this is still possible:.
I have always written functions like option 1. However, I realised there is another way and maybe it is even better performance wise.
Add roblox studio to mobile. 2.3K. Make it so people can trade on mobile. Voting closed.