local MarketPlaceService= game:GetService ("MarketplaceService")

local GamePassId = 21540848 local Tool = script.RainbowMagicCarpet

game.Players.PlayerAdded:Connect(function(Player) Player.CharacterAdded:Connect (function (Character) if MarketPlaceService:UserOwnsGamePassAsync(Player.UserId, GamePassId) then local ToolClone = Tool:Clone () ToolClone.Parent = Player.Backpack() end end) end)