YouTube2Text

Improving the Display in The Shop GUI! Roblox Studio Simulator Guide Episode 11 — Transcript

by MonzterDEV · 3,080 words · 401 segments · language en · Watch on YouTube

Full transcript

  1. 0:00what's going on ladies and gentlemen
  2. 0:00welcome back to the simulator series in
  3. 0:02this episode we're gonna be going over
  4. 0:04how stats are displayed in our shop
  5. 0:06because we did sort of make some
  6. 0:08mistakes before so we're gonna be fixing
  7. 0:10those mistakes and then also improving
  8. 0:11the gui slightly as always if this video
  9. 0:13does help you guys out or you do enjoy
  10. 0:15it make sure you smash the like button
  11. 0:16also hit the subscribe button and turn
  12. 0:17this post notifications on if you want
  13. 0:18to get notified when i put more roblox
  14. 0:20development content additionally i do
  15. 0:21have patreon if you guys like to support
  16. 0:23me and gain access to all the scripts
  17. 0:25and the game file that i make in this
  18. 0:26episode there's a link down below in the
  19. 0:27description you guys go check it out
  20. 0:28with that being said let's get into it
  21. 0:30so starting off let's take a look at how
  22. 0:32our stats are actually set up for all of
  23. 0:34our different items in our simulator if
  24. 0:36we click on the item we can then see our
  25. 0:37stats displayed in this info section
  26. 0:39right here and we can see plus three
  27. 0:41food which is the stat for this specific
  28. 0:43item and then below that is the cost of
  29. 0:45the specific item now if we swap to dna
  30. 0:47and click on this we can see plus two
  31. 0:49food so it seems like dna shares the
  32. 0:51exact same stat as food but it actually
  33. 0:54doesn't and it shouldn't so that's what
  34. 0:55we really want to change here is this
  35. 0:57specific stat right here now that might
  36. 0:59be a little bit confusing but let's take
  37. 1:00a look at how eating simulator has their
  38. 1:02setup so if we look at food and we click
  39. 1:03on an item we can see that they have
  40. 1:05plus one food stats so that's how we
  41. 1:07have for our food as well then when we
  42. 1:08go click on dna and we can see it offers
  43. 1:10a different stack and this stat that
  44. 1:12they're offering right here is the
  45. 1:13maximum amount of food that you can
  46. 1:15actually hold so if we equip this item
  47. 1:16for example we can see that our max
  48. 1:18amount of food that we can actually hold
  49. 1:20is now down to 95 and the rank stead is
  50. 1:22actually completely fine we don't need
  51. 1:24to adjust that at all because we
  52. 1:25actually did get that completely correct
  53. 1:27so let's just recap real quick the food
  54. 1:28items that we buy should increase our
  55. 1:30food stack the dna that we purchased
  56. 1:32should increase our max food stat and
  57. 1:34then our ranks increase a couple of
  58. 1:35different multipliers which we'll handle
  59. 1:37later so now that we fully understand
  60. 1:39that once again looking at our food stat
  61. 1:41and our dna stat they both offer the
  62. 1:43exact same stat and we need to change
  63. 1:45that and the way to do this is we want
  64. 1:46to go into our configs and our configs
  65. 1:48are stored inside of the replicated
  66. 1:50storage and inside of the config folder
  67. 1:51so let's go ahead and open up the tool
  68. 1:53config open up the rank config and the
  69. 1:55dna config as well when we look at the
  70. 1:56tool config or if we look at any of
  71. 1:58these configs we can see each of them
  72. 2:00have a specific property for their sort
  73. 2:02of stat so if we look at rank config
  74. 2:03this stat is going to be the multiplier
  75. 2:05if we look at dna config the stat for
  76. 2:07this item type is food and if we look at
  77. 2:09tool config the stat that this item
  78. 2:11offers is also food as well now that's
  79. 2:12not bad and we could actually continue
  80. 2:14to use this but of course what we would
  81. 2:16then do is change the dna config from
  82. 2:18food to say max food for example rather
  83. 2:21than doing that though since we know
  84. 2:22that each of these different item types
  85. 2:24all offer one specific stat and we know
  86. 2:26what stat is offered by each of those
  87. 2:28item types because the stats are
  88. 2:30different for every item type let's just
  89. 2:32go ahead and rename all of their
  90. 2:33specific stats like food food and
  91. 2:36multiplier to literally just the word
  92. 2:38stat and this might be confusing for you
  93. 2:40but of course i'll get further into
  94. 2:41detail and explain why we're gonna do
  95. 2:42that so to easily do this highlight food
  96. 2:44hit ctrl h and then instead of food
  97. 2:46we're gonna say stat and then we could
  98. 2:48go ahead and replace all we'll do that
  99. 2:49for dna as well and then for the rank
  100. 2:51config as well so there we go now our
  101. 2:53stat is no longer called multiplier or
  102. 2:55food they're all just labeled stats in
  103. 2:57each of the different configs now that
  104. 2:58we adjusted all the config files we also
  105. 3:00want to adjust the gui as well let's go
  106. 3:02inside of our manager which is of course
  107. 3:04inside of our starter gui the shop
  108. 3:06folder and then we have the manager
  109. 3:07right here inside of here let's locate
  110. 3:09the new function and we want to look
  111. 3:11inside of our for loop so inside of here
  112. 3:12we can see right here we set the meta
  113. 3:14table for the object and then we start
  114. 3:16setting the properties for the object as
  115. 3:17well so we can see right here we have
  116. 3:19the food property that we're no longer
  117. 3:20using so we can go ahead and delete that
  118. 3:22we also have the multiplier property as
  119. 3:24well and what we're going to do instead
  120. 3:25of deleting this we are going to change
  121. 3:27this from multiplier to stat so then we
  122. 3:29can hold the item specific stat
  123. 3:30information right there now the next
  124. 3:32thing that we also need to make sure
  125. 3:33that we do is any time that we actually
  126. 3:35use the food property we want to find
  127. 3:37that inside of this file because we also
  128. 3:39have to adjust the systems which use
  129. 3:40food so that they work with our new
  130. 3:42system that we're creating so we can
  131. 3:43control f and look for dot food because
  132. 3:45that's how we know we're calling the
  133. 3:47food property and then we can see right
  134. 3:48here on line 171 inside of the click
  135. 3:51function we can see that we're using the
  136. 3:52food property right here so we can see
  137. 3:54we're using the food and multiplier
  138. 3:56property to set the text for the
  139. 3:57infostat and also for the info price as
  140. 4:00well rather than creating the if
  141. 4:01statement when we're actually setting
  142. 4:03the value to something we're going to
  143. 4:04make a normal if statement so what we
  144. 4:05want to do is we want to check the
  145. 4:07current shop the reason that we're going
  146. 4:09to check the current shop is because
  147. 4:10that's going to give us whatever list
  148. 4:12that we're actually looping through and
  149. 4:13whatever the current item type we're
  150. 4:15using and that's how we're actually
  151. 4:16going to adjust the infostat in the info
  152. 4:18price rather than looking into the
  153. 4:19multiplier and the food stack so we're
  154. 4:21going to say if current shop equals and
  155. 4:23then we're going to check if it's food
  156. 4:25then now we want to set the
  157. 4:26infostat.tech and we want to set that to
  158. 4:29the same thing that we have set down
  159. 4:30here so we can just go ahead and copy
  160. 4:32and paste that directly into there and
  161. 4:33we also want to set the infoprice.txt
  162. 4:37to the same thing that we also have down
  163. 4:39here so now food's all done we don't
  164. 4:40have to worry about that what we then
  165. 4:42want to check is if the current shop
  166. 4:44equals dna and if that does then we want
  167. 4:46to set both of these text labels again
  168. 4:48but of course for the correct stat so
  169. 4:49instead of the plus symbol which is
  170. 4:51representing the increase of food we
  171. 4:53want to use the fry icon which is going
  172. 4:55to represent increasing the max food so
  173. 4:57remember the food items are going to
  174. 4:59increase your food stat while the dna
  175. 5:01items are going to increase the max
  176. 5:03amount of food that you can hold another
  177. 5:05thing is that i sort of forgot to change
  178. 5:06this right here so right here we can see
  179. 5:08we're still using self.food but of
  180. 5:10course that property doesn't exist
  181. 5:11anymore and we replace that with stat so
  182. 5:13now we're going to use stat instead of
  183. 5:15food to get the stat value of that item
  184. 5:17and now that we have food and dna out of
  185. 5:19the way we have one more category left
  186. 5:20and that is ranks so we're going to kind
  187. 5:22of do the same thing we can just copy
  188. 5:24and paste these down here so we have the
  189. 5:25properties already and of course ranks
  190. 5:27is slightly different than the other two
  191. 5:29rather than setting the price in the
  192. 5:30actual price label we are going to set
  193. 5:33that where the stat is usually at so
  194. 5:35there's our price and then for the price
  195. 5:36is where we sort of set the stat for the
  196. 5:38rank and we already have the string
  197. 5:40created for the specific stat right
  198. 5:42there so we can go ahead and copy this
  199. 5:44and paste it right where the price is at
  200. 5:45and the final thing that we need to do
  201. 5:47is of course change multiplier to stack
  202. 5:49then we can go ahead and delete how we
  203. 5:51were previously setting these values but
  204. 5:52now if we look below the lines that we
  205. 5:54just deleted we can actually see the
  206. 5:56info warning dot visible is also using
  207. 5:58the multiplier property as well rather
  208. 6:00than using the multiplier property we're
  209. 6:01going to go ahead and once again use the
  210. 6:03current shop property so we're going to
  211. 6:04say if current shop equals ranks then
  212. 6:07we're gonna set the info warning to true
  213. 6:09otherwise it's going to be false let's
  214. 6:10go ahead and start up our game and see
  215. 6:12how the changes look as long as it looks
  216. 6:14normal then that's exactly what we want
  217. 6:15for the most part so we can click on fry
  218. 6:17and we can see everything is generated
  219. 6:18as normal which is good we're not
  220. 6:20getting any errors then we look at dna
  221. 6:22we click on the item and we can see the
  222. 6:23icon has changed and now instead of food
  223. 6:25it says max which is exactly how eating
  224. 6:28simulator does it so that's great and if
  225. 6:29we look on ranks and click on ranks we
  226. 6:31can now see the warning text pops up we
  227. 6:33can see the money is at the top and we
  228. 6:35can also see the stats are displayed on
  229. 6:36the bottom and that's exactly how eating
  230. 6:38simulator also has now there's a slight
  231. 6:40difference that i do want to point out
  232. 6:41and we're also going to change as well
  233. 6:43in eating simulator the stats for ranks
  234. 6:45is actually displayed slightly
  235. 6:47differently so normally we align our
  236. 6:49stats to the left and what i mean by
  237. 6:50that is you can easily see the price
  238. 6:52down here is aligned to the left
  239. 6:54otherwise it would be in the center or
  240. 6:55towards the right but we set the
  241. 6:57alignment to the left so when they
  242. 6:58display the rank stat it's actually a
  243. 7:00line in the center and that's what we
  244. 7:02want to change now rather than having it
  245. 7:04align to the left so underneath where we
  246. 7:06set the visibility of the info warning
  247. 7:07we're going to create another if
  248. 7:08statement so if current shop and we're
  249. 7:10going to check if that equals ranks if
  250. 7:12it does equal ranks then what we want to
  251. 7:14do is we want to get the info price
  252. 7:16label and we want to set the text x
  253. 7:18alignment property to enum dot text x
  254. 7:22alignment dot center so that'll center
  255. 7:24the stats although i know it might be a
  256. 7:26little bit confusing because we named
  257. 7:27this info price but remember for ranks
  258. 7:29that is where the stats are displayed so
  259. 7:31then we'll center the text otherwise
  260. 7:33what we want to do is we of course want
  261. 7:34to reset it back to the left alignment
  262. 7:36now if you didn't realize already
  263. 7:37considering how we set the visibility we
  264. 7:39can also just set the visibility inside
  265. 7:41of this if statement as well and i feel
  266. 7:42like that keeps it a little bit more
  267. 7:44organized so if the current shop is
  268. 7:45ranked we want to set the visibility to
  269. 7:47true for the info warning otherwise we
  270. 7:49are going to make that not visible and
  271. 7:51then we could of course delete that
  272. 7:52right there and there we go there's one
  273. 7:54more way that we can slightly improve
  274. 7:55our code and what i'm talking about is
  275. 7:57we have the if current shop equals ranks
  276. 7:59and we're already sort of checking that
  277. 8:00up here what we could do is rather than
  278. 8:02having another if statement we can put
  279. 8:04this inside of here and of course this
  280. 8:07else is pretty much equal to current
  281. 8:09shop equals rank so that'll handle that
  282. 8:11and then what we could do with the else
  283. 8:12statement right here is you might think
  284. 8:14we would paste it in both the food and
  285. 8:16dna but rather than doing that we could
  286. 8:18just set this above that so every single
  287. 8:20time the click method is called it's
  288. 8:22gonna set the price text alignment to
  289. 8:24the left and it'll also make the info
  290. 8:26warning not visible but if the current
  291. 8:27shop is ranked then it will change those
  292. 8:30properties back to what they should be
  293. 8:31for that specific item type so we can go
  294. 8:33ahead and delete that if statement now
  295. 8:35if you'd rather have this if statement
  296. 8:36then have it mixed in with this you can
  297. 8:38definitely do that too it's whatever you
  298. 8:40feel more comfortable with i just wanted
  299. 8:41to show you all the options that we had
  300. 8:43once again though we can go into our
  301. 8:44shop and make sure that it looks all
  302. 8:46good so we can see all the different
  303. 8:47items and stats are displayed as they
  304. 8:49should be for food let's go ahead and
  305. 8:51check dna and we can see dna is
  306. 8:53displayed as it should be and finally
  307. 8:54ranks we can see that the text is
  308. 8:56aligned in the center rather than being
  309. 8:58on the left which is exactly what we
  310. 9:00want and we can see that looks all good
  311. 9:02as well perfect now the only other
  312. 9:04noticeable adjustment that i saw that i
  313. 9:06wanted to make is if we go inside of the
  314. 9:08info frame we can locate the warning
  315. 9:10label and let's make this visible for a
  316. 9:11second so that we can actually see it
  317. 9:13and as we see it definitely overlaps the
  318. 9:15stats frame which could be kind of ugly
  319. 9:17there are a lot of ways that we could go
  320. 9:19about adjusting this we could make the
  321. 9:21stats frame slightly smaller we can make
  322. 9:23the item name slightly smaller we could
  323. 9:26make the warning smaller but i think
  324. 9:27that's the worst idea because it would
  325. 9:29become super small but i think what i'm
  326. 9:31gonna do is i'm gonna get the image
  327. 9:32label and the viewport frame and
  328. 9:34actually i'll make these both visible
  329. 9:36although one of them already is and
  330. 9:38we'll make them a little bit smaller so
  331. 9:40i think that's good that gives us a
  332. 9:42little bit room to move the item name up
  333. 9:45a little bit we can then move the
  334. 9:46warning up a little bit and now it's no
  335. 9:48longer going into the stats frame but it
  336. 9:50is pretty small let's go ahead and make
  337. 9:52the image label and viewport frame not
  338. 9:54visible once again so that we can go
  339. 9:55ahead and test this out and let's see
  340. 9:57what it looks like in game it looks
  341. 9:58pretty small i'm not gonna lie we could
  342. 10:00try to increase the size slightly so i
  343. 10:02did increase the size slightly so now
  344. 10:04when we look at it actually it looks
  345. 10:06pretty good i'm not gonna lie that
  346. 10:07actually looks really good for the most
  347. 10:09part i don't like how close it is to the
  348. 10:10item name i mean they're practically
  349. 10:12touching but at the same time at least
  350. 10:13it's not too small okay i think i found
  351. 10:15a good size end position for this so the
  352. 10:18size that i found that was good was 0.07
  353. 10:20and then the position was 0.445 now i
  354. 10:23don't really want to further discuss the
  355. 10:25warning label because this clearly can
  356. 10:26be changed to however you actually want
  357. 10:28it and we could continue to go so far
  358. 10:30into it and do a lot of stuff but it's
  359. 10:32really not that important and i feel
  360. 10:34like that's a decision that you guys can
  361. 10:35make on your own after seeing the things
  362. 10:37that i tried to do with it earlier when
  363. 10:38we changed the stats on each of the
  364. 10:40config files we actually forgot to
  365. 10:42update another file that used the
  366. 10:44specific food stamp now the way that i
  367. 10:45figured this out was by going into our
  368. 10:47game equipping our item and actually
  369. 10:48trying to earn points and you can see
  370. 10:50that we now have an error being thrown
  371. 10:52in the console so the error is being
  372. 10:54caused inside of the tool manager which
  373. 10:55is inside of the server script service
  374. 10:57so we can go inside of the tool manager
  375. 10:58and we can quickly and easily see that
  376. 11:00right here we are using the food
  377. 11:02property which no longer exists and
  378. 11:03remember we change the food property
  379. 11:05from food to stat so once we change that
  380. 11:07to stat we should now have no issues
  381. 11:09when we do try to earn money from using
  382. 11:11our item and we can see that has now
  383. 11:13been fixed we're now earning points as
  384. 11:14we should be so with that being said
  385. 11:16ladies and gentlemen that's going to be
  386. 11:17it for this episode hopefully it helps
  387. 11:18you guys out if it did make sure you
  388. 11:19smash the like button also hit the
  389. 11:20subscribe button and turn those post
  390. 11:22notifications on if you guys did enjoy
  391. 11:23and you want to get notified when i
  392. 11:24upload more roblox development content
  393. 11:26additionally i do have a patreon if you
  394. 11:28guys like to support me and gain access
  395. 11:29to all the scripts and the game file
  396. 11:31that i made in this episode there's a
  397. 11:32link down below in the description and
  398. 11:33you guys can go check that out with that
  399. 11:34being said i hope that you guys have a
  400. 11:36great day and i'll see you guys in the
  401. 11:37next episode

About this transcript

This page contains the full transcript of Improving the Display in The Shop GUI! Roblox Studio Simulator Guide Episode 11 by MonzterDEV, generated from the public captions YouTube serves with the video. The transcript has 3,080 words across 401 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.