Donation Board - Products

I set up this donation board, but I have an issue.

When I’m entering my products, it told me to copy and paste this:

Instead of showing all the DevProducts:

It only shows 3:

Screenshot 2021-03-18 at 14.59.52

I’m not going to re-write the entire code or anything, I just need assistance.

When it was mentioning what to copy and paste, it was telling to copy and paste

{
   ProductPrice = 0,
   ProductId = 0
}

As new entries in the module.Products table

1 Like

Okay, thanks! How would I set it up then?
Like this?

But the “}” is red.

That’s not how, by adding a new entry, I mean something like this. Say as of now the table is

module.Products = {
	{
		ProductPrice = 15,
		ProductId = 76476478
	},
	{
		ProductPrice = 50,
		ProductId = 75859507
	},
	{
		ProductPrice = 15,
		ProductId = 75859609
	}
}

And you want to add another entry into the table for your new donation product, it would be something like this

module.Products = {
	{
		ProductPrice = 15,
		ProductId = 76476478
	},
	{
		ProductPrice = 50,
		ProductId = 75859507
	},
	{
		ProductPrice = 100,
		ProductId = 75859609
	},
	{
		ProductPrice = 150,
		ProductId = 75859690
	}
}
1 Like

I don’t understand on how to add on products.

If it’s possible, could you do the whole script with 10 products?

Wait why were you copying exactly from me? Your IDs are completely different from mine, I was doing an example of how it has to be done. And it’s erroring because of you were trying to add new entries

I was going to change the IDs. If i do module.Products = { then only them products will appear, not the rest.

Your main issue stems from the fact that you have an extra curly bracket

image

The code will work if you remove that extra one

1 Like

Nope, I’ve tried 7 times. It’s not working. :tired_face: Is it possible for you to do the products, but with 10 slots? Sorry, I can’t figure it out!

I guess so, send me all 10 of them, price and ID either here or preferably Messages

1 Like
module.Products = {
	{
		ProductPrice = 10,
		ProductId = 1149023542
	},
	{
		ProductPrice = 100,
		ProductId = 1149029715
	},
	{
		ProductPrice = 1000,
		ProductId = 1156973189
	},
	{
		ProductPrice = 25,
		ProductId = 1149029534
	},
	{
		ProductPrice = 250,
		ProductId = 1156973045
	},
	{
		ProductPrice = 50,
		ProductId = 1149029621
	},
	{
		ProductPrice = 500,
		ProductId = 1156973092
	},
	{
		ProductPrice = 75,
		ProductId = 1149029685
	},
	{
		ProductPrice = 750,
		ProductId = 1156973131
	},
	{
		ProductPrice = 10000,
		ProductId = 1158608180
	}
}
1 Like

Thank you so much! It works. I’ll delete the screenshot of the IDs so people can’t take them or anything.