Unable to get game genre correctly

image
So the game says it is genre all, however it is set to comedy.


and some times it just errors out
image

is there any way around this?

– Gerald

I’m not sure what’s causing the error as the following code works fine on my end.

for _, genreEnum in ipairs(Enum.Genre:GetEnumItems()) do
	print(genreEnum)
end

I recommend wrapping your code inside a call to the pcall() global in order to properly handle the error.