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

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

Asked by 4 years ago

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

Log in to vote
2
Answered by 4 years ago

(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

1
Yup, clients can't access ServerStorage so always keep that in mind. AntoninFearless 622 — 4y
1
to add on to that, clients can't see the ServerScriptService either. the8bitdude11 358 — 4y
Ad

Answer this question