Investors in Roblox Corp. say it has the potential to become one of the world’s most popular online hangouts.

It is now valued at about $4 billion after closing a new funding round led by venture-capital giant Andreessen Horowitz, according to a person familiar with the matter.

Roblox was last valued at more than $2.5 billion in September...