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
 

Re: Gamepass gear

Previous Thread :: Next Thread 
ProductiveMrduck is not online. ProductiveMrduck
Joined: 03 Mar 2011
Total Posts: 393
13 May 2016 09:40 AM
local passid = 413381659 -- The ID of the gamepass goes here
local tools = {"Steampunk Sword", ""} -- Here you just put the name(s) of the tool(s) you want given. (Tools must be put in the lighting)
local GamePassService = game:GetService('GamePassService')
game.Players.PlayerAdded:connect(function(player)
repeat wait(0.1) until player.Backpack
repeat wait(0.1) until player.StarterGear
if GamePassService:PlayerHasPass(player, passid) then
for i = 1,#tools do
game.Lighting:FindFirstChild(tools[i]):Clone().Parent = player.Backpack
game.Lighting:FindFirstChild(tools[i]):Clone().Parent = player.StarterGear
end
end
end)

So the problem with this script seems to be that the gear doesn't clone into the "StarterGear" folder so when I reset the gear doesn't end up in there! any ideas on how to fix this?



Report Abuse
1daev3 is not online. 1daev3
Joined: 20 Dec 2015
Total Posts: 570
13 May 2016 10:03 AM
Thank you by the way how do you make gamepass give you models???
Report Abuse
ProductiveMrduck is not online. ProductiveMrduck
Joined: 03 Mar 2011
Total Posts: 393
13 May 2016 10:05 AM
Well this is not me giving away a script, I'm having troubles getting gears that I use to the StarterGear file so when you die you don't get the gear :/


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