caseysman
|
  |
| Joined: 06 Jun 2009 |
| Total Posts: 167 |
|
|
| 24 Sep 2011 10:09 AM |
| Ive been looking for one that will work when i insert the key it. Ive found it but i dont know how to give it to special people... I know i cant put it in the starter pack because then everyone can get the card. Please help... |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 24 Sep 2011 10:11 AM |
Automatically?
game.Players.PlayerAdded:connect(function(np) if np.Name == "caseysman"or np.Name == "name2" or np.Name == "name3" then local card = game.Lighting:FindFirstChild("Card'):Clone() card.Parent = np.StarterGear end end) |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 24 Sep 2011 10:13 AM |
Ffs, I have to start proof-reading.. :l Anyway, use this script in Workspace, and put the card into Lighting. Name it 'Card', without the single-quotes.
game.Players.PlayerAdded:connect(function(np) if np.Name == "caseysman"or np.Name == "name2" or np.Name == "name3" then local card = game.Lighting:FindFirstChild("Card"):Clone() card.Parent = np.StarterGear end end) |
|
|
| Report Abuse |
|
|
caseysman
|
  |
| Joined: 06 Jun 2009 |
| Total Posts: 167 |
|
|
| 24 Sep 2011 10:14 AM |
| Thanks let me see if it works real fast. |
|
|
| Report Abuse |
|
|
Ender1234
|
  |
| Joined: 21 May 2011 |
| Total Posts: 28 |
|
|
| 24 Sep 2011 10:16 AM |
| How would you give them the key on respawn though? |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
| |
|
caseysman
|
  |
| Joined: 06 Jun 2009 |
| Total Posts: 167 |
|
|
| 24 Sep 2011 10:18 AM |
| Grimm How do i add the card into the lighting again? Ive been a little rusty in scripting for a month now... |
|
|
| Report Abuse |
|
|
Ender1234
|
  |
| Joined: 21 May 2011 |
| Total Posts: 28 |
|
| |
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 24 Sep 2011 10:29 AM |
First, re-name it.
Click it to hi-light it. Aim at the lettering, now, and click again. Wait a moment. Change the name to... Card
After that, make sure you can see both the card, and Lighting in Explorer. Left click the tool icon, and wait a moment. Left click the tool, and drag it down to Lighting.
OR..
You can just as easily re-name the tool, then right-click it, and hit 'cut'. After that, scroll down to lighting. Select it (left click) Right click Lighting. Select "Paste Into". |
|
|
| Report Abuse |
|
|