|
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 28 Jan 2015 01:59 PM |
| Do I have to take 1 off the last digit of the gamepass ID? |
|
|
| Report Abuse |
|
|
| |
|
|
| 28 Jan 2015 02:27 PM |
| Line 8, I changed 1 to 7. It only gave me Windforce though. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 28 Jan 2015 02:57 PM |
| Thanks for trying, but I FINALLY got it working. |
|
|
| Report Abuse |
|
|
gutsy89
|
  |
| Joined: 09 Apr 2013 |
| Total Posts: 1 |
|
|
| 29 Jan 2015 04:26 AM |
| lol i do not understand any of this |
|
|
| Report Abuse |
|
|
|
| 29 Jan 2015 06:47 PM |
@gutsty89 Then you don't post. |
|
|
| Report Abuse |
|
|
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 |
|
|