of     1   

ninetailfox73
#64205174Monday, March 12, 2012 4:46 AM GMT

What would be an example of a script that executes different functions randomly?
smurf279
#64205807Monday, March 12, 2012 5:06 AM GMT

function a() print"a" end Function b() Print 'B's end function c() print("c") end Funcs = {a, b, c} while wait(2) do Funcs[math.random(#Funcs)]() end
ninetailfox73
#64205954Monday, March 12, 2012 5:12 AM GMT

Thank you kind sir.
NXTBoy
#64222477Monday, March 12, 2012 8:02 PM GMT

Or more concisely:     local functions = {         function()             print("a")         end,         function()             print("b")         end,         function()             print("c")         end     }               while wait(2) do         functions[math.random(#functions)]()     end
nate890
#64222534Monday, March 12, 2012 8:03 PM GMT

^Is how I would do it.
smurf279
#64236902Monday, March 12, 2012 11:27 PM GMT

Hey I'm on my kindle :P typing is already hard enough without having to worry about all the spell checks while I'm trying to write scripts

    of     1