Problem with getting number of elements of a table

Hi, i wanted to get the number of members of a table, i usually used the “#” to do this but suddently it doesn’t work.

local Effects = {
	Bloom = Instance.new("BloomEffect"),
	Blur = Instance.new("BlurEffect"),
	ColorCor = Instance.new("ColorCorrectionEffect"),
	SunRays = Instance.new("SunRaysEffect"),
	Sky = Instance.new("Sky"),
	Atm = Instance.new("Atmosphere")
}

print(#Effects)

i also tried:

print(#Effects:GetChilden())

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.