local repstorage = game:GetService("ReplicatedStorage")

for index, child in pairs(repstorage:GetChildren()) do
	if child:IsA("ReplicatedStorage") then
		print(child.Name)
	end
end

There is 2 folders inside ReplicatedStorage.

The first folder is named: Hi The second folder is named: Hello

And the output is:

nil nil

It prints "nil", it doesn't identify the childs?