YouTube2Text

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

by polarisprog · 1,862 words · 317 segments · language en · Watch on YouTube

Full transcript

  1. 0:00Hi everyone, and welcome back to a new
  2. 0:02tutorial. In this video, I'm going to be
  3. 0:04showing you how to add a two times coins
  4. 0:06game pass and how to add a two times
  5. 0:09speed game pass to the game.
  6. 0:12Also, if you guys want to support me and
  7. 0:14want to have access to all of my project
  8. 0:16files without having to follow the
  9. 0:18tutorial, including the one you're
  10. 0:20watching right now, they will all be
  11. 0:21available on my Patreon in the 10 dollar
  12. 0:24tier.
  13. 0:25Okay, so the first thing we need to do
  14. 0:27is create the actual game pass itself.
  15. 0:30So, what you're going to do is go to the
  16. 0:31Roblox website.
  17. 0:33Go to the create tab.
  18. 0:36And it should take you to this page.
  19. 0:38Just wait for everything to load.
  20. 0:41Yeah, it might take a while. And go to
  21. 0:44your creations.
  22. 0:46Just wait for it to load.
  23. 0:50Okay, so my creations are loaded. And
  24. 0:53what I'm going to do is try to find it.
  25. 0:55So, mine is called map and it's right
  26. 0:56here. And just
  27. 0:59click view on Roblox.
  28. 1:01And then you're going to go to the
  29. 1:03store.
  30. 1:04And press
  31. 1:06add pass.
  32. 1:08And then it will ask you to choose a
  33. 1:10file. Just click choose file and choose
  34. 1:14any image. So, I'm going to use this one
  35. 1:16and I'm going to call it
  36. 1:17uh two times speed. Now, I already
  37. 1:20created that game pass, but that does
  38. 1:21not really matter.
  39. 1:24Okay, so just click it.
  40. 1:26Verify upload.
  41. 1:28And then you can click the gear icon
  42. 1:31here. Configure. Sales. Item for sale.
  43. 1:35And give it a price. So, for me it will
  44. 1:36be one Robux because I don't really want
  45. 1:38to make it more expensive. And I'm going
  46. 1:41to press go to details. Now, what we're
  47. 1:43going to do is copy the ID of this game
  48. 1:46pass. And to do that, I need to exit out
  49. 1:48of full screen. And I'm going to need to
  50. 1:50copy this uh number right here. So, just
  51. 1:53copy this big number. Right click. Copy.
  52. 1:56And then save it on your notepad or
  53. 1:58whatever you want. So, I'm just going to
  54. 2:00put it on a notepad document.
  55. 2:05text document And then I will
  56. 2:09save it.
  57. 2:10And I'm going to go back to Roblox
  58. 2:11Studio. Okay, so I'm back in the Roblox
  59. 2:14Studio and what I'm going to do is add a
  60. 2:17script
  61. 2:19and it's going to be called
  62. 2:21game passes.
  63. 2:23Now, this script we need to get
  64. 2:24marketplace service. So, local
  65. 2:26marketplace marketplace
  66. 2:29service is equal to game on get service
  67. 2:31marketplace service and local players is
  68. 2:35equal to game the player game on get
  69. 2:38service players and players the player
  70. 2:41added on connect function and that will
  71. 2:43take the player.
  72. 2:45Now, what we're going to do is
  73. 2:48Okay, so
  74. 2:51we will need a pcall. So,
  75. 2:54before that we need variables for our
  76. 2:57IDs. So, local times two speed
  77. 3:01ID is equal to and just paste in your
  78. 3:03ID. So, I just pasted it.
  79. 3:05And now what we're going to do is local
  80. 3:07success
  81. 3:09comma error MSG
  82. 3:13is equal to pcall function and
  83. 3:17local has
  84. 3:20um
  85. 3:21two times two times two x speed
  86. 3:25is equal to false.
  87. 3:27And what I'm going to do in here is
  88. 3:31has two times speed is equal to
  89. 3:34marketplace service
  90. 3:36on user owns game pass async and that
  91. 3:39will take the player
  92. 3:42the user ID
  93. 3:43and it will also take the ID of the game
  94. 3:46pass so two times speed ID.
  95. 3:48Now, what I'm going to do in here is if
  96. 3:51success then
  97. 3:53So, if success, then what we're going to
  98. 3:55do is
  99. 3:57local character is equal to
  100. 3:59player.character or player.character
  101. 4:02added
  102. 4:03.character added colon wait.
  103. 4:07colon wait
  104. 4:09And if character, then
  105. 4:12So, if the character is there, then
  106. 4:13character.humanoid
  107. 4:16.walk speed
  108. 4:18is equal to 32. The default walk speed
  109. 4:20is 16, by the way. So, you can just
  110. 4:22change it to whatever you want. Now,
  111. 4:24what I'm going to do is play the game
  112. 4:26and see if whatever I did works.
  113. 4:29So, if I play the game right now,
  114. 4:31I should be able to walk fast, but not
  115. 4:34that fast. So, I'm going to change it to
  116. 4:36something more. By the way, I was able
  117. 4:38to own the game pass because um
  118. 4:41because I actually own it, so that's why
  119. 4:45that's why I spawned uh with a walk
  120. 4:48speed of 32. Now, it should be 50, which
  121. 4:50is way better, and I think now it's
  122. 4:52actually a useful game pass to buy.
  123. 4:54Okay, so now what we need to do is make
  124. 4:56a button from for prompting that game
  125. 4:58pass.
  126. 4:59So, what I'm going to do is go to
  127. 5:02main SS, frames,
  128. 5:05uh open pending inventory. I'm just
  129. 5:07going to duplicate it and drag it
  130. 5:09somewhere.
  131. 5:11And I'm going to call it
  132. 5:13open
  133. 5:14Uh I think it'll be
  134. 5:17um two times speed.
  135. 5:21And I'm just going to put it right here.
  136. 5:25Right in the center in the center. So,
  137. 5:27I'm going to resize it to make it a bit
  138. 5:30smaller,
  139. 5:31position it
  140. 5:33right here. And then, what I'm going to
  141. 5:35do is
  142. 5:36change this
  143. 5:39uh text label
  144. 5:42text. So, text, and I'm going to change
  145. 5:44it to a um
  146. 5:48to a speed emoji or maybe a lightning
  147. 5:50emoji. So, lightning
  148. 5:54emoji.
  149. 5:57And yeah, that does look pretty good.
  150. 5:58So, what I'm going to do now is
  151. 6:02add a local script to this.
  152. 6:04So, just add a local script and just
  153. 6:07call it prompt.
  154. 6:10Call it prompt.
  155. 6:17And what I'm going to do in here
  156. 6:20is get marketplace service. So, local
  157. 6:24marketplace marketplace
  158. 6:27service is equal to game call get
  159. 6:29service marketplace service.
  160. 6:31And
  161. 6:34local times two speed ID is equal to
  162. 6:38marketplace service.
  163. 6:40Uh actually, sorry. I'm just going to
  164. 6:42paste in the ID. And what I'm going to
  165. 6:43do now is local function prompt uh
  166. 6:47purchase prompt game pass
  167. 6:50purchase.
  168. 6:53And what I'm going to do in here is
  169. 6:56give it the
  170. 6:57uh ID. So, uh player So, it will just
  171. 7:01take the ID. So, ID.
  172. 7:04And now we also need to get players. So,
  173. 7:06local game call get service players.
  174. 7:10And then we need to get the actual
  175. 7:12player. So, equal to players.local
  176. 7:14player.
  177. 7:16And then what we need to do is
  178. 7:20marketplace service.
  179. 7:25So, um marketplace service
  180. 7:29call on prompt game pass purchase. And
  181. 7:32it will be called uh
  182. 7:34it will take the player
  183. 7:36and the game pass ID, which is two times
  184. 7:39speed.
  185. 7:40Two times or just the idea itself.
  186. 7:43Okay, so now
  187. 7:44script.Parent.MouseButton1Click:Connect(function
  188. 7:48and
  189. 7:49prompt game pass purchase and it will be
  190. 7:52two times * 2 speed ID.
  191. 7:56Now if you play the game,
  192. 7:58it should prompt it.
  193. 8:00So if I click this,
  194. 8:02it asked me if I want to buy it, but as
  195. 8:04you can see it says I already own it, so
  196. 8:06nothing happens and it also opens the
  197. 8:07pen inventory, so I need to get rid of
  198. 8:09the script that does that.
  199. 8:11So there should be a script somewhere in
  200. 8:13here
  201. 8:15that makes it open that. Just remove
  202. 8:18this opens value and now it should work.
  203. 8:24So now if I press this, it should ask me
  204. 8:26if I want to buy this game pass.
  205. 8:29Now what we're going to do is make a
  206. 8:31times two coins game pass.
  207. 8:35So same thing. I'm going to go back to
  208. 8:37Roblox
  209. 8:38to the Roblox website and create a game
  210. 8:41pass. So just do it again.
  211. 8:44Uh I'll go make one and I'll be back.
  212. 8:46Okay, so I just made a game pass and I
  213. 8:49called it times two coins and I just
  214. 8:52copied its ID. Now I'm going to go back
  215. 8:54in here into the game passes uh script
  216. 8:58and I'm going to type in two times coins
  217. 9:00ID is equal to and just type in the ID.
  218. 9:04Now what I'm going to do is
  219. 9:08local success just same thing local
  220. 9:10success comma error MSG is equal to
  221. 9:12pcall function.
  222. 9:14Actually, no. That's That doesn't make
  223. 9:16any sense. I think the best way to do it
  224. 9:18is just with the pcall
  225. 9:21function.
  226. 9:25And actually, never mind.
  227. 9:27I'm just going to put this back
  228. 9:29and copy it, paste it right here, and
  229. 9:32I'm going to type in success two comma
  230. 9:35error MSG two.
  231. 9:37Now what I'm going to do in here is
  232. 9:40local
  233. 9:42has
  234. 9:43two times coins is equal to false.
  235. 9:47And has
  236. 9:50two times coins is equal to that comma
  237. 9:53times two is
  238. 9:55uh coins ID.
  239. 9:58Now, what I'm going to do in here is uh
  240. 10:00if uh success two, then what we're going
  241. 10:04to do is player.
  242. 10:08So, uh right here, as you might know, we
  243. 10:10have a um
  244. 10:12values folder.
  245. 10:14And what I'm going to do is add a uh
  246. 10:17int value.
  247. 10:19And it will be called coin multiplier.
  248. 10:21So, coin multiplier.
  249. 10:25And wait, no.
  250. 10:28Set its value to one and name it coin
  251. 10:30multiplier.
  252. 10:32Now, player
  253. 10:34dot values
  254. 10:38dot coin multiplier
  255. 10:41dot value is equal to one. To two,
  256. 10:44sorry.
  257. 10:45And now, everything should work.
  258. 10:47Now, what I'm going to do is make a
  259. 10:49button for prompting that. So, I'm just
  260. 10:52going to duplicate this one.
  261. 10:54Put it in here.
  262. 10:57And just center them again.
  263. 11:04I think somewhere around here is good.
  264. 11:07And what I'm going to do is rename this
  265. 11:09one to times two coins.
  266. 11:12And I'm going to change the uh
  267. 11:15text of the text label to this money
  268. 11:17emoji. So,
  269. 11:20uh
  270. 11:20this money emoji right here.
  271. 11:24And I'm going to add the ID. So, I'm
  272. 11:26going to go back here and just copy
  273. 11:28this.
  274. 11:30Put it in here.
  275. 11:34And just change this to that.
  276. 11:36And now if I play the game,
  277. 11:38my coin multiplier should be set to two.
  278. 11:42So players frog values
  279. 11:44uh coin multiplier and if I Okay, so the
  280. 11:47value is two.
  281. 11:48And what I'm going to do now is enter my
  282. 11:51main script and make this game pass
  283. 11:53actually work. So
  284. 11:54uh where is it? So whenever we give the
  285. 11:57player some coins,
  286. 11:59what I'm going to do is math.round coin
  287. 12:03award divided by five.
  288. 12:07Okay.
  289. 12:10Uh I think the best way to do it is in
  290. 12:12the collecting.
  291. 12:15Uh so right here in the give coins
  292. 12:17uh remote, what I'm going to do is plus
  293. 12:20equals this.
  294. 12:22So just do this.
  295. 12:24Multiplied by player.values.
  296. 12:27Uh
  297. 12:29Let's try brackets times the uh coin
  298. 12:32coin multiplier.
  299. 12:36dot value.
  300. 12:37Now if you play the game,
  301. 12:40this should work.
  302. 12:42So if I go ahead, equip a pet,
  303. 12:45um send it right here. By the way, I
  304. 12:48changed the damage of this to 100 so
  305. 12:50that it collects it fast. And because I
  306. 12:52own this, I should be able to get twice
  307. 12:54as many coins as I used to get without
  308. 12:58the um game pass.
  309. 13:00Okay, so that's going to be it for
  310. 13:02today's tutorial. Uh in the next video
  311. 13:04I'm going to be showing you how to add
  312. 13:05currency purchases.
  313. 13:07And yeah, that's pretty much going to be
  314. 13:09it for today's tutorial. If this helped,
  315. 13:10please make sure to subscribe, like the
  316. 13:12video, share it with your friends, and
  317. 13:14I'll see you all 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 10 by polarisprog, generated from the public captions YouTube serves with the video. The transcript has 1,862 words across 317 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.