If you want to learn how to make a model regenerate in Roblox, the Roblox Wiki is your best friend. It is the community-maintained hub for all things scripting and building on the platform.
Search the wiki for the guide on making a model regenerate, and you will find step-by-step documentation explaining the scripting involved. It is the most reliable, up-to-date reference for pulling it off in your own games.