basset
|
  |
| Joined: 16 Jun 2008 |
| Total Posts: 14510 |
|
|
| 01 Dec 2012 04:29 PM |
The Crimson Katana pass in TheGamer101's Sword Fighting Tournament is an example of this. How can I make owners of a Game Pass have a certain item upon entering the game, in this case, a skateboard? Thanks!
Here's the ID of the Game Pass- http://www.roblox.com/unnamed-item?id=99387383 |
|
|
| Report Abuse |
|
|
|
| 01 Dec 2012 04:33 PM |
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:wait() if game:GetService("GamePassService"):PlayerHasPass(player, 99387383) then game.Lighting:FindFirstChild("SWORDNAMEHERE"):Clone().Parent = player.Backpack game.Lighting:FindFirstChild("SWORDNAMEHERE"):Clone().Parent = player.Backpack end end)
> thedeathmaster01 < |
|
|
| Report Abuse |
|
|
|
| 01 Dec 2012 04:33 PM |
To make this script work, make it a normal script in workspace. Also put the sword in lighting and replace SWORDNAMEHERE with the name of the sword inside of the quotation marks.
> thedeathmaster01 < |
|
|
| Report Abuse |
|
|
|
| 01 Dec 2012 04:35 PM |
Sorry, meant skateboard.
> thedeathmaster01 < |
|
|
| Report Abuse |
|
|
basset
|
  |
| Joined: 16 Jun 2008 |
| Total Posts: 14510 |
|
| |
|
|
| 20 Feb 2013 08:01 AM |
| Does that script work for anything? And where do you put the ID for the game pass? |
|
|
| Report Abuse |
|
|
moryo7
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 5028 |
|
|
| 20 Feb 2013 08:07 AM |
@Strike, yes, it will work for anything. An as for your other question...
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:wait() if game:GetService("GamePassService"):PlayerHasPass(player, PASSIDHERE) then game.Lighting:FindFirstChild("SWORDNAMEHERE"):Clone().Parent = player.Backpack game.Lighting:FindFirstChild("SWORDNAMEHERE"):Clone().Parent = player.Backpack end end) |
|
|
| Report Abuse |
|
|
basset
|
  |
| Joined: 16 Jun 2008 |
| Total Posts: 14510 |
|
|
| 20 Feb 2013 05:35 PM |
| It's cool, this didn't need to be bumped. |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2013 05:07 AM |
| That worked but how do you get it to stay after you die? |
|
|
| Report Abuse |
|
|
Greg3679
|
  |
| Joined: 08 Jun 2011 |
| Total Posts: 13 |
|
|
| 14 Dec 2013 11:27 AM |
| The script works, just after death, it goes away.... |
|
|
| Report Abuse |
|
|
|
| 17 Dec 2013 06:04 PM |
| Update broke it. I have the same problem now. Did not before. |
|
|
| Report Abuse |
|
|
| |
|
|
| 24 Dec 2013 12:54 AM |
--This should make it stay after they die. Extreme productions. game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:wait() if game:GetService("GamePassService"):PlayerHasPass(player, PASSIDHERE) then game.Lighting:FindFirstChild("SWORDNAMEHERE"):Clone().Parent = player.Backpack game.Lighting:FindFirstChild("SWORDNAMEHERE"):Clone().Parent = player.StarterGear end end) |
|
|
| Report Abuse |
|
|
|
| 24 Dec 2013 11:44 AM |
| wait when it says game service do I put the whole thing there or just the game id |
|
|
| Report Abuse |
|
|
DokTurKai
|
  |
| Joined: 14 Nov 2012 |
| Total Posts: 32 |
|
|
| 12 Apr 2014 11:00 AM |
| How do I make the script go into the workspace.. |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2014 12:12 PM |
| what do i put on GAMEPASS SERVICE? |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2014 12:22 PM |
| You put nothing in GamePassService, that part is just telling the script to use ROBLOX's GamePassService. The only thing you need to worry about is the GAMEPASSHERE and the SWORDNAMEHERE |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2014 12:22 PM |
| I meant PASSIDHERE instead of GAMEPASSHERE |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2014 03:54 PM |
| ok thanks for the tip but when i did everything everybody suggested i didnt get the weapon i wanted for the gamepass. i didnt get any weapon. |
|
|
| Report Abuse |
|
|
| |
|
|
| 27 Jun 2014 04:29 PM |
| ^ you are the cutest thing i have ever seen |
|
|
| Report Abuse |
|
|
| |
|
|
| 31 Jul 2014 08:01 AM |
| why is there 2 sword name here do they have to be the same or is it just 2 items that you can put in |
|
|
| Report Abuse |
|
|
Patrolics
|
  |
| Joined: 09 Aug 2013 |
| Total Posts: 149 |
|
|
| 31 Jul 2014 08:18 AM |
lel dude, That just means, the same sword goes in two areas, the player's Backpack, so they have the sword, and the player's startergear, so they have it all the time, even after they die.
~ The noob of all forums. ~ |
|
|
| Report Abuse |
|
|
MFSA289
|
  |
| Joined: 14 May 2012 |
| Total Posts: 507 |
|
|
| 07 Aug 2014 03:28 PM |
| Question, is "PASSIDHERE" the ID of the item or the ID of the game pass? |
|
|
| Report Abuse |
|
|