Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Does ServerScriptService communicate with ReplicatedStorage at all?

Asked by 6 years ago

I have a few values in ReplicatedStorage that need to be changed via a script in ServerScriptService. If anybody could provide an answer and possibly an explanation on ServerScriptService and ReplicatedStorage communication that would be much appreciated :)

1 answer

Log in to vote
1
Answered by
Avigant 2374 Moderation Voter Community Moderator
6 years ago

game.ReplicatedStorage is for stuff that you want automatically replicated to the client that is not involved in the physical world (game.Workspace is for that!). The server has complete access to game.ReplicatedStorage and any changes to it will be replicated to all clients automatically.

All clients can see game.ReplicatedStorage but changes to it will not be automatically replicated to the server or any other client.

0
Do you think you can take a look at some code and tell me why a value in ReplicatedStorage is not updating 4d61736f6e 59 — 6y
1
I think you should ask a new question based on that, after trying to use breakpoints and print() calls to figure out what exactly is running and not running. Check this page to learn about using breakpoints, they're very powerful: http://wiki.roblox.com/index.php?title=Lua_Debugger Avigant 2374 — 6y
1
I have tried using print statements, If i can't solve it after using breakpoints I will ask a new question. Thank you for the help! 4d61736f6e 59 — 6y
Ad

Answer this question