of     1   

kieran06012000
#213043400Wednesday, March 29, 2017 2:48 PM GMT

hi all me probelm is when i chose a map the map loads but idk how i disipere the lobby can sombady plz help here is the scrip: wait() function loadmap() for i, player in ipairs(game.Players:GetChildren()) do player.PlayerGui.MAPCHOOSER.Chooser.Visible = true end wait(8) if script.MAP1.Value > script.MAP3.Value and script.MAP1.Value > script.MAP2.Value then -- map1 game.Lighting.map1.Parent = workspace end if script.MAP2.Value > script.MAP3.Value and script.MAP2.Value > script.MAP1.Value then game.Lighting.map2.Parent = workspace end if script.MAP3.Value > script.MAP2.Value and script.MAP3.Value > script.MAP1.Value then game.Lighting.map3.Parent = workspace end for i, player in ipairs(game.Players:GetChildren()) do player.PlayerGui.MAPCHOOSER.Chooser.Visible = false end end wait(30) loadmap() thanks for reading and hope you can help (the group me lobby is in cals lobby ;)
kieran06012000
#213044178Wednesday, March 29, 2017 3:10 PM GMT

;'(
Snowskateer
#213044307Wednesday, March 29, 2017 3:14 PM GMT

local mapamount=3 local currentmap function tpplayers() local spawnpointname="BRICK TO BE TELEPORTED TO NAME HERE." if workspace:findFirstChild(currentmap) then local map=workspace:findFirstChild(currentmap) local spawn=map[spawnpointname] for i,v in pairs(game.Players:GetChildren()) do if v.Character then v.Character:MoveTo(spawn.Position) end end end end function loadrandommap() local lighting=game.Lighting local chosenmap=lighting["map"..math.random(1,mapamount)]:clone() chosenmap.Parent=workspace tpplayers() end wait(30) loadrandommap()
kieran06012000
#213044400Wednesday, March 29, 2017 3:17 PM GMT

so like that i will get a random map ?
Snowskateer
#213044446Wednesday, March 29, 2017 3:19 PM GMT

yes
kieran06012000
#213044528Wednesday, March 29, 2017 3:21 PM GMT

it works but how i disable lobby when map loads and put it back after 5 minuts ?
kieran06012000
#213044563Wednesday, March 29, 2017 3:22 PM GMT

(and disable the maps after the 5 min)
Snowskateer
#213044571Wednesday, March 29, 2017 3:23 PM GMT

just move the lobby far away from the maps...
kieran06012000
#213044664Wednesday, March 29, 2017 3:26 PM GMT

k but then i whont teleport to the maps ?
Snowskateer
#213044699Wednesday, March 29, 2017 3:27 PM GMT

local mapamount=3 local currentmap local intermissiontime=15 local gametime=5 --minutes function tpplayers() local spawnpointname="BRICK TO BE TELEPORTED TO NAME HERE." if workspace:findFirstChild(currentmap) then local map=workspace:findFirstChild(currentmap) local spawn=map[spawnpointname] for i,v in pairs(game.Players:GetChildren()) do if v.Character then v.Character:MoveTo(spawn.Position) end end end end function loadrandommap() local lighting=game.Lighting local chosenmap=lighting["map"..math.random(1,mapamount)]:clone() chosenmap.Parent=workspace tpplayers() end function destroymap() workspace[currentmap]:Destroy() for i,v in pairs(game.Players:GetChildren()) do if v.Character then v.Character:BreakJoints() end end end local GameLoop=coroutine.wrap(function() while wait() do wait(intermissiontime) loadrandommap() wait(gametime*60) destroymap() end end) GameLoop()
kieran06012000
#213044812Wednesday, March 29, 2017 3:30 PM GMT

maybe it is better if i add u to team create bucauce i think i make it a mess XD plz accept friend
Snowskateer
#213044916Wednesday, March 29, 2017 3:33 PM GMT

no ive literally gave you the entire script put this in a normal script in serverscriptservice and move your lobby. the player gets teleported so it doesnt matter where its moved to
kieran06012000
#213044948Wednesday, March 29, 2017 3:33 PM GMT

i will try again then
kieran06012000
#213045092Wednesday, March 29, 2017 3:37 PM GMT

it don't works for me in "BRICK TO BE TELEPORTED TO NAME HERE." i need to add the spawn name of lobby right ?
Snowskateer
#213045124Wednesday, March 29, 2017 3:38 PM GMT

yes
kieran06012000
#213045200Wednesday, March 29, 2017 3:40 PM GMT

i am now like 4 min 30 sec in game and it dont teleports me i keep standing in the lobby thanks for u help but plz will you take a look wwith me what i ahev done wrong ?
Snowskateer
#213045478Wednesday, March 29, 2017 3:46 PM GMT

press F-9 and tell me anything thats red in serverlog
kieran06012000
#213046303Wednesday, March 29, 2017 4:09 PM GMT

k
kieran06012000
#213046502Wednesday, March 29, 2017 4:15 PM GMT

in red ServerScriptService.Script:42: ' = ' expected near '' it is a litle bit edit with space beacauce roblox dont whant me to post it
Snowskateer
#213047141Wednesday, March 29, 2017 4:32 PM GMT

the script has only 41 lines, so there cant be an error on line 42 local mapamount=3 local currentmap local intermissiontime=15 local gametime=5 --minutes function tpplayers() local spawnpointname="BRICK TO BE TELEPORTED TO NAME HERE." if workspace:findFirstChild(currentmap) then local map=workspace:findFirstChild(currentmap) local spawn=map[spawnpointname] for i,v in pairs(game.Players:GetChildren()) do if v.Character~=nil then v.Character:MoveTo(spawn.Position) end end end end function loadrandommap() local lighting=game.Lighting local chosenmap=lighting["map"..math.random(1,mapamount)]:clone() chosenmap.Parent=workspace tpplayers() end function destroymap() workspace[currentmap]:Destroy() for i,v in pairs(game.Players:GetChildren()) do if v.Character then v.Character:BreakJoints() end end end local GameLoop=coroutine.wrap(function() while wait() do wait(intermissiontime) loadrandommap() wait(gametime*60) destroymap() end end)
kieran06012000
#213048080Wednesday, March 29, 2017 4:55 PM GMT

no red line but i keep standing in lobby https://www.roblox.com/games/710310241/sniper-game-real-one
kieran06012000
#213050295Wednesday, March 29, 2017 5:52 PM GMT

maybe is there a other way ?

    of     1