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

Why can't my script find where my folder is in server storage?

I have a variable that defines the server storage and then a line of code that looks for a folder in that server storage. The error is: Tools is not a valid member of ServerStorage "ServerStorage" When I do have a folder called "Tools"

local ServerStor = game:GetService("ServerStorage")
ServerStor.Tools:WaitForChild(player.Pickaxe.Value)

1 answer

(op told me it was LocalScript in community chat)

You can't access ServerStorage with a LocalScript. That's why it's called ServerStorage. If you want to access it with a LocalScript, use ReplicatedStorage

2 comments

1

Yup, clients can't access ServerStorage so always keep that in mind.

1

to add on to that, clients can't see the ServerScriptService either.

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