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.
Problem is that the client can't access ServerScriptService
so I'll just be moving everything over to ReplicatedStorage
.