bohdan77
|
  |
| Joined: 10 Aug 2008 |
| Total Posts: 7944 |
|
|
| 08 Dec 2013 06:29 PM |
local MaxPlayers = 1 game:GetService("Players").PlayerAdded:connect(function(player) if Game:GetService("Players").NumPlayers > MaxPlayers then if not pcall(function() player:Kick() end) then game:GetService("Debris"):AddItem(Player,0) end end end) Your welcome.
|
|
|
| Report Abuse |
|
|
| |
|
thea96
|
  |
| Joined: 09 Feb 2011 |
| Total Posts: 37634 |
|
|
| 08 Dec 2013 06:31 PM |
hey dont do kick() it nils the player i think, allowing them to see the base and give hints to the players |
|
|
| Report Abuse |
|
|
GustFlame
|
  |
| Joined: 17 Oct 2008 |
| Total Posts: 3708 |
|
|
| 08 Dec 2013 06:32 PM |
| no it shuts their game down |
|
|
| Report Abuse |
|
|
bohdan77
|
  |
| Joined: 10 Aug 2008 |
| Total Posts: 7944 |
|
|
| 08 Dec 2013 06:32 PM |
| Thea, it stops all replications from the server to the player client. |
|
|
| Report Abuse |
|
|
thea96
|
  |
| Joined: 09 Feb 2011 |
| Total Posts: 37634 |
|
|
| 08 Dec 2013 06:34 PM |
| oh, so this one wont allow the player to have a free view of the map and click door buttons? |
|
|
| Report Abuse |
|
|
bohdan77
|
  |
| Joined: 10 Aug 2008 |
| Total Posts: 7944 |
|
| |
|
thea96
|
  |
| Joined: 09 Feb 2011 |
| Total Posts: 37634 |
|
|
| 08 Dec 2013 06:36 PM |
ok
http://www.youtube.com/watch?v=-VXVhN7JD-4 |
|
|
| Report Abuse |
|
|
bohdan77
|
  |
| Joined: 10 Aug 2008 |
| Total Posts: 7944 |
|
|
| 08 Dec 2013 06:39 PM |
| Bump, must be known to all. |
|
|
| Report Abuse |
|
|
bohdan77
|
  |
| Joined: 10 Aug 2008 |
| Total Posts: 7944 |
|
|
| 08 Dec 2013 06:46 PM |
| Just to clarify, this will shutdown the last player that joined if the number of players in the game is larger then the MaxPlayers variable. |
|
|
| Report Abuse |
|
|
| |
|
|
| 08 Dec 2013 07:26 PM |
| Oh I see..Thank You, useful in a way. |
|
|
| Report Abuse |
|
|