of     1   

michaeldylano
#141942379Tuesday, July 29, 2014 10:16 AM GMT

Ok, the error: Map is not a valid eber of model. Goal: get the position of script.Parent.BoxTP.teleporter1b to the position of the chosen map - 10y yes, there is a TOP in every map. Map,num, with that I tried to combine "Map" and the random choosen number by math.random(1,5), there are 5 maps. maps are called like this: Map1, Map2, etc. script.Parent.BoxTP.teleporter1b.Position = Workspace.Maps.(Map,num).TOP.Position - Vector3.new(0,10,0) Please help becose I really dont know what the heck is wrong with it.
filiptibell
#141942876Tuesday, July 29, 2014 10:27 AM GMT

Workspace.Maps.(Map,num). wat script.Parent.BoxTP.teleporter1b.Position = Workspace.Maps["Map"..num].TOP.Position - Vector3.new(0,10,0) ~The herp lerped a derp~
michaeldylano
#141943079Tuesday, July 29, 2014 10:32 AM GMT

Update: local NowGame = ("Workspace.Maps.Map"..num) script.CurGame.Value = NowGame script.Parent.BoxTP.teleporter1b.Position = NowGame.TOP.Position - Vector3.new(0,10,0) If I look at the value, it gave this: Workspace.Maps.Map5 However, it says TOP is a nil value (tried to call a nil value) TOP is a valid member, so I really don't know what I'm doing wrong here. Bump
michaeldylano
#141943150Tuesday, July 29, 2014 10:35 AM GMT

12:34:39.160 - Position is not a valid member of Model 12:34:39.161 - Script 'Workspace.Lobby.Script', Line 21 - global Choosemap 12:34:39.162 - Script 'Workspace.Lobby.Script', Line 40 12:34:39.163 - Stack End
filiptibell
#141943182Tuesday, July 29, 2014 10:35 AM GMT

What the heck is with the random parenthesis local NowGame = ("Workspace.Maps.Map"..num) -- stahp pls local NowGame = Workspace.Maps["Map"..num] script.CurGame.Value = NowGame script.Parent.BoxTP.teleporter1b.Position = NowGame.TOP.Position - Vector3.new(0,10,0) ~The herp lerped a derp~
filiptibell
#141943207Tuesday, July 29, 2014 10:36 AM GMT

Models don't have a position property, only bricks do... ~The herp lerped a derp~
michaeldylano
#141943259Tuesday, July 29, 2014 10:37 AM GMT

right, forgot to add TOP... lol
michaeldylano
#141943296Tuesday, July 29, 2014 10:38 AM GMT

BUT THX IT WORKS NOW WEHHEEE heres the place: http://www.roblox.com/Battlebox-64-place?id=56618719 thank you so much
[rfa#hidefromsearch]
#141945917Tuesday, July 29, 2014 11:52 AM GMT

[rfa#hidefromsearch]
JarodOfOrbiter
#141946317Tuesday, July 29, 2014 12:03 PM GMT

"Player point shop" all sympathies for the OP are now gone.
BothAngles
#141946397Tuesday, July 29, 2014 12:05 PM GMT

Which is exactly why I never help anyone
michaeldylano
#142297057Friday, August 01, 2014 7:08 PM GMT

I'm sorry, I'm just trying to make money with something without free models or scamming.

    of     1