generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Help.

Previous Thread :: Next Thread 
JonathanSwag is not online. JonathanSwag
Joined: 30 Aug 2011
Total Posts: 1012
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 is not online. 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
JonathanSwag is not online. JonathanSwag
Joined: 30 Aug 2011
Total Posts: 1012
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 is not online. mew903
Joined: 03 Aug 2008
Total Posts: 22071
22 Sep 2011 06:43 PM
Lerp it /lol
Report Abuse
JonathanSwag is not online. JonathanSwag
Joined: 30 Aug 2011
Total Posts: 1012
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
JonathanSwag is not online. JonathanSwag
Joined: 30 Aug 2011
Total Posts: 1012
22 Sep 2011 06:49 PM
Bump.
Report Abuse
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
22 Sep 2011 06:50 PM
weapon:clone().Parent=game.Players.LocalPlayer.Backpack
weapon:clone().Parent=game.Players.LocalPlayer.StarterGear
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
22 Sep 2011 06:51 PM
...

.MouseButton1Down event
Clone the weapon
Remove the GUI
Report Abuse
nateappletree is not online. nateappletree
Joined: 18 Oct 2010
Total Posts: 213
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
JonathanSwag is not online. JonathanSwag
Joined: 30 Aug 2011
Total Posts: 1012
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
JonathanSwag is not online. JonathanSwag
Joined: 30 Aug 2011
Total Posts: 1012
22 Sep 2011 07:06 PM
?
Report Abuse
pwnedu46 is not online. 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 is not online. 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
JonathanSwag is not online. JonathanSwag
Joined: 30 Aug 2011
Total Posts: 1012
22 Sep 2011 07:21 PM
@Pwn,

Yea, I already fixed it, and I noticed that ._. ..

Thanks anyways :D
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image