[Polishing] How to make A Pet Simulator X Game on Roblox - Part 5 — Transcript
Full transcript
- 0:00okay so before this video starts I just
- 0:02want to let you guys know that I have a
- 0:04brand new score server so if you guys
- 0:05are interested in joining it the link
- 0:07will be in the description
- 0:09hi everyone in this video we are going
- 0:11to be polishing up the game so we're
- 0:13gonna add some tweens some effects so if
- 0:17I go ahead and open up the pets UI as
- 0:21you can see it twins it smoothly we
- 0:23added a nice tween for equipment and it
- 0:26could be in the pets and also these
- 0:28currency displays display G wise and
- 0:32also this nice little animation for
- 0:33purchasing a door
- 0:36also if you guys want to support me and
- 0:38want to have access to all of my project
- 0:39files including the one you're watching
- 0:42right now they will all be available on
- 0:44my patreon if you can downloads here the
- 0:46link will be in the description with
- 0:48that being said let's start all right so
- 0:51what you guys are gonna do is follow two
- 0:53tutorials that I made and the first one
- 0:55is how to make a frame opening system
- 0:59with animations and the second one is
- 1:02how to make a currency display labels
- 1:05now both of these links will be in the
- 1:08description now uh make them in separate
- 1:11places and once you are done with both
- 1:15of the tutorials open up your pet
- 1:18simulator place and what I'm gonna do
- 1:21is I'm going to go to the frame opening
- 1:25system
- 1:27so right here
- 1:29and
- 1:30I'm going to copy the frame trigger
- 1:33script so copy and I'm going to go back
- 1:39to
- 1:39[Music]
- 1:41pet Simulator X and I'm going to paste
- 1:43it inside of
- 1:45inside of startup player Scripts
- 1:49and what I'm gonna do next is
- 1:52I'm going to
- 1:55add I'm going to enter this Frame
- 1:58trigger script and what I'm going to do
- 2:01is inside of this module I'm going to go
- 2:04down here and I'm going to four Okay so
- 2:09we're gonna need to add a frame inside
- 2:12of the main assassin it's going to be
- 2:14called frames and we're going to put the
- 2:16pen inventory and the purchase area
- 2:18inside of the frames folder and I'm
- 2:21going to add a another frame and I'm
- 2:24going to
- 2:26made the size one comma zero comma one
- 2:28comma zero and I'm going to change the
- 2:30Anchor Point to 0.5 and the position to
- 2:350.5 comma zero comma 0.5 comma zero and
- 2:41then I'm going to rename this one to pet
- 2:43inventory and I'm going to drag the
- 2:46actual pet inventory frame inside of the
- 2:48other pen inventory and I'm going to
- 2:51call it Mainframe
- 2:53and I'm going to do the same thing for
- 2:55the purchase area so I'm going to add a
- 2:58frame and it's going to be called
- 3:01actually sorry I'm just going to
- 3:04to copy to duplicate the pair inventory
- 3:07frame and I'm going to call it purchase
- 3:10area and I'm going to remove the
- 3:13Mainframe from it and I'm going to drag
- 3:15the purchase the actual purchase area
- 3:17inside of the purchase area and I'm
- 3:20going to rename it to main frame
- 3:23now what I'm gonna do
- 3:25is
- 3:27I'm going to go inside of my open bin
- 3:31inventory button and I'm going to get
- 3:33rid of the open script and then I'm
- 3:36going to go inside of any close button
- 3:40that I have
- 3:41uh I have a close button in the
- 3:43Mainframe and I'm going to remove the
- 3:45closed script
- 3:46and then I'm going to close these frames
- 3:50and what I'm going to do is
- 3:53inside of the open PAD inventory frame
- 3:57um inside of the open pin inventory
- 4:00button sorry I'm going to add a an
- 4:03object value so object value and it's
- 4:05going to be called opens
- 4:09now select your opens value and press
- 4:13value
- 4:15and click on a pet inventory
- 4:20I'm gonna I'm going to make sure that
- 4:22I'm recording the right thing okay good
- 4:24now what I'm gonna do is go back to my
- 4:26frame trigger module and I'm going to
- 4:28Loop through all right so let's see what
- 4:31we have here frames is equal to
- 4:33script.phone light for for child frames
- 4:36so I'm going to change this
- 4:38okay
- 4:40so I think I'm going to drag this Frame
- 4:42trigger module inside of starter gy and
- 4:46I'm going to enter it and I'm going to
- 4:51instead of doing this
- 4:53you know into the local main SS is equal
- 4:56to square.parent point for child main SS
- 4:59and local frames is equal to minus as
- 5:04long wait for child frames now I'm going
- 5:07to Loop okay so for underscore comma V
- 5:10in pairs main SS column get descendants
- 5:14do and I'm going to check if zikon is a
- 5:19uh
- 5:21button I think okay or maybe a
- 5:25gy butter knife I think it's called gy
- 5:28button gy button
- 5:32okay so if you can only say gy button uh
- 5:36then I'm going to check if the column
- 5:39finds first child
- 5:42opens then I'm going to check if the
- 5:45column finds first child opens
- 5:49uh dot value
- 5:52is not equal to nil then then I'm gonna
- 5:56do V dot mouse button one down column
- 6:00connect function
- 6:05and okay so V the mouse button one up
- 6:08sorry or maybe Mouse button one click
- 6:10Mouse button one click command connect
- 6:14function
- 6:15and I'm going to do open frame
- 6:18so open uh module dot open frame
- 6:24module dot open frame and we're going to
- 6:27send the name of the frame so just type
- 6:32in the
- 6:34on the confines first child opens dot
- 6:38value dot name
- 6:40that should work now what I'm gonna do
- 6:43is
- 6:45okay so else if
- 6:48actually just add an if
- 6:52so after in here we're going to do if
- 6:55you can find
- 6:57first child
- 7:00closes
- 7:01then
- 7:02and what I'm gonna do is enter my
- 7:05purchase area frame and inside of the
- 7:08close button I'm going to add
- 7:11a
- 7:12okay so I'm going to add
- 7:15an object value again and I'm going to
- 7:17call it closes
- 7:19and select the value and press on the
- 7:22frame that you want to close so for me
- 7:24it's the purchase area frame and in here
- 7:27same thing for this so I'm just going to
- 7:30copy this close closest Value paste it
- 7:32in here and I'm going to change the
- 7:35value to my inventory frame
- 7:38so if you're gonna find first child
- 7:40closes then uh well same thing just
- 7:43paste that in and change this to closes
- 7:46and this to closes and instead of this
- 7:49I'm going to
- 7:50close frame I think that's what we need
- 7:53to do uh close frame
- 7:57okay close frame
- 7:59close frame and we're just gonna do that
- 8:03all right great so I think this should
- 8:06work
- 8:07okay so now we need to call the module
- 8:11so I'm just going to go down here to my
- 8:15main client script and
- 8:18All I'm gonna do is a little cool
- 8:22frame trigger
- 8:26is equal to require and Main SS or
- 8:31actually start player gy
- 8:34or maybe it's okay so we need the
- 8:36variable for players UI silica player gy
- 8:39is equal to player can't wait for child
- 8:41player gy and in here we're going to
- 8:44change this to player gy sorry and
- 8:47require and layer gy only for child
- 8:51frame trigger
- 8:53and I think that should be good
- 8:56now what I'm gonna do is um
- 9:00Okay so
- 9:01I'm going to see if this works
- 9:05and I think we have a problem so the
- 9:07frames frame okay so how your frames
- 9:10frame change the size to one comma zero
- 9:12comma one comma zero uh background
- 9:15transparency to one of course and the uh
- 9:20uh position to 0.5 0.5 comma zero comma
- 9:240.5 comma zero and the uh
- 9:28Anchor Point to 0.5 comma 0.5 and then
- 9:34I'm going to select my pet inventory and
- 9:37purchase area of frame and change their
- 9:39background transparencies to one
- 9:41and I'm going to make sure that both of
- 9:43them are invisible
- 9:45and that the main frames that are
- 9:49visible
- 9:50so now if I make my pet inventory frame
- 9:52visible then this should turn visible
- 9:56if I do the if I do the same thing for
- 9:58this it should turn visible now what I'm
- 10:02going to do is enter my x-client script
- 10:04and I'm going to update some of this so
- 10:07local frames
- 10:09is equal to and the mean SS Colony for
- 10:12child frames and inventory right here
- 10:16I'm going to change this to uh frames
- 10:19going with a child at inventory
- 10:24or inventory
- 10:26brain
- 10:29flashlight I don't think this okay
- 10:32so it's growing frame is equal to
- 10:35okay so I'll call inventory main frame
- 10:39is equal to frames
- 10:42or inventory for child main frame
- 10:47and I'm going to
- 10:50change everything that's just inventory
- 10:52to inventory Mainframe
- 10:54let's see do we have anything here all
- 10:58right so this should work now I'm going
- 11:00to go back to my main client script and
- 11:03I think it's somewhere around here
- 11:06don't purchase UI okay so same thing
- 11:08local frames is equal to main assets
- 11:11only for child frames and door purchase
- 11:15UI is equal to frames gonna wait for
- 11:17child purchase area
- 11:18and
- 11:23um door purchase you why not close just
- 11:26get rid of this
- 11:31and where's the other one
- 11:34so area where is it
- 11:38all right so right here what we're gonna
- 11:41do is instead of just making
- 11:45this Frame visible
- 11:48what I'm going to do is
- 11:52um
- 11:52okay so frame trigger dot open frame
- 11:58and I think that takes the name of the
- 12:00frame so
- 12:03door purchase UI dot name
- 12:07and then I'm just going to get rid of
- 12:10this
- 12:11and instead of making this visible I'm
- 12:14going to
- 12:16do frame trigger
- 12:18Dot
- 12:20close frame and it's of course going to
- 12:23be the uh door process UI dot name
- 12:28and
- 12:30in here I'm going to change this to the
- 12:33purchase
- 12:34ui.mainframe dot by don't last button on
- 12:37click
- 12:38Okay so
- 12:40I think that this should work so I'm
- 12:43going to go ahead and view the output
- 12:45and play the game
- 12:48if I can dock this
- 12:50okay why is this not working
- 12:52when I go to view
- 12:56actually I think this yeah
- 12:59I think this should work
- 13:00I can just play the game
- 13:03and hopefully no errors will pop up so
- 13:07no errors yet and if I click this as you
- 13:11can see this is pretty smooth and I can
- 13:13close the frame but as you can see it
- 13:15does this weird thing which is true
- 13:17which it shouldn't
- 13:20so to fix that
- 13:23I think it's very simple
- 13:25we just have to go to our pet inventory
- 13:27Mainframe close and we'll go to our
- 13:31plugins unit conversion and size scale
- 13:35now this plugin will be linked in the
- 13:37description go ahead and download it
- 13:39it's very useful
- 13:41I'm gonna see if the size converted to
- 13:43scale now and yes it is and I'm just
- 13:46going to play the game
- 13:47and see if this is fixed
- 13:50I think it should be fixed
- 13:52yeah it is so this is a lot smoother
- 13:57now I can just uh do the same thing for
- 14:00this open pet inventory I don't think
- 14:02this is converted to scale
- 14:06and now I can play the game
- 14:10and now we're gonna test
- 14:12the
- 14:14door buying system so I'm going to press
- 14:18this and as you can see it's prompts set
- 14:19in a much smoother way and I can go
- 14:22ahead and press close it works you can
- 14:24do it again
- 14:26to keep on pressing e it works I'm gonna
- 14:29press buy and nothing happens when I
- 14:31press buy let's see why that is so
- 14:34purchase text is not oh very simple
- 14:38don't process your why dot Mainframe
- 14:42dot purchase text
- 14:44and now it should work I'm gonna try
- 14:46this again
- 14:48and see if everything works
- 14:52so bye
- 14:55and I'm just going to press buy button
- 14:58and this time it works now you see how
- 15:00that just popped popped off
- 15:03uh it just destroyed itself we need to
- 15:05make that a bit smoother so I'm going to
- 15:07go here we destroy the door and instead
- 15:09of just destroying straight up
- 15:11destroying the door we need to do
- 15:13something better
- 15:14so I'm going to get tween service local
- 15:16tween service is equal to game come on
- 15:20get service Queen service
- 15:22and what I'm gonna do
- 15:25so we have a door
- 15:27area
- 15:29okay so I want to try something if I
- 15:31move my door everything moves with it
- 15:34good
- 15:36so what I'm gonna do
- 15:38is
- 15:41go back to my main client script
- 15:44and he's sort of destroying the door
- 15:46before destroying it I'm going to the
- 15:48local door tween
- 15:50is equal to and twin surface can create
- 15:55um door
- 15:57comma and 24. new now I'm gonna do so
- 16:03we'll take about
- 16:05a second come on in the easy Style
- 16:08DOT sign and in the using Direction so
- 16:12out
- 16:13and then I'm going to change its
- 16:16position
- 16:17is equal to position to uh
- 16:23door dot position
- 16:26plus effects of three dot new zero come
- 16:29out minus
- 16:31then or minus
- 16:3420 comma zero
- 16:36and then I'm going to play this tween so
- 16:41adore tween corn play and we're gonna
- 16:44wait
- 16:451.2 seconds then we're gonna destroy the
- 16:47door and we're gonna see how this looks
- 16:50so
- 16:51I'm gonna go
- 16:53purchase the door
- 16:55and as you can see it does that but we
- 16:57need to do that very quickly so we need
- 16:59to
- 17:01do all of this
- 17:03then
- 17:07um okay so I need to do this quickly
- 17:08basically so I'm just going to task dot
- 17:11spawn function
- 17:14pass.spawn function
- 17:16oh my God that's not spawn
- 17:22function
- 17:24and I'm just going to copy of this paste
- 17:28it here and now play the game again
- 17:31and this should be a lot smoother
- 17:35so I'm going to press this press buy and
- 17:37as you can see it's gone but as you can
- 17:39see the interaction fingers was still
- 17:42there
- 17:43we can get rid of that by just
- 17:46uh okay so door dot proximity part
- 17:54Dot
- 17:56proximity prompt
- 17:59dot enabled is equal to false
- 18:05and that should work now
- 18:09I'm gonna go buy this and as you can see
- 18:12it's gone in a much smoother way and I
- 18:15think that looks a lot better
- 18:17now what I'm gonna do is
- 18:20see if the egg system and the pet
- 18:23inventory still works
- 18:27I'm just going to
- 18:30open them up with an inventory it opens
- 18:33now I'm gonna open up an egg
- 18:38it works now I'm gonna go to my pets and
- 18:42as you can see I do have my pet over
- 18:43here I can press it and you can see this
- 18:46we can we can do this in a much better
- 18:47way we can uh tween this to change the
- 18:50color so I'm going to enter my X client
- 18:54and wherever we change the color where
- 18:57is it
- 18:59so I think it's right here okay so we
- 19:03have to Twin service now I'm gonna do
- 19:04twin service on create V comma between
- 19:09info dot new and maybe just point
- 19:12four and just
- 19:17fairly brackets and just copy this don't
- 19:19copy V Dot just copy this
- 19:21paste it here and press column play
- 19:25now we're going to do the same thing so
- 19:27copy this
- 19:29paste it here
- 19:35oh
- 19:37Okay so
- 19:38copy this go back
- 19:40[Music]
- 19:42delete it just keep this I'm sorry if
- 19:44that was confusing
- 19:46and in here
- 19:48I'm going to oh
- 19:51actually I'm really sorry just just put
- 19:53it back okay sorry
- 19:57um in here I'm going to paste it again
- 20:01but this time I'm going to copy this
- 20:03color code and paste it right here
- 20:06and I'm going to change V to clicked
- 20:09template
- 20:11and we can get rid of this now and I'm
- 20:15going to copy this again
- 20:18I'm gonna copy this
- 20:21paste it here
- 20:25and that should work
- 20:27now I'm going to play the game
- 20:33and see if this works
- 20:36I'm gonna hatch an egg
- 20:40and I'm going to go to my pets
- 20:44I'm going to click this and as you can
- 20:46see it's much better
- 20:49pretty clean
- 20:50now I'm going to close this and now
- 20:52we're going to add our currency display
- 20:55so
- 20:57I'm guessing you followed the you you
- 21:00followed the
- 21:02um currency display tutorial and if you
- 21:06did okay I'm gonna go to obs
- 21:09so go to your
- 21:12display currencies local Scripts
- 21:14obvious
- 21:16now go back to PSX got similar ax
- 21:20and I'm going to paste that script
- 21:23instead of star GUI and
- 21:26I'm going to enter this display currency
- 21:29script
- 21:31and what I'm gonna do
- 21:33oh okay so I'm gonna also go back to
- 21:38the
- 21:39display currencies
- 21:42place and I'm going to copy the coins
- 21:44and the gems
- 21:46frames so copy both of these
- 21:50actually I'm going to copy the whole
- 21:51screen gy
- 21:53and now go back to PSX
- 21:57and paste the entire screen GUI inside
- 22:00of storage UI and just get rid of
- 22:03display currencies
- 22:05now we can enter the currencies gy now
- 22:08mess around with these gys make them
- 22:10look however you want
- 22:12but what I'm gonna do is enter my
- 22:15display currency script
- 22:19and I'm going to
- 22:22Okay so
- 22:24do we have format number
- 22:29okay so we we are also going to copy the
- 22:34format number module
- 22:38and we are going to go back to PSX
- 22:42I'm gonna paste it inside of replicator
- 22:43storage
- 22:46and when we okay so I'm going to change
- 22:49this I'm going to change this to
- 22:51okay so I think it's still called leader
- 22:53stats
- 22:55yes okay so this should work right away
- 22:59I'm also going to add gems
- 23:02I'm going to duplicate my coins value
- 23:04and just rename it to gems
- 23:06I'm going to set it to a thousand
- 23:10and now this should work so I'm going to
- 23:12play the game
- 23:17and as you can see this does work if I
- 23:20purchase this
- 23:25as you can see my coins go down
- 23:27and if I go ahead and just change my uh
- 23:31gems value to 150
- 23:35123
- 23:37as you can see it does change it
- 23:41okay so I'm also going to change the
- 23:45colors of my best button
- 23:48I'm just going to go down here and I'm
- 23:51going to change this background color to
- 23:53a nice white
- 23:56and I'm going to get the
- 24:00label the UI gradient of the gems label
- 24:04and I think I'm going to paste it inside
- 24:06of my text right here
- 24:10now I'm going to add a text label inside
- 24:13of this
- 24:15I'm going to change its size to 1 comma
- 24:19zero come on comma zero and the
- 24:21background transparency to 1 and the
- 24:23text to pets
- 24:27and the text color to white and the
- 24:32text scale property 3 and the font to
- 24:35for Docker one
- 24:38and then I'm going to get my UI gradient
- 24:41and put it inside of the text label
- 24:43and then I'm going to scale down my text
- 24:45label
- 24:50and then I'm also going to change the
- 24:52text on my
- 24:55actual button to nothing
- 25:00and I'm also going to uncheck Auto
- 25:04button color
- 25:06and maybe we can change we can add a we
- 25:10can get this UI gradient put inside of
- 25:13the Y stroke
- 25:14but as you can see it kind of overlaps
- 25:16it so I don't think this is going to be
- 25:19I don't think this is gonna work
- 25:21actually it does I can just put another
- 25:23one inside of this and I think this does
- 25:26look better
- 25:28and I think
- 25:30the frames okay so I'm also going into
- 25:34copy
- 25:37vui gradient and put it inside of the UI
- 25:42stroke inside of the pet inventory
- 25:45and I'm going to change its color so the
- 25:48color of the UI stroke
- 25:50to White
- 25:52so that the UI grading works and I'm
- 25:55also going to do the same thing for this
- 25:57pets text so text label
- 26:00is that in
- 26:02and just change the text
- 26:05color to white so that it affects it
- 26:09and I think this looks pretty good now
- 26:13I'm going to do the same thing for
- 26:16the purchase area
- 26:20so
- 26:21just get this you want gradient put it
- 26:24inside of the UI stroke make the Y
- 26:27stroke color white
- 26:29and do the same thing for the text so
- 26:31purchase text paste that in make the
- 26:35text
- 26:37White
- 26:39and then change the UI gradient okay
- 26:42what is this why is it why is it not
- 26:45affecting the actual text
- 26:47because that is weird
- 26:52okay that is very weird I'm just going
- 26:54to fix this in that back
- 26:56okay so I just made a new text label I
- 26:59just got the the one from the open pin
- 27:01inventory button this one and pasted it
- 27:03here and messed around with the size and
- 27:06I think
- 27:08I think this is going to be it now I'm
- 27:10just going to get this UI stroke and put
- 27:14it inside both of my currency displays
- 27:18and I think
- 27:20okay that that doesn't look good okay so
- 27:23I'm just going to make the purchase area
- 27:26button in the I mean frame invisible I'm
- 27:30gonna play the game now and I think
- 27:31everything will just look a lot better
- 27:42and
- 27:44yes okay so
- 27:46it does look better
- 27:50and this text looks
- 27:53looks good with the gradient and yeah I
- 27:55think this is going to be it for the
- 27:57tutorial this helped Please Subscribe
- 27:59like the video share it with your
- 28:01friends and I'll see you all in the next
- 28:02video bye
About this transcript
This page contains the full transcript of [Polishing] How to make A Pet Simulator X Game on Roblox - Part 5 by polarisprog, generated from the public captions YouTube serves with the video. The transcript has 3,587 words across 591 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.