of     1   

stoopidfaic
#53873413Monday, August 29, 2011 6:30 PM GMT

trak = math.random(1,2) if trak == 1 then xcx = math.random(1,1) if xcx == 1 then dwarf() wait(4) end elseif trak == 2 then xcx = math.random(1,1) if xcx == 1 then gokart() wait(4) end end My problem is that the functions never run. I'd give you the rest of the script, but it's 200 lines.
KingBoo
#53873479Monday, August 29, 2011 6:31 PM GMT

trak = math.random(1,2) if trak == 1 then dwarf() wait(4) else gokart() wait(4) end Don't question, try.
stoopidfaic
#53873640Monday, August 29, 2011 6:34 PM GMT

Ok, so what will I do when I need to add a third function and elseif? trak isn't always going to be 1 or 2. it is for now, but later it will be more numbers.
rangersmash
#53875169Monday, August 29, 2011 7:06 PM GMT

[ Content Deleted ]
grimm343
#53875253Monday, August 29, 2011 7:08 PM GMT

That would only work if you did a math.random(1,3) Increase the higher number to the number of possibilities.
stoopidfaic
#53881732Monday, August 29, 2011 8:58 PM GMT

Ugh... Don't try to help me if you aren't going to read the original post. I told you my problem. Don't try to fix another problem.
stoopidfaic
#53891027Monday, August 29, 2011 11:17 PM GMT

bump
smurf279
#53891444Monday, August 29, 2011 11:24 PM GMT

trak = math.random(1,2) if trak == 1 then dwarf() wait(4) elseif trak == 2 then gokart() wait(4) end
stoopidfaic
#53913584Tuesday, August 30, 2011 7:08 AM GMT

xcx has to stay in the script.
stoopidfaic
#53931154Tuesday, August 30, 2011 6:19 PM GMT

bump
grimm343
#53933525Tuesday, August 30, 2011 7:15 PM GMT

... The functions you are having trouble running should be placed ABOVE the pasted few lines. Also, if the problem resides inside those functions that do not run, then you must paste more. Hmm.. Output would also help.
grimm343
#53933659Tuesday, August 30, 2011 7:17 PM GMT

Why does xcx have to stay there? Where else do you use a value of 1? Why did you make it randomly choose a number between 1 and.. 1?
KingBoo
#53940819Tuesday, August 30, 2011 9:11 PM GMT

The reason it doesn't work is because the script is trying to pic a random number between 1 and 1. -.-
grimm343
#53980972Wednesday, August 31, 2011 2:59 PM GMT

local trak = math.random(1,2) if trak == 1 then dwarf() elseif trak == 2 then gokart() end

    of     1