|
| 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 |
|
|
|
| 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 |
|
|
|
| 12 Jul 2012 03:14 PM |
| Dude wrong idea... I need help not workers! DUH! |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 12 Jul 2012 03:22 PM |
| I don't see any question marks in his post, other than the subject. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
| |
|