How to fix Passed value is not a function?


server script(ServerScriptService):

local script(button):

i don’t know why its not working also when player buying the pass its not printing “purchased the game pass” why?


just remove that ()

but if the player is purchasing it while in the game? how the player will get his item?

I don’t understand your question, you just need to remove the parentheses after onPromptGamePassPurchaseFinished since that is calling the function and using its result (none) as argument to :Connect, that is your problem

1 Like

the error gone but now i have other problem.

when the player purchasing the gamepass inside the game its not giving him his item how do i need fix it?