![]() ![]() Now, as you get more complex in scripting, you can write the same thing, that does the same thing, but making it more effective. If I can’t answer them, then I use the Roblox docs page (which contains info on every Luau Event, property, Services etc.), and/or the developer forum! I just ask simple questions, and Answer them. This above is really how I think and make systems. You can use this to make a statement like Frame.Visible = not Frame.Visible, which will return the opposite of it being visible. But How can I make this Button so when I click it when the frame is Visible, It becomes Invisible, and if the Frame is invisible and they click it, It becomes Visible? Well there is a not statement in Lua that returns the opposite of a Boolen Value. Ok so Now I have a Frame that I can change the. Since Visible is a property and a Boolen Value (true or false), you would want to use something like Frame.Visible = True or Frame.Visible = False So Now I have a Event that I can add lines of code with that Function… But How can I make a Frame Visible? Well Gui Frames have a property called Visible. And well if you don’t already have a function made, you can Connect a new one too with :Connect(function(). Ok Well sure I can use the MouseButton1Click Event, How do you connect lines of code to it so I can make a Frame Visible? Well you can connect lines of code by Using :Connect. Well ok MouseButton1Click exists, but how can I know when they click THAT button and not other buttons? Well in order to use MouseButton1Click Event in TextButtons, you need to Mention the button, before mentioning the event, so roblox knows your talking about THAT button. ![]() How can you know when the player clicks a textbutton? Well There is a MouseButton1Click Event in TextButtons. This is a basic example of the questions I ask myself: Scripting is just using your logic and problem solving how you can achieve this.īack to my example in a GUI button. ![]() Basically, a simple start is making a screen gui, that when clicked, makes a frame visible. Scripting (in the really early stages, very basic and oversimplified) is basically just understanding the property window, and how you can change one property to another. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |