Xonious
|
  |
| Joined: 01 Jan 2009 |
| Total Posts: 1820 |
|
|
| 20 Oct 2015 12:05 PM |
Would it be possible to bring the Gamepass Item Function into a GUI button clicked function?
Like, clicking a GUI checks if you have the Pass, and if you do, you get something.
How would I do that? |
|
|
| Report Abuse |
|
|
|
| 20 Oct 2015 12:26 PM |
| Yes it is possible, go for it and if you get stuck I'll try to help. |
|
|
| Report Abuse |
|
|
|
| 20 Oct 2015 12:26 PM |
| game:GetService("GamePassService"):PlayerHasPass(player, passid) |
|
|
| Report Abuse |
|
|
Kamov
|
  |
| Joined: 07 Aug 2008 |
| Total Posts: 29015 |
|
|
| 20 Oct 2015 12:27 PM |
http://wiki.roblox.com/index.php?title=API:Class/MarketplaceService/PlayerOwnsAsset
http://wiki.roblox.com/index.php/Beginner's_GUI_Tutorial#TextButton |
|
|
| Report Abuse |
|
|
|
| 20 Oct 2015 12:33 PM |
| psst did you know you can Prompt a purchase locally! |
|
|
| Report Abuse |
|
|
Xonious
|
  |
| Joined: 01 Jan 2009 |
| Total Posts: 1820 |
|
|
| 20 Oct 2015 12:34 PM |
Already done. Thank you, everyone. |
|
|
| Report Abuse |
|
|