There is no code that hands you half a million tickets. The way to earn a large balance in the old Roblox economy was to build a place that people actually wanted to play.
Popular games pulled in visitors, and visitors meant ticket revenue. Focus on making something original and fun, keep it updated, and the currency follows from the traffic rather than from any trick.