How to make A Pet Simulator X Game on Roblox - Part 10 — Transcript
Full transcript
- 0:00Hi everyone, and welcome back to a new
- 0:02tutorial. In this video, I'm going to be
- 0:04showing you how to add a two times coins
- 0:06game pass and how to add a two times
- 0:09speed game pass to the game.
- 0:12Also, if you guys want to support me and
- 0:14want to have access to all of my project
- 0:16files without having to follow the
- 0:18tutorial, including the one you're
- 0:20watching right now, they will all be
- 0:21available on my Patreon in the 10 dollar
- 0:24tier.
- 0:25Okay, so the first thing we need to do
- 0:27is create the actual game pass itself.
- 0:30So, what you're going to do is go to the
- 0:31Roblox website.
- 0:33Go to the create tab.
- 0:36And it should take you to this page.
- 0:38Just wait for everything to load.
- 0:41Yeah, it might take a while. And go to
- 0:44your creations.
- 0:46Just wait for it to load.
- 0:50Okay, so my creations are loaded. And
- 0:53what I'm going to do is try to find it.
- 0:55So, mine is called map and it's right
- 0:56here. And just
- 0:59click view on Roblox.
- 1:01And then you're going to go to the
- 1:03store.
- 1:04And press
- 1:06add pass.
- 1:08And then it will ask you to choose a
- 1:10file. Just click choose file and choose
- 1:14any image. So, I'm going to use this one
- 1:16and I'm going to call it
- 1:17uh two times speed. Now, I already
- 1:20created that game pass, but that does
- 1:21not really matter.
- 1:24Okay, so just click it.
- 1:26Verify upload.
- 1:28And then you can click the gear icon
- 1:31here. Configure. Sales. Item for sale.
- 1:35And give it a price. So, for me it will
- 1:36be one Robux because I don't really want
- 1:38to make it more expensive. And I'm going
- 1:41to press go to details. Now, what we're
- 1:43going to do is copy the ID of this game
- 1:46pass. And to do that, I need to exit out
- 1:48of full screen. And I'm going to need to
- 1:50copy this uh number right here. So, just
- 1:53copy this big number. Right click. Copy.
- 1:56And then save it on your notepad or
- 1:58whatever you want. So, I'm just going to
- 2:00put it on a notepad document.
- 2:05text document And then I will
- 2:09save it.
- 2:10And I'm going to go back to Roblox
- 2:11Studio. Okay, so I'm back in the Roblox
- 2:14Studio and what I'm going to do is add a
- 2:17script
- 2:19and it's going to be called
- 2:21game passes.
- 2:23Now, this script we need to get
- 2:24marketplace service. So, local
- 2:26marketplace marketplace
- 2:29service is equal to game on get service
- 2:31marketplace service and local players is
- 2:35equal to game the player game on get
- 2:38service players and players the player
- 2:41added on connect function and that will
- 2:43take the player.
- 2:45Now, what we're going to do is
- 2:48Okay, so
- 2:51we will need a pcall. So,
- 2:54before that we need variables for our
- 2:57IDs. So, local times two speed
- 3:01ID is equal to and just paste in your
- 3:03ID. So, I just pasted it.
- 3:05And now what we're going to do is local
- 3:07success
- 3:09comma error MSG
- 3:13is equal to pcall function and
- 3:17local has
- 3:20um
- 3:21two times two times two x speed
- 3:25is equal to false.
- 3:27And what I'm going to do in here is
- 3:31has two times speed is equal to
- 3:34marketplace service
- 3:36on user owns game pass async and that
- 3:39will take the player
- 3:42the user ID
- 3:43and it will also take the ID of the game
- 3:46pass so two times speed ID.
- 3:48Now, what I'm going to do in here is if
- 3:51success then
- 3:53So, if success, then what we're going to
- 3:55do is
- 3:57local character is equal to
- 3:59player.character or player.character
- 4:02added
- 4:03.character added colon wait.
- 4:07colon wait
- 4:09And if character, then
- 4:12So, if the character is there, then
- 4:13character.humanoid
- 4:16.walk speed
- 4:18is equal to 32. The default walk speed
- 4:20is 16, by the way. So, you can just
- 4:22change it to whatever you want. Now,
- 4:24what I'm going to do is play the game
- 4:26and see if whatever I did works.
- 4:29So, if I play the game right now,
- 4:31I should be able to walk fast, but not
- 4:34that fast. So, I'm going to change it to
- 4:36something more. By the way, I was able
- 4:38to own the game pass because um
- 4:41because I actually own it, so that's why
- 4:45that's why I spawned uh with a walk
- 4:48speed of 32. Now, it should be 50, which
- 4:50is way better, and I think now it's
- 4:52actually a useful game pass to buy.
- 4:54Okay, so now what we need to do is make
- 4:56a button from for prompting that game
- 4:58pass.
- 4:59So, what I'm going to do is go to
- 5:02main SS, frames,
- 5:05uh open pending inventory. I'm just
- 5:07going to duplicate it and drag it
- 5:09somewhere.
- 5:11And I'm going to call it
- 5:13open
- 5:14Uh I think it'll be
- 5:17um two times speed.
- 5:21And I'm just going to put it right here.
- 5:25Right in the center in the center. So,
- 5:27I'm going to resize it to make it a bit
- 5:30smaller,
- 5:31position it
- 5:33right here. And then, what I'm going to
- 5:35do is
- 5:36change this
- 5:39uh text label
- 5:42text. So, text, and I'm going to change
- 5:44it to a um
- 5:48to a speed emoji or maybe a lightning
- 5:50emoji. So, lightning
- 5:54emoji.
- 5:57And yeah, that does look pretty good.
- 5:58So, what I'm going to do now is
- 6:02add a local script to this.
- 6:04So, just add a local script and just
- 6:07call it prompt.
- 6:10Call it prompt.
- 6:17And what I'm going to do in here
- 6:20is get marketplace service. So, local
- 6:24marketplace marketplace
- 6:27service is equal to game call get
- 6:29service marketplace service.
- 6:31And
- 6:34local times two speed ID is equal to
- 6:38marketplace service.
- 6:40Uh actually, sorry. I'm just going to
- 6:42paste in the ID. And what I'm going to
- 6:43do now is local function prompt uh
- 6:47purchase prompt game pass
- 6:50purchase.
- 6:53And what I'm going to do in here is
- 6:56give it the
- 6:57uh ID. So, uh player So, it will just
- 7:01take the ID. So, ID.
- 7:04And now we also need to get players. So,
- 7:06local game call get service players.
- 7:10And then we need to get the actual
- 7:12player. So, equal to players.local
- 7:14player.
- 7:16And then what we need to do is
- 7:20marketplace service.
- 7:25So, um marketplace service
- 7:29call on prompt game pass purchase. And
- 7:32it will be called uh
- 7:34it will take the player
- 7:36and the game pass ID, which is two times
- 7:39speed.
- 7:40Two times or just the idea itself.
- 7:43Okay, so now
- 7:44script.Parent.MouseButton1Click:Connect(function
- 7:48and
- 7:49prompt game pass purchase and it will be
- 7:52two times * 2 speed ID.
- 7:56Now if you play the game,
- 7:58it should prompt it.
- 8:00So if I click this,
- 8:02it asked me if I want to buy it, but as
- 8:04you can see it says I already own it, so
- 8:06nothing happens and it also opens the
- 8:07pen inventory, so I need to get rid of
- 8:09the script that does that.
- 8:11So there should be a script somewhere in
- 8:13here
- 8:15that makes it open that. Just remove
- 8:18this opens value and now it should work.
- 8:24So now if I press this, it should ask me
- 8:26if I want to buy this game pass.
- 8:29Now what we're going to do is make a
- 8:31times two coins game pass.
- 8:35So same thing. I'm going to go back to
- 8:37Roblox
- 8:38to the Roblox website and create a game
- 8:41pass. So just do it again.
- 8:44Uh I'll go make one and I'll be back.
- 8:46Okay, so I just made a game pass and I
- 8:49called it times two coins and I just
- 8:52copied its ID. Now I'm going to go back
- 8:54in here into the game passes uh script
- 8:58and I'm going to type in two times coins
- 9:00ID is equal to and just type in the ID.
- 9:04Now what I'm going to do is
- 9:08local success just same thing local
- 9:10success comma error MSG is equal to
- 9:12pcall function.
- 9:14Actually, no. That's That doesn't make
- 9:16any sense. I think the best way to do it
- 9:18is just with the pcall
- 9:21function.
- 9:25And actually, never mind.
- 9:27I'm just going to put this back
- 9:29and copy it, paste it right here, and
- 9:32I'm going to type in success two comma
- 9:35error MSG two.
- 9:37Now what I'm going to do in here is
- 9:40local
- 9:42has
- 9:43two times coins is equal to false.
- 9:47And has
- 9:50two times coins is equal to that comma
- 9:53times two is
- 9:55uh coins ID.
- 9:58Now, what I'm going to do in here is uh
- 10:00if uh success two, then what we're going
- 10:04to do is player.
- 10:08So, uh right here, as you might know, we
- 10:10have a um
- 10:12values folder.
- 10:14And what I'm going to do is add a uh
- 10:17int value.
- 10:19And it will be called coin multiplier.
- 10:21So, coin multiplier.
- 10:25And wait, no.
- 10:28Set its value to one and name it coin
- 10:30multiplier.
- 10:32Now, player
- 10:34dot values
- 10:38dot coin multiplier
- 10:41dot value is equal to one. To two,
- 10:44sorry.
- 10:45And now, everything should work.
- 10:47Now, what I'm going to do is make a
- 10:49button for prompting that. So, I'm just
- 10:52going to duplicate this one.
- 10:54Put it in here.
- 10:57And just center them again.
- 11:04I think somewhere around here is good.
- 11:07And what I'm going to do is rename this
- 11:09one to times two coins.
- 11:12And I'm going to change the uh
- 11:15text of the text label to this money
- 11:17emoji. So,
- 11:20uh
- 11:20this money emoji right here.
- 11:24And I'm going to add the ID. So, I'm
- 11:26going to go back here and just copy
- 11:28this.
- 11:30Put it in here.
- 11:34And just change this to that.
- 11:36And now if I play the game,
- 11:38my coin multiplier should be set to two.
- 11:42So players frog values
- 11:44uh coin multiplier and if I Okay, so the
- 11:47value is two.
- 11:48And what I'm going to do now is enter my
- 11:51main script and make this game pass
- 11:53actually work. So
- 11:54uh where is it? So whenever we give the
- 11:57player some coins,
- 11:59what I'm going to do is math.round coin
- 12:03award divided by five.
- 12:07Okay.
- 12:10Uh I think the best way to do it is in
- 12:12the collecting.
- 12:15Uh so right here in the give coins
- 12:17uh remote, what I'm going to do is plus
- 12:20equals this.
- 12:22So just do this.
- 12:24Multiplied by player.values.
- 12:27Uh
- 12:29Let's try brackets times the uh coin
- 12:32coin multiplier.
- 12:36dot value.
- 12:37Now if you play the game,
- 12:40this should work.
- 12:42So if I go ahead, equip a pet,
- 12:45um send it right here. By the way, I
- 12:48changed the damage of this to 100 so
- 12:50that it collects it fast. And because I
- 12:52own this, I should be able to get twice
- 12:54as many coins as I used to get without
- 12:58the um game pass.
- 13:00Okay, so that's going to be it for
- 13:02today's tutorial. Uh in the next video
- 13:04I'm going to be showing you how to add
- 13:05currency purchases.
- 13:07And yeah, that's pretty much going to be
- 13:09it for today's tutorial. If this helped,
- 13:10please make sure to subscribe, like the
- 13:12video, share it with your friends, and
- 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.