#Help me please

1 messages · Page 1 of 1 (latest)

austere spoke
#

I could use some help. I'm currently working on a Da Hood game copy (I know it might sound weird), and I'm scripting a feature where clicking a green pad is supposed to give the player the item displayed on the pad, along with its price.

However, it's not working as expected. Here's the code I'm using:

#

PLEASE DEVS HELP ME

hollow basin
#

is there an error?

#

all you showed is a random section of code and a green pad

restive ivy
austere spoke
#

Well when

hearty raptorBOT
#

studio** You are now Level 3! **studio

austere spoke
#

So if the player as the right amount of money

#

And buys by click the green pads it should be giving him the item

#

It’s work for my food iteams but it doesn’t work for my tools as in gun models

#

Once the click to buy the gun it doesn’t take away the amount of money I bought to get that Gun and it doesn’t give me the gun

hollow basin
#

Does your code have an error

austere spoke
#

Nope

austere spoke
restive ivy
#

relying on strings and names for everything isn't a good idea

#

i used to do it too

#

so my tip is try to restructure this system

austere spoke
#

If i paid you 10 dollars can youu fix it?

austere spoke
restive ivy
#

you seem to already being indexxing by name with this "helper" function, no?

austere spoke
#

yes

#

its for my datastore

#

too

#

its seem to not work

#

when i leave and rejoin

#

using

#

fire base

#

and

#

robase

restive ivy
#

ok one way you can make this wayy more efficient is having the script build the arguments for the helper.v7 function