#my developer product that gives money script is sometimes not working

1 messages · Page 1 of 1 (latest)

craggy thunder
#

any help is appreciated

#

please ping me

fickle vessel
#

@craggy thunder

#

You’re giving every player that joins

#

The money

#

If you want specific person to have that cash you have to do a if statement

#

Or unless that’s a gamepass

craggy thunder
#

its a developer product

fickle vessel
#

@craggy thunder question

#

So do you want a

#

Specific player

#

To have it?

#

if so you just do a if statement

craggy thunder
#

yes the player that has bought the developer product should get the amount next to it in Money leaderstats

craggy thunder
#

i have almost no experience with scripting

#

i have also tried multiple scripts but they only work until i rejoin

#

when i rejoin nothing happened

#

the script i provided works but it sometimes gives the money to the wrong player

#

which is really frustrating

fickle vessel
#

@craggy thunder

#

Is the developer product

#

A prompt

#

Or how is it being purchased

#

Mb I’m back

craggy thunder
#

no problem! i appreciate your help a lot

craggy thunder
fickle vessel
#

@craggy thunder so when they press on the ui

blazing lionBOT
#

studio** You are now Level 25! **studio

craggy thunder
blazing lionBOT
#

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

craggy thunder
#

all locally ofc

fickle vessel
#

@craggy thunder

#

Is there another script

#

Can I see that one?

craggy thunder
#

wdym>

#

?

#

the local script that prompts?

fickle vessel
#

show me that one

craggy thunder
#

alr wait

#
local mps = game:GetService("MarketplaceService")
local ProductId = 3296774225


script.Parent.MouseButton1Click:Connect(function()
    mps:PromptProductPurchase(game.Players.LocalPlayer, ProductId)
end)
#

all the same in each button

#

but different ID

#

do you know where i should do the if statement you told me about?

fickle vessel
#

lemme see

craggy thunder