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: Is there a way to detect is a game is Solo?

Previous Thread :: Next Thread 
nazer1290 is not online. nazer1290
Joined: 03 Jan 2008
Total Posts: 5994
25 Dec 2011 09:29 AM
Before a certain update I was able to detect if the game was solo by this:

local Game = {Paused = true, Solo = (game:findFirstChild("NetworkServer") == nil)}

Is there a new way of doing this?
Report Abuse
xSIXxStorage is not online. xSIXxStorage
Joined: 22 Aug 2010
Total Posts: 1811
25 Dec 2011 09:37 AM
if stuffactuallyworks == true then
print("is in solo")
end
Report Abuse
Brandonhare is not online. Brandonhare
Joined: 02 May 2007
Total Posts: 11005
25 Dec 2011 09:38 AM
Try looking at game.Name, I think it's different for online, solo and studio. Try printing them in all cases and see what happens.
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
25 Dec 2011 09:45 AM
[ Content Deleted ]
Report Abuse
nazer1290 is not online. nazer1290
Joined: 03 Jan 2008
Total Posts: 5994
25 Dec 2011 09:46 AM
Just tried it and when it's in studio, the name of game is the name of the file you're editing. Anything else is 'Place1'.

I don't understand why the old code doesn't work... have they removed the NetworkServer Instance or something? =S
Report Abuse
nazer1290 is not online. nazer1290
Joined: 03 Jan 2008
Total Posts: 5994
25 Dec 2011 09:47 AM
@Oysi

Ah yeh, never thought of that... always over-complicating things XD

Thing is, if you join solo from the site, doesn't your name remain and not turn into player?

Report Abuse
sdfgw is not online. sdfgw
Top 50 Poster
Joined: 08 Jan 2009
Total Posts: 41681
25 Dec 2011 09:48 AM
@Oysi:

I expect if Player ever sampled all of our games, he would be a god to us
Report Abuse
Tenal is not online. Tenal
Joined: 15 May 2011
Total Posts: 18684
25 Dec 2011 12:24 PM
[ Content Deleted ]
Report Abuse
LocalChum is not online. LocalChum
Joined: 04 Mar 2011
Total Posts: 6906
25 Dec 2011 12:41 PM
In a regular script object:

local IsSolo = game.Players.LocalPlayer ~= nil
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