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
 

GamePassExperts

Previous Thread :: Next Thread 
MrTechn0 is not online. MrTechn0
Joined: 23 Nov 2012
Total Posts: 1252
28 Nov 2014 03:00 PM
Hello I am having trouble, I need help quickly. I need a thing so that if you click a gui, it will check to see if u have a certain gamepass, then it will give u gear if u do. I am willing to pay, but i need to see it work.
Report Abuse
cpmoderator12345 is not online. cpmoderator12345
Joined: 26 Jan 2013
Total Posts: 15651
28 Nov 2014 03:06 PM
er isnt it easier if you make them buy it, make a gui that says 'Rejoin to get the gear from the gamepass you bought(if you bought any)'

then put tools in replicatedstorage and make this script?

game.Players.PlayerAdded:connect(function(player)
local passId = 0000000 - passID here
local GamePassService = game:GetService("GamePassService")
if GamePassService:PlayerHasPass(player, passId) then
game.ReplicatedStorage.Tool:clone().Parent = player.StarterGear



Report Abuse
UnConcerning is not online. UnConcerning
Joined: 30 Aug 2012
Total Posts: 676
28 Nov 2014 03:09 PM
local Id=0000000
local Tool=game.ServerStorage.Tool

game.Players.PlayerAdded:connect(function(_)
if(game:service'GamePassService':PlayerHasPass(_,Id)then
Tool:clone''.Parent=_.StarterGear
end
end)
Report Abuse
MrTechn0 is not online. MrTechn0
Joined: 23 Nov 2012
Total Posts: 1252
28 Nov 2014 03:24 PM
@unconcerning, do I have to change that at all? or can i just use tht as is?
Report Abuse
cpmoderator12345 is not online. cpmoderator12345
Joined: 26 Jan 2013
Total Posts: 15651
28 Nov 2014 03:25 PM
@unconcerning
copycat
Report Abuse
MrTechn0 is not online. MrTechn0
Joined: 23 Nov 2012
Total Posts: 1252
28 Nov 2014 03:27 PM
cpmoderator, whats replicated storage?
Report Abuse
UnConcerning is not online. UnConcerning
Joined: 30 Aug 2012
Total Posts: 676
28 Nov 2014 03:29 PM
@mr
just change the id to the id of the pass and the tool to where the tool is

also, cp's doesn't work
Report Abuse
UnConcerning is not online. UnConcerning
Joined: 30 Aug 2012
Total Posts: 676
28 Nov 2014 03:42 PM
local p=game.Players.LocalPlayer

script.Parent.MouseButton1Down:connect(function()
if(game:service'GamePassService':PlayerHasPass(_,Id)then
Tool:clone''.Parent=_:waitForChild'Backpack'
Tool:clone''.Parent=_.StarterGear
end
end)
Report Abuse
UnConcerning is not online. UnConcerning
Joined: 30 Aug 2012
Total Posts: 676
28 Nov 2014 03:45 PM
local _=game.Players.LocalPlayer
local Tool=game.ServerStorage.Tool
local Id=00000 --replace with id

script.Parent.MouseButton1Down:connect(function()
if(game:service'GamePassService':PlayerHasPass(_,Id)then
Tool:clone''.Parent=_:waitForChild'Backpack'
Tool:clone''.Parent=_.StarterGear
end
end)
Report Abuse
UnConcerning is not online. UnConcerning
Joined: 30 Aug 2012
Total Posts: 676
28 Nov 2014 04:13 PM
local _=game.Players.LocalPlayer
local Tool=game.ServerStorage.Tool
local Id=00000 --replace with id

script.Parent.MouseButton1Down:connect(function()
if(game:service'GamePassService':PlayerHasPass(_,Id))then
Tool:clone''.Parent=_:waitForChild'Backpack'
Tool:clone''.Parent=_.StarterGear
end
end)
Report Abuse
MrTechn0 is not online. MrTechn0
Joined: 23 Nov 2012
Total Posts: 1252
28 Nov 2014 04:32 PM
local _=game.Players.LocalPlayer
local Tool=game.ServerStorage.GravityCoil
local Id=188887510 --replace with id

script.Parent.MouseButton1Down:connect(function()
if(game:service'GamePassService':PlayerHasPass(_,Id))then
Tool:clone''.Parent=_:waitForChild'Backpack'
Tool:clone''.Parent=_.StarterGear
end
end)
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