generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: FREE CLASSIC FEDORA : Scripters come come!

Previous Thread :: Next Thread 
Scriptulus is not online. Scriptulus
Joined: 05 Jul 2013
Total Posts: 912
02 Feb 2015 01:33 PM
I PROMISE to give my Classic fedora to whoever solves my problem.
Do NOT Attempt to copy-paste wiki stuff, ive been digging for 2 days. Dont be an idiot, im offering 60$worth in limited items.

I need a way to detect when a player has clicked "Cancel" on a Product purchase.

Basicaly, when i prompt a Product Purchase, i will Disable all my GUIs so they cant prompt multiple purchases or anything, Im able to detect once a player has Purchased it so that i can re-enable my GUIs. However, If player clicks cancel, the GUIs are disabled and the player is stuck.


I NEED to detect cancel, Like be able to do Print("Player has canceled purchase")

I do NOT want any method of going around this. I dont care its a "hacky" way of detecting it, i just want to detect it.
Report Abuse
magical555 is not online. magical555
Joined: 05 Feb 2011
Total Posts: 19749
02 Feb 2015 01:36 PM
okay, i'm a new scripter and all, but maybe i can look through the script for any error.

can you paste it here?
Report Abuse
SLY3 is not online. SLY3
Joined: 10 Jul 2008
Total Posts: 1700
02 Feb 2015 02:05 PM
How about this:

--
local market = game:GetService'MarketplaceService'
local AssetID = 1337
local detect_Cancel = function(player,ID)local x = false
market:PromptPurchase(player,ID)
if market:PlayerOwnsAsset(player,ID) == false then
x = true
end
return x
end
print('Cancelled: ' .. tostring(detect_Cancel))
--
Report Abuse
Scriptulus is not online. Scriptulus
Joined: 05 Jul 2013
Total Posts: 912
02 Feb 2015 02:13 PM
Solved, thanks for trying:P

Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
02 Feb 2015 02:16 PM
You should share your solution so if anybody else comes across this thread they can find a solution.
Report Abuse
ChiefDelta is not online. ChiefDelta
Joined: 05 Nov 2010
Total Posts: 13071
02 Feb 2015 02:54 PM
@SLY3

Without reading your code is that a valid solution?
Report Abuse
Scriptulus is not online. Scriptulus
Joined: 05 Jul 2013
Total Posts: 912
02 Feb 2015 05:04 PM
@Tris i plan to make my game open source after im done with all of it, ill post the answer then. Some other people probably have it.

I paid dearly for it, and nobody even cared to look at my thread until i offered all i had. So ill profit out of it first.
(Since its money related i dont want other big devs milking every players out of their money before i even get there.)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image