Darkboo77
|
  |
| Joined: 26 Aug 2009 |
| Total Posts: 94 |
|
|
| 23 Apr 2014 06:42 PM |
Hey, I'm not very familiar with scripting, but I am very familiar with building.
Anyways, I made a tool, and I want the player to gain ANOTHER tool from Lighting when he/she opens the tool.
Im familiar with Studio, so I think I will be able to understand.
Thanks! |
|
|
| Report Abuse |
|
|
MrChubbs
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 4969 |
|
|
| 23 Apr 2014 06:48 PM |
| Just clone it from Lighting into the player backpack when the .Equipped fires. |
|
|
| Report Abuse |
|
|
|
| 23 Apr 2014 06:53 PM |
Parent the tool to StarterPack
or..
tool = game.Lighting:FindFirstChild("Exact Tool Name Here")
for i,v in pairs(game.Players:GetChildren()) do tool:Clone().Parent = v.Backpack tool:Clone().Parent = v.StarterGear end |
|
|
| Report Abuse |
|
|
Darkboo77
|
  |
| Joined: 26 Aug 2009 |
| Total Posts: 94 |
|
|
| 23 Apr 2014 06:57 PM |
Thanks for helping! But where would I put that script in?
Sorry for asking a lot of questions. |
|
|
| Report Abuse |
|
|
|
| 23 Apr 2014 07:02 PM |
Well you could use it as a function and call it.
Like...
function dostuff() --put what I posted here end
--And, you can call the function in the script
dostuff() --this would call it |
|
|
| Report Abuse |
|
|
Darkboo77
|
  |
| Joined: 26 Aug 2009 |
| Total Posts: 94 |
|
|
| 23 Apr 2014 07:05 PM |
Well, ill try and figure it out.
Thanks so much for your help! |
|
|
| Report Abuse |
|
|