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 » Scripting Helpers
Home Search
 

Re: Spawning

Previous Thread :: Next Thread 
CaptLlama is not online. CaptLlama
Joined: 02 Nov 2013
Total Posts: 1914
18 Nov 2013 10:14 PM
How would I make it so that a person would spawn on a certain spawn even if there is 2 spawns?
Report Abuse
paracord132 is not online. paracord132
Joined: 05 Jul 2012
Total Posts: 1321
18 Nov 2013 10:16 PM
Team color spawn? Or make tables and stuff...
Report Abuse
CaptLlama is not online. CaptLlama
Joined: 02 Nov 2013
Total Posts: 1914
18 Nov 2013 10:20 PM
For example, blue team has 2 spawn points, one is farther than the other. I want the blue team to spawn on the closest spawn to the base.
Report Abuse
CaptLlama is not online. CaptLlama
Joined: 02 Nov 2013
Total Posts: 1914
18 Nov 2013 10:26 PM
bump
Report Abuse
CaptLlama is not online. CaptLlama
Joined: 02 Nov 2013
Total Posts: 1914
18 Nov 2013 10:32 PM
bump
Report Abuse
KEVEKEV77 is not online. KEVEKEV77
Joined: 12 Mar 2009
Total Posts: 6961
18 Nov 2013 10:36 PM
Hmm.
Ummmmmm
U need like um how do i put this....
Report Abuse
CaptLlama is not online. CaptLlama
Joined: 02 Nov 2013
Total Posts: 1914
18 Nov 2013 10:45 PM
How do you put it?
Report Abuse
KEVEKEV77 is not online. KEVEKEV77
Joined: 12 Mar 2009
Total Posts: 6961
18 Nov 2013 10:47 PM
You need to could have like a chat funciton.. I dunno. Ask someone else D:
Report Abuse
DaMrNelson is not online. DaMrNelson
Joined: 27 Jul 2009
Total Posts: 4405
18 Nov 2013 11:04 PM
Have them spawn in a main room somewhere else. Then, use a Script to move their Character to the fake SpawnLocation where you want them to spawn. For example:

local blueTeamSpawns = {FarSpawn = game.Workspace.Blue.FarSpawn, CloseSpawn = game.Workspace.Blue.CloseSpawn}
local redTeamSpawns = {FarSpawn = game.Workspace.Red.FarSpawn, CloseSpawn = game.Workspace.Red.CloseSpawn}

game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
local spawns = player.TeamColor == BrickColor.new("Really blue") and blueTeamSpawns or redTeamSpawns -- Basically: If the player's TeamColor is Really blue, it will use the blueTeamSpawns table. If it is Really red, it will use the red one

-- If you want them to spawn at the close spawn
character:MoveTo(spawns.CloseSpawn.Position)

-- If you want them to spawn at the far spawn
character:MoveTo(spawns.FarSpawn.Position)
end)
end)

Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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