Roblox Corp. is partnering with Alphabet Inc.’s Google to offer ads that encourage player engagement, marking a significant step in the video-game platform’s push to generate more revenue from advertising.