GUI Shop Script not working

So today, I was scrolling through YouTube and came across an old tutorial on how to make a sword fighting game (by AlvinBlox). I am on the final stage which is the in-game cash shop.

Right now, I am trying to make the different shop items appear in the shop gui automatically. But, there is a problem with the script.

The error:
Screen Shot 2021-01-10 at 3.19.15 PM

I tried changing it to ‘do’ as it said here, but that made the ‘i’ value an error as well as a few other things. My guess is the tutorial is somewhat outdated and to continue I will need further assistance.

The full script:

Any help would be great!

You should add ‘do’ at the end of for loop.

like:

for i = 0,1,0 do -- 'do' goes here

end
3 Likes