I am just wondering how can I call a function from inside an if statement? Like if(this happens) then, I want to send the computer to a local function I have created but I don’t know how to just call a function in order to send the computer to that function… Kind of confusing… hopefully someone knows what I am saying haha
local something = function() -- do something end if (some kind of condition) then something() end
Is it really that simple… haha Thanks!
local something = function() -- do something end if (some kind of condition) then something() end
Is it really that simple… haha Thanks!