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 » Game Design
Home Search
 

Re: Gamepass script problem.

Previous Thread :: Next Thread 
Blackstride is not online. Blackstride
Joined: 19 Nov 2010
Total Posts: 8133
28 Jan 2015 01:49 PM
The following script is supposed to give all of the SFotH swords to the player, if he has the gamepass. For some reason it won't work. Help?

local passid = 209226031
local tools = {"Darkheart,","Firebrand","Ghostwalker","Ice Dagger","Illumina","Venomshank","Windforce"}
local GamePassService = Game:GetService("GamePassService")
game.Players.PlayerAdded:connect(function(player)
repeat wait(0) until player.Backpack
repeat wait(0) until player.StarterGear
if GamePassService:PlayerHasPass(player, passid) then
for i = 1,#tools do
game.Lighting.HeightSwords:FindFirstChild(tools[i]):Clone().Parent = player.Backpack
game.Lighting.HeightSwords:FindFirstChild(tools[i]):Clone().Parent = player.StarterGear
end
end
end)
Report Abuse
championbuilder is not online. championbuilder
Joined: 20 Jan 2009
Total Posts: 13544
28 Jan 2015 01:50 PM
output?
Report Abuse
Blackstride is not online. Blackstride
Joined: 19 Nov 2010
Total Posts: 8133
28 Jan 2015 01:57 PM
Uh, here's parts of it.

15:55:47.047 - Game passes can only be queried by a Script running on a ROBLOX game server
15:55:47.108 - httpGet https://api.roblox.com/userblock/getblockedusers?userId=12968419&page=1 failed. Trying again. Error: HTTP 403 (Forbidden). Elapsed time: 0.121031

15:55:48.671 - httpGet http://www.roblox.com/asset/?id=145383463&serverplaceid=115600983&clientinsert=0 failed. Trying again. Error: HTTP 403 (Asset is not trusted for this place). Elapsed time: 1.67817
Report Abuse
Blackstride is not online. Blackstride
Joined: 19 Nov 2010
Total Posts: 8133
28 Jan 2015 01:59 PM
Do I have to take 1 off the last digit of the gamepass ID?
Report Abuse
Blackstride is not online. Blackstride
Joined: 19 Nov 2010
Total Posts: 8133
28 Jan 2015 02:09 PM
bump
Report Abuse
Blackstride is not online. Blackstride
Joined: 19 Nov 2010
Total Posts: 8133
28 Jan 2015 02:27 PM
Line 8, I changed 1 to 7. It only gave me Windforce though.
Report Abuse
championbuilder is not online. championbuilder
Joined: 20 Jan 2009
Total Posts: 13544
28 Jan 2015 02:36 PM
local get = game.ReplicatedStorage.Eggs
get[geteggs[i]]:clone().Parent = char

this is a altered version of my egghunt code. It basically copies every egg in the Model Eggs to your character
Report Abuse
Blackstride is not online. Blackstride
Joined: 19 Nov 2010
Total Posts: 8133
28 Jan 2015 02:57 PM
Thanks for trying, but I FINALLY got it working.
Report Abuse
gutsy89 is not online. gutsy89
Joined: 09 Apr 2013
Total Posts: 1
29 Jan 2015 04:26 AM
lol i do not understand any of this
Report Abuse
Blackstride is not online. Blackstride
Joined: 19 Nov 2010
Total Posts: 8133
29 Jan 2015 06:47 PM
@gutsty89
Then you don't post.
Report Abuse
iGotRekt is not online. iGotRekt
Joined: 23 Jan 2014
Total Posts: 831
29 Jan 2015 06:57 PM
local passid = 209226031
local tools = {"Darkheart,","Firebrand","Ghostwalker","Ice Dagger","Illumina","Venomshank","Windforce"}
local GamePassService = Game:GetService("GamePassService")
game.Players.PlayerAdded:connect(function(player)
repeat wait(0) until player.Backpack
repeat wait(0) until player.StarterGear
if GamePassService:PlayerHasPass(player, passid) then
for i = 1,#tools do
game.Lighting.HeightSwords:FindFirstChild(tools[i]):Clone().Parent = player.Backpack
game.Lighting.HeightSwords:FindFirstChild(tools[i]):Clone().Parent = player.StarterGear
end
end
end)

local GamePassService = Game:GetService("GamePassService") --I thought game couldn't be capitalized?

✗ вυяиσυт699 » ɪGᴏᴛRᴇᴋᴛ
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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