Neel664
|
  |
| Joined: 25 Oct 2011 |
| Total Posts: 575 |
|
|
| 09 Jan 2012 04:36 PM |
| Well I want to have this starter pack that goes to certain people I choose and "My" Group to get those weapons or what ever I put in the starter pack. Like instead of having it for everybody. Can I have the script or the process on how to script the starter pack? |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
| |
|
|
| 09 Jan 2012 04:38 PM |
| Put the tools in lighting, make the script get the tools if you're in a group. |
|
|
| Report Abuse |
|
|
Neel664
|
  |
| Joined: 25 Oct 2011 |
| Total Posts: 575 |
|
| |
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
| |
|
Neel664
|
  |
| Joined: 25 Oct 2011 |
| Total Posts: 575 |
|
|
| 09 Jan 2012 04:39 PM |
| Knight I need the script thats what I need help on I'm new to scipting btw. |
|
|
| Report Abuse |
|
|
|
| 09 Jan 2012 04:44 PM |
Here:
First you need two models, name them Team1, and Team2. Next you want to create a script that checks when a player enters the game if he or she is in your group. This can be called upon by the following function. [Please note, I never use isInGroup(), now that I think of it, isInGroup() might not eve be real. >.>]
game.Players.PlayerAdd():connect(function(newPlayer) if newPlayer.isInGroup(GROUP ID PL0X?) then print("YAY!") end end)
I'm probably wrong on that.
Now YOU need to set the give gun's event, so replace [print("YAY!")] with something like:
game.Lighting["GUN NAME PL0X?"]:clone().Parent = newPlayer.Player.Backpack
Hope I helped a lil'bit. |
|
|
| Report Abuse |
|
|
|
| 09 Jan 2012 04:44 PM |
Just get something from the Free Models.
If it doesn't work, come back to us and we'll fix it. |
|
|
| Report Abuse |
|
|
|
| 09 Jan 2012 04:56 PM |
@Builder game.Players.PlayerAdd():connect(function(newPlayer) o.o? |
|
|
| Report Abuse |
|
|
Neel664
|
  |
| Joined: 25 Oct 2011 |
| Total Posts: 575 |
|
|
| 09 Jan 2012 04:59 PM |
| Do I put their name in ()'s where it says PlayerAdd(NAME HERE) OR (function(NAME HERE) Where? Sorry If I'm nooby :o I'm new to scripting once again |
|
|
| Report Abuse |
|
|