#Inventory
249 messages · Page 1 of 1 (latest)
** You are now Level 2! **
yeah so it displays the pet info and so i can open and close it with animations
So when you click the pet this sidebar pops up
can you show me the toolbar
what toolbar
explorer i meant
yeah, its not great tbh
the pet icon is image button?
yes everything but the uncomming text and the pet stats is a button
yeah wait 1 sec
its all messed up but i can make it better if u need to and rename everything and stuff
alright so
insert a script inside the pets image button
the one u have to click so it brings the other one out
the pet hit box is so small
so it wont work everytime
what if i make the script in the white box?
then insert a local script inside that
ok
lemme show u exmaple 1 second
ok
do u have a close button
or do u need to like
double click it to close it
like when u open it do u need to click text button again
i can add a closebutton
1 second
if u want u can do it on double click
like after u click u click again and closes
or u can make close button
im making a close button
yeah i even forgot an open button lol
i made one tho
but does the name of the stuff not matter?
like its all just called ''textbutton'' or ''frame''
yeah
** You are now Level 3! **
i dont understand scripts tho
i made 2 scripts
and thank u very much btw
np
but how do i make it like know what is what
one second let me make comments so you understand what each thing does
ooh
ty
ok so close and open and all the pets
should i make it like that?
i named everything after the pet name and named the open button ''pets'' and close button ''close''
alright
you know like parents and children right
in scripting
or u dont know anything about it
oh ok so
lemme see explorer again
so i just make it directly
so u dont have to change anything
yeah
im figuring out which one is close button and which one is open lol
u know which one is which right
script.Parent.MouseButton1Click:Connect(function()
petStats.Visible = true
end)```
yeah like in explorer
this is open right
instead of script.parent.parent.petstats
yeah
so
insert that script inside open button
and
its named ''pets'' in explorer
the open one
then inside which frame
yeah
lemme see
not in a frame
what is the pet stats
is it inside frame or something
or is it like image label/button
label
yeah
no should i do that?
yes make the whole thing into 1 frame
ok
and call frame petStats
ok
or PetStats whatever u like
and then it normally should be in game.StarterGui.the inventory screen gui.PetStats
after startergui just do the screen gui name that holds them
and then do the name of the frame
like PetStats
and also tell me where the open button is
and make the close button inside the pet stats frame
like inside it
huh?
in starter gui
whats the gui called
like the open button?
the button is called ''Pets''
yeah
whats the frame called
with th stats?
yeah with pet stats
petStats
oh 1 more question
wsp
what text button?
its not in a frame
yh
script.Parent.MouseButton1Click:Connect(function()
petStats.Visible = true
end)```
** You are now Level 4! **
ok
make the petStats frame visible to false
so u dont see it when u spawn in game
and click the open button
i will make close button in a second
if id spawn right now could i click''pets'' and it would open the inv?
no no wait
hmmmm
and wdym by inv
wait should i put that script into the button where i want the stats?
u mean by the pet stats that u want to show?
no
put the script inside open button
the button that will open pet stats
but a local script
ok but like i want to click open and then it opens the big part, then i click on a box with a pet and that opens the stats thin
so the button i want to use to open pet stats is that supposed to be that script
i only need 1 pet to work tho dw
do u already have button that opens inventory and shows ur pets
the parrot only
for showcase
so basically i need a script that like opens the inventory then i click on a button that opens the stats
OOOH
so now i only need open and close
it will be easier for me to script that in studio then
if u dont have the inv open thing
so is it like
should i add u into my thing
i have a button that opens my inventory and then i wanna have it so when i click on a pet, the stats on the pet open up
and a close button
if thats too much then i could also just have it so when i click on my parrot it opens up the left window. only for showcase then.
and so onnly the parrot works
works
i can do the whole thing in studio if u want
cuz i can see the explorer live
and i can edit scripts
if u want i can write down in script what each thing does
if u like to learn a bit about gui scripting
u think u would wanna like make a game w/ me? i do gui's and stuff and builds?
since ur doing all this im just wondering if u want
sure ig
what kinda game u want
maybe a game where u mine things for money and then u can buy pets and better pickaxes and unlock harder zones and stuff?
betttt
and also add me in studio ima make u the button thing
add me on discord aswell