Broiled
|
  |
| Joined: 26 Dec 2011 |
| Total Posts: 1035 |
|
|
| 27 Apr 2013 06:26 AM |
So I've been wanting to make a game pass that grants VIP tools for people when they purchase it.
But I don't want to have a VIP door. I'd like it to be when you spawn, you automatically have the tools. I think you put the tools in lighting, right? I'm not 100% sure.
But if you can help post below, thanks.
-Broiled |
|
|
| Report Abuse |
|
|
Broiled
|
  |
| Joined: 26 Dec 2011 |
| Total Posts: 1035 |
|
| |
|
|
| 27 Apr 2013 06:56 AM |
You shouldn't request scripts but... I decided I'd help anyway. You would do something like this :
function character(char) local player = game.Players:GetPlayerFromCharacter(char) if player then game.Lighting.VIPWeapon:Clone().Parent = player.Backpack end end
function entered(player) if game:GetService("GamePassService"):PlayerHasPass(player, GAMEPASSID) == true then player.CharacterAdded:connect(character) end end game.Players.PlayerAdded:connect(entered) |
|
|
| Report Abuse |
|
|
spearman2
|
  |
| Joined: 28 May 2010 |
| Total Posts: 2938 |
|
|
| 27 Apr 2013 07:00 AM |
Doing this isn't hard but explaining it sorta is.
Put your VIP tools in lighting, then put a script in workspace that clones the VIP tools when their character is added. |
|
|
| Report Abuse |
|
|
spearman2
|
  |
| Joined: 28 May 2010 |
| Total Posts: 2938 |
|
|
| 27 Apr 2013 07:01 AM |
| Or just do what TheGamer did :P |
|
|
| Report Abuse |
|
|
Broiled
|
  |
| Joined: 26 Dec 2011 |
| Total Posts: 1035 |
|
|
| 27 Apr 2013 07:18 AM |
| Okay, thanks for the help. |
|
|
| Report Abuse |
|
|
Broiled
|
  |
| Joined: 26 Dec 2011 |
| Total Posts: 1035 |
|
|
| 27 Apr 2013 07:39 AM |
| Wait do I insert that script into each of the VIP Tools? The lighting or just workspace? |
|
|
| Report Abuse |
|
|
spearman2
|
  |
| Joined: 28 May 2010 |
| Total Posts: 2938 |
|
| |
|
A8P
|
  |
| Joined: 17 Apr 2013 |
| Total Posts: 230 |
|
| |
|
A8P
|
  |
| Joined: 17 Apr 2013 |
| Total Posts: 230 |
|
| |
|
Broiled
|
  |
| Joined: 26 Dec 2011 |
| Total Posts: 1035 |
|
|
| 27 Apr 2013 07:50 AM |
Okay I have one last question. I made the gamepass and uploaded it, but it's not up for sale? |
|
|
| Report Abuse |
|
|
Broiled
|
  |
| Joined: 26 Dec 2011 |
| Total Posts: 1035 |
|
|
| 27 Apr 2013 07:53 AM |
| Oh my, nevermind, I forgot to sell it, I feel really stupid right now. |
|
|
| Report Abuse |
|
|
spearman2
|
  |
| Joined: 28 May 2010 |
| Total Posts: 2938 |
|
| |
|