of     1   

wato
#36286431Sunday, October 31, 2010 1:23 PM GMT

how to use a var/table on this sections? criar_mapa = game.Lighting.maps.[var_goes_here]:Clone() criar_mapa.Parent = game.Workspace I really want know this ;~;
MrNicNac
#36286690Sunday, October 31, 2010 1:29 PM GMT

var_goes_here = "objectName" criar_mapa = game.Lighting.maps[var_goes_here]:Clone() criar_mapa.Parent = game.Workspace
zeke505
#36286699Sunday, October 31, 2010 1:29 PM GMT

map = game.Lighting:findFirstChild(var_here):Clone() map.Parent = workspace
wato
#36286889Sunday, October 31, 2010 1:34 PM GMT

this scripts doesn't work because mapas = {"lol","lol2","lol3"} map = game.Lighting:findFirstChild(_maps[random_n]):Clone() Workspace.Part.Script:26: attempt to index global '_maps' (a nil value) Workspace.Part.Script, line 26 - global pega_mapa Workspace.Part.Script, line 30 stack end can somebody help?
wato
#36286937Sunday, October 31, 2010 1:35 PM GMT

mistake function pega_mapa() random_n = math.floor(math.random(1,3) + .5) map = game.Lighting:findFirstChild(mapas[random_n]):Clone() criar_mapa.Parent = game.Workspace end can somebody help me?
wato
#36287013Sunday, October 31, 2010 1:37 PM GMT

....Last mistake post >.> mapas = {"lol","lol2","lol3"} function pega_mapa() random_n = math.floor(math.random(1,3) + .5) map = game.Lighting:findFirstChild(mapas[random_n]):Clone() criar_mapa.Parent = game.Workspace end while true do pega_mapa() wait(0) end Workspace.Part.Script:26: attempt to index global '_maps' (a nil value) Workspace.Part.Script, line 26 - global pega_mapa Workspace.Part.Script, line 30 stack end

    of     1