YouTube2Text

Frame & ScrollingFrame - Roblox GUI Tutorial #7 — Transcript

by BrawlDev · 3,342 words · 435 segments · language en · Watch on YouTube

Full transcript

  1. 0:00what is this button that says click
  2. 0:02me wait what the why did it move up
  3. 0:05here uh okay I guess this is trying to
  4. 0:08play games with me all right don't worry
  5. 0:10I'm going to see what happens if I just
  6. 0:11keep clicking on this come on come
  7. 0:14on bro you can't be serious right now
  8. 0:19all right let's think about this for a
  9. 0:20minute so with this button that I kept
  10. 0:23trying to click like this it looks like
  11. 0:25it's moving the position of this button
  12. 0:28to be somewhere that's relative to this
  13. 0:30little box here but what does this mean
  14. 0:32exactly I think what this is trying to
  15. 0:34say is that whenever I click on this
  16. 0:35button it's going to pick a random
  17. 0:38position that's relative to this little
  18. 0:40box that's over here that this button is
  19. 0:43literally contained inside so I think
  20. 0:46this is with the use case of a frame
  21. 0:48which is actually a really helpful um
  22. 0:50GUI element inside of Roblox that I
  23. 0:52think it's something important that you
  24. 0:54should uh be aware of uh so that is
  25. 0:56basically what I'm going to be teaching
  26. 0:58you how to do in this episode while also
  27. 1:00covering another type of frame that is
  28. 1:02similar to frames called scrolling
  29. 1:05frames so with that being said let's go
  30. 1:08straight into implementing the uh frames
  31. 1:11and scrolling frames now that we
  32. 1:13understand it let's implement it so to
  33. 1:15reiterate what a frame essentially is is
  34. 1:17that it's a container that contains our
  35. 1:20GUI elements put together inside of one
  36. 1:24uh frame so that we can change
  37. 1:27manipulate and move around that
  38. 1:29individual frame that contains all these
  39. 1:31GUI elements together so that we have a
  40. 1:34much easier time organizing and also uh
  41. 1:37changing some stuff around when it comes
  42. 1:38to GUI elements so to show you what this
  43. 1:41looks like the first thing we need we
  44. 1:42need to do on the right side is to of
  45. 1:45course add a screen GUI as usual for any
  46. 1:48GUI element and then what we're going to
  47. 1:49do is hit the plus sign and we're going
  48. 1:51to add in a frame and this is what it
  49. 1:53should look like so when we add in this
  50. 1:55Frame it should be displayed on the top
  51. 1:57left of our screen like any other GUI
  52. 1:58element and we can move this around but
  53. 2:01now what next well to to tell you the
  54. 2:04truth this is literally it this is
  55. 2:06basically the frame right here that
  56. 2:08contains uh every other GUI element that
  57. 2:11we can use in order to manipulate move
  58. 2:14around and organize our gu inside of our
  59. 2:17inside of our Roblox game so our frame
  60. 2:19is on the right side and it has all
  61. 2:22these properties that we can work with
  62. 2:23but there aren't really anything too
  63. 2:26special about the frame except for this
  64. 2:28property called clip descendants but I'm
  65. 2:29going to to tell you what that is in a
  66. 2:30second and so this Frame since I
  67. 2:32mentioned that this acts as a container
  68. 2:34for other GUI elements let's go ahead
  69. 2:36and start adding some GUI elements onto
  70. 2:38this thing so let's hit the plus sign
  71. 2:39next to frame and then let's add in a
  72. 2:41text label uh it's kind of hard to see
  73. 2:43this text label so we're actually going
  74. 2:44to change the background color of this
  75. 2:46Frame to something darker so we can see
  76. 2:48the other stuff all right and now we
  77. 2:50have our text label so when we add it
  78. 2:53it's in the origin position of the frame
  79. 2:56and not the and not the actual game
  80. 2:58because if you remember if we add in a
  81. 3:00GUI element it starts at the position
  82. 3:02origin of the screen which is somewhere
  83. 3:05up here but now uh since we have a text
  84. 3:08label that's contained inside of this
  85. 3:10Frame the frame is our new container so
  86. 3:13the beginning position is going to be at
  87. 3:16the origin of wherever this Frame is and
  88. 3:19so that's why it's going to start here
  89. 3:21so anything we put in here is basically
  90. 3:23contained inside of here but we can even
  91. 3:25pos position these elements outside of
  92. 3:26the guy frame as well there's actually a
  93. 3:29property that uh allows us to not do
  94. 3:31that it'll just hide it if it decides to
  95. 3:33go off of the the container or frame or
  96. 3:35whatever um with the property that I
  97. 3:38just mentioned earlier called clip
  98. 3:39descendant so if we highlight our frame
  99. 3:42and then we press clip descendants and
  100. 3:44then we take our text label and try to
  101. 3:46drag this off the screen you can see
  102. 3:48that it's becoming invisible because it
  103. 3:50has to be in because it has to be within
  104. 3:52the boundaries of the frame in order to
  105. 3:55in order for it to be visible but we can
  106. 3:57bypass this by uh un checking clip
  107. 4:00descendant with the frame and now we can
  108. 4:02basically drag this wherever we want but
  109. 4:05is still inside of our frame so now that
  110. 4:08we understand this we can add in even
  111. 4:10more elements to our frame by hitting
  112. 4:11the plus sign let's say we create a text
  113. 4:13button this time uh we can position this
  114. 4:16button somewhere else like off to the
  115. 4:17side here make it colorful or whatever
  116. 4:19it doesn't really matter too much uh we
  117. 4:21can even add more elements like a text
  118. 4:23box uh this text box can just go
  119. 4:25wherever it doesn't really matter uh and
  120. 4:27then once again you can turn turn on
  121. 4:30clip descendence so that whatever is
  122. 4:32outside of the boundaries of the frame
  123. 4:35it will not show so that is basically uh
  124. 4:38what a frame does uh it's basically just
  125. 4:40a container that contains GUI elements
  126. 4:43that we can use to modify uh and
  127. 4:46organize our GUI elements inside of our
  128. 4:48Roblox games because one thing you might
  129. 4:50notice is that if I try dragging this
  130. 4:52Frame around it's dragging every other
  131. 4:55element that's inside of this Frame
  132. 4:57alongside with it because now that that
  133. 4:59these GUI elements are um inside of this
  134. 5:03Frame basically all of these elements
  135. 5:05belong to the frame so if we move the
  136. 5:07frame then it moves all the other GUI
  137. 5:09elements as well so you can treat this
  138. 5:12as like a folder or a model if you're
  139. 5:13working with 3D objects but this time
  140. 5:15it's going to be 2D objects so that's
  141. 5:18kind of what this is like I also want to
  142. 5:20add important notes to when you're
  143. 5:21changing the position and size of these
  144. 5:24individual Parts uh inside of a frame is
  145. 5:27that when you put elements inside of a
  146. 5:30frame then the position and size
  147. 5:33properties are now relative to the frame
  148. 5:36that it's located in and not the entire
  149. 5:38screen so what I'm what I'm getting at
  150. 5:40here is that let's say we had our text
  151. 5:42label here so the position here is now
  152. 5:46000000 because this position is relative
  153. 5:49to the frame that it's at so this is
  154. 5:51000000 not this being 0 0 0 0 because
  155. 5:55this would be if this was parented to
  156. 5:57just a uh screen GUI rather than than
  157. 5:59anything else that's uh inside of it so
  158. 6:02that's an important distinction to know
  159. 6:03about if you're handling positions and
  160. 6:05sizes uh with GUI elements that are
  161. 6:07inside of a frame you have to make sure
  162. 6:10that what you're um changing is relative
  163. 6:12to the frame or the GUI container that
  164. 6:15it's uh contained inside same thing to
  165. 6:17do with size let's say if we're changing
  166. 6:19the scale property of these sizes then
  167. 6:21these sizes are relative to the frame
  168. 6:24and not the entire screen so a size of
  169. 6:28one would be from where it started at
  170. 6:30the frame to the entire uh way through
  171. 6:34for this specific frame and not for the
  172. 6:36entire uh roblo screen and we can pretty
  173. 6:38much do the same thing with the Y scale
  174. 6:40as well uh for it to cover the entire
  175. 6:43frame with uh a scale of one for both
  176. 6:46the X and the Y AIS it's not covering
  177. 6:48anything outside of the frame unless we
  178. 6:51decide to go past one so let's say we
  179. 6:53had size 1.5 for the Y scale then it's
  180. 6:57going to fill up the frame entirely but
  181. 7:00then go an extra mile of going through
  182. 7:041.5 uh as the scale so that it goes
  183. 7:07slightly above the frame unless of
  184. 7:10course we had clip descendence on then
  185. 7:11we won't see that but now you might ask
  186. 7:13what's the difference between a frame in
  187. 7:15a folder so if you remember what a
  188. 7:17folder looks like we could basically
  189. 7:18just go to the screen GUI hit the plus
  190. 7:20sign add in a folder right here and then
  191. 7:22we can basically take these GUI elements
  192. 7:24and put it inside of here so yeah this
  193. 7:27already looks kind of messed up because
  194. 7:28this isn't Within the bounds of a
  195. 7:31relative frame that's why it just
  196. 7:32covered the entire screen here's the
  197. 7:34thing about frames that make it
  198. 7:36convenient over folders is that this is
  199. 7:38literally a GUI element in and of itself
  200. 7:41so this frame has GUI elements that you
  201. 7:44can change that will also change the
  202. 7:46properties that are inside of it like
  203. 7:47position and size for instance if I
  204. 7:49let's say change the size of the frame
  205. 7:52itself to 0.5 then it's going to scale
  206. 7:55all of the elements that are inside of
  207. 7:57the frame alongside with it to match the
  208. 8:00new size of this Frame you cannot do
  209. 8:02this with a folder because a folder
  210. 8:04literally has no properties that relate
  211. 8:06to a GUI whatsoever because a folder is
  212. 8:10not a GUI element a frame however is a
  213. 8:13GUI element that's why we're able to uh
  214. 8:15modify all of the properties inside of
  215. 8:17this Frame container to whatever we
  216. 8:20change with the actual frame itself so
  217. 8:23that is an important distinction to know
  218. 8:24about now that we understand frames I
  219. 8:26now want to introduce you to another
  220. 8:28type of frame that's called scrolling
  221. 8:30frames and you can kind of guess what
  222. 8:32scrolling frames do they basically act
  223. 8:35as frames except you're able to scroll
  224. 8:37up and down or left and right on these
  225. 8:39frames to show a lot more of what this
  226. 8:41frame has to offer so you've probably
  227. 8:43seen these in Roblox games before uh but
  228. 8:45now I'm going to show you how to
  229. 8:46implement them inside of Roblox studio
  230. 8:49so on the right side of screen GUI let's
  231. 8:51hit the plus sign and we're going to add
  232. 8:53in a uh scrolling frame which looks like
  233. 8:56this um and for right now what we're
  234. 8:58going to do is we're actually going to
  235. 9:00hide our uh our first frame so we're
  236. 9:03going to so we're going to click on it
  237. 9:05drop down a little bit and then hit the
  238. 9:06visible sign so that we don't see it
  239. 9:08anymore and let's take the scrolling
  240. 9:10frame and move it over here to the
  241. 9:12middle and let's scale this up just a
  242. 9:14little bit so one noticeable difference
  243. 9:16you can see with this is that there's
  244. 9:17this little bar on the right side and
  245. 9:19this indicates our scrolling bar uh to
  246. 9:22let us know that we can scroll on this
  247. 9:25Frame and it'll show a bunch of results
  248. 9:27of uh whatever is taint inside of the
  249. 9:29scrolling frame by going up and down on
  250. 9:31it we're not putting all of the elements
  251. 9:34inside of one picture because we're able
  252. 9:36to dynamically move up and down to see
  253. 9:38all of these different elements that are
  254. 9:40supposedly going to be inside of here so
  255. 9:42to demonstrate this let's add in a bunch
  256. 9:44of objects inside of the scrolling frame
  257. 9:46so that we can see it move past us when
  258. 9:48we scroll up and down so let's hit the
  259. 9:50plus sign next to scrolling frame and
  260. 9:51let's add in a text label uh and let's
  261. 9:54also change the background color of this
  262. 9:56Frame to something different so that we
  263. 9:58can see it better uh okay and so now let
  264. 10:01okay so now we have this text label if
  265. 10:03we scroll down we can see that we can no
  266. 10:06longer see it uh within our view because
  267. 10:09we're scrolling down onto the page um
  268. 10:12unless we scroll all the way back up
  269. 10:14then we can see the text label again um
  270. 10:16and there's another interesting thing we
  271. 10:17can do with this uh scrolling frame with
  272. 10:20all these objects inside of it is that
  273. 10:22we can create this sort of list with it
  274. 10:24and make it go all the way down uh to
  275. 10:26the bottom of the page if we so desire
  276. 10:27to there is one instance I'm going to
  277. 10:29add into this scrolling frame that you
  278. 10:31probably don't know of yet and you can
  279. 10:33basically just follow along what I do uh
  280. 10:35in this case but we're basically going
  281. 10:36to add in a UI list constraint so let's
  282. 10:39hit the plus sign next to scrolling
  283. 10:41frame and let's add in a UI list layout
  284. 10:45my my apologies that's what it's called
  285. 10:46Uh and then what we're going to do is
  286. 10:47we're going to take our text label and
  287. 10:49we're going to duplicate this over and
  288. 10:51over and over and over again until we
  289. 10:53reach the bottom of the page so we're
  290. 10:56just going to keep on doing this until
  291. 10:57we reach the bottom of the page and now
  292. 10:59we have pretty much reached the bottom
  293. 11:01of the page where this entire scrolling
  294. 11:04this entire scrolling frame is just
  295. 11:06filled with all of these different text
  296. 11:08labels um that we can pretty much see if
  297. 11:10we just scroll up and down we can see
  298. 11:12all of them but here's an interesting
  299. 11:14thing is that if we keep duplicating it
  300. 11:16once we reach the bottom of the page we
  301. 11:18can no longer see these um elements past
  302. 11:22the scrolling size so there's one way we
  303. 11:24can um dynamically change the size of
  304. 11:28this um of this canvas and that is by
  305. 11:31doing two things so the first way we can
  306. 11:34do this is by going on the right side
  307. 11:36and changing the canvas size directly on
  308. 11:38this y uh position here however I don't
  309. 11:41recommend this because if we let's say
  310. 11:42change the scale of this manually to
  311. 11:45let's say three then it's going to
  312. 11:47automatically scale uh these elements if
  313. 11:51we choose if we chose to have these um
  314. 11:54text labels be scaled with its size
  315. 11:57rather than offset rather than pixel by
  316. 11:59pixel so you didn't see that here but if
  317. 12:01we changed the size of these elements to
  318. 12:04use scale instead of U size by size
  319. 12:07pixels then it would have been a lot
  320. 12:08different and it would have been more
  321. 12:09confusing to do so what I recommend is
  322. 12:12checking this option right here with
  323. 12:14this property that says automatic canvas
  324. 12:17size so let's open this up and there
  325. 12:19should be three options here there
  326. 12:21should be X XY and y basically what
  327. 12:24these properties mean is that if we
  328. 12:26let's say had elements that kept going
  329. 12:28up and down and it reached our canvas
  330. 12:30size what we would tell Roblox to do is
  331. 12:32if we picked y for instance it'll
  332. 12:35dynamically increase the size of our
  333. 12:37canvas uh depending on how many elements
  334. 12:40we have on this um on the scrolling
  335. 12:43frame so let's take our uh text label
  336. 12:46and let's keep duplicating and as you
  337. 12:47can see the scrolling frame is
  338. 12:49automatically sizing resizing itself to
  339. 12:52fit all of these elements inside of the
  340. 12:54screen and we can pretty much do the
  341. 12:55same thing with uh the X as well so so X
  342. 12:59meaning that if we go from left and
  343. 13:00right it's automatically going to uh
  344. 13:03resize itself if we reach the end of the
  345. 13:05scrolling label so or you could do this
  346. 13:08both ways with X and Y together uh if
  347. 13:11you so desire to do so and that is
  348. 13:13another way of doing it so that is a
  349. 13:15little something I wanted to add to the
  350. 13:16scrolling frame which I found to be
  351. 13:18pretty interesting there's also a couple
  352. 13:20customizable things we can do with the
  353. 13:22scrolling bar itself like uh change the
  354. 13:25image color to something different like
  355. 13:27green or I know just anything really uh
  356. 13:30we can even change the thickness to
  357. 13:32let's say 20 uh we can even change the
  358. 13:35transparency to something even harder to
  359. 13:37see uh and just like General
  360. 13:38customization stuff like that you can
  361. 13:40even change the image of uh each part of
  362. 13:43this scrolling bar if you really want to
  363. 13:45another property that's interesting to
  364. 13:46know about is canvas position which
  365. 13:48basically tells us which place in the
  366. 13:51scrolling are we uh located in right now
  367. 13:54so according to this we are
  368. 13:561,526 pixels down into the scrolling
  369. 13:59frame and if we go all the way back up
  370. 14:02then we're going to reach back to the
  371. 14:03origin of 0 and zero so because this is
  372. 14:06a scrolling frame from top to bottom
  373. 14:08it's going to update the Y position uh
  374. 14:11every time we go down or go up the the
  375. 14:15scrolling frame another thing we can do
  376. 14:17to the scrolling frame is make it go
  377. 14:19horizontal from left to right instead of
  378. 14:21scrolling up and down the way we would
  379. 14:23do this is change the canvas size of the
  380. 14:26X property over here rather than the Y
  381. 14:28property so the canvas size currently is
  382. 14:31two for the Y property so if we change
  383. 14:33this to zero and we change this x
  384. 14:36property to two instead what we're going
  385. 14:38to see are two scroll bars because right
  386. 14:41now we have it set up so that it'll
  387. 14:42automatically size itself based on the X
  388. 14:45and Y uh axes so what we're going to do
  389. 14:47is we're going to uh select just X so
  390. 14:50that now we can't see what's going to
  391. 14:52happen on the right side of the screen
  392. 14:54so now what's going to happen is that we
  393. 14:55have this scroll bar down here at the
  394. 14:58bottom that goes from left and right so
  395. 15:00if I scroll down technically speaking
  396. 15:02then it's going to go to the right and I
  397. 15:04can keep doing this forever until we
  398. 15:06reach the end of the scrolling frame and
  399. 15:09then we can go back over here seeing all
  400. 15:11the stuff on the left side of the screen
  401. 15:13so it's basically the same principle
  402. 15:14it's just now that we're it's just now
  403. 15:16we're able to scroll this from left to
  404. 15:18right rather than top to bottom so I
  405. 15:20think that's another uh important
  406. 15:21distinction to know about and of course
  407. 15:23if you want to automatically scale the
  408. 15:24size of it just be sure that you have X
  409. 15:26and Y or just X set to true it doesn't
  410. 15:29really matter which one as long as um
  411. 15:31you achieve the result that you do want
  412. 15:33from this scrolling frame I hope this
  413. 15:35video gave you a good understanding of
  414. 15:37frames and scrolling frames because
  415. 15:39these are definitely one of those uh GUI
  416. 15:42gu elements that should be necessary to
  417. 15:44know about especially for the future of
  418. 15:46your Roblox games when you create more
  419. 15:49complicated GUI elements that you may
  420. 15:51have to organize and also be smart about
  421. 15:54about how you should go about organizing
  422. 15:56your game and manipulating G elements
  423. 15:59contained inside of uh frames and
  424. 16:01scrolling frames that you may use and
  425. 16:03that may help you uh later down the line
  426. 16:05so if you want to learn about some of
  427. 16:07the elements that uh I included inside
  428. 16:09of this video like this uh button for
  429. 16:11instance then I encourage you to watch
  430. 16:13my text button video that I'm going to
  431. 16:15have for you right here to watch and
  432. 16:17that's pretty much going to be it for
  433. 16:18this episode so if you enjoyed it then I
  434. 16:20hope to see you in the next episode take
  435. 16:23care

About this transcript

This page contains the full transcript of Frame & ScrollingFrame - Roblox GUI Tutorial #7 by BrawlDev, generated from the public captions YouTube serves with the video. The transcript has 3,342 words across 435 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.