Search the Community
Showing results for tags 'functions'.
-
Hey everyone, I'm looking for a modeler and I'm willing to compensate for the service. I'm looking to have certain things done/modified on the Raindance such as: Adding seats into the interior Retexturing Making the sliding doors functional Feel free to pm me here, the sooner you reach out the better. Yours, Vseven
-
Eu preciso fazer este circulo ao redor do blip, alguém pode me ajudar? https://prntscr.com/wid38f
-
Gostaria de colocar um botão (imagem) no login , onde ele pausaria ou iniciaria a musica . Consegui fazer isso , mas em botões separados , gostaria de uma ajuda para fazer essas duas funções em um mesmo botão (imagem) , assim trocando a imagem para som desativado .
-
Hi, I was curious when the garbage collector would clean something like this: function testFunction () local testVariable = 100 local function firstFunctionInBlock () print("first function, testVariable: " .. testVariable ) testVariable = testVariable + 1 end local function secondFunctionInBlock () print("second function, testVariable: " .. testVariable) testVariable = testVariable + 1 end return function () firstFunctionInBlock() secondFunctionInBlock () end end function testFunction () -------------------------- -- function block -- -------------------------- end Executed with: local newCreatedFunction = testFunction() newCreatedFunction() newCreatedFunction() newCreatedFunction() -- print("--") -- local newCreatedFunction2 = testFunction() newCreatedFunction2() newCreatedFunction2() newCreatedFunction2() Results: first function, testVariable: 100 second function, testVariable: 101 first function, testVariable: 102 second function, testVariable: 103 first function, testVariable: 104 second function, testVariable: 105 -- first function, testVariable: 100 second function, testVariable: 101 first function, testVariable: 102 second function, testVariable: 103 first function, testVariable: 104 second function, testVariable: 105 I assume when I nil the function that is active in the block. newCreatedFunction = nil It will clear the first created function block by the garbage collector. newCreatedFunction2 = nil Same goes for clearing the second created function block. I did like to hear your opinion about this matter!
-
I want make more than one function to math.random, when i click on a button, choose a function, for example god mode, or give weapons, how to make it? Sorry for my very bad english.
- 2 replies
-
- math.random
- random
- (and 7 more)