How to make A Pet Simulator X Game on Roblox - Part 11 — Transcript
Full transcript
- 0:00hi everyone and welcome back to a new
- 0:02tutorial on the how to make a pet
- 0:04simulator XL game series in this video
- 0:06uh we're going to be taking a look at
- 0:08how to make an unequip all button and an
- 0:11equip best button and we are also going
- 0:13to be uh adding this text label that
- 0:16will display how much damage each pet
- 0:18deals to uh drops and coins
- 0:23also if you guys want to support me and
- 0:25want to have access to all of my project
- 0:27files including the one you're watching
- 0:29right now that will all be available on
- 0:30my patreon in details here
- 0:33okay so the first thing we're gonna do
- 0:35is work on an equip best button so what
- 0:37I'm going to do is I'm going to make the
- 0:40button itself so I'm going to go to main
- 0:42SS and I'm going to go to frames for
- 0:45inventory Mainframe I'm going to make
- 0:47the button inventory visible and I'm
- 0:49going to add a button called equip best
- 0:52so I'm going to duplicate the close
- 0:54button uh move it here and I'm going to
- 0:57call it rename it to equip best and I'm
- 1:01going to set the text of the label so
- 1:04tags to equip uh best
- 1:11and now what I'm going to do is
- 1:15and select
- 1:17the gradient and I'm going to change it
- 1:20because I don't want it to be red I want
- 1:22it to be a nice green uh I'm going to
- 1:25look for a nicer green why is it red
- 1:28from the other side we'll change that
- 1:29later but now I want to own it to be
- 1:32like that and then here
- 1:34it's going to be a
- 1:36okay so I want this to be a lighter
- 1:38green
- 1:40and on the bottom I want it to be a dark
- 1:43uh green a darker green
- 1:46that's good okay uh now what I'm gonna
- 1:49do is just uh select both of these
- 1:53maybe I can move this one here and this
- 1:56one here
- 1:58and equipus is going to be here I know
- 2:00that's some of the UI but we'll we'll
- 2:02fix that later
- 2:04but for now I think equip best should
- 2:06just be
- 2:08right here and the close button I'm
- 2:11going to get it and put it up here okay
- 2:14I think that's good enough for now
- 2:16uh
- 2:18I'm going to reposition it and remove
- 2:21the closes thing and I think that's it
- 2:25that's all I need to do now I'm going to
- 2:27make the pet inventory invisible
- 2:30and I'm going to script the button so
- 2:33I'm going to go to starter player
- 2:34scripts X client and I'm going to scroll
- 2:37all the way down actually all the way up
- 2:39sorry and we're going to get the uh
- 2:43equip best button so local equip local
- 2:47equip best equals
- 2:50um invent no yeah inventory frame column
- 2:54with child equip best so equip best I
- 2:59think that's how it's going to work yes
- 3:01and what I'm going to do now is whenever
- 3:03we click it we're going to equip this so
- 3:05I'm going to make a function up here
- 3:08called equibus so local function equip
- 3:11best and what I'm gonna do in here is
- 3:16check if that button is clicked so uh
- 3:21equip best
- 3:23the text not the the uh what is it
- 3:28give us the function and we don't want
- 3:30the function so we're going to go up
- 3:31here and we're going to change this to a
- 3:33quick best button
- 3:35and we're gonna go down again and equip
- 3:38best button
- 3:40not Mouse button one click so the mouse
- 3:43button one click come on connect
- 3:46function and what we're going to do
- 3:49whenever we click it is called the equip
- 3:50best function so it could best any of
- 3:53the equip best function and what we're
- 3:55going to do is because we are in the
- 3:57client uh we'll call this remote and
- 3:59equip all pets
- 4:01and then we're going to do this so just
- 4:03like we're in equip unequipping
- 4:05something we're gonna do that
- 4:06and after doing it uh we will actually
- 4:09equip create a remote event
- 4:13uh or wait or a remote function so
- 4:16remote uh duplicate the purchase store a
- 4:18remote and we're going to call it
- 4:21um
- 4:22equip best
- 4:25okay so local result or local best bet
- 4:30equals uh remote
- 4:34dot equip best
- 4:36on invoke server
- 4:39okay so invoke server and thus go into
- 4:43taking nothing actually and now we're
- 4:46going to go down here and we'll enter
- 4:48the main server script and what I'm
- 4:50gonna do is
- 4:52whenever
- 4:54okay so whenever we call that remote so
- 4:58game dot replicator storage candle
- 5:00replicator storage dot remote
- 5:04oh what am I doing again the replicator
- 5:06storage is not remotes dot
- 5:09um
- 5:10equip best
- 5:12on server invoke equals function and
- 5:16what we're going to do in here is take
- 5:18the blurb okay now I'm going to Loop
- 5:21through every single pad that the player
- 5:22has
- 5:24so
- 5:26we're going to we're going to create an
- 5:28empty variable called local best pet
- 5:31equals now
- 5:33and local best
- 5:35damage
- 5:38equals or best stats best stats equals
- 5:42zero
- 5:44and what we're gonna do in here is for
- 5:47underscore comma V in
- 5:50uh
- 5:53okay so best stats best bet in player
- 5:58top Pets Come and Get children
- 6:03local pet stats
- 6:06equals uh
- 6:08that's if we do we have a folder for the
- 6:11pets
- 6:13no sorry called certificate of storage
- 6:16or game the applicator storage.pets
- 6:19square bracketsv.name and what we're
- 6:23going to do dot damage dot value
- 6:27okay so we got the pet stats and what
- 6:30we're gonna do now is if
- 6:33best stats
- 6:35uh is less than
- 6:38actually is actually not with bad stats
- 6:41is greater or equal to
- 6:45best stats then
- 6:48best stats equals pet stats
- 6:52and that starts and the best pet equals
- 6:57V
- 6:59dot name
- 7:00now we will return
- 7:04actually gonna print uh best bet
- 7:08and then we will just return best at
- 7:12that's going to return us the Best Bets
- 7:15name now what we're gonna do in here is
- 7:17when we uh so that's going to give us a
- 7:20result and what we're going to do now is
- 7:22whenever this result whenever we get
- 7:25this result uh
- 7:27and we'll uh basically just equip it so
- 7:30what I'm going to do is uh
- 7:35copy this
- 7:37but we okay so we already did this now
- 7:40what I'm gonna do is just copy this
- 7:42right here
- 7:43paste it here but instead of Click
- 7:45templates it's going to be I'm going to
- 7:47get the template so local template local
- 7:49uh best pet template
- 7:52equals scrolling frames square brackets
- 7:55best pet
- 7:57and then what we're going to do is uh
- 8:00best template
- 8:03best template.name
- 8:05okay that should work I think and now
- 8:10we're gonna see this works so three two
- 8:13one
- 8:14uh let's see how that's gonna look
- 8:17okay so let's see which pets I have
- 8:20these parts uh and I forgot to make them
- 8:22display which stats they have but we
- 8:25have a bunny what are the stats of the
- 8:26bunny
- 8:27so the bunny stats
- 8:30uh I don't want the bunny from here I
- 8:33want the bunny from here
- 8:35uh
- 8:38um yes this
- 8:41uh so it has a damage of 100 what about
- 8:45the cat so the cat has a damage of
- 8:52uh tan so when I click the best it
- 8:56should equip the bunny so equip best
- 8:59equips the bunny and we're all good and
- 9:03we have a working equip best button so
- 9:06now you can just go here click with best
- 9:08and it will work you can also still
- 9:10change it but if I press equip best it
- 9:13will actually put the bunny and it works
- 9:15just fine uh okay so what I'm gonna do
- 9:17now is uh make an
- 9:22unequip uh old buttons so I'm going to
- 9:26just make the pad inventory visible and
- 9:30I'm going to get my close button and I'm
- 9:32going to duplicate it put it right here
- 9:35right next to this one and I'm going to
- 9:37put both of them on the center
- 9:39and I'm going to just let me just close
- 9:42off the workspace it's annoying uh I'm
- 9:45going to just
- 9:46um select this
- 9:48change the text of this to
- 9:51uh to unequip all and I'm going to
- 9:57change the name I'm going to remove the
- 10:00closest thing and I'm going to change
- 10:02the name to uh
- 10:05on equip all
- 10:08and now we will enter the
- 10:11X client and we will
- 10:14just
- 10:16get the unequipped all buttons so local
- 10:18unequip local unequip all uh button
- 10:24equals inventory frame calling for child
- 10:27unequip all and what we're gonna do is
- 10:31uh unequip all
- 10:34I'm gonna do it in here unequip oh oh my
- 10:37God I hate these
- 10:39empty lines uh Uncle all button dot
- 10:42mouse button one click so the mouse
- 10:44button one click on connect function and
- 10:49what we're going to do is uh
- 10:52copy this right here
- 10:57and uh
- 11:00paste it in
- 11:03okay so this should unequiv all but when
- 11:06we click on equip all which is great
- 11:09let's see liquid best ungroup all works
- 11:12just fine we can also spam them and they
- 11:15will still work
- 11:17okay I'm happy with that now what we
- 11:19need to do is make them display their
- 11:22damage so what I'm gonna do is
- 11:26just
- 11:28because think uh okay I need to go to
- 11:31the template scrolling from template to
- 11:33make it visible
- 11:35and I'm going to add a text label uh
- 11:39there's an ant climbing on me okay uh
- 11:42I'm gonna add a
- 11:46text label I'm going to put it right
- 11:47here I'm gonna put it here it's going to
- 11:50say uh damage and change the size of the
- 11:54X to one because I think it's something
- 11:58that's just not one let's firstly use
- 12:00this plugin to convert everything just
- 12:02maybe I can just do this manually
- 12:05a one comma zero comma zero comma uh
- 12:12zero point
- 12:14actually no one comma zero
- 12:17comma zero point
- 12:19one or two or two five comma zero and
- 12:24yeah that's pretty good I'm gonna resize
- 12:27it manually put it right here
- 12:30and I'm going to change the text scale
- 12:31properties true and as you know font for
- 12:35doka one best font uh background
- 12:38transparency one text color white uh
- 12:45text zero and that's pretty much it now
- 12:49what I'm gonna do is make the template
- 12:51invisible again
- 12:53and I'm going to go back to my script
- 12:57in client main client or actually no X
- 12:59client uh whenever we create templates
- 13:02where is okay create templates now what
- 13:04we're going to do is templates new
- 13:06templates
- 13:08okay so uh new templates
- 13:11dot damage text equals uh
- 13:17pets
- 13:20square brackets path night
- 13:23name uh dot damage
- 13:26dot value
- 13:28and what we're going to do is
- 13:32set this to
- 13:35damage
- 13:36dot dot and I think it should work
- 13:42okay let's see
- 13:48as it says damage 10 damage 100 but I
- 13:51think damage is a little too long so
- 13:53what we can do is
- 13:57um
- 13:57changes to DMG
- 14:00more damage and it should look a bit
- 14:04cleaner or maybe white cleaner
- 14:06yes but the text is a little messed up
- 14:10so what I'm gonna do is make this
- 14:13visible again and this time we resize
- 14:17this on the
- 14:18X and then put it like that
- 14:21now if we make this invisible and play
- 14:24the game it should look a lot better
- 14:29now as you can see it does it looks way
- 14:30smaller and actually use a blame the
- 14:33game okay I think that's going to be it
- 14:35for this tutorial uh in the next
- 14:38tutorial since we have the equip best
- 14:39and the other clip all we will be
- 14:41covering
- 14:43um
- 14:44maybe a game pass for
- 14:47um
- 14:49for pet storage and um
- 14:52maybe uh deleting pets and that's gonna
- 14:56be it for this tutorial this helped make
- 14:58sure to subscribe like the video share
- 15:01it with your friends and I'll see you
- 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.