#Process Receipt not firing

1 messages · Page 1 of 1 (latest)

blazing urchin
#

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.

brisk notch
#

how is the server gonna know wehn the remoteEvent is gonna fire?

wanton yarrow
#

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

wanton yarrow
#

@blazing urchin

blazing urchin
#

and it works, i have another script that handle the remote events

wanton yarrow
#

then u just forgot to call it

blazing urchin
wanton yarrow
#

no

#

happens

#

see if it works

#

just call it

blazing urchin
#

imma do that in a sec

#

i ll tell u if it works

#

ty for the help btw

wanton yarrow
#

ye np

wanton yarrow
blazing urchin
#

but like isnt the callback at the end of the script supposed to call the function when there is a receipt ?

wanton yarrow
#

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?

blazing urchin
#

i believe it s some kind of event yes

wanton yarrow
#

let me see

blazing urchin
#

like not exactly an event but acts like it i think

wanton yarrow
#

ye

#

I think its like BindableFunction

#

ima look up wait rq

#

I know the problem already but I wanna make smth sure

blazing urchin
#

ok thanks

wanton yarrow
#

ok yeah

#

ur ProcessReceipt

#

is nil

#

like I said

#

receiptInfo sorry*

#

OR wait im dumb

#

omg

#

sorry if I do mistakes im sick

blazing urchin
#

what did u see

blazing urchin
wanton yarrow
#

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

blazing urchin
#

lemme show u

warped groveBOT
#

studio** You are now Level 4! **studio

blazing urchin
#

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

wanton yarrow
#

where is the script located at

blazing urchin
#

look on the right

#

the server script is in server script service

#

local script is in starter GUI

wanton yarrow
#

is inside Frame

#

not ServerScript

blazing urchin
#

no way

#

nooo way

#

it was in server storage all along

#

and not in server script service

wanton yarrow
#

lol

#

does it work now

blazing urchin
#

it does

wanton yarrow
#

lol I just realized StarterGui is in ServerStorage

blazing urchin
#

wdym

wanton yarrow
#

OH NVM

blazing urchin
#

no no it s not

wanton yarrow
#

I miss seen it

#

okay anyway it works

#

good

blazing urchin
#

well thanks a lot my friend

#

sorry for wasting ur time with this

wanton yarrow
#

no its ok

blazing urchin
#

wish u the best, have a nice day