skill24
|
  |
| Joined: 14 Jun 2009 |
| Total Posts: 13608 |
|
|
| 25 Aug 2013 01:20 PM |
I have a lobby for my game where the players spawn. It has a roof, and sometimes players spawn on top of the roof! Is this possible to fix?
(Sorry if this belongs in Scripting Helpers, I was not sure) |
|
|
| Report Abuse |
|
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 25 Aug 2013 01:31 PM |
| How many spawns do you have in lobby? |
|
|
| Report Abuse |
|
|
skill24
|
  |
| Joined: 14 Jun 2009 |
| Total Posts: 13608 |
|
| |
|
|
| 25 Aug 2013 01:42 PM |
| How many people are aloud on one server? |
|
|
| Report Abuse |
|
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 25 Aug 2013 01:44 PM |
hmmm... Well I could make custom spawn for you then..
spawn = game.Workspace.SpawnBrick spawnRadius = 10
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) character.Torso.CFrame = spawn+Vector3.new(math.random(-spawnradius,spawnradius),5,math.random(-spawnradius,spawnradius)) end) end)
Just have this as regular script in workspace, have part called 'SpawnBrick' in workspace. It should probably be non-collidable, anchored, plate and transparent.
Tweak spawnRadius, for radius where people will get spawned in.
Also have 1 regular spawn somewhere else. |
|
|
| Report Abuse |
|
|
69scott69
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 6136 |
|
|
| 25 Aug 2013 02:09 PM |
You need to leave room in a closed area for players to spawn. Otherwise they may spawn on the roof, especially if 2 or more players spawn at once and stack on each other.
The best thing is not to make spawns under a roof. |
|
|
| Report Abuse |
|
|