Hello everyone, I'm trying to do a roblox level skip product for an obby. However, I'm encoutering some issues with the use of ProcessReceipt. As a matter of fact, it never actually fires, here is my local and server scripts ( I use a GUI button to fire it ) .
Not even a print is working, so I m pretty sure the process receipt function never actually fires itself. Thanks for your help everyone in advance.
#Process Receipt not firing
1 messages · Page 1 of 1 (latest)
u forgot OnClientEvent
in the server script
u did a function instead of the Remote Event
thats why receiptinfo is nil
the local script is good
but u dont need to add the player extra in the FireServer since the first parameter is always the player who fired the Remote
so lets say I fired an Event like this ```
local Event = -- RemoteEvent
local MyFrame = -- Frame
FireServer(Frame)```
as u can see I fired the frame
which will NOT be the player
cuz if u do OnClientEvent(), the first parameter will always be the player and not the Frame
the Second Parameter will be the Frame
like This
OnClientEvent:Connect(function(player,Frame)
end)```
You fired the player twice, which was unnecessary
and also, nothing prints out bc u didnt even call the function
like this : processReceipt()
@blazing urchin
the remote was juse to see if it worked
and it works, i have another script that handle the remote events
then u just forgot to call it
ok thanks i didnt know
am I this stupid?
ye np
yes
but like isnt the callback at the end of the script supposed to call the function when there is a receipt ?
not sure
what u just did is
u put Ms.ProcessReceipt = function
I dont know much abt Marketplace since its the last thing I wanna learn
but
u obv didnt call the function
just asking
is Ms.ProcessReceipt an Event?
i believe it s some kind of event yes
let me see
like not exactly an event but acts like it i think
ye
I think its like BindableFunction
ima look up wait rq
I know the problem already but I wanna make smth sure
ok thanks
ok yeah
ur ProcessReceipt
is nil
like I said
receiptInfo sorry*
OR wait im dumb
omg
sorry if I do mistakes im sick
what did u see
np my friend
it does work for me once I buy the product
can u send like the completely script? also where its located and etc
like a whole screenshot
lemme show u
** You are now Level 4! **
basically i have a local script in one of the frames of my starter GUI and the other one is in server script service
here is the local one
here is the server one
@wanton yarrow
where is the script located at
look on the right
the server script is in server script service
local script is in starter GUI
DevProductHandler
is inside Frame
not ServerScript
no way
nooo way
it was in server storage all along
and not in server script service
it does
lol I just realized StarterGui is in ServerStorage
wdym
no no it s not
no its ok
wish u the best, have a nice day