YouTube2Text

Creating Group Rewards! Roblox Studio Simulator Guide Episode 18 — Transcript

by MonzterDEV · 5,228 words · 684 segments · language en · Watch on YouTube

Full transcript

  1. 0:00what's going on ladies and gentlemen
  2. 0:01welcome back to the Roblox simulator
  3. 0:02Series in today's episode of the
  4. 0:04simulator series we are going to be
  5. 0:05going over how to create group rewards
  6. 0:07for your simulator now as always if this
  7. 0:09video does help you guys out or you guys
  8. 0:10do enjoy it make sure you smash like
  9. 0:12button also hit the Subscribe button and
  10. 0:13turn those post notifications on if you
  11. 0:14want to get notified when we upload more
  12. 0:15Roblox development content additionally
  13. 0:17I do have a patreon if you guys like to
  14. 0:18gain access to all the scripts and the
  15. 0:20game f i make during this episode
  16. 0:21there's a link Down Below in the
  17. 0:22description you guys go check that out
  18. 0:23and support me with that being said
  19. 0:24let's get right into it to quickly
  20. 0:26showcase the feature that I'm referring
  21. 0:27to we just joined the eating simulator
  22. 0:29which is a simulator that we're sort of
  23. 0:30recreating and we can see right here we
  24. 0:32have a group chest which says ready to
  25. 0:33open now when I step on it it actually
  26. 0:35says like the game plus join the group
  27. 0:37it says the group name to unlock this so
  28. 0:39This actually wants me to go to their
  29. 0:41game page and join their specific group
  30. 0:42and let's go do that real quick so on
  31. 0:44their game page it is made by their
  32. 0:46group so we can click on the group click
  33. 0:47on join group and now we are in the
  34. 0:49group if we now rejoin the game step on
  35. 0:51the group chest once again we can see we
  36. 0:53actually are rewarded a gy pops up says
  37. 0:56chest open come back tomorrow for more
  38. 0:57awesome rewards gives us a little bit of
  39. 0:59a reward and then we have a cool down
  40. 1:00it's very similar practically identical
  41. 1:02to the Daily chest that we made in the
  42. 1:04last episode and that's what we're going
  43. 1:05to be sort of doing with this episode
  44. 1:07we're going to be kind of continuing
  45. 1:08from what we learned in the last episode
  46. 1:10reusing some of that stuff and just
  47. 1:11adding on the specific things for the
  48. 1:13group system so now that we understand
  49. 1:14what we're going to be creating in this
  50. 1:16episode let's actually create a group on
  51. 1:18the Roblox website because we're
  52. 1:19obviously going to need that for this so
  53. 1:21to create a group on Roblox you just go
  54. 1:22to roblox.com group SLC create and now
  55. 1:25you're able to create your own group but
  56. 1:27it cost 100 Robux so once you input all
  57. 1:29the information that you want to and you
  58. 1:31create the group you're then able to get
  59. 1:32the group ID if you want to do this for
  60. 1:34a pre-existing group you can click on
  61. 1:36the groups button right here and you can
  62. 1:37view all the groups that you're inside
  63. 1:39of and click whichever one that you want
  64. 1:41to use most likely it's going to be the
  65. 1:42one that you own and my group for
  66. 1:44example is called euphor games now if I
  67. 1:46look in the URL we can see roblox.com
  68. 1:47groups SL and then eight numbers slth
  69. 1:50group name hashtag and then a little bit
  70. 1:52more in the URL what we want to do is we
  71. 1:54want to copy those numbers and we
  72. 1:56basically want to save these somewhere
  73. 1:57so we remember them for later because
  74. 1:59that's how we're going to identify what
  75. 2:01group the player needs to be in for the
  76. 2:03rewards so now that we got the group
  77. 2:04created we got the group ID let's go
  78. 2:06back into studio and actually start
  79. 2:07setting things up now inside of the
  80. 2:08studio the first thing we're going to
  81. 2:10want to do is we're going to want to
  82. 2:11recreate the Daily chest that we have
  83. 2:12right here so all I'm going to do is I'm
  84. 2:14going to select this I'm going to
  85. 2:15duplicate this like I said I'd highly
  86. 2:17recommend that you guys go back and
  87. 2:18watch the previous episode which covered
  88. 2:19the entire process that we're going to
  89. 2:21sort of go over once again today but in
  90. 2:23more detail today we're basically going
  91. 2:24to brush over all the stuff that we
  92. 2:26learned in the last episode and then
  93. 2:27expand upon it anyways now that we got
  94. 2:29the chest duplicated what we're going to
  95. 2:30do is drag it over a little bit we are
  96. 2:32going to rename that from daily reward
  97. 2:34to group reward we're then going to go
  98. 2:36inside of the billboard GUI and we want
  99. 2:37to change the title from displaying
  100. 2:39Daily chest to group chest and we
  101. 2:41probably want the color to be blue if
  102. 2:43we're trying to match eating simulators
  103. 2:45so a nice little light blue like that
  104. 2:47and I'm not going to adjust the entire
  105. 2:48model to be blue we're not really
  106. 2:49focusing on modeling and stuff like that
  107. 2:51in this series it's mostly about
  108. 2:52scripting and learning how to do that
  109. 2:54stuff anyways we now have our group
  110. 2:55reward model set up what we then want to
  111. 2:57do is we want to go inside of the server
  112. 2:58script service inside of the script
  113. 2:59scriptable object script we can see this
  114. 3:01is where we actually listened to the
  115. 3:02Daily reward touch part getting touched
  116. 3:04and did all of that stuff right inside
  117. 3:06of here what we can pretty much do is we
  118. 3:07could just copy and paste this function
  119. 3:10right here and then instead of the daily
  120. 3:11reward we of course want to use the
  121. 3:13group reward part and that's of course
  122. 3:14going to have the touch part because we
  123. 3:16just duplicated the daily reward part
  124. 3:17anyway now inside of here we're
  125. 3:18comparing the current time to the
  126. 3:20player's cooldown which is the player.
  127. 3:22daily reward instead of daily reward
  128. 3:24what we're going to do is we're going to
  129. 3:25say group reward and we can replace all
  130. 3:27of the daily reward instances with that
  131. 3:29and we can also replace this daily
  132. 3:30reward instance right here so we're
  133. 3:31going to set the group reward value to
  134. 3:34the cool down which is going to be 24
  135. 3:35hours which is 86,400 seconds and then
  136. 3:38right here is where we're actually
  137. 3:39firing the daily reward remote we
  138. 3:41probably are going to create a new
  139. 3:42remote to handle the group rewards but
  140. 3:44we're basically going to handle it the
  141. 3:45same way the next thing we need to do is
  142. 3:47we need to set up the player data
  143. 3:48because we don't actually have the group
  144. 3:50word player data set up so what we're
  145. 3:51going to do is inside of the player data
  146. 3:53script we can hit crlf and just search
  147. 3:55for all instances of daily reward and we
  148. 3:58can pretty much know that we just need a
  149. 3:59dupc at this data and then just rename
  150. 4:01it to group reward so we're going to hit
  151. 4:03contrl H and replace the word daily with
  152. 4:05the word group so group group group and
  153. 4:08we need to make sure that the G here is
  154. 4:10capitalized so there we go and then
  155. 4:12right down here we're going to duplicate
  156. 4:14that and instead of daily we are going
  157. 4:16to say group reward and we'll just copy
  158. 4:19paste that copy paste that copy paste
  159. 4:21that and then once again we have that
  160. 4:23right here so we can say replace that
  161. 4:25with group and now group there we go and
  162. 4:29then we're going to C copy and paste
  163. 4:31this so now we have group reward equals
  164. 4:33group reward and there we go now all the
  165. 4:35data is handled exactly the same way
  166. 4:37that we handle the daily reward so
  167. 4:38that's all perfectly fine we just
  168. 4:40basically had to make sure that
  169. 4:41everything we did for the daily reward
  170. 4:42we also did for the group reward as well
  171. 4:44so now back inside of the scriptable
  172. 4:45objects we see once we touch this part
  173. 4:47and now we actually have this data which
  174. 4:48is perfect and then we're able to
  175. 4:50actually set the cool down because we
  176. 4:51now have that data as well right here is
  177. 4:53where we're giving the player the reward
  178. 4:55maybe since they joined our group what
  179. 4:56we want to do is we want to give them
  180. 4:57like 5,000 instead of just 1,000 so we
  181. 4:59can change the amount right there and we
  182. 5:01should also change this from 1,000 to
  183. 5:025,000 as well and also this is something
  184. 5:04that I thought of too instead of writing
  185. 5:05this number two times what we should do
  186. 5:07is just create a variable for it real
  187. 5:08quick so we can say local reward equals
  188. 5:101,000 now the reason I'm creating the
  189. 5:12variable inside of here is because most
  190. 5:14likely you're probably going to want to
  191. 5:15base the reward off of a certain player
  192. 5:17stat because imagine if a player's level
  193. 5:18one and you give them 1,000 coins right
  194. 5:20that's perfectly fine but if you give a
  195. 5:22player that's level 100 1,000 coins
  196. 5:24that's not a good incentive to make them
  197. 5:26want to actually get the daily reward
  198. 5:27instead of giving them 1,000 coins you
  199. 5:29probably want to give them 100,000 coins
  200. 5:31or something in that regard for the
  201. 5:32reward to actually be rewarding so
  202. 5:34considering this reward is static and
  203. 5:35it's never actually changing what would
  204. 5:37be a better idea is probably creating
  205. 5:39the variable up here and then we would
  206. 5:41make it a static variable and we would
  207. 5:42put that in all caps and then instead of
  208. 5:44saying 1,000 we would say the reward the
  209. 5:46reward and we could actually even rename
  210. 5:48this if we wanted to so from reward to
  211. 5:50daily daily reward oh we're actually
  212. 5:53messing that up so all I'm going to do
  213. 5:54is simply paste paste paste there we go
  214. 5:57so now it's daily reward and then if we
  215. 5:58want to do the same thing for the group
  216. 6:00reward we can do that as well so group
  217. 6:02reward is going to equal let's just say
  218. 6:045,000 instead and then we'll put that
  219. 6:06right there put that right there and
  220. 6:07there we go now we don't have to repeat
  221. 6:09the number we just have to put the
  222. 6:10variables where they need to go and that
  223. 6:11works good like I said if you guys are
  224. 6:12going to be basing the reward off of a
  225. 6:14player's level obviously create the
  226. 6:16reward variable inside of here you don't
  227. 6:18have to create the variable outside
  228. 6:19because you really can't the next thing
  229. 6:21we want to do is we might as well make a
  230. 6:23new remote event so inside the
  231. 6:24replicated storage inside of remotes we
  232. 6:26have the daily reward remote event we're
  233. 6:28just going to duplicate that and rename
  234. 6:29name it to group reward so now that we
  235. 6:31have group reward we can just copy and
  236. 6:33paste that there so now this is going to
  237. 6:35fire the group reward remote event and
  238. 6:37it's going to fire it with the group
  239. 6:38reward and it's going to fire it
  240. 6:40similarly to the Daily reward so what we
  241. 6:41want to do now is inside of the if
  242. 6:43player then we want to say if player
  243. 6:45semicolon is in group and now we need to
  244. 6:48pass through the group ID which is the
  245. 6:50eight numbers that we got from the URL
  246. 6:52before and mine was this number right
  247. 6:54there so if the player is in that group
  248. 6:57then and now we actually want to move
  249. 6:58this if statement inside of this if
  250. 7:00statement so if the player is in the
  251. 7:02group then we're going to check their
  252. 7:03time and compare it and then we might
  253. 7:05give them a reward otherwise we're going
  254. 7:06to say that they have to wait the 24
  255. 7:08hours but now if the player is not in
  256. 7:10the group we want to notify them to join
  257. 7:13the group to get the reward so if the
  258. 7:15player is not in the group that's what
  259. 7:16this L statement is saying right here
  260. 7:18then we want to tell player they're not
  261. 7:22in the group and there we go so the next
  262. 7:25thing we should do is go inside of our
  263. 7:27started GUI inside of the daily reward
  264. 7:29and we're going to be handling the group
  265. 7:30reward inside of the daily reward GUI
  266. 7:33the reason for that is because they're
  267. 7:34practically identical in eating
  268. 7:36simulator now in your own game you don't
  269. 7:38need to do exactly everything that I'm
  270. 7:40doing I'm just telling you why we're
  271. 7:42doing it in my opinion I don't think
  272. 7:43it's the best idea to have the daily
  273. 7:45reward and the group reward all combined
  274. 7:47into one thing but based off eating
  275. 7:49simulator situation it's really
  276. 7:50unnecessary to separate the two so
  277. 7:52inside of the manager inside of the
  278. 7:54daily reward we listen to the Daily
  279. 7:55reward remote event right here what
  280. 7:57we're going to do is we're going to
  281. 7:58duplicate that instead of just listening
  282. 7:59to the Daily reward event we're going to
  283. 8:00listen to the group reward event as well
  284. 8:02and both these are going to call the
  285. 8:04reward function so whenever we fire this
  286. 8:06remote off on the server we're going to
  287. 8:08pass through the group reward or not
  288. 8:09going to pass through any reward and if
  289. 8:11we don't pass through any reward then
  290. 8:12it's going to pop up with that little
  291. 8:13warning frame saying that we're unable
  292. 8:15to open the chest right now so we really
  293. 8:16don't have to change anything here this
  294. 8:18works exactly as it should the only
  295. 8:19thing that we really need to do is one
  296. 8:21create the GUI to tell the player to
  297. 8:23actually join the group and also when it
  298. 8:25comes to displaying the cooldown timer
  299. 8:26inside of the billboard GUI on the
  300. 8:28specific chest so currently we have the
  301. 8:30daily reward part right up here let's go
  302. 8:31ahead and duplicate that instead of just
  303. 8:33saying the daily reward we'll have the
  304. 8:34group reward as well so group reward
  305. 8:37part just like that now if we look
  306. 8:39inside of the display time function we
  307. 8:40can see that we use the daily reward
  308. 8:42part right here right here and right
  309. 8:43here what we're going to do to make this
  310. 8:44function a little bit more versatile is
  311. 8:46we are going to create a variable right
  312. 8:48under here and we're going to say local
  313. 8:50part equals and now we're going to say
  314. 8:52if and inside of this function we want
  315. 8:54to actually accept an argument and that
  316. 8:56argument is going to be part for right
  317. 8:59now now it's just actually going to be a
  318. 9:00string and basically this string is
  319. 9:02going to either be daily or group so
  320. 9:04we're going to say if part equals and
  321. 9:07remember this is a string it's not
  322. 9:08actual part so if part equals daily then
  323. 9:11the part is going to equal this right
  324. 9:14here so it's going to equal the daily
  325. 9:15reward part. billboard guy. time else
  326. 9:18it'll equal the group reward part.
  327. 9:21billboard guy. time now instead of using
  328. 9:23the daily reward part. billboard guy.
  329. 9:26time we're just going to replace all of
  330. 9:27these with part. visible equals true
  331. 9:29part. text equals the format time and
  332. 9:31then part. visible equals false just
  333. 9:34like that now I want to format this a
  334. 9:35little bit nicer what I kind of like to
  335. 9:37do with these if statements is I like to
  336. 9:38put them on two lines so that it's a
  337. 9:40little bit easier to look at but you
  338. 9:42guys don't have to do this it kind of
  339. 9:43looks a little bit ugly that way I'm not
  340. 9:45going to lie but hey I think it's a
  341. 9:46little bit easier on the eyes to see
  342. 9:48exactly what's going on here so now when
  343. 9:50we're listening for the daily reward
  344. 9:51value to change what we're going to do
  345. 9:53is we're going to pass through daily
  346. 9:54right here and then also when we first
  347. 9:56call this we want to also pass through
  348. 9:58daily as well just like that but now we
  349. 9:59also want to do the exact same thing for
  350. 10:01the group reward so we're going to
  351. 10:02duplicate this we're going to say group
  352. 10:04reward change because that's the value
  353. 10:06that we're creating and giving to the
  354. 10:07player when they first join the game
  355. 10:08because of how we handle the data so
  356. 10:10with this we're just going to pass
  357. 10:11through group since we call this for
  358. 10:12daily we're also going to call it for
  359. 10:13group as well and we're just going to
  360. 10:15pass through group and that should be
  361. 10:16good to go so let's go ahead test out
  362. 10:18the basic functionalities of this let's
  363. 10:19start up our game we load in and we see
  364. 10:21that we have the group chest and the
  365. 10:23Daily chest let's go ahead step on The
  366. 10:24Daily chest we get a notification that
  367. 10:26pops up says the chest was open and if
  368. 10:28we step on it again we see we get the
  369. 10:30notification that we can't open it right
  370. 10:31now then if we go over to the group
  371. 10:32chest and open it up the time pops up
  372. 10:34for that as well and we see that we got
  373. 10:35the 5K so that works perfectly now one
  374. 10:37of the things that you might have
  375. 10:38noticed is that both the cooldown
  376. 10:40displays for the group chest and the
  377. 10:42daily reward chest are exactly the same
  378. 10:44and that's actually because we forgot to
  379. 10:45change the cooldown that we set right
  380. 10:47here and that's because the cooldown is
  381. 10:49actually just the daily rewards
  382. 10:50currently so what we want to do is
  383. 10:52basically the exact same thing that we
  384. 10:53did down here so if part equals daily
  385. 10:55then we're going to listen to The Daily
  386. 10:56reward value otherwise we'll listen to
  387. 10:58the group reward value so we just going
  388. 10:59to copy this if statement paste it right
  389. 11:01there and then just change the values if
  390. 11:03daily then the coold down actually
  391. 11:04equals that else it'll equal that so
  392. 11:08group reward so if party equals daily
  393. 11:09then it'll be the daily reward otherwise
  394. 11:11it's going to be the group reward value
  395. 11:12that we'll listen to for the cool down
  396. 11:14there's one more issue in this
  397. 11:15particularly that when we start our game
  398. 11:17if we look we see that we have the Daily
  399. 11:19chest cool down displayed but we don't
  400. 11:21have the group chest cool down displayed
  401. 11:22and the reason for that is because where
  402. 11:24we call the display time for the daily
  403. 11:27we call Daily first and then we call
  404. 11:28group second when we call display time
  405. 11:30we actually have a while loop running
  406. 11:32which will continuously run until the
  407. 11:34cool down has expired now the issue with
  408. 11:36this is that once this function is
  409. 11:37called it's going to go through all of
  410. 11:39this code right here if it makes it down
  411. 11:40to the while loop and the while loop is
  412. 11:42continuously running then display time
  413. 11:44group is never going to be reached until
  414. 11:46the while loop breaks and then once the
  415. 11:48while loop breaks first part dive
  416. 11:49visible is going to become false and
  417. 11:51then since this function's done it's
  418. 11:53going to continue back down to here and
  419. 11:54then it'll run display time for group
  420. 11:57now there's two ways to handle this one
  421. 11:58we could WP our function calls inside of
  422. 12:01task. spawn which I went over this in
  423. 12:03the last episode this will basically
  424. 12:04spawn a new thread for this function
  425. 12:07actually run on so now when test. spawn
  426. 12:09and then this function is called the
  427. 12:10codee's not going to stop it's going to
  428. 12:12see this it's going to do this and then
  429. 12:13instantly go to display time. group and
  430. 12:15not wait for the display time function
  431. 12:17to finish processing so if we start a
  432. 12:18game we can see this works as it should
  433. 12:21the other way to handle this is rather
  434. 12:22than wrapping our function call inside
  435. 12:24of the task. spawn which realistically
  436. 12:26we should do it for both of these
  437. 12:27display. times just in in case we for
  438. 12:29some reason forgot or if we ever added
  439. 12:31something below this display time group
  440. 12:33and we forgot that we needed to add a
  441. 12:35task. spawn we might be debugging for a
  442. 12:37little bit and I think it's good to stay
  443. 12:38organized and wrap them both in task.
  444. 12:40spawn calls the alternative solution
  445. 12:42would be to wrap everything in your
  446. 12:43function in a task. spawn so we could
  447. 12:45say task. spawn and then function create
  448. 12:48a new function and then put everything
  449. 12:51from inside of here into here and this
  450. 12:54works too but it really just depends on
  451. 12:55whatever you want to do the only
  452. 12:57difference between the two is that we're
  453. 12:58using task. right here so now we could
  454. 13:00call this function whenever we want to
  455. 13:02without actually having to worry about
  456. 13:03using task. spawn again so it is more
  457. 13:05convenient but it really doesn't matter
  458. 13:07whatever you want to do works one thing
  459. 13:08you might be curious of though is that
  460. 13:10why do we not need to wrap the display
  461. 13:12time function calls inside a change with
  462. 13:14the task. spawn the simplest way to
  463. 13:15think about this is that whenever you
  464. 13:17listen to an event imagine that they're
  465. 13:19basically wrapped in task. spawns
  466. 13:21already so whenever you connect to an
  467. 13:22event it's not going to be stalled and
  468. 13:24it'll basically be spawned on its own
  469. 13:25thread so you don't have to use task.
  470. 13:27spawn inside of it because it basically
  471. 13:29al already exists that might not be
  472. 13:31technically correct but hopefully I
  473. 13:32explained it in a way that you guys
  474. 13:34understand it anyway with all that being
  475. 13:35said let's start up our game again and
  476. 13:36make sure that the cooldowns work and
  477. 13:38everything's all good so we can see the
  478. 13:39cooldowns are being displayed if we step
  479. 13:41on this it says you cannot claim this
  480. 13:43chest right now and it says the same for
  481. 13:44this one as well so that works all good
  482. 13:46the last thing that we want to do is we
  483. 13:47want to create the gy the player will
  484. 13:48see when they're not in the group and we
  485. 13:50want to tell them to join the group so
  486. 13:52inside of a daily reward we already have
  487. 13:53the notification frame we're just going
  488. 13:55to duplicate that make it visible so we
  489. 13:56can see it and then we're going to
  490. 13:57modify it a little bit because looks
  491. 13:59very similar to the frame which they
  492. 14:00have that tells the player to join the
  493. 14:02group so we're just going to rename this
  494. 14:03Frame to group because we know that that
  495. 14:05is telling the player to join the group
  496. 14:06you can rename it to whatever you feel
  497. 14:07comfortable with then let's actually
  498. 14:09resize this a little bit it's a little
  499. 14:10bit larger so probably something like
  500. 14:12that the position of it we of course
  501. 14:14want that to be centered again so there
  502. 14:16we go now the title we're going to
  503. 14:17adjust the title to say thumbs up emoji
  504. 14:20like game plus join group and there we
  505. 14:24go we probably want to move this up just
  506. 14:26a tiny bit some something like that
  507. 14:30looks pretty good and then we'll
  508. 14:31actually duplicate the title we'll bring
  509. 14:33it down just a little bit and just
  510. 14:35something like that we'll probably
  511. 14:36adjust it again in a second then we want
  512. 14:37to rename this label to group and this
  513. 14:40is going to be the group name so the
  514. 14:41name of our group is going to just be
  515. 14:43yum for this example so there we go and
  516. 14:45they have the color of their text a
  517. 14:47little bit different so it's like a pink
  518. 14:49and that looks pretty good and then we
  519. 14:50can just delete the reward and the
  520. 14:52message and we'll just simply copy the
  521. 14:54title once again bring this down to here
  522. 14:57and this bottom text is is we're just
  523. 14:59going to rename this to bottom because
  524. 15:01the text label doesn't really matter
  525. 15:02that much and this is going to be to
  526. 15:04unlock this exclamation mark so there we
  527. 15:06go we've got that we might also want to
  528. 15:08increase the size of the group name so
  529. 15:10there we go that works and then we want
  530. 15:12to add an image label inside of here so
  531. 15:16we can resize the image label a little
  532. 15:18bit we want to make sure that the image
  533. 15:19label is scaled so 0.5 comma .5
  534. 15:22something like that that looks good and
  535. 15:24then we want to move it around a little
  536. 15:25bit uh let's go ahead and Center it real
  537. 15:28quick so .5 comma. 5.5 comma 0 comma 5
  538. 15:32comma 0 there we go and now let's just
  539. 15:34resize this a little bit so stretch it
  540. 15:36out like that taller okay there we go
  541. 15:39once again resize it to the center H
  542. 15:41actually we want to bring it down a
  543. 15:42little bit so let's just say like that
  544. 15:45and like that there we go and then we of
  545. 15:48course want to add our image to it and
  546. 15:51we could just rename this to image it
  547. 15:52doesn't really matter and now of course
  548. 15:53we want to add our image to it which
  549. 15:55would be like our logo for our group but
  550. 15:58you guys can do whatever you want with
  551. 15:59it I'm just going to leave it blank for
  552. 16:00now and then also for the exit button it
  553. 16:02looks a little ugly I kind of want to
  554. 16:03stretch it out a little bit more like
  555. 16:04that so I think that looks pretty good
  556. 16:06and then let's check the mobile view to
  557. 16:08make sure everything is scaled correctly
  558. 16:10it's all scaled correctly so that works
  559. 16:11perfectly awesome so now what we can do
  560. 16:13is we could go back inside of the
  561. 16:15manager and handle all the work of that
  562. 16:17GUI inside of here rather than doing
  563. 16:19that I'm going to be a little bit more
  564. 16:20organized although kind of less
  565. 16:22organized considering that we put some
  566. 16:24of the group handling code into this but
  567. 16:27that's just because it does all the same
  568. 16:28stuff anyway uh we're actually going to
  569. 16:30handle that gu in its own local script
  570. 16:32over here so I'm just going to copy the
  571. 16:33basic variables that we normally use and
  572. 16:35actually I want to include this exit
  573. 16:37button click right there as well cuz
  574. 16:39that's what we're going to use too so
  575. 16:40now we don't need the parts inside of
  576. 16:41here we do want to use the remotes
  577. 16:43because we're going to listen for a
  578. 16:44remote we don't need the forbat number
  579. 16:46we might want the player we want the GUI
  580. 16:48we don't want the notification frame
  581. 16:49though we want the group frame so we're
  582. 16:51going to say d Roy gu. group and we're
  583. 16:53going to say group frame and we have the
  584. 16:55exit button so group frame. exit button
  585. 16:58and then we don't have any reward text
  586. 17:00we just need the exit button that's it
  587. 17:01and we also don't need the warning
  588. 17:03neither so now whenever we click the
  589. 17:04exit button we actually want to make the
  590. 17:06group frame not visible so just like
  591. 17:08that and now we should create another
  592. 17:10remote inside of here to tell the player
  593. 17:11to actually join the group so we could
  594. 17:13call this like group join join group I'm
  595. 17:16just going to call it group join I guess
  596. 17:17just because it fits the theme of group
  597. 17:19reward so we're then going to say
  598. 17:20remotes dog groupjoin Doon client event
  599. 17:24connect and we'll just create a function
  600. 17:25inside of here and then all we're going
  601. 17:26to do is we are going to make the group
  602. 17:29frame. visible equals true so the player
  603. 17:31is able to see the frame whenever they
  604. 17:33get this notification and then back
  605. 17:34inside of the scriptable object script
  606. 17:36what we're going to do so first we check
  607. 17:37if the player is found and then if the
  608. 17:39player is found we check if they're in
  609. 17:40the group and if the player is not in
  610. 17:42the group we then want to tell them to
  611. 17:43join the group so we're going to use
  612. 17:44this we we'll just copy this remote
  613. 17:46right here and we'll say instead of
  614. 17:47group reward we're going to say group
  615. 17:49join and we're just going to fire the
  616. 17:50client and then on the client we'll
  617. 17:51listen to that and set the visibility to
  618. 17:53be true so now just to test this out
  619. 17:54real quick I'm just going to switch this
  620. 17:56if statement so that even if we are in
  621. 17:57the group it thinks that that we're not
  622. 17:59just so we can see the notification GUI
  623. 18:01pop up and actually we need to make that
  624. 18:02not visible when the game starts up but
  625. 18:04let's go ahead step on the group chest
  626. 18:05and we can see we actually have an error
  627. 18:06in the client at line 17 so let's go
  628. 18:09look at that real quick so line 17 group
  629. 18:11frame does not have this property oh
  630. 18:13it's because we spelled visible wrong
  631. 18:14duh okay so now we start the game up
  632. 18:17hopefully that will work so step on this
  633. 18:19and we can see like game plus join group
  634. 18:21that's our group name to unlock this and
  635. 18:23then of course the picture would appear
  636. 18:24here and that works exactly as eating
  637. 18:25simulator does so that's perfect what we
  638. 18:27then want to do is we want to make sure
  639. 18:29that we set this Frame to not visible
  640. 18:31when it shouldn't be and we also want to
  641. 18:33reset this if statement that I just
  642. 18:34changed to do a little bit of debugging
  643. 18:36and make sure everything works and the
  644. 18:37final thing that we want to do is inside
  645. 18:38of the player data we want to reset the
  646. 18:40data real quick so we can test this and
  647. 18:41make sure that it all works out as it
  648. 18:42should with a fresh start so we spawn in
  649. 18:44the game now they're displaying
  650. 18:45cooldowns we'll step on Daily chest
  651. 18:47first and we can see the chest has been
  652. 18:49opened we got 1K the cooldown is now
  653. 18:51displayed let's step on group chest we
  654. 18:52can see cool down displayed we got 5K
  655. 18:55the GUI pops up if we try to step on
  656. 18:56either of these it says you cannot claim
  657. 18:58this ch right now let's stop our game
  658. 19:00let's start our game and make sure that
  659. 19:01the data is saved and it still persist
  660. 19:03and yeah it still works it looks all
  661. 19:04good and it's working exactly as it
  662. 19:06should so with that being said ladies
  663. 19:07and gentlemen that's going to be it for
  664. 19:08this episode it was pretty simple and
  665. 19:09easy to do especially if you guys
  666. 19:11watched the last episode the only
  667. 19:12difference was just making an if
  668. 19:13statement for handling if the player was
  669. 19:15in the group or not anyways with that
  670. 19:16being said hopefully this video did help
  671. 19:17you guys out if it did or you guys did
  672. 19:19enjoy it make sure you smash like button
  673. 19:20also hit the Subscribe button and turn
  674. 19:21this post notifications on if you want
  675. 19:22to get notified want to upload more
  676. 19:23Roblox velic content additionally I do
  677. 19:25have patreon if you guys like to gain
  678. 19:26access to all the scripts and the game f
  679. 19:28made during this episode there's a link
  680. 19:29Down Below in the description you guys
  681. 19:30go check it out and support me with that
  682. 19:32being said I hope that you guys have a
  683. 19:33great day and I'll see you guys in the
  684. 19:34next episode

About this transcript

This page contains the full transcript of Creating Group Rewards! Roblox Studio Simulator Guide Episode 18 by MonzterDEV, generated from the public captions YouTube serves with the video. The transcript has 5,228 words across 684 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.