#Need Help With 2 Scripts

1 messages · Page 1 of 1 (latest)

indigo ginkgo
#

I'm new to scripting and not really sure how to do much. As of right now I'm trying to figure out a tree chopping system. A system in which you'll chop down a tree and receive wood, where you'll then be able to sell it for money. I'm also confused on how to add more gamepasses to my in game shop. I have a full working in game shop with 4 passes already, I'm unsure as to how to add more into the script though. Any help is very appreciated!❤️

tropic marten
#

for gamepasses, just add the new IDs to the table in your shop script so your existing loop can generate the extra buttons.

indigo ginkgo
tropic marten
#

you can add a new line in the Gamepasses table like ["Gamepass5"] = ID_HERE. make sure the name you use in the brackets matches the name of the button object in your explorer exactly so the script knows which is which.

indigo ginkgo
tropic marten
indigo ginkgo
#

Ohhhhh, I understandd, So i'll just match the script name with the button name, like how i did for "gamepass1" and so on

tropic marten
#

Just make sure the name in the ShopInfo.Gamepasses table matches the name of the folder or frame in your Explorer

#

If you create a "Gamepass5" in the UI, you'll just add a matching ["Gamepass5"] = ID entry to your script

indigo ginkgo
worthy wagonBOT
#

studio** You are now Level 1! **studio

tropic marten
#

the script uses that name to find the right frame in your ui

indigo ginkgo
#

Ohhh yes okay, just make sure the name matches with the button though, sorry i misunderstood that

indigo ginkgo
tropic marten
indigo ginkgo
#

It's kind of confusing tho, because the gamepasses I already have setup have the same name as the ones I'd like to setup

tropic marten
#

Basically Frame Name in Explorer = Name in the brackets [" "].

indigo ginkgo
#

Like, the ones I already did are under a Frame called "Cash" but the buttons on the inside are named "Gamepass1". But now I'm trying to add more gamepasses, and the new ones are under a Frame called "Gamepasses". The buttons for the gamepasses are also all named "Purchase"

tropic marten
#

That's where the confusion is.. your script is looking for the names inside ShopInfo.Gamepasses, and it doesn't care about the "Purchase" button name.

#

If your new gamepasses are inside that "Gamepasses" frame, just make sure each individual container for those passes (the parent of the button) has a unique name like Gamepass1, Gamepass2, etc., in the Explorer.

indigo ginkgo
#

So I should change the name of "Container" Or "Gamepasses" Orrrr the button "Purchase

#

I'm sorry I'm being so difficult, I'm very new to all this coding stuff💔

tropic marten
#

You're not being difficult at all, this is how everyone learns

tropic marten
indigo ginkgo
#

Ohhhh okay

#

I think, I understand noww

#

Thank you for the help! Really appreciated🙏🏻

tropic marten
midnight mason
#

Shop: Premium quality, Gameplay: Poopity boopity poop 💩