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)

i have my carpet in server storage and it wont work

2 comments

0

The problem is where u clone the object! it should be local ToolClone = Tool:Clone() not local ToolClone = Tool:Clone

0

it still does not work im thinking its something to do with where i put the gear?