|
| 06 Jan 2015 12:03 AM |
I made a map script that loads entirely different maps (Bricktops, narrowgill, pitgrounds, etc.) lobby box and all and the spawns aren't working.
When you first join the game you spawn in the right place the first time, but if you load a different map the spawns no longer work.
All teams are correct, nothing is messing with the spawn, and I do not know what to do.
Answer back with your best guess. |
|
|
| Report Abuse |
|
|
jashwa
|
  |
| Joined: 08 Feb 2010 |
| Total Posts: 378 |
|
|
| 06 Jan 2015 12:12 AM |
| Er could I see the script? |
|
|
| Report Abuse |
|
|
|
| 06 Jan 2015 07:22 PM |
local map = game.ServerStorage:findFirstChild("Warzone") if map then local currentmap = game.Workspace:findFirstChild("Current") if currentmap then currentmap:Destroy() end map:clone() map.Parent = game.Workspace map.Name = "Current" for a, b in pairs(game.Players:GetChildren()) do b:LoadCharacter() end end
The rest of the script is working 100% fine. |
|
|
| Report Abuse |
|
|
Classixz
|
  |
| Joined: 21 Jun 2013 |
| Total Posts: 910 |
|
|
| 06 Jan 2015 07:28 PM |
Stupid question, but where are your maps located?1
~Signatures are like cutie marks, unless, pointless and stupid. |
|
|
| Report Abuse |
|
|
|
| 07 Jan 2015 01:17 AM |
| Server Storage, where else now-a-days? |
|
|
| Report Abuse |
|
|
Scottifly
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 9180 |
|
|
| 07 Jan 2015 01:21 AM |
Wouldn't that script just cause them to Spawn in the Lobby? I thought games with multiple maps used Teleport to get players to the map. |
|
|
| Report Abuse |
|
|
|
| 07 Jan 2015 01:33 AM |
@Scott, That's the problem, when the new map is inserted you automatically spawn in the middle on the new map, not on any spawn location.
No clue so far. |
|
|
| Report Abuse |
|
|
Scottifly
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 9180 |
|
|
| 07 Jan 2015 01:35 AM |
Just got this by searching the ROBLOX wiki:
http://wiki.roblox.com/index.php?title=Making_A_Lobby |
|
|
| Report Abuse |
|
|
jashwa
|
  |
| Joined: 08 Feb 2010 |
| Total Posts: 378 |
|
|
| 07 Jan 2015 10:21 AM |
| Are you not using teleport to get the players to the map? |
|
|
| Report Abuse |
|
|
|
| 07 Jan 2015 11:51 AM |
@Scott, That doesn't help since I am trying to insert new spawns into the map and the players will not spawn at the new spawns.
@Jash, If you read the script I posted above I am respawning people, not teleporting. |
|
|
| Report Abuse |
|
|
|
| 07 Jan 2015 12:00 PM |
| You could just scatter bricks named "Spawn", where you want them to spawn, then have them teleport to a random Spawn brick once it's loaded. |
|
|
| Report Abuse |
|
|
jashwa
|
  |
| Joined: 08 Feb 2010 |
| Total Posts: 378 |
|
|
| 07 Jan 2015 07:27 PM |
Stick with teleport..
^ That's a better idea. |
|
|
| Report Abuse |
|
|
Scottifly
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 9180 |
|
|
| 07 Jan 2015 07:53 PM |
Spawns are sometimes glitchy. If you have ever moved one on a map sometimes you can spawn at its old location. I'd stick to teleporting, that way you can be sure it'll work. If you want to change the location you could probably add an if line to the wiki script to put you at different locations depending on the map number. |
|
|
| Report Abuse |
|
|
|
| 08 Jan 2015 12:34 AM |
I'm probably going to do teleport since ROBLOX Spawning sensors are being quite stupid right now.
@Mods, Get it fixed.
@People, Thanks for trying to help.
~ Kingping259 |
|
|
| Report Abuse |
|
|
|
| 08 Jan 2015 10:00 AM |
| King, they don't need to fix anything, you're not using teleports. It's a alot easier than making ROBLOX Porgramming staff to alter the code for spawns just for you. |
|
|
| Report Abuse |
|
|
|
| 09 Jan 2015 01:47 PM |
Found the solution:
Apparently if you clone the map from server storage the spawns work.
No idea, don't ask, just follow it.
Close of this thread |
|
|
| Report Abuse |
|
|