YouTube2Text

How to make A Pet Simulator X Game on Roblox - Part 11 — Transcript

by polarisprog · 2,004 words · 321 segments · language en · Watch on YouTube

Full transcript

  1. 0:00hi everyone and welcome back to a new
  2. 0:02tutorial on the how to make a pet
  3. 0:04simulator XL game series in this video
  4. 0:06uh we're going to be taking a look at
  5. 0:08how to make an unequip all button and an
  6. 0:11equip best button and we are also going
  7. 0:13to be uh adding this text label that
  8. 0:16will display how much damage each pet
  9. 0:18deals to uh drops and coins
  10. 0:23also if you guys want to support me and
  11. 0:25want to have access to all of my project
  12. 0:27files including the one you're watching
  13. 0:29right now that will all be available on
  14. 0:30my patreon in details here
  15. 0:33okay so the first thing we're gonna do
  16. 0:35is work on an equip best button so what
  17. 0:37I'm going to do is I'm going to make the
  18. 0:40button itself so I'm going to go to main
  19. 0:42SS and I'm going to go to frames for
  20. 0:45inventory Mainframe I'm going to make
  21. 0:47the button inventory visible and I'm
  22. 0:49going to add a button called equip best
  23. 0:52so I'm going to duplicate the close
  24. 0:54button uh move it here and I'm going to
  25. 0:57call it rename it to equip best and I'm
  26. 1:01going to set the text of the label so
  27. 1:04tags to equip uh best
  28. 1:11and now what I'm going to do is
  29. 1:15and select
  30. 1:17the gradient and I'm going to change it
  31. 1:20because I don't want it to be red I want
  32. 1:22it to be a nice green uh I'm going to
  33. 1:25look for a nicer green why is it red
  34. 1:28from the other side we'll change that
  35. 1:29later but now I want to own it to be
  36. 1:32like that and then here
  37. 1:34it's going to be a
  38. 1:36okay so I want this to be a lighter
  39. 1:38green
  40. 1:40and on the bottom I want it to be a dark
  41. 1:43uh green a darker green
  42. 1:46that's good okay uh now what I'm gonna
  43. 1:49do is just uh select both of these
  44. 1:53maybe I can move this one here and this
  45. 1:56one here
  46. 1:58and equipus is going to be here I know
  47. 2:00that's some of the UI but we'll we'll
  48. 2:02fix that later
  49. 2:04but for now I think equip best should
  50. 2:06just be
  51. 2:08right here and the close button I'm
  52. 2:11going to get it and put it up here okay
  53. 2:14I think that's good enough for now
  54. 2:16uh
  55. 2:18I'm going to reposition it and remove
  56. 2:21the closes thing and I think that's it
  57. 2:25that's all I need to do now I'm going to
  58. 2:27make the pet inventory invisible
  59. 2:30and I'm going to script the button so
  60. 2:33I'm going to go to starter player
  61. 2:34scripts X client and I'm going to scroll
  62. 2:37all the way down actually all the way up
  63. 2:39sorry and we're going to get the uh
  64. 2:43equip best button so local equip local
  65. 2:47equip best equals
  66. 2:50um invent no yeah inventory frame column
  67. 2:54with child equip best so equip best I
  68. 2:59think that's how it's going to work yes
  69. 3:01and what I'm going to do now is whenever
  70. 3:03we click it we're going to equip this so
  71. 3:05I'm going to make a function up here
  72. 3:08called equibus so local function equip
  73. 3:11best and what I'm gonna do in here is
  74. 3:16check if that button is clicked so uh
  75. 3:21equip best
  76. 3:23the text not the the uh what is it
  77. 3:28give us the function and we don't want
  78. 3:30the function so we're going to go up
  79. 3:31here and we're going to change this to a
  80. 3:33quick best button
  81. 3:35and we're gonna go down again and equip
  82. 3:38best button
  83. 3:40not Mouse button one click so the mouse
  84. 3:43button one click come on connect
  85. 3:46function and what we're going to do
  86. 3:49whenever we click it is called the equip
  87. 3:50best function so it could best any of
  88. 3:53the equip best function and what we're
  89. 3:55going to do is because we are in the
  90. 3:57client uh we'll call this remote and
  91. 3:59equip all pets
  92. 4:01and then we're going to do this so just
  93. 4:03like we're in equip unequipping
  94. 4:05something we're gonna do that
  95. 4:06and after doing it uh we will actually
  96. 4:09equip create a remote event
  97. 4:13uh or wait or a remote function so
  98. 4:16remote uh duplicate the purchase store a
  99. 4:18remote and we're going to call it
  100. 4:21um
  101. 4:22equip best
  102. 4:25okay so local result or local best bet
  103. 4:30equals uh remote
  104. 4:34dot equip best
  105. 4:36on invoke server
  106. 4:39okay so invoke server and thus go into
  107. 4:43taking nothing actually and now we're
  108. 4:46going to go down here and we'll enter
  109. 4:48the main server script and what I'm
  110. 4:50gonna do is
  111. 4:52whenever
  112. 4:54okay so whenever we call that remote so
  113. 4:58game dot replicator storage candle
  114. 5:00replicator storage dot remote
  115. 5:04oh what am I doing again the replicator
  116. 5:06storage is not remotes dot
  117. 5:09um
  118. 5:10equip best
  119. 5:12on server invoke equals function and
  120. 5:16what we're going to do in here is take
  121. 5:18the blurb okay now I'm going to Loop
  122. 5:21through every single pad that the player
  123. 5:22has
  124. 5:24so
  125. 5:26we're going to we're going to create an
  126. 5:28empty variable called local best pet
  127. 5:31equals now
  128. 5:33and local best
  129. 5:35damage
  130. 5:38equals or best stats best stats equals
  131. 5:42zero
  132. 5:44and what we're gonna do in here is for
  133. 5:47underscore comma V in
  134. 5:50uh
  135. 5:53okay so best stats best bet in player
  136. 5:58top Pets Come and Get children
  137. 6:03local pet stats
  138. 6:06equals uh
  139. 6:08that's if we do we have a folder for the
  140. 6:11pets
  141. 6:13no sorry called certificate of storage
  142. 6:16or game the applicator storage.pets
  143. 6:19square bracketsv.name and what we're
  144. 6:23going to do dot damage dot value
  145. 6:27okay so we got the pet stats and what
  146. 6:30we're gonna do now is if
  147. 6:33best stats
  148. 6:35uh is less than
  149. 6:38actually is actually not with bad stats
  150. 6:41is greater or equal to
  151. 6:45best stats then
  152. 6:48best stats equals pet stats
  153. 6:52and that starts and the best pet equals
  154. 6:57V
  155. 6:59dot name
  156. 7:00now we will return
  157. 7:04actually gonna print uh best bet
  158. 7:08and then we will just return best at
  159. 7:12that's going to return us the Best Bets
  160. 7:15name now what we're gonna do in here is
  161. 7:17when we uh so that's going to give us a
  162. 7:20result and what we're going to do now is
  163. 7:22whenever this result whenever we get
  164. 7:25this result uh
  165. 7:27and we'll uh basically just equip it so
  166. 7:30what I'm going to do is uh
  167. 7:35copy this
  168. 7:37but we okay so we already did this now
  169. 7:40what I'm gonna do is just copy this
  170. 7:42right here
  171. 7:43paste it here but instead of Click
  172. 7:45templates it's going to be I'm going to
  173. 7:47get the template so local template local
  174. 7:49uh best pet template
  175. 7:52equals scrolling frames square brackets
  176. 7:55best pet
  177. 7:57and then what we're going to do is uh
  178. 8:00best template
  179. 8:03best template.name
  180. 8:05okay that should work I think and now
  181. 8:10we're gonna see this works so three two
  182. 8:13one
  183. 8:14uh let's see how that's gonna look
  184. 8:17okay so let's see which pets I have
  185. 8:20these parts uh and I forgot to make them
  186. 8:22display which stats they have but we
  187. 8:25have a bunny what are the stats of the
  188. 8:26bunny
  189. 8:27so the bunny stats
  190. 8:30uh I don't want the bunny from here I
  191. 8:33want the bunny from here
  192. 8:35uh
  193. 8:38um yes this
  194. 8:41uh so it has a damage of 100 what about
  195. 8:45the cat so the cat has a damage of
  196. 8:52uh tan so when I click the best it
  197. 8:56should equip the bunny so equip best
  198. 8:59equips the bunny and we're all good and
  199. 9:03we have a working equip best button so
  200. 9:06now you can just go here click with best
  201. 9:08and it will work you can also still
  202. 9:10change it but if I press equip best it
  203. 9:13will actually put the bunny and it works
  204. 9:15just fine uh okay so what I'm gonna do
  205. 9:17now is uh make an
  206. 9:22unequip uh old buttons so I'm going to
  207. 9:26just make the pad inventory visible and
  208. 9:30I'm going to get my close button and I'm
  209. 9:32going to duplicate it put it right here
  210. 9:35right next to this one and I'm going to
  211. 9:37put both of them on the center
  212. 9:39and I'm going to just let me just close
  213. 9:42off the workspace it's annoying uh I'm
  214. 9:45going to just
  215. 9:46um select this
  216. 9:48change the text of this to
  217. 9:51uh to unequip all and I'm going to
  218. 9:57change the name I'm going to remove the
  219. 10:00closest thing and I'm going to change
  220. 10:02the name to uh
  221. 10:05on equip all
  222. 10:08and now we will enter the
  223. 10:11X client and we will
  224. 10:14just
  225. 10:16get the unequipped all buttons so local
  226. 10:18unequip local unequip all uh button
  227. 10:24equals inventory frame calling for child
  228. 10:27unequip all and what we're gonna do is
  229. 10:31uh unequip all
  230. 10:34I'm gonna do it in here unequip oh oh my
  231. 10:37God I hate these
  232. 10:39empty lines uh Uncle all button dot
  233. 10:42mouse button one click so the mouse
  234. 10:44button one click on connect function and
  235. 10:49what we're going to do is uh
  236. 10:52copy this right here
  237. 10:57and uh
  238. 11:00paste it in
  239. 11:03okay so this should unequiv all but when
  240. 11:06we click on equip all which is great
  241. 11:09let's see liquid best ungroup all works
  242. 11:12just fine we can also spam them and they
  243. 11:15will still work
  244. 11:17okay I'm happy with that now what we
  245. 11:19need to do is make them display their
  246. 11:22damage so what I'm gonna do is
  247. 11:26just
  248. 11:28because think uh okay I need to go to
  249. 11:31the template scrolling from template to
  250. 11:33make it visible
  251. 11:35and I'm going to add a text label uh
  252. 11:39there's an ant climbing on me okay uh
  253. 11:42I'm gonna add a
  254. 11:46text label I'm going to put it right
  255. 11:47here I'm gonna put it here it's going to
  256. 11:50say uh damage and change the size of the
  257. 11:54X to one because I think it's something
  258. 11:58that's just not one let's firstly use
  259. 12:00this plugin to convert everything just
  260. 12:02maybe I can just do this manually
  261. 12:05a one comma zero comma zero comma uh
  262. 12:12zero point
  263. 12:14actually no one comma zero
  264. 12:17comma zero point
  265. 12:19one or two or two five comma zero and
  266. 12:24yeah that's pretty good I'm gonna resize
  267. 12:27it manually put it right here
  268. 12:30and I'm going to change the text scale
  269. 12:31properties true and as you know font for
  270. 12:35doka one best font uh background
  271. 12:38transparency one text color white uh
  272. 12:45text zero and that's pretty much it now
  273. 12:49what I'm gonna do is make the template
  274. 12:51invisible again
  275. 12:53and I'm going to go back to my script
  276. 12:57in client main client or actually no X
  277. 12:59client uh whenever we create templates
  278. 13:02where is okay create templates now what
  279. 13:04we're going to do is templates new
  280. 13:06templates
  281. 13:08okay so uh new templates
  282. 13:11dot damage text equals uh
  283. 13:17pets
  284. 13:20square brackets path night
  285. 13:23name uh dot damage
  286. 13:26dot value
  287. 13:28and what we're going to do is
  288. 13:32set this to
  289. 13:35damage
  290. 13:36dot dot and I think it should work
  291. 13:42okay let's see
  292. 13:48as it says damage 10 damage 100 but I
  293. 13:51think damage is a little too long so
  294. 13:53what we can do is
  295. 13:57um
  296. 13:57changes to DMG
  297. 14:00more damage and it should look a bit
  298. 14:04cleaner or maybe white cleaner
  299. 14:06yes but the text is a little messed up
  300. 14:10so what I'm gonna do is make this
  301. 14:13visible again and this time we resize
  302. 14:17this on the
  303. 14:18X and then put it like that
  304. 14:21now if we make this invisible and play
  305. 14:24the game it should look a lot better
  306. 14:29now as you can see it does it looks way
  307. 14:30smaller and actually use a blame the
  308. 14:33game okay I think that's going to be it
  309. 14:35for this tutorial uh in the next
  310. 14:38tutorial since we have the equip best
  311. 14:39and the other clip all we will be
  312. 14:41covering
  313. 14:43um
  314. 14:44maybe a game pass for
  315. 14:47um
  316. 14:49for pet storage and um
  317. 14:52maybe uh deleting pets and that's gonna
  318. 14:56be it for this tutorial this helped make
  319. 14:58sure to subscribe like the video share
  320. 15:01it with your friends and I'll see you
  321. 15:02all in the next video bye

About this transcript

This page contains the full transcript of How to make A Pet Simulator X Game on Roblox - Part 11 by polarisprog, generated from the public captions YouTube serves with the video. The transcript has 2,004 words across 321 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.