How can I Increment players IntValue from another script? (Datastore2)

I want to Increment() players IntValue after a dev product purchase. I don’t know the way how to make both scripts communicate with each other, because now when I define variables from datastore2 script on another script, it doesn’t recognize them. It would be great if anyone could explain in detail. Thank you!

Use a bindable event. I suggest reading here

That fixed the issue. Thank you!

1 Like