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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
| |
|
MrTechn0
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 1252 |
|
|
| 28 Nov 2014 03:27 PM |
| cpmoderator, whats replicated storage? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|