How To Make A Rainbow Carpet Gamepass In Roblox Studio

Hey gamers! Today I'm going to be showing you a complete, step‑by‑step method for creating a vibrant rainbow carpet gamepass that players can buy and use to glide across your Roblox world. This guide works for beginners and intermediate developers alike, and it includes all the essential tools, scripts, and model links you’ll need.

What Is a Rainbow Carpet Gamepass?

A rainbow carpet gamepass is a purchasable item that grants a player a decorative, colorful carpet they can stand on while moving. It’s a popular cosmetic upgrade because it adds flair without affecting gameplay balance. The carpet can be set to follow the player’s character, giving the illusion of flying or gliding.

Prerequisites

Step 1 – Set Up the Gamepass in Roblox

  1. Open Roblox Studio and load the place you’ll be editing.
  2. Navigate to the Game Settings panel, then click Marketplace.
  3. Select Create New Gamepass. Give it a catchy name like “Rainbow Carpet” and upload an eye‑catching thumbnail.
  4. Copy the generated Gamepass ID; you’ll need it for the script later.

Step 2 – Import a Rainbow Carpet Model

If you already have a carpet model, you can skip this part. Otherwise, use one of the free models from the Roblox library. Below are a few reliable links:

To import, click Toolbox → Marketplace, paste the link, and press Insert. Place the carpet somewhere in Workspace and rename it to RainbowCarpet for easy reference.

Step 3 – Create the Carpet Script

The script will check whether a player owns the gamepass and, if so, attach the carpet to their character. Follow these instructions carefully:

  1. Right‑click StarterPlayer → StarterPlayerScripts and select Insert Object → LocalScript. Name it RainbowCarpetHandler.
  2. Paste the following code, replacing YOUR_GAMEPASS_ID with the ID you copied earlier:
local MarketplaceService = game:GetService("MarketplaceService") local Players = game:GetService("Players") local GAMEPASS_ID = YOUR_GAMEPASS_ID