Cerualen
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 12109 |
|
|
| 17 Feb 2014 04:05 AM |
repeat wait() until game.Players.LocalPlayer local p = game.Players.LocalPlayer
gpid = 145878945 tools ={"Firebrand"}
GPS = Game:GetService("GamePassService") function unleashepicness() if GPS:PlayerHasPass(p, gpid) then print("Has GPID") for i =1,#tools do game.Lighting:FindFirstChild(tools[i]):Clone().Parent = p.Backpack end else print("No GPID") end end
script.Parent.MouseButton1Click:connect(unleashepicness) |
|
|
| Report Abuse |
|
|
transIate
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 2699 |
|
| |
|
Marolex
|
  |
| Joined: 17 Dec 2012 |
| Total Posts: 1785 |
|
|
| 17 Feb 2014 04:10 AM |
We cant fully debug without buying the pass
which i wont do.
sorry :/
~TheScrub~ |
|
|
| Report Abuse |
|
|
Cerualen
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 12109 |
|
|
| 17 Feb 2014 04:11 AM |
you don't have to
just show me where i gone wrong |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2014 04:15 AM |
game.Players.PlayerAdded:connect(function(p)
gpid = 145878945 tools ={"Firebrand"}
GPS = Game:GetService("GamePassService") function unleashepicness() if GPS:PlayerHasPass(p, gpid) then print("Has GPID") for i,v in pairs(tools) do game.Lighting:FindFirstChild(v):Clone().Parent = p.Backpack end else print("No GPID") end end
script.Parent.MouseButton1Click:connect(unleashepicness) |
|
|
| Report Abuse |
|
|
Marolex
|
  |
| Joined: 17 Dec 2012 |
| Total Posts: 1785 |
|
|
| 17 Feb 2014 04:17 AM |
I didn't get any output without the game pass
so yes i would need to buy it to FULLY debug.
~TheScrub~ |
|
|
| Report Abuse |
|
|
transIate
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 2699 |
|
|
| 17 Feb 2014 04:19 AM |
local id=145878945; game.Players.PlayerAdded:connect(function(_p) tools={('FireBrand')} local _own=Game:GetService'GamePassService' local function unleashepicness() if _own:PlayerHasPass(id,_p)then print'has stuff' for i=1,#tools do game:service'Lighting':FindFirstChild'tools[1]':clone''.Parent=_p.Backpack end; else print'does not own' end; end; end); --maybe dis wrk |
|
|
| Report Abuse |
|
|
transIate
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 2699 |
|
|
| 17 Feb 2014 04:20 AM |
forgot the connection line;
script.Parent.-- in a gui, MouseButton1Down, in a hopperbin, Button1Down:connect(unleashepicness) |
|
|
| Report Abuse |
|
|
Cerualen
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 12109 |
|
|
| 17 Feb 2014 04:21 AM |
| the whole script pleaseeeeeeeeeee |
|
|
| Report Abuse |
|
|
transIate
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 2699 |
|
|
| 17 Feb 2014 04:24 AM |
local id=145878945; game.Players.PlayerAdded:connect(function(_p) tools={('FireBrand')} local _own=Game:GetService'GamePassService':PlayerHasPass(_p,id); local function unleashepicness() if _own:PlayerHasPass(id,_p)then print'has stuff' for i=1,#tools do game:service'Lighting':FindFirstChild(tools[i]):clone''.Parent=_p.Backpack end; else print'does not own' end; end; end);--if hopperbin; Button1Down; if from Button; MouseButton1Down script.Parent.MouseButton1Click:connect(unleashepicness) |
|
|
| Report Abuse |
|
|
Cerualen
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 12109 |
|
|
| 17 Feb 2014 04:26 AM |
| does the 'unleashepicness' affect the script? |
|
|
| Report Abuse |
|
|
Marolex
|
  |
| Joined: 17 Dec 2012 |
| Total Posts: 1785 |
|
|
| 17 Feb 2014 04:27 AM |
you have no knowledge of Lua do you
~TheScrub~ |
|
|
| Report Abuse |
|
|
transIate
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 2699 |
|
|
| 17 Feb 2014 04:28 AM |
Is this in a button? my main question i wantd to ask and i think it does since idk where this is going into,, |
|
|
| Report Abuse |
|
|
Marolex
|
  |
| Joined: 17 Dec 2012 |
| Total Posts: 1785 |
|
|
| 17 Feb 2014 04:29 AM |
i virtually recreated it as
game.StarterGui.ScreenGui.Frame.TextButon hierarchy^ and got no errors.
~TheScrub~ |
|
|
| Report Abuse |
|
|
Cerualen
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 12109 |
|
|
| 17 Feb 2014 04:31 AM |
I do have knowledge, I started scripting
Also the script is in a TextButton named Teleport
The script is called Firebrand and it is a script (not local)
|
|
|
| Report Abuse |
|
|
Marolex
|
  |
| Joined: 17 Dec 2012 |
| Total Posts: 1785 |
|
|
| 17 Feb 2014 04:33 AM |
that's your problem bud
it needs to be local if it's in a gui.
~TheScrub~ |
|
|
| Report Abuse |
|
|
Cerualen
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 12109 |
|
|
| 17 Feb 2014 04:34 AM |
That is not the proplem.
'theunleashepicness' bit is the porplem |
|
|
| Report Abuse |
|
|
Marolex
|
  |
| Joined: 17 Dec 2012 |
| Total Posts: 1785 |
|
|
| 17 Feb 2014 04:35 AM |
That's the name of the function and is NOT the problem.
if a script is in a players Gui it needs to be local ok.
~TheScrub~ |
|
|
| Report Abuse |
|
|
transIate
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 2699 |
|
|
| 17 Feb 2014 04:36 AM |
wiait are you trying to do this?
if PlayerOwns_Game_Pass then it will give them a firebrand? because there is a way more simpler way to do this lols |
|
|
| Report Abuse |
|
|
Cerualen
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 12109 |
|
|
| 17 Feb 2014 04:39 AM |
yea
if they click on gui and they own gamepass
i want them to get them firebrand. |
|
|
| Report Abuse |
|
|
transIate
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 2699 |
|
|
| 17 Feb 2014 04:43 AM |
| ok if you mind could you make that gamepass free so i could test it |
|
|
| Report Abuse |
|
|
transIate
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 2699 |
|
|
| 17 Feb 2014 04:53 AM |
my last try maybe, sdkassa i am not a game maker
own=script.Parent own.MouseButton1Down:connect(function() _gPS=game:GetService'GamePassService' function has() gpid=140985515 tools={'FireBrand'} --if gpid and game:service'GamePassService':PlayerHasPass(game.Players.localPlayer,gpid)then table.insert(tools,game.Players.localPlayer.Backpack) if game.Players.localPlayer:PlayerHasPass(gpid)then print(game.Players.localPlayer.Name..' you have recieved a firebrand') game:service'InsertService':loadAsset(81154592):children''[1].Parent=game.Players.localPlayer.Backpack; end end --end end) |
|
|
| Report Abuse |
|
|
transIate
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 2699 |
|
|
| 17 Feb 2014 05:01 AM |
own=script.Parent own.MouseButton1Down:connect(function() for i,v in pairs(game.Players:GetPlayers'')do local gpid=128369734 if game:service'GamePassService':PlayerHasPass(v,gpid)then game:service'InsertService':loadAsset(81154592):children''[1].Parent=v.Backpack; end; end; end);
-- this should work |
|
|
| Report Abuse |
|
|
transIate
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 2699 |
|
|
| 17 Feb 2014 05:02 AM |
| oops change the 'gpid' to ur id |
|
|
| Report Abuse |
|
|
Cerualen
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 12109 |
|
|
| 17 Feb 2014 05:04 AM |
ok thx
make one last full script :P |
|
|
| Report Abuse |
|
|