Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Can you use ServerStorage in a local script?

I'm getting an error:

Server storage is not a valid member of DataModel.

Why is this? You can use ServerStorage in a local script right? If not, what are the alternatives? Help. Thanks!

1 comment

0

No you cannot. An alternative is to use ReplicatedStorage.

1 answer

✓ Accepted answer

ServerStorage cannot be accessed with LocalScripts, since it is only accessible by server.

ReplicatedStorage does work in LocalScripts, as the contents are replicated in the client and server.

local repStorage = game.ReplicatedStorage:findFirstChild("WhateverName")

1 comment

0

Thanks, this will do. Great help!

This discussion is preserved as it was. New answers, comments, and votes are closed.