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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Starting Gui???

Previous Thread :: Next Thread 
CaptainVegeta123 is not online. CaptainVegeta123
Joined: 02 Dec 2011
Total Posts: 158
12 Jul 2012 02:39 PM
Ok I need help making a starting gui.
Like a starting menu to a game.
Please PM me or leave a reply!
Thanks
CaptainVegeta123
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
12 Jul 2012 02:56 PM
wiki.roblox.com

We are not slaves;
end of story.

Don't post here;
we know what you mean by "Help".
Report Abuse
CaptainVegeta123 is not online. CaptainVegeta123
Joined: 02 Dec 2011
Total Posts: 158
12 Jul 2012 03:14 PM
Dude wrong idea... I need help not workers! DUH!
Report Abuse
Jman432 is not online. Jman432
Joined: 21 Jan 2009
Total Posts: 3469
12 Jul 2012 03:20 PM
Darkmist stop trolling he just asked a question.

-Dont read this backwards-
Report Abuse
ninjaknight101 is not online. ninjaknight101
Joined: 04 Apr 2011
Total Posts: 1281
12 Jul 2012 03:22 PM
I don't see any question marks in his post, other than the subject.
Report Abuse
WhoBloxedWho is not online. WhoBloxedWho
Joined: 25 Mar 2009
Total Posts: 4611
12 Jul 2012 03:51 PM
None of the people have helped, sorry for the bad help...


You basically want to start off by inserting a ScreenGui object into the StarterGui.

From there you can insert different GUI objects to do different things.


When using a button, you would use functions in a localscript to execute the button.

A basic script for a button would be something like this:

function OnClicked()
print(script.Parent.Name.." was clicked."
end

script.Parent.MouseButton1Click:connect(OnClicked)


You can use different GUI types in a button, say you wanted to add a code system to a VIP GUI of some sorts, you could have a TextBox and a TextButton in the same frame, with a script to check if the code is correct. All you would do is type in the code, and hit the button and it would check it.

local TextBox = script.Parent.TextBox
local Code = "123Code"

function OnClicked()
if TextBox.Text = Code then
print("Correct Code")
else
print("Incorrect Code")
end
end

script.Parent.MouseButton1Click:connect(OnClicked)



Just a quick overview of what different GUI objets are.

Frames are just basic boxes to store other things in, or create decoration in the GUI.

Buttons are used for bits of code that require you to click something.

Labels are either a place to put Text, or an Image and use it in the Gui.

A TextBox is a Gui that you can write text in.


Each GUI's Scale size/position is a number out of 1. 1 being it will cover the screen in that axis, 0 being it wont cover it at all in that axis.

The Offset part of size/position is the pixel size the GUI will occupy on the screen.

There quite fun to work with, and are a good starting point for learning how to develop games. Not to mention the Lua involved with a basic one is quite simple.

If you need help, just look it up on the Wiki.
Report Abuse
WhoBloxedWho is not online. WhoBloxedWho
Joined: 25 Mar 2009
Total Posts: 4611
12 Jul 2012 03:59 PM
if that helps.
Report Abuse
CaptainVegeta123 is not online. CaptainVegeta123
Joined: 02 Dec 2011
Total Posts: 158
13 Jul 2012 11:13 AM
Thanks
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