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
|
  |
| Joined: 17 Aug 2013 |
| Total Posts: 1096 |
|
|
| 04 Mar 2015 07:56 PM |
| That is (kind of) how it works, right? .-. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
|
| 04 Mar 2015 08:00 PM |
| I thought the server could access RepStorage? |
|
|
| Report Abuse |
|
|
|
| 04 Mar 2015 08:05 PM |
| The server has access to ReplicatedStorage. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|