Here’s the practical way to add a rainbow carpet to your Roblox game:

Quick Scoop

  1. Create or get the carpet model. In Roblox Studio, open the Toolbox or import a carpet asset you trust, then place it in your game. A common tutorial workflow uses a rainbow carpet model plus a GUI/script pair to give the item to players who own a game pass.
  1. Make a Game Pass. On your game’s page in Roblox, create a pass named something like “Rainbow Carpet,” then put it on sale so players can actually own it.
  1. Add the scripts in the right places. Move the carpet script to ServerScriptService and the GUI to StarterGui , then delete any extra model pieces you do not need.
  1. Set the Pass ID. Copy your game pass asset ID from the pass settings and paste it into the script and GUI values that ask for pass ID so the game can check ownership correctly.
  1. Test in Studio. Press play, confirm that the carpet appears in the player’s hotbar or inventory, and verify that it works only for players who own the pass.

What this does

The basic idea is simple: the game checks whether a player owns the pass, and if they do, it gives them the rainbow carpet tool. That’s the same pattern used in several recent Roblox tutorials, including versions from 2026.

Common fixes

  • If nothing appears, recheck the Pass ID value.
  • If the script throws warnings, review your game settings and security permissions, since some tutorials mention security settings as a troubleshooting step.
  • If the carpet behaves oddly, use a cleaner or updated carpet model; one Roblox DevForum post notes that rainbow carpet scripts/models can need fixes for drifting and smoother movement.

Simple workflow

Step| Action| Result
---|---|---
1| Add the carpet model| The carpet exists in the game
2| Create a game pass| Players can unlock it
3| Put scripts in correct services| Ownership checks work
4| Paste the pass ID| The game knows which pass to check
5| Test in Studio| You confirm it works

TL;DR: add the carpet model, create a game pass, insert the script and GUI into the right services, paste in the pass ID, and test it in Studio.