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: gui's

Previous Thread :: Next Thread 
rush58 is not online. rush58
Joined: 19 Jul 2011
Total Posts: 45
04 Dec 2011 08:08 PM
how do i get a gui to work and how do i make it so when its clicked it gives a tool?
Report Abuse
Grove537 is not online. Grove537
Joined: 05 Feb 2010
Total Posts: 3478
04 Dec 2011 08:09 PM
Well, no matter what, if you put a ScreenGui in startergui and insert a frame in that it will show, as long as the size is not 0,0.

~The greatest free model is your mind~
Report Abuse
rush58 is not online. rush58
Joined: 19 Jul 2011
Total Posts: 45
04 Dec 2011 08:11 PM
thank you grove your great help and thanks for not trolling :)
Report Abuse
JARAM is not online. JARAM
Joined: 30 Jul 2010
Total Posts: 139
04 Dec 2011 08:15 PM
I know roblox is FULL of trolls.

I made a script like that. i wrote it in paper i dont know where it is though sorry.
Report Abuse
techepicface is not online. techepicface
Joined: 28 Jun 2011
Total Posts: 1180
04 Dec 2011 08:16 PM
Put in a TextButton. And every GUI always has the same path, ScreenGui.Frame.TextButton/TextBox/TextLabel/ImageButton/ImageLabel.Script/LocalScript--only add the Script/LocalScript if you want it to do stuff. When you want it clicked, you use the MouseButton1Down/Click/Up, MouseButton2Down/Click/Up, MouseEnter, MouseLeave.
Report Abuse
pwnedu46 is not online. pwnedu46
Joined: 23 May 2009
Total Posts: 7534
04 Dec 2011 08:39 PM
"And every GUI always has the same path"

That's not necessarily true. You don't have to have a frame.


----------
    ~ pwendu46, the unicorn ~
Report Abuse
dietcoke101 is not online. dietcoke101
Joined: 13 Mar 2010
Total Posts: 296
04 Dec 2011 09:07 PM
Well you would prob have to do something like

script.Parent.MouseButton1Down:connect(function(click)
local noob = click.Parent:FindFirstChild("Humanoid")
local gun = game.Lighting:FindFirstChild("YOURWEAPONNAMEHERE")
if noob ~= nil then
a = gun:clone()
a.Parent = click.Parent.Backpack
end)
Report Abuse
rush58 is not online. rush58
Joined: 19 Jul 2011
Total Posts: 45
05 Dec 2011 01:26 AM
iv got the gui done now thanks for all your help everyone :)
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