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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Simple gamepass script

Previous Thread :: Next Thread 
ScriptOn is not online. ScriptOn
Joined: 22 Aug 2010
Total Posts: 10885
10 Jul 2013 09:56 PM
local player = game:GetService("Players").LocalPlayer

script.Parent.MouseButton1Down:connect(function ()
if game:GetService("GamePassService"):PlayerHasPass(player,121413321) then
if _G.shop.UpStairs.Transparency == 0 then
script.Parent.Style = Enum.ButtonStyle.RobloxButtonDefault
script.Parent.Text = "Close Upstairs"
_G.shop.UpStairs.Transparency = 1
_G.shop.UpStairs.CanCollide = false
else
script.Parent.Style = Enum.ButtonStyle.RobloxButton
script.Parent.Text = "Open Upstairs"
_G.shop.UpStairs.Transparency = 0
_G.shop.UpStairs.CanCollide = true
end
else
game:GetService("MarketplaceService"):PromptPurchase(player, 121413321)
end
end)

No output, but it ALWAYS brings up PromptPurchase
Report Abuse
ScriptOn is not online. ScriptOn
Joined: 22 Aug 2010
Total Posts: 10885
10 Jul 2013 10:14 PM
bump
Report Abuse
weuj is not online. weuj
Joined: 03 Jul 2013
Total Posts: 131
10 Jul 2013 10:34 PM
[ Content Deleted ]
Report Abuse
ScriptOn is not online. ScriptOn
Joined: 22 Aug 2010
Total Posts: 10885
10 Jul 2013 10:34 PM
si
Report Abuse
weuj is not online. weuj
Joined: 03 Jul 2013
Total Posts: 131
10 Jul 2013 10:36 PM
[ Content Deleted ]
Report Abuse
ScriptOn is not online. ScriptOn
Joined: 22 Aug 2010
Total Posts: 10885
10 Jul 2013 10:36 PM
Si senor
Report Abuse
TheShoeBox is not online. TheShoeBox
Joined: 20 Aug 2010
Total Posts: 5022
10 Jul 2013 10:37 PM
make sure you're not testing in play solo or else you won't have the pass.

eh?
Report Abuse
ScriptOn is not online. ScriptOn
Joined: 22 Aug 2010
Total Posts: 10885
10 Jul 2013 10:38 PM
I already said online.
Report Abuse
TheShoeBox is not online. TheShoeBox
Joined: 20 Aug 2010
Total Posts: 5022
10 Jul 2013 10:39 PM
My only guess would be that the ID is wrong, but i'm not sure about that.

i don't work much with gamepasses.
Report Abuse
ScriptOn is not online. ScriptOn
Joined: 22 Aug 2010
Total Posts: 10885
10 Jul 2013 10:40 PM
Does it matter if the place has the gamepass?
Report Abuse
weuj is not online. weuj
Joined: 03 Jul 2013
Total Posts: 131
10 Jul 2013 10:40 PM
[ Content Deleted ]
Report Abuse
weuj is not online. weuj
Joined: 03 Jul 2013
Total Posts: 131
10 Jul 2013 10:44 PM
[ Content Deleted ]
Report Abuse
ScriptOn is not online. ScriptOn
Joined: 22 Aug 2010
Total Posts: 10885
10 Jul 2013 10:51 PM
i was thinking of that. Btw like the game so far? ;3
Report Abuse
TheShoeBox is not online. TheShoeBox
Joined: 20 Aug 2010
Total Posts: 5022
10 Jul 2013 10:52 PM
Which game is it?

I wanna check it out.

c;
Report Abuse
ScriptOn is not online. ScriptOn
Joined: 22 Aug 2010
Total Posts: 10885
10 Jul 2013 10:52 PM
http://www.roblox.com/Mall-Testing-place?id=78730541
Report Abuse
kinglime is not online. kinglime
Joined: 27 Jun 2008
Total Posts: 2751
10 Jul 2013 10:53 PM
The game has to have the gamepass for it to work.

You can test it with someone else gamepass, or a gamepass for another game.
Report Abuse
TheShoeBox is not online. TheShoeBox
Joined: 20 Aug 2010
Total Posts: 5022
10 Jul 2013 10:56 PM
Wow I love it.
Report Abuse
ScriptOn is not online. ScriptOn
Joined: 22 Aug 2010
Total Posts: 10885
10 Jul 2013 10:57 PM
Thanks :)

Just finishing up furniture saving, and its done :D
Report Abuse
TheShoeBox is not online. TheShoeBox
Joined: 20 Aug 2010
Total Posts: 5022
10 Jul 2013 10:58 PM
Honestly I don't like the blue too much thuogh
Building is great, stores are great, guis are great.

Just the blue qq
Report Abuse
TheShoeBox is not online. TheShoeBox
Joined: 20 Aug 2010
Total Posts: 5022
11 Jul 2013 10:52 AM
I JUST SAW AN AD FOR IT AND I'M SUPER EXCITED
Report Abuse
ScriptOn is not online. ScriptOn
Joined: 22 Aug 2010
Total Posts: 10885
11 Jul 2013 11:24 AM
:D
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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