Could it be that you are changing the IntValue in a local script and trying to read it in a server script? or vice-versa? Could you explain more of the project structure and what is reading from purchasemenu.purchase.passid
You shouldn’t use unnecessary references to objects when you can just use script.Parent, because it could confuse you into referencing the wrong object.
I shouldve mentioned, the value is supposed to change when you click the “Speed” button, not the purchase button, the purchase button just grabs the Intvalue and prompts a gamepass purchase with the value it has, but when I click the speed button, the intvalue is supposed to change to the gamepass ID but it stays at 0
Okay, that’s weird. I have a feeling your script isn’t even running for some reason because I tried replicating your situation and it worked for me, could you send a placefile?