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 » Scripters
Home Search
 

Re: Another Scripting Question: Is it possible to make "single-player" servers?

Previous Thread :: Next Thread 
JMan42064 is not online. 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
Candymaniac is not online. Candymaniac
Joined: 08 Oct 2009
Total Posts: 8985
07 Dec 2011 09:13 PM
I'm not sure, but I think it requires blocking other players...
Report Abuse
JMan42064 is not online. 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
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
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 is not online. 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 is not online. aboy5643a
Joined: 20 Nov 2010
Total Posts: 2785
07 Dec 2011 09:20 PM
Make a plugin... Like I am.
Report Abuse
PurpleKiwi is not online. PurpleKiwi
Joined: 26 Jul 2008
Total Posts: 4022
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 is not online. 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 is not online. 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 is not online. 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
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
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 is not online. 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
mustyoshi2 is not online. mustyoshi2
Joined: 11 Feb 2008
Total Posts: 6129
08 Dec 2011 11:46 AM
Single player servers would cost too much.
Or just make the game uncopylocked.
Report Abuse
MM233 is not online. 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
superswordkirby is not online. superswordkirby
Joined: 03 Sep 2011
Total Posts: 88
08 Dec 2011 02:22 PM
@above Agreed
Report Abuse
FreeToTake is not online. FreeToTake
Joined: 21 Apr 2010
Total Posts: 1827
08 Dec 2011 02:38 PM
Loopkill 'em.
Report Abuse
Brandonhare is not online. Brandonhare
Joined: 02 May 2007
Total Posts: 11005
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 is not online. 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 is not online. blockoo
Joined: 08 Nov 2007
Total Posts: 17202
08 Dec 2011 04:21 PM
Gotta love local parts :D
Report Abuse
Jaccob is not online. 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 is not online. 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
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
08 Dec 2011 07:53 PM
^ I don't think you realize how unneccesary 99% of that script is.
Report Abuse
NINJAKID09 is not online. NINJAKID09
Joined: 27 Aug 2009
Total Posts: 14392
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
PurpleKiwi is not online. PurpleKiwi
Joined: 26 Jul 2008
Total Posts: 4022
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
PurpleKiwi is not online. PurpleKiwi
Joined: 26 Jul 2008
Total Posts: 4022
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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