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: Select script

Previous Thread :: Next Thread 
Azrayl is not online. Azrayl
Joined: 20 Jun 2009
Total Posts: 18
30 Nov 2010 09:00 PM
Hey, I just learned how to make GUI's and have been experementing with them.
One thing that I want to try is create a GUI that will allow you to equip weapons instead of having the generic numbered weapons along the bottom.
Does anyone have any Ideas on how to do this? or even just pointers?
or even better if you have a script already and are willing to share that would be great.

anything helps, and thanks in advance.
Report Abuse
OBF is not online. OBF
Joined: 29 Sep 2009
Total Posts: 10709
30 Nov 2010 09:07 PM
I was actually thinking of how to do this. :P

----
So you would have a row of buttons, in this example, three. When you click on one, that weapon gets equipped, and your old one gets removed. The weapons would be stored in Lighting. A minimize button might be helpful too. :)
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
30 Nov 2010 09:13 PM
Just use the on equipped function inside the Gui.
Report Abuse
GollyGreg is online. GollyGreg
Joined: 22 May 2008
Total Posts: 21835
30 Nov 2010 09:36 PM
Well if you go with the buttons, I think you can equip a tool if you make it's Parent your character.
Report Abuse
Azrayl is not online. Azrayl
Joined: 20 Jun 2009
Total Posts: 18
30 Nov 2010 09:43 PM
Ok those are some good sugestions, I will go mess around with them a bit, maybe even look inside a pre-built weapon to see if I can find any sort of equip script I could drop in the GUI button.
One quick question, how do you put the weapon in lighting? can you just drag and drop? or is it more complicated?
Report Abuse
GollyGreg is online. GollyGreg
Joined: 22 May 2008
Total Posts: 21835
30 Nov 2010 09:43 PM
I'm not sure if you can drag it into lighting. But you can just copy it and then right click Lighting and then click "Paste Into"
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
30 Nov 2010 10:06 PM
A LocalBackpackTool is literally a Gui. They are placed in game.LocalBackpack.

Also, it is impossible to fire the Selected event by selecting the HopperBins (or Equipped for Tools/Flags) using a script; the LocalPlayer MUST equip/select the weapon via LocalBackpackTool
Report Abuse
Azrayl is not online. Azrayl
Joined: 20 Jun 2009
Total Posts: 18
30 Nov 2010 10:18 PM
@Arceus

So do you now if there is any way to modify the localbackpacktool from the generic buttons because, as you say, it is a GUI?

if not is there any way to route a script through the localbackpack tool so that the weapons are still placed inside to backpack we just make to Icons dissapear and create our own?
Report Abuse
Azrayl is not online. Azrayl
Joined: 20 Jun 2009
Total Posts: 18
30 Nov 2010 10:20 PM
@matt

could you please explain more about you post:
"Just use the on equipped function inside the Gui"
I am not sure what function you are decribing, is it somthing you can insert? or somthing you have to call upon via script?
Report Abuse
GollyGreg is online. GollyGreg
Joined: 22 May 2008
Total Posts: 21835
30 Nov 2010 10:27 PM
Just use a GUI button like someone else said and trying making it dump a tool into their backpack.
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