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

[SOLVED] Not detecting descendants of a script?

Asked by 4 years ago
Edited 4 years ago

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

Log in to vote
0
Answered by 4 years ago

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

0
And on this day shadow learned about filtering enabled Gojinhan 353 — 4y
0
it can not acces in thes ServerScriptService duhh you most do it on the Replicated Storage. tirdynoob -5 — 4y
0
You shouldn't be storing non-script and non-grouping (folders) instances in ServerScriptService, use ReplicatedStorage or ServerStorage hiimgoodpack 2009 — 4y
Ad

Answer this question