Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I use Screen GUIs?

Asked by 8 years ago

I am wanting to know how I can create this Screen GUI. The screen GUI will pop up after you click a button (on the screen as a Selection Button?). Then it displays the screen GUI. I am completely stumped with this. Here is the example script that I got from Cookbook(Chapter 3)

local screen, text = Instance.new('ScreenGui'), Instance.new('TextLabel')

screen.Parent = game.StarterGui
text.Parent = screen

text.Text = 'Hello world'
text.Position = UDim2.new(.5, 0, .5, 0)

Will I be able to use this with the Selection Button? OR will it have to be completely different. I was hoping to use this as a list with checkboxes. Also do I insert this into StarterGUI or Workspace?

Thank you, Sammy52520

2 answers

Log in to vote
1
Answered by 8 years ago

I think this is a very liable question. Here is a hint, the reason why I asked this question, is because I have hard times comprehending these things. I stated what I needed but I didn't state that I knew how to do it. I said "I know I need buttons" because I have heard someone talking about it. Technically you "answer" was not an answer at all. See I bet you can teach yourself by the books. However I can not. I can spend hours and hours on reading how to do something and I can learn nothing. You want to know why? It is because all of the words in there make no sense. I have even taken words and typed them into the dictionary online. I did that because I needed a paraphrasing (explanation or synonym). To your logic, you are saying that everyone that asks a question is lazy. I bet everyone there has had some explanation of the different terms. Answering a question is not feeding, it is an act of kindness. If that makes any sense to you, then why did you answer the way you did. Yes, I may have worded the question wrong, but no I did not ask the question because I was lazy. I asked the question because I literally did not know how to do it. So I do not judge the way people ask. I will always answer when I can. I want you to remember people are different and so does how people learn. I learn differently and so do you. So I am sorry that I worded the question wrong, I will go back and adjust it, however because I ask a question over something easy does not make me a lazy person.

0
China called; they want their wall back. My answer does not say "You're bad because you can't do this" or "You don't know this so clearly you didn't try" - I'm saying that you're just not doing it right. There's no point whining at me because I told you to try harder, because crying isn't going to make you a better scripter. PlsNoDiscrimination 0 — 8y
0
At that, I even broke it down into the things you need to learn. I have a strong and well-founded belief that you need to understand to learn, not just to look and see. There are plenty of examples on Google for the subjects you require, for all types of learning styles. Not understanding what a word means is no longer an excuse when you have so much information available to you in so many differe PlsNoDiscrimination 0 — 8y
0
^ bosswalrus 84 — 8y
0
I believe that not understanding a word can still be a question. I wrote this question because I was at school and I did not have the time to just go and look up for information. Also I don't see the problem with people asking questions like mine on the wall. If it was a huge problem, wouldn't I be notifified by a HR? Your opinion... This is my opinion, I believe all questions are equal. The only sammy52520 45 — 8y
Ad
Log in to vote
0
Answered by 8 years ago

Learn

I'm going to be plain and honest with you here: You're not going to get much help here if you don't already understand why something is done or haven't made a good attempt to show that you've tried (Or for example, your question is specifically about why something is done the way it is) because scripters don't actually have the time to have kids keep coming back because they thought it was a good idea to copy+paste a script instead of learning.


Let me explain:

  • That script will work with a button, but you need to learn how to do something when a button is clicked. Go learn.
  • You have to understand what that script is doing before you can start to consider using the cookbook. Don't just look at it, read it.
  • You're getting ahead of yourself. Slow down and take the time to actually learn the language in order before trying to jump about from thing to thing without getting down any proper understanding.

We're here to teach you to fish, not to feed it to you.

Answer this question