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

How to use serverstorage instead of lighting?

Asked by 10 years ago

I heard someone say not to store maps or data in lighting anymore and put it in ServerStorage or something? Would you reference that the same way like you would with lighting? Ex:

local maps = game.ServerStorage.Maps

2 answers

Log in to vote
1
Answered by
modFrost 130
10 years ago

You would want to store the models into ReplicatedStorage as it is replicated to both the client and server.

0
Unless you don't want the clients to access the models Wafflecow321 457 — 6y
Ad
Log in to vote
3
Answered by
badcc 30
10 years ago

Correct.

That or: Game:GetService'ServerStorage'.Maps

1
It should also be mentioned that ServerStorage's contents are not replicated to the Client, so LocalScripts can't access it directly. adark 5487 — 10y
2
If you would like a LocalScript to access them, game:GetService("ReplicatedStorage") (use replicatedstorage instead of ServerStorage) RaverKiller 668 — 10y
0
I never knew badcc used to use here! PrismaticFruits 842 — 4y

Answer this question