Studio, not ingame.?
This works in studio but not ingame, an have no clue why?... it's supposed to be only clickable when my map is fully loaded, it works in studio just fine but ingame doesn't work?
01 | function onButton 1 Down() |
03 | if _G.mapLoaded = = false then |
04 | print ( "Cannot Enter Current Game" ) |
07 | local Places = { Vector 3. new(- 109.146 , 190.18 , 107.483 ), Vector 3. new(- 96.086 , 190.18 , 34.753 ), Vector 3. new(- 133.056 , 190.18 , 37.913 ), Vector 3. new(- 109.146 , 194.17 , 73.933 ) } |
09 | if _G.mapLoaded = = true then |
11 | game.Players.LocalPlayer.Character:MoveTo(Places [ math.random( 1 ,#Places) ] ) |
12 | script.Parent.Parent.Parent.Parent:remove() |
16 | script.Parent.MouseButton 1 Click:connect(onButton 1 Down) |