YouTube2Text

Creating the Sell Location! Roblox Studio Simulator Guide Episode 14 — Transcript

by MonzterDEV · 4,512 words · 597 segments · language en · Watch on YouTube

Full transcript

  1. 0:00hey what's going on ladies and gentlemen
  2. 0:01hopefully having a great day in today's
  3. 0:02episode we are going to be going over
  4. 0:04how to create a cell location in your
  5. 0:06roblox simulator now as always if this
  6. 0:08video does help you guys out or you do
  7. 0:10enjoy it make sure you smash the like
  8. 0:11button also hit the subscribe button and
  9. 0:12turn this post notifications on if you
  10. 0:14want to be notified we'll upload more
  11. 0:15roblox development content additionally
  12. 0:16i do a patreon if you guys like to
  13. 0:18support me and gain access to all the
  14. 0:19scripts and the game file to make during
  15. 0:21this episode there's a link down below
  16. 0:22in description and you guys can go and
  17. 0:23check that out with that being said
  18. 0:25let's get into it so to show you guys
  19. 0:26what i actually mean by the cell
  20. 0:28location as we can see in eating
  21. 0:30simulator the simulator that we're
  22. 0:31recreating during the series they have a
  23. 0:33little cell location right here
  24. 0:34basically you can collect some food and
  25. 0:36then step on this part right here and
  26. 0:38then that will remove all of our food
  27. 0:39and give us some coins based off however
  28. 0:41much food we actually had additionally
  29. 0:43on the right side of our screen there's
  30. 0:44actually a little cell button which we
  31. 0:46can click on and that will teleport us
  32. 0:47directly onto the cell point as well so
  33. 0:49we'll be creating that too so going
  34. 0:51right into the studio and the project
  35. 0:52that we've been working on this entire
  36. 0:54time we can actually look inside of our
  37. 0:56workspace and we already have a folder
  38. 0:58called scriptable objects which contains
  39. 1:00the shop open and this is the part that
  40. 1:01whenever we step on this it actually
  41. 1:03displays the shop gy to us so what we're
  42. 1:05going to do is we're actually just going
  43. 1:06to duplicate this by selecting it and
  44. 1:08then hitting ctrl d and then we'll move
  45. 1:10it over a little bit just like that and
  46. 1:12then let's go ahead and rename this to
  47. 1:14cell and that'll indicate that this is
  48. 1:16the cell part now aesthetically you can
  49. 1:18create your cell part in many different
  50. 1:19ways what i find to be one of the
  51. 1:21easiest ways is going directly into the
  52. 1:23toolbox into the marketplace and make
  53. 1:24sure you're searching for models and
  54. 1:26then just search up cell now once you do
  55. 1:28that you'll see a bunch of different
  56. 1:29cell models pop up and you could choose
  57. 1:31any one of these i'm just gonna select
  58. 1:32the first one that i find and no we're
  59. 1:34not actually going to use the cell model
  60. 1:36what i'm really trying to find is a
  61. 1:37decal and what i want the decal for is
  62. 1:39actually for this specific circle so if
  63. 1:41we delete it we can see the circle goes
  64. 1:43away so that's what this person is
  65. 1:44actually using to create this little
  66. 1:46circle right here they're using a
  67. 1:48specific texture and they set the color
  68. 1:49to yellow so you could even have it a
  69. 1:51different color if you wanted to and
  70. 1:52then because of the specific texture is
  71. 1:54a circle exactly as we see right now we
  72. 1:56can put that onto any part that we want
  73. 1:58and then that'll give us the little
  74. 1:59circle effect that we're looking for
  75. 2:00i'll have this decal link in the
  76. 2:02description down below just in case
  77. 2:03you're unable to find the specific model
  78. 2:05in the toolbox you guys can go down
  79. 2:06there if you want to use this exact
  80. 2:08texture go back inside of the original
  81. 2:10cell part that we had add in a decal and
  82. 2:12then just go ahead and use that same
  83. 2:14specific texture now we're going to want
  84. 2:15to make sure that the face is actually
  85. 2:17on the top it also depends on how your
  86. 2:20part is laid out you could have this
  87. 2:21part upside down and then at the top
  88. 2:23might actually be the bottom but if you
  89. 2:24actually click on the face and change
  90. 2:26the face depending on where you move
  91. 2:27your mouse cursor that'll automatically
  92. 2:29adjust the face for you you could really
  93. 2:31just click the specific side that you
  94. 2:32want it on so we now have the decal on
  95. 2:34there we now want to adjust the color
  96. 2:35decide whatever color you want to we're
  97. 2:37just going to go with the yellow so i'm
  98. 2:38going to click yellow hit okay and now
  99. 2:40we're pretty much all good for that the
  100. 2:41next thing that we want to do is we want
  101. 2:42to actually add the cell text that we
  102. 2:44see on this part that we added in over
  103. 2:46here and we want to add that directly to
  104. 2:48our part as well so what we're going to
  105. 2:49do is we are going to get a billboard
  106. 2:51gui and then inside of the billboard gy
  107. 2:53we are going to get a text label now
  108. 2:55let's go ahead and make a few
  109. 2:56adjustments to the text label the text
  110. 2:57is going to be cell in all caps the text
  111. 3:00will also be scaled the color of the
  112. 3:02text is going to be a yellow so a yellow
  113. 3:06the background is going to be fully
  114. 3:07transparent and then we're also going to
  115. 3:08make the stroke not transparent so we
  116. 3:11see it just like that and now that's
  117. 3:12already pretty close we just need to
  118. 3:13make a couple more adjustments so we
  119. 3:15want to set the billboard g wide always
  120. 3:16on top so that we always see the
  121. 3:18billboard gui and it's not hidden by
  122. 3:19other parts now what we're going to do
  123. 3:21is inside of the billboard gui we want
  124. 3:23to actually adjust the size so we're
  125. 3:25going to first start by setting it to 1
  126. 3:26comma 0 comma 1 comma 0. that'll set it
  127. 3:29to 100 of the width and the height then
  128. 3:31we also want to do the same with the
  129. 3:32text labels so inside of here we're
  130. 3:34gonna say size we're gonna set it to one
  131. 3:36comma zero comma one comma zero and now
  132. 3:38it is pretty small so what we're gonna
  133. 3:39do is back inside of the billboard gui
  134. 3:41we're going to continue adjusting the
  135. 3:43size until we find something that we
  136. 3:44like we'll try two in the x and that
  137. 3:46still seems a little bit small i think
  138. 3:48we want it to be a little bit larger so
  139. 3:49we could go with three three and then
  140. 3:51let's adjust the y to two i think that's
  141. 3:54still slightly too small so we'll go
  142. 3:56with 3.5 and 2.5 okay i think that's
  143. 4:00good i'm not entirely sure if that's
  144. 4:03great size you guys can kind of judge
  145. 4:04that for yourself additionally back
  146. 4:06instead of the text label let's go to
  147. 4:07the font and my favorite font my go-to
  148. 4:09font is always the gotham you guys
  149. 4:11probably already know that we're going
  150. 4:12to go with gotham semi-bold i think that
  151. 4:14looks pretty decent now back inside of
  152. 4:16the billboard gui let's go to the offset
  153. 4:18and what we're gonna look for
  154. 4:19specifically is the studs offset and
  155. 4:21that'll basically reposition this around
  156. 4:23the part depending on what offset we
  157. 4:25actually give it so we probably want to
  158. 4:26adjust this to either one which yeah i
  159. 4:28think we're gonna probably want like a
  160. 4:31two i think that looks good because
  161. 4:32remember we want this to be above the
  162. 4:34yellow circle we're not really caring so
  163. 4:36much about the part and while we're
  164. 4:37talking about that let's go back to the
  165. 4:39part and change the transparency to one
  166. 4:41so now that becomes completely invisible
  167. 4:43and with all that being said i think
  168. 4:44that looks pretty good it looks like how
  169. 4:46theirs looked at least or at least very
  170. 4:48similar the final thing that we want to
  171. 4:50do is go back inside of the billboard
  172. 4:51gui and change the max distance to
  173. 4:54something probably like 50 maybe it
  174. 4:56really depends what that means is if we
  175. 4:58get 50 studs away from that billboard gy
  176. 5:01this will no longer be displayed to us
  177. 5:03so if you want them to see it from
  178. 5:04further away you can make it a hundred i
  179. 5:06would not recommend leaving it at
  180. 5:07infinite though because they could
  181. 5:09literally see it all the way across the
  182. 5:10map and that's probably not what you
  183. 5:12want to do also i'd recommend that you
  184. 5:13change your current viewport to
  185. 5:15something like the iphone or something
  186. 5:16like that just to verify that it does
  187. 5:18look good on all the different devices
  188. 5:20and it does look fine on mobile as well
  189. 5:21so we don't have to even worry about
  190. 5:23that the last thing that we want to do
  191. 5:24is we want to position this part so as
  192. 5:26we can see there is a shadow below the
  193. 5:28circle and it doesn't look like the
  194. 5:29circle is actually on the ground it
  195. 5:31looks like it's floating which is
  196. 5:33probably not something that we want and
  197. 5:34we can see with this part this part is
  198. 5:36in the ground so what we can do is we
  199. 5:38can just move this like that and that
  200. 5:41will be good and one thing to consider
  201. 5:43is remember the way that this is going
  202. 5:44to be set up when we script it is
  203. 5:46whenever the player touches this
  204. 5:47specific part they will sell all their
  205. 5:50current food and receive coins because
  206. 5:52of what we just did which we basically
  207. 5:53lowered the part almost entirely into
  208. 5:56the ground you could experience certain
  209. 5:58issues like the player not touching this
  210. 6:00specific part because of how low to the
  211. 6:02ground it actually is and that could
  212. 6:03cause some issues for our script to not
  213. 6:05get triggered an alternative that we can
  214. 6:07do which is really simple is duplicate
  215. 6:09this part put this part inside of the
  216. 6:11same part delete the decal on the main
  217. 6:13part which is holding this one and then
  218. 6:15we can just rename this one like fake
  219. 6:17for example and then we're gonna remove
  220. 6:18the billboard gui and now we're gonna do
  221. 6:21is move the fake part up right so this
  222. 6:24part is going to be above the ground and
  223. 6:26then the fake one which is inside of our
  224. 6:28main part is gonna be down here so there
  225. 6:31we go so now when we set up our script
  226. 6:32we're gonna set it up so the player
  227. 6:34touches this specific part and if you're
  228. 6:36not exactly understanding let's look at
  229. 6:38it this way this part is completely
  230. 6:40above the ground right so anybody can
  231. 6:42easily walk onto this part let's go
  232. 6:44ahead and make that transparent again
  233. 6:45and then let's make this one not
  234. 6:47transparent so now when we see this one
  235. 6:49this one's entirely in the ground where
  236. 6:50you could possibly run into issues of
  237. 6:52the player not being able to touch it
  238. 6:54because it's so far or so close to being
  239. 6:56completely through the ground so what we
  240. 6:58did is we basically created a fake part
  241. 7:00which just holds the decal to display
  242. 7:02the specific circle and that's inside of
  243. 7:04the part that we're using to basically
  244. 7:05track the player's touch and then also
  245. 7:07depending on how you feel if you think
  246. 7:09that the billboard gui seems to be a
  247. 7:10little bit too far above the circle now
  248. 7:12you could also parent that to the fake
  249. 7:14part as well so now the billboard gui's
  250. 7:16positioning is based off of this
  251. 7:17specific part which of course is lower
  252. 7:19than the cell part and we're now pretty
  253. 7:20much done with creating this part if you
  254. 7:22did want to be a little bit more
  255. 7:23creative and add more effects to the
  256. 7:25specific part what you could do is you
  257. 7:26could add either a particle emitter or
  258. 7:28one of the lighting objects to make it a
  259. 7:30little bit more cool or make it stand
  260. 7:32out a little bit more realistically this
  261. 7:33tutorial is mostly made to show you how
  262. 7:35to do the scripting and stuff like that
  263. 7:36but if you guys want to get more
  264. 7:37creative and play around with these
  265. 7:38different things you guys certainly can
  266. 7:40with all that being said we are now
  267. 7:41going to delete the part that we
  268. 7:43originally brought into our game now
  269. 7:44scripting this is rather simple because
  270. 7:46we already did something like that for
  271. 7:48the shop open so what we're gonna do is
  272. 7:50go inside of the server script service
  273. 7:51look inside of the scriptable object
  274. 7:53script that we already have and we can
  275. 7:54see that we made the shop open right
  276. 7:56here what we're gonna do is we're simply
  277. 7:58going to copy and paste this and if you
  278. 8:00guys haven't watched this episode i'll
  279. 8:01quickly explain exactly what we're doing
  280. 8:03inside of the workspace we're literally
  281. 8:04looking for the scriptable objects
  282. 8:06folder which is this folder right here
  283. 8:07so when we get the photo we look for the
  284. 8:09shop open part and then we use the
  285. 8:10touched event and connect that to a
  286. 8:12function right here every time this part
  287. 8:14is touched it's going to pass us the
  288. 8:15part which touched it and then we're
  289. 8:17going to get the player from that
  290. 8:18specific parts parent and then we use
  291. 8:20the get player from character function
  292. 8:22to get the player from the character
  293. 8:23which the character should be the parts
  294. 8:25parent that touched this specific part
  295. 8:27if we do get the player then we call the
  296. 8:28shop open remote and we fire that to the
  297. 8:30player and then we also print that it
  298. 8:32did work so that's exactly what we do
  299. 8:33with the shop open part i'm going to
  300. 8:35remove that print statement and what
  301. 8:36we're going to do this time is instead
  302. 8:37of the shop open we're going to use the
  303. 8:39cell part so scriptable objects folder
  304. 8:41and then this time the cell part we're
  305. 8:42going to use the same exact function as
  306. 8:44the get player and then if player we
  307. 8:46actually want to reward them a specific
  308. 8:47amount of coins we want to get the
  309. 8:48rewards module script that we made a
  310. 8:50couple episodes ago so what we're going
  311. 8:51to do is we're going to say local server
  312. 8:53script service equals game get service
  313. 8:57server script service just like that and
  314. 8:59then local rewards equals require
  315. 9:03service script service dot utils dot
  316. 9:05rewards now we got the rewards module
  317. 9:07and we're then going to say rewards dot
  318. 9:09coins because we want to give the player
  319. 9:11coins and we are going to pass through
  320. 9:13the player the amount of coins that we
  321. 9:14want to give the player is based off of
  322. 9:16how much food that they have oh and it
  323. 9:18looks like we slightly messed up the
  324. 9:19name in the rewards so there we go
  325. 9:21that's all fixed now so the amount of
  326. 9:22coins that we want to reward the player
  327. 9:23is based off how much food we have so to
  328. 9:25get their food we're going to say
  329. 9:29player.leaderstats.food.value and that's
  330. 9:30going to return the current amount of
  331. 9:32food that they actually have and now we
  332. 9:33got to decide do we want to use their
  333. 9:35coin multiplier i think the coin
  334. 9:36multiplier can be acquired from
  335. 9:38different ranks and probably the pet
  336. 9:40system this is entirely up to you though
  337. 9:42based on your game do you want to use
  338. 9:43the coin multiplier or do you not want
  339. 9:45to use the coin multiplier we are going
  340. 9:47to say that we do want to use the coin
  341. 9:48multiplier and then the last thing that
  342. 9:50we want to do is we want to set the
  343. 9:52player's current food value so we're
  344. 9:53going to copy this and then we're going
  345. 9:55to set the player's current food value
  346. 9:57to zero because we want to reset the
  347. 9:58amount of food that they currently have
  348. 10:00and then of course we're not going to
  349. 10:01use this remote so we're going to go
  350. 10:02ahead and delete that and now that
  351. 10:04should be all good also make sure that
  352. 10:05you reset the player's food after
  353. 10:07rewarding them the coins because we need
  354. 10:08that number to specifically reward the
  355. 10:10player with that amount of coins so
  356. 10:12let's go ahead start up our game and see
  357. 10:14if this works so we're gonna go ahead
  358. 10:15and get some food we now have 10 food
  359. 10:17walk over to the sell point and now we
  360. 10:18see we actually just got some coins so
  361. 10:20let's do it again and now the coins have
  362. 10:22been added to our balance and that works
  363. 10:24exactly as it should perfect we might be
  364. 10:26able to optimize this function a little
  365. 10:28bit more so what we could do is we can
  366. 10:29create a variable inside of here saying
  367. 10:31food and then we can set that to this
  368. 10:33value right here and then what we can do
  369. 10:35is we can say if food is greater than
  370. 10:37zero then and now we'll only call this
  371. 10:39function if the player actually has food
  372. 10:41to sell and then instead of getting the
  373. 10:43value this way we could just say food
  374. 10:45because now we know how much food they
  375. 10:46exactly have so the cell part is
  376. 10:48completely set up at this point we're
  377. 10:50all done with that what we're now gonna
  378. 10:51do is set up the little cell button in
  379. 10:53the gui go into the starter gy we're
  380. 10:55just gonna duplicate the currency gui
  381. 10:57and rename this two buttons for now we
  382. 11:00might adjust it to the future let's now
  383. 11:01go inside of the currency holder and
  384. 11:04we're actually just gonna go ahead and
  385. 11:06grab the purchase button out of here so
  386. 11:08i'm just gonna move that and put that
  387. 11:09into the currency holder we can go ahead
  388. 11:11and then delete the coins and the food
  389. 11:13let's also go inside the currency holder
  390. 11:14and change the background transparency
  391. 11:16property to zero so that we could easily
  392. 11:18move this across our screen because
  393. 11:21that's exactly where we want it and now
  394. 11:22they have it lined up on the right side
  395. 11:24of their screen slightly off of the side
  396. 11:28so i would say probably something like
  397. 11:30that their buttons are also relatively
  398. 11:32small so we probably want to adjust it
  399. 11:35to i'd say about that size that's pretty
  400. 11:37good we'll also rename purchase to sell
  401. 11:40and then we want to adjust the size to
  402. 11:44maybe one comma zero comma point five
  403. 11:47comma zero that's a decent size i'm not
  404. 11:50gonna lie so then we'll make the
  405. 11:51background transparency of the currency
  406. 11:53holder one so that it's invisible and
  407. 11:55that looks pretty good we don't want to
  408. 11:56change the text on the cell button to
  409. 11:59sell in all caps and now i'd say that
  410. 12:01looks nearly identical to how they have
  411. 12:03it set up what we can then do is we can
  412. 12:05duplicate this one time and we can
  413. 12:06change the text from cell to go small
  414. 12:09and that's their second button that they
  415. 12:10have and that looks pretty good because
  416. 12:12we still have the ui list layout right
  417. 12:14there so in the future when we do add
  418. 12:15the go small functionality and then also
  419. 12:17the shop the codes and all the other
  420. 12:19buttons that they have there we can most
  421. 12:20likely just add it to this gui right
  422. 12:22here and we shouldn't have any issues
  423. 12:24we're not going to actually add the
  424. 12:25ghost small button yet just because
  425. 12:26we're simply not going to use it we'll
  426. 12:28add that in the future when we do add
  427. 12:29the functionality though let's then
  428. 12:30rename the currency holder to button
  429. 12:32holder and there we go we can then open
  430. 12:35up the manager script right here and
  431. 12:36then what we want to do is we want to
  432. 12:37rename the currency gui from currency
  433. 12:40gui to button gui and then we no longer
  434. 12:43have the currency holder we now have the
  435. 12:44button holder so we want to rename this
  436. 12:47as well from currency to button holder
  437. 12:50and now we only have one button which
  438. 12:52the button is called sell so we're gonna
  439. 12:54find cell inside of the bun holder frame
  440. 12:56and we'll rename the food frame to sell
  441. 13:00button and then we can delete this and
  442. 13:01we can pretty much delete all of this as
  443. 13:03well then what we can do is we can say
  444. 13:05cell bun dot mouse button one click
  445. 13:07colon connect function and now we got to
  446. 13:09decide what we want to do when we click
  447. 13:11this button so what we want to happen is
  448. 13:12we want to teleport the player directly
  449. 13:14to the cell location now the way that we
  450. 13:16actually do this is by getting the
  451. 13:18workspace so we're going to say local
  452. 13:19workspace equals game get service
  453. 13:22workspace and then using the workspace
  454. 13:24we want to locate the cell part that we
  455. 13:26have right inside of here now the way
  456. 13:27that we can do that is by saying local
  457. 13:30cell part equals workspace wait for
  458. 13:33child scriptable objects another wait
  459. 13:35for child cell and then that will give
  460. 13:37us the cell part now inside of the mouse
  461. 13:39button one click function what we want
  462. 13:41to do is we want to say local character
  463. 13:43equals player dot character and then we
  464. 13:45want to check if we found the character
  465. 13:47we then want to do character set primary
  466. 13:50part c frame which basically the
  467. 13:51character is a model and each model can
  468. 13:54have a primary part and the default
  469. 13:56characters always have a primary part
  470. 13:57set for them and then what we're doing
  471. 13:59with the c frame is the c frame is
  472. 14:01actually the positioning of the player's
  473. 14:03character so we're basically teleporting
  474. 14:04the player's character to specific
  475. 14:06coordinates so we're going to use the
  476. 14:07set primary part c frame method and then
  477. 14:10we're going to provide the c frame and
  478. 14:11to get the c frame what we're going to
  479. 14:12do is we're going to use the cell part
  480. 14:14so we're going to say cellpart.c frame
  481. 14:16and that's going to give us the c frame
  482. 14:17for exactly where the cell part at which
  483. 14:19is basically the location of the cell
  484. 14:21part and now before we test this what we
  485. 14:22can do is we can just go ahead and add
  486. 14:24in a quick print statement so we're just
  487. 14:26going to say print true and print true i
  488. 14:28like to do this when i'm testing out new
  489. 14:30code because if there are some issues in
  490. 14:31here like because for some reason maybe
  491. 14:33this function isn't teleporting us at
  492. 14:34all so this will easily allow for us to
  493. 14:36identify if the function is actually
  494. 14:38getting to this method call right here
  495. 14:39or say it's stopping right here because
  496. 14:41we didn't find the player's character i
  497. 14:43believe that this function that we have
  498. 14:44set up right now is basically completely
  499. 14:46guaranteed to work so realistically this
  500. 14:47debugging isn't required but i think
  501. 14:49it's really good to show you guys what i
  502. 14:51do sometimes because it might help you
  503. 14:52guys in the future anyways we're then
  504. 14:54going to start our game and see if this
  505. 14:55works so we have the cell button on the
  506. 14:57right side of our screen let's go ahead
  507. 14:58and click it and we see we just got
  508. 14:59teleported directly to the cell part
  509. 15:01let's go ahead and click a few times get
  510. 15:03some food click the sub button and we
  511. 15:04see we just got teleported to the saw
  512. 15:06part so that works exactly as it should
  513. 15:08so this works perfectly the last thing
  514. 15:10that we want to do is we want to
  515. 15:11actually add a cool down to using the
  516. 15:12cell button let's go ahead and remove
  517. 15:14these print statements right here and
  518. 15:16what we can do is we'll create another
  519. 15:18variable called cooldown equals false at
  520. 15:20the top of this function we're going to
  521. 15:21say if cooldown equals true then return
  522. 15:25end and what this means is that if the
  523. 15:27cooldown is set to true it's going to
  524. 15:29stop running the function and it's not
  525. 15:30going to go down to here at all so this
  526. 15:32function will only run if cooldown
  527. 15:34equals false let's actually rename this
  528. 15:36variable from cooldown to on cooldown
  529. 15:38because that might make it a little bit
  530. 15:40easier to understand so now we want to
  531. 15:41do is whenever we actually teleport the
  532. 15:43player we want to set on cooldown to
  533. 15:45true to prevent the player from using
  534. 15:47this once again and then after we
  535. 15:48teleport the player what we then want to
  536. 15:50do is we want to say task.wait three
  537. 15:52seconds because that's the cooldown and
  538. 15:54then once these three seconds are up
  539. 15:56we're gonna set cooldown back to false
  540. 15:58so that the player is no longer on
  541. 16:00cooldown so let's go ahead and start
  542. 16:01this up and see if it works so let's
  543. 16:03click the button we can see that we got
  544. 16:04teleported let's try to click it again
  545. 16:06it's not working but then after the
  546. 16:08three seconds is up it works once again
  547. 16:10so we're doing the same thing and that
  548. 16:11works exactly as it should the last
  549. 16:13thing that we want to do is want to
  550. 16:14actually adjust the button to display
  551. 16:16how many seconds the player has to wait
  552. 16:17before the cooldown expires so what
  553. 16:19we're going to do is we are going to
  554. 16:21remove the test.wait and we're going to
  555. 16:22create a new variable called cooldown
  556. 16:24and that's going to be equal to 3
  557. 16:25because we want the cooldown to be three
  558. 16:27seconds then we're going to create a
  559. 16:28while loop so we're going to say while
  560. 16:29cooldown is greater than zero and what
  561. 16:31we're actually going to do is we're
  562. 16:32going to say selbon.txt
  563. 16:35equals cooldown so this will change the
  564. 16:37cell bonds text to the actual cooldown
  565. 16:39then at the bottom we want to say
  566. 16:40task.wait one so that'll wait one second
  567. 16:43each time we loop through and then we
  568. 16:44want to say cooldown minus equals one so
  569. 16:47that we subtract one from the cooldown
  570. 16:48every single time this loop goes through
  571. 16:50and then the final thing that we want to
  572. 16:52do is we want to change the cell bun.txt
  573. 16:54after the cooldown expires to sell once
  574. 16:56again so let's go ahead and start our
  575. 16:58game and test this out so let's hit the
  576. 16:59sell button three
  577. 17:01two one
  578. 17:02sell so now we're able to sell again and
  579. 17:04let's see let's make sure that it's all
  580. 17:05working properly and it looks to be and
  581. 17:07yeah that works exactly as how it should
  582. 17:09be perfect anyways ladies and gentlemen
  583. 17:11that's gonna be it for this episode
  584. 17:12hopefully it did help you guys out as
  585. 17:13always if it did make sure you smash
  586. 17:14like button also hit the subscribe
  587. 17:15button and turn suppose notifications on
  588. 17:17if you want to get notified when i
  589. 17:18upload more roblox development content
  590. 17:20additionally i do have a patreon if you
  591. 17:21guys like to gain access to all the
  592. 17:22scripts and the game file that i made
  593. 17:24during this episode there's a link down
  594. 17:25below in description you guys go check
  595. 17:26it out with that being said i hope that
  596. 17:28you guys have a great day and i'll see
  597. 17:29you guys in the next episode

About this transcript

This page contains the full transcript of Creating the Sell Location! Roblox Studio Simulator Guide Episode 14 by MonzterDEV, generated from the public captions YouTube serves with the video. The transcript has 4,512 words across 597 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.