|
| 22 Sep 2011 06:34 PM |
Ok, so i'm making this Gui (weapon), where you click it you get the weapon and it closes it..
How would I position the weapon in a Players starterpack (when they click the Gui) any exampe or Wiki link? |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 22 Sep 2011 06:39 PM |
Position? When a weapon is put into a starterpack, or backpack, and is seleted, it is automatically positioned to your hand position.
<'+1 Post. Ujelly?'> |
|
|
| Report Abuse |
|
|
|
| 22 Sep 2011 06:42 PM |
Sorry, thats not what I meant, I'm horrible at explaining T_T..
Ok so...
How would I make it do this...
When I click the Gui TextButton, a weapon from lighting is Cloned into a Players Starterpack. |
|
|
| Report Abuse |
|
|
mew903
|
  |
| Joined: 03 Aug 2008 |
| Total Posts: 22071 |
|
| |
|
|
| 22 Sep 2011 06:45 PM |
Mew, please don't post here if your not going to help...
1- You suck at trolling
2- You aren't even funny
3- Your troll jokes aren' even funny. |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Sep 2011 06:50 PM |
weapon:clone().Parent=game.Players.LocalPlayer.Backpack weapon:clone().Parent=game.Players.LocalPlayer.StarterGear |
|
|
| Report Abuse |
|
|
|
| 22 Sep 2011 06:51 PM |
...
.MouseButton1Down event Clone the weapon Remove the GUI |
|
|
| Report Abuse |
|
|
|
| 22 Sep 2011 06:52 PM |
function onClicked() weapon:clone().Parent=game.Players.LocalPlayer.Backpack weapon:clone().Parent=game.Players.LocalPlayer.StarterGear
script.Parent.ClickDetector.MouseClick:connect(onClicked) end end
think that will work
|
|
|
| Report Abuse |
|
|
|
| 22 Sep 2011 07:01 PM |
:o, why won't this work...
function onClicked() game.Lighting.weapon:clone().Parent=game.Players.LocalPlayer.Backpack game.Lighting.weapon:clone().Parent=game.Players.LocalPlayer.StarterGear
script.Parent.ClickDetector.MouseClick:connect(onClicked) end |
|
|
| Report Abuse |
|
|
| |
|
pwnedu46
|
  |
| Joined: 23 May 2009 |
| Total Posts: 7534 |
|
|
| 22 Sep 2011 07:13 PM |
1) You're using a localscript. 2) You put the end in the wrong place. 3) ClickDetectors are not used in guis
~ pwnedu46 ~ |
|
|
| Report Abuse |
|
|
pwnedu46
|
  |
| Joined: 23 May 2009 |
| Total Posts: 7534 |
|
|
| 22 Sep 2011 07:14 PM |
Actually, forget #1. That isn't a problem. :3
~ pwnedu46 ~ |
|
|
| Report Abuse |
|
|
|
| 22 Sep 2011 07:21 PM |
@Pwn,
Yea, I already fixed it, and I noticed that ._. ..
Thanks anyways :D |
|
|
| Report Abuse |
|
|