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 |
|
|
|
| 25 Dec 2011 09:37 AM |
if stuffactuallyworks == true then print("is in solo") end |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
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
|
  |
| 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
|
  |
 |
| 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
|
  |
| Joined: 15 May 2011 |
| Total Posts: 18684 |
|
| |
|
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 |
|
|