#my developer product that gives money script is sometimes not working
1 messages · Page 1 of 1 (latest)
@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
its a developer product
where?
@craggy thunder question
So do you want a
Specific player
To have it?
if so you just do a if statement
yes the player that has bought the developer product should get the amount next to it in Money leaderstats
alright, and what should i write?
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
@craggy thunder
Is the developer product
A prompt
Or how is it being purchased
Mb I’m back
no problem! i appreciate your help a lot
when you press on a ui button it is prompted (this is already working)
@craggy thunder so when they press on the ui
** You are now Level 25! **
it gets prompted
** You are now Level 4! **
all locally ofc
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?
lemme see
did you find anything that is wrong?