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: I cannot believe this o.o

Previous Thread :: Next Thread 
Lecturous is not online. Lecturous
Joined: 17 Aug 2013
Total Posts: 1096
04 Mar 2015 07:35 PM
I have never used ReplicatedStorage and ReplicatedFirst before because I did not know what they do... now I have gotten curious about them and read the wiki.. OMGZ!

So basically...

ReplicatedStorage is a replacement for ServerStorage in the case that it can interact with the server AND the client?

AND

ReplicatedFirst is a replacement for ServerStorage in the case that it loads assets from the client first?

Wow, I am such a scripting noob. cx
Report Abuse
Lecturous is not online. Lecturous
Joined: 17 Aug 2013
Total Posts: 1096
04 Mar 2015 07:56 PM
That is (kind of) how it works, right? .-.
Report Abuse
Froast is not online. Froast
Joined: 12 Mar 2009
Total Posts: 3134
04 Mar 2015 07:58 PM
yes

replicatedfirst is specifically for things like loading/intro screens that are loaded first when the player joins the game
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
04 Mar 2015 07:58 PM
ReplicatedStorage is for clients, server cannot access.
ServerStorage is for server, client cannot access.

ReplicatedFirst is like startergui but for localscripts ncrap.
Report Abuse
affectless is not online. affectless
Joined: 28 Dec 2014
Total Posts: 1084
04 Mar 2015 08:00 PM
I thought the server could access RepStorage?
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
04 Mar 2015 08:05 PM
The server has access to ReplicatedStorage.
Report Abuse
Lecturous is not online. Lecturous
Joined: 17 Aug 2013
Total Posts: 1096
04 Mar 2015 08:38 PM
This is strange: When I put "print('hi')" in a ServerScript parented to ReplicatedStorage, it does not print.

Maybe what Goul said was right?
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
04 Mar 2015 08:44 PM
No Goul is wrong.

ReplicatedStorage can be accessed by both CLIENTS and SERVER.

The reason it did not run there, is because the object is not built to run there. You don't put a script in lighting, see it not work; and say "Oh, clearly server can't access lighting!".

ReplicatedStorage is for objects you want both the server and the client to use (I use it for FE objects)

ServerStorage is for storing models, values, and other stuff you don't want the client to see, for the server to stream (If you put stuff in lighting, it does replicate).

You put Scripts in ServerScriptService where they belong.
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