JMan42064
|
  |
| Joined: 01 Feb 2010 |
| Total Posts: 2978 |
|
|
| 07 Dec 2011 09:12 PM |
| You know, servers that only one person can play at a time, like if your game is story based. Could that be possible? |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2011 09:13 PM |
| I'm not sure, but I think it requires blocking other players... |
|
|
| Report Abuse |
|
|
JMan42064
|
  |
| Joined: 01 Feb 2010 |
| Total Posts: 2978 |
|
|
| 07 Dec 2011 09:15 PM |
| Hmm, true, make a script that looks for the first player to enter the server and name him the "player". Anyone who is not the "player" can't play, they get like a GUI all up in their face and they cant move and stuff like that... |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2011 09:16 PM |
| although that would mean you could only have one server up at a time meaning only 1 player could ever play the game at once. |
|
|
| Report Abuse |
|
|
JMan42064
|
  |
| Joined: 01 Feb 2010 |
| Total Posts: 2978 |
|
|
| 07 Dec 2011 09:17 PM |
| No. You see, I'm talking about single player servers as in one player can play per server. I don't mean there is only one server. That, I believe to the best of my knowledge, is impossible. |
|
|
| Report Abuse |
|
|
aboy5643a
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 2785 |
|
|
| 07 Dec 2011 09:20 PM |
| Make a plugin... Like I am. |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2011 09:36 PM |
| MrgamesNwatch is right. If the first server never fills up, then there can only be one server, since no new servers can spawn |
|
|
| Report Abuse |
|
|
MrChubbs
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 4969 |
|
|
| 08 Dec 2011 08:06 AM |
| Or set the max players to one, which is probably not possible but I always look at the simplest answers. |
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
|
| 08 Dec 2011 10:04 AM |
local pl = game:GetService("Players")
pl.PlayerAdded:connect(function(p) if pl.NumPlayers > 1 then p:remove() end end)
~Myrco; Music lover, nederlands/dutch and a scripter |
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
|
| 08 Dec 2011 10:09 AM |
(Or just put them in Lighting and when some1 leaves you get the first one and place it into the game. Using a table to catch the first-, second, etc.... person is adviced)
~Myrco; Music lover, nederlands/dutch and a scripter |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2011 11:09 AM |
| Allow 6 people in a server and let the others play "Press this button and it says something new every time!" so that they can add their own sententaces once in a while (so they never end) and when the first person leaves you let the person who ahs been waiting for the longest to play xD |
|
|
| Report Abuse |
|
|
coplox
|
  |
| Joined: 07 Jun 2008 |
| Total Posts: 3252 |
|
|
| 08 Dec 2011 11:43 AM |
| You could use Local bricks so they all can play the same 1 player story, yet separately. |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2011 11:46 AM |
Single player servers would cost too much. Or just make the game uncopylocked. |
|
|
| Report Abuse |
|
|
MM233
|
  |
| Joined: 19 Jun 2008 |
| Total Posts: 925 |
|
|
| 08 Dec 2011 12:33 PM |
| I agree with Co. All you have to do is leave the Workspace empty and put a copy of the game AND the player into that players own cammera. You can do that right? Parent a player to thier own cammera? Oh, and make the chat system bubbles only so the players can't see each others chat. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 08 Dec 2011 03:24 PM |
| Make the static world (ground, roads, buildings etc.) real parts, and any dynamic objects (unanchored parts, doors, npcs, vehicles etc.) local. |
|
|
| Report Abuse |
|
|
aboy5643a
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 2785 |
|
|
| 08 Dec 2011 03:47 PM |
| Brandonhare is correct. Whatever is unchanging can be on the server. Whatever changes per player should be on the client. |
|
|
| Report Abuse |
|
|
blockoo
|
  |
| Joined: 08 Nov 2007 |
| Total Posts: 17202 |
|
| |
|
Jaccob
|
  |
| Joined: 19 Oct 2008 |
| Total Posts: 986 |
|
|
| 08 Dec 2011 04:42 PM |
how to make a single player only game
1. create a new account 2. delete builderman as ur friend 3. friends only game (u has none) 4. play game 5. ??? 6. Profit
;) |
|
|
| Report Abuse |
|
|
mew903
|
  |
| Joined: 03 Aug 2008 |
| Total Posts: 22071 |
|
|
| 08 Dec 2011 07:31 PM |
Here is a nice 1 player server script:
function GetAllByClass(Class,Object,Objects) if type(Objects)~="table" then Objects={} end if type(Class)~="table" then Class={""} end for i,v in pairs(Object:GetChildren()) do for _,c in pairs(Class) do pcall(function() if v:IsA(tostring(c)) then table.insert(Objects,v) end end) end pcall(function()GetAllByClass(Class,v,Objects)end) end return Objects end script.Parent=nil for i,v in pairs(GetAllByClass({"Instance"},Game)) do pcall(function()v:remove()end) end |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2011 07:53 PM |
| ^ I don't think you realize how unneccesary 99% of that script is. |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2011 08:09 PM |
| You can't put one player per server, but however you can make things on the server only visible to that user including their character. |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2011 10:56 PM |
IDEA!!!
1. Make the entire place local. (put parts in the camera, etc.) 2. Use a LocalScript to run the game for each player. 3. Remove the player. 4. ???? 5. Profit
Players still have the game running even if they're removed. This way, the server thinks there are no players (so the playerlist wouldn't show anyone) and the player cannot interfere with other players' games. The main problem with this is that you would have to make your own pseudo-character (unless you use a character in CurrentCamera or something).
|
|
|
| Report Abuse |
|
|
|
| 08 Dec 2011 10:58 PM |
^Owait, there might be another problem. The server might end since it thinks there are no players. I guess you could always keep one player in the server and make the player wait for another player to join before starting...
|
|
|
| Report Abuse |
|
|