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 » Scripting Helpers
Home Search
 

Re: Gamepass

Previous Thread :: Next Thread 
Adam2090 is not online. Adam2090
Joined: 19 Jul 2010
Total Posts: 889
15 Dec 2013 08:04 PM
Why doesn't this script work? No output errors. I have the gamepass.

local passId = 138689160

script.Parent.MouseButton1Down:connect(function()

if script.Parent.Parent.Parent.Parent.Parent:PlayerHasPass(passId) then
game.Lighting.KKB:clone().Parent = script.Parent.Parent.Parent.Parent.Parent.Backpack
end
end)

Strength, Honor, Glory. Hail Puternic Imperium!
Report Abuse
Quorum is not online. Quorum
Joined: 25 Oct 2013
Total Posts: 4680
15 Dec 2013 08:09 PM
local passId = 138689160
local Player = script.Parent.Parent.Parent.Parent.Parent

script.Parent.MouseButton1Down:connect(function()
if game:GetService("GamePassService"):PlayerHasPass(Player, passId) then
game.Lighting.KKB:clone().Parent = Player.Backpack
end
end)

Try that.
Report Abuse
Adam2090 is not online. Adam2090
Joined: 19 Jul 2010
Total Posts: 889
15 Dec 2013 08:10 PM
Oh, I forgot to get gamepassservice

Strength, Honor, Glory. Hail Puternic Imperium!
Report Abuse
Adam2090 is not online. Adam2090
Joined: 19 Jul 2010
Total Posts: 889
15 Dec 2013 08:14 PM
It didn't give me the tool when I clicked the button.

Strength, Honor, Glory. Hail Puternic Imperium!
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