generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Game Design
Home Search
 

Re: Spawns Not Working

Previous Thread :: Next Thread 
kingping259 is not online. kingping259
Joined: 09 Mar 2009
Total Posts: 275
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 is not online. jashwa
Joined: 08 Feb 2010
Total Posts: 378
06 Jan 2015 12:12 AM
Er could I see the script?
Report Abuse
kingping259 is not online. kingping259
Joined: 09 Mar 2009
Total Posts: 275
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 is not online. 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
kingping259 is not online. kingping259
Joined: 09 Mar 2009
Total Posts: 275
07 Jan 2015 01:17 AM
Server Storage, where else now-a-days?
Report Abuse
Scottifly is not online. 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
kingping259 is not online. kingping259
Joined: 09 Mar 2009
Total Posts: 275
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 is not online. 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 is not online. 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
kingping259 is not online. kingping259
Joined: 09 Mar 2009
Total Posts: 275
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
championbuilder is not online. championbuilder
Joined: 20 Jan 2009
Total Posts: 13544
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 is not online. 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 is not online. 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
kingping259 is not online. kingping259
Joined: 09 Mar 2009
Total Posts: 275
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
championbuilder is not online. championbuilder
Joined: 20 Jan 2009
Total Posts: 13544
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
kingping259 is not online. kingping259
Joined: 09 Mar 2009
Total Posts: 275
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image