Video summary

Rainbow Pets! How to Make a Simulator in Roblox Episode 36

Main summary

Key takeaways

Educational

Summary

The video demonstrates how to add a Rainbow Pet upgrade system to a Roblox simulator. Players can combine up to five duplicate Golden pets, wait for the upgrade to finish, and claim a Rainbow pet. The tutorial covers the pet data model, upgrade timing, server-side validation, the interface, and animated rainbow coloring.

Implementation outline

  • Import and position the machine

    • Download the Rainbow Pet model from a free Patreon post and import it into Roblox Studio.
    • Position it in the world. Make sure the model is named Pet Rainbow, has a hitbox, and uses that hitbox as its primary part.
  • Update pet configuration and data

    • Add Rainbow to the pet upgrade types.
    • Add rainbow and optional rainbowTime properties to pet instances.
    • Add a petRainbow table to the player data template to track pets currently being upgraded.
    • Set the default maximum number of pets a player can have upgrading at once to five.
  • Set upgrade durations

    • Create a function that returns the upgrade duration based on the number of pets combined:
      • 1 pet: 48 hours
      • 2 pets: 24 hours
      • 3 pets: 12 hours
      • 4 pets: 6 hours
      • 5 pets: 30 minutes
    • Add a separate function to format these durations as readable text for the interface.
    • The presenter notes that these values can be customized.
  • Create the rainbow animation

    • Use TweenService to cycle through red, green, and blue.
    • Repeatedly tween either a pet part’s Color or a GUI object’s BackgroundColor3.
    • Stop the animation if the instance no longer has a parent; otherwise, repeat it when each tween finishes.
  • Build the interface

    • Create a local script for the Rainbow Pet GUI, with Make and View modes.
    • Open the GUI when the player touches the machine’s hitbox.
    • In Make mode, display Golden pets that are not already Rainbow.
    • Let players select up to five duplicate pets. After the first pet is selected, show only matching duplicates.
    • Update the interface to show the number of selected pets and the estimated upgrade time.
    • In View mode, show pets currently upgrading, their remaining time, and a claim button when they are finished.
    • Refresh displayed timers once per second and clear old container entries when regenerating the interface.
  • Handle upgrades and claims on the server

    • Add remote events for starting a Rainbow upgrade and claiming a completed pet.
    • Validate the player’s profile, queue capacity, selection count, ownership of each pet, and whether the selected pets are Golden, not Rainbow, and duplicates of the same base pet.
    • Create the Rainbow pet, record its completion time, remove the pets used as ingredients, and store the new pet in the player’s Rainbow-upgrade data.
    • When a player claims a finished pet, mark it as Rainbow, remove its timer, grant it to the player, and remove it from the upgrade queue.
    • Update the client’s state data in response to both remote events.
  • Test and finish the feature

    • Test selecting and deselecting pets, time estimates, mode switching, upgrade countdowns, and claiming.
    • Temporarily change the upgrade time to ten seconds for testing, then restore the original value.
    • Update the pet utility and inventory GUI so Rainbow pets continuously cycle through colors. Rainbow pets also receive a 75% pet-click increase.

Main takeaway

The system relies on keeping the upgrade process consistent across the pet configuration, player data, interface, client state, and server validation. The server is responsible for checking selections and granting pets; the client displays selections, timers, and animated colors.

Speakers and sources featured

  • MonzterDEV — presenter and tutorial narrator.
  • ChatGPT — credited by the presenter as helping speed up development of the rainbow-tween function.
  • Patreon post and assets — source of the downloadable Rainbow Pet model and related files.

Rate this summary

Your feedback will help improve summaries.

Improve this summary

Reprocess with a stronger model when the summary feels incomplete or inaccurate.

Pro

Translate summary in another language

Pro

Ask questions to this video

Chat for follow-up questions, clarifications, and source-backed answers.

Coming soon

Share this summary

Original video