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

[SOLVED] Not detecting descendants of a script?

My code is simple, and should work, but outputs nothing.

for i, v in pairs(game:GetService("ServerScriptService"):GetDescendants()) do
	print(i, v)
end

The hierarchy looks like this:

ServerScriptService
 - Script
    - RemoteFunction
    - RemoteEvent

What is wrong?

EDIT: Solved, look at my answer.

1 answer

Problem is that the client can't access ServerScriptService so I'll just be moving everything over to ReplicatedStorage.

3 comments

0

And on this day shadow learned about filtering enabled

0

it can not acces in thes ServerScriptService duhh you most do it on the Replicated Storage.

0

You shouldn't be storing non-script and non-grouping (folders) instances in ServerScriptService, use ReplicatedStorage or ServerStorage

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