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: Serverstorage not part of game?

Previous Thread :: Next Thread 
kaddad14 is not online. kaddad14
Joined: 13 Apr 2013
Total Posts: 649
08 Jan 2017 09:42 AM
game.ServerStorage.Ships:wait()
its in a local script, filtering enable is off (I'm pretty sure) and it's telling me that serverstorage is not a valid member of DataModel. Could anyone help me figure this out?
Report Abuse
VegasGoldenKnights is not online. VegasGoldenKnights
Joined: 03 Apr 2008
Total Posts: 78577
08 Jan 2017 09:44 AM
Use :GetService()
It's more reliable
Report Abuse
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
08 Jan 2017 09:45 AM
game:GetService("ServerStorage"):WaitForChild("Ships"):wait()
Report Abuse
kaddad14 is not online. kaddad14
Joined: 13 Apr 2013
Total Posts: 649
08 Jan 2017 09:47 AM
thx, but how would I get children like that?
Report Abuse
OAuth2 is not online. OAuth2
Joined: 27 Nov 2016
Total Posts: 751
08 Jan 2017 09:49 AM
http://wiki.roblox.com/index.php?title=API:Class/ServerStorage
"LocalScripts will not be able to access the contents of this service."


Report Abuse
MK_0 is online. MK_0
Joined: 28 Aug 2010
Total Posts: 1651
08 Jan 2017 09:49 AM
You do not need a WaitForChild for anything in the Server Storage.

game:GetService("ServerStorage")["Ships"]:GetChildren()



Report Abuse
MK_0 is online. MK_0
Joined: 28 Aug 2010
Total Posts: 1651
08 Jan 2017 09:50 AM
Wait nevermind, don't use Server Storage if your using a local script.


Report Abuse
kaddad14 is not online. kaddad14
Joined: 13 Apr 2013
Total Posts: 649
08 Jan 2017 09:51 AM
@OAuth2 could i use lighting as a replacement?
Report Abuse
VegasGoldenKnights is not online. VegasGoldenKnights
Joined: 03 Apr 2008
Total Posts: 78577
08 Jan 2017 09:51 AM
Use ReplicatedStorage
Report Abuse
kaddad14 is not online. kaddad14
Joined: 13 Apr 2013
Total Posts: 649
08 Jan 2017 09:52 AM
Thx, for some reason serverstorage works with localscripts in studios and it was killing to to figure it out. Thx everyone.
Report Abuse
kaddad14 is not online. kaddad14
Joined: 13 Apr 2013
Total Posts: 649
08 Jan 2017 10:00 AM
So what would I use as a replacement for ServerScriptService if I wana have a localscript run a modulescript's function?
Report Abuse
MK_0 is online. MK_0
Joined: 28 Aug 2010
Total Posts: 1651
08 Jan 2017 10:02 AM
Preferably, replicated storage / but you can use Lighting.


Report Abuse
kaddad14 is not online. kaddad14
Joined: 13 Apr 2013
Total Posts: 649
08 Jan 2017 10:02 AM
ok thx again.
Report Abuse
GearMechs is not online. GearMechs
Joined: 01 Dec 2010
Total Posts: 1220
08 Jan 2017 10:30 AM
Local test in studio bundles everything into a local client. Never use it to test, if you can - It has the wrong physics and creates unknown errors.


Project Leader for OKS - GearMechs
Report Abuse
SirTipsAlot is not online. SirTipsAlot
Joined: 08 Feb 2012
Total Posts: 2431
08 Jan 2017 10:34 AM
there's a way to run a server and client simultaneously on the same machine (but different things)

its essentially the same thing as joining the game

Toolbox>Test>Start


my dps (dabs per seconds) is roughly 0x539, get on my level :)
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
08 Jan 2017 10:44 AM
You don't NEED to use GetService on serverstorage. Its already part of the data model. And that isnt the problem here.


Report Abuse
SirTipsAlot is not online. SirTipsAlot
Joined: 08 Feb 2012
Total Posts: 2431
08 Jan 2017 10:46 AM
yeah guys, dont use getservice

use findservice

trust me it exist

http://wiki.roblox.com/index.php?title=API:Class/ServiceProvider/FindService


and now i'm sad
Report Abuse
kaddad14 is not online. kaddad14
Joined: 13 Apr 2013
Total Posts: 649
09 Jan 2017 03:36 PM
@gearmechs, yea I am having some trouble with my cframing and bodyvelocities, and its not happening during test.
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