#nvm i got help
1 messages · Page 1 of 1 (latest)
Lvl 5
ok im level 5 now
your recording is fucked ://
just take a screenshot of the explorer
and properties list
though i dont think you need to screenshot properties
just the explorer
would it be stupid for me to ask what's the explorer
the thing which has all of your objects
in a list
the window is titled Explorer
that's an interesting way of doing it
basically, on roblox ScreenGui is used to display gui ya but usually you only have One screengui object
oh
it's like a "root node" or whatever idfk what that means
just sounds cooler
and like
inside of it you place Frames and TextButtons and whatnot
so being less organized is better for gui?
and then you mess around with their Visible property
if they have any descendants (or children) then they will become invisible together with the parent
no it would still be organised just in a different way
i.e.
if i want to make the battleframe visible when a battle starts, i just set it's visible property to true
all other frames that are children/descendants to it will become visible together with it, if they arent already set to be invisible
blah blah blah words
just mess around with it, you will figure it out eventually
wait does only the stuff inside the frame become visible
k
no battle frame Visible
with battle frame Visible
using one of my games as an example
all of the stuff that appears are the frames inside of the battle frame in the explorer
the reason why you dont Visually see the battle frame itself is cuz i made it's background transparency 1
(the blue border is just the selection border so ignore it)
wait so is there something im doing wrong here
the gui left click path is wrong
yay it works
YAAAAY!!!!
ok one more question
im all ear muahaha
when you make a variable does it start out at 0?
when you make a variable it starts out with the datatype String which is empty
i see
well if you use the set variable block ofc
if you use the output of action blocks or whatever else then it's a datatype that this block outputs
you can see what type it is by right clicking on the block in the selection list thing
hold on
is there a way to set a variable to a number whenever the player joins
i.e.
yuup
have you tried using stuff like scratch before
yeah
cuz that line of thinking and/or knowledge will be useful here
i made a full game in scratcg
you know cap blocks?
no lmao
like the ones that are at the start of a script in scratch
like the orange ones
When Green Flag is Clicked
ohh
they are called cap blocks
huh
retrostudio (and roblox by extension) has a similar thing but it's a LOT more dynamic
they are called Events
yea i figured that part out
you can either connect or disconnect an event, and an event fires when a specific game condition happens
connecting an event makes it work and stay in memory disconnecting an event makes it stop working and using up memory
there's a block called Player Added, this event block fires whenever a new player joins the server
is it every player
there's also a block called Player Removing
ya
absolutely every player
when they join this specific server
shoot
the event block fires
if they respawn that event block wont fire
cuz that's their character respawning, not the player
can i used a get properties thing to make it only when that player joins
on roblox the Player and the Player Character are two different instances basically
the Player joins a server once and stays there until they leave the game completely
a Player Character can respawn and be destroyed/die
so dont worry about it
just use the player added block and everything gonna be awesome
i just want a way to make my variable start out as the same number every time you join
i was gonna make the same button for the shop that opens the shop also close it with variables to detect if its open or not
wut
ok so in short
remember
how i told you
that roblox clones everything inside of startergui
into player's own playergui folder
yes
it also gets completely cleared out when their player character dies
so every time the player character respawns the gui gets "regenerated" to it's original state
so you dont even need to reset anything
it will reset by itself
so all you need to do is set a variable
preferrably a bool variable cuz it can only have 2 states - true or false
and it's really easy to make something like a toggle button using that
bool can have variables?
the variable
can have a bool
here's a list of everything a variable can represent
Bool is a boolean datatype that can only be either True or False
BrickColor is an enum datatype that holds a list of brick colours
Color3 is a three value datatype that can be in the range from 0 to 255 for each (or if you wanna go deeper, from 0 to 1)
Nil is an empty datatype that essentially means "doesnt exist" or "gone"
Number is a floating point number datatype (aka just a number but it can also be a decimal like 0.4 or 1.2832328)
Object is a datatype that points towards an object in the game (aka a path)
UDim2 is a special datatype exclusive to gui objects which describes proportional scale and offset in pixels for two coordinates (blah blah blah basically the thing you use for size and position in gui)
Vector2 is a two value datatype which represents a vector in a 2d coordinate system (X and Y)
Vector3 is a three value datatpe which represents a vector in a 3d coordinate system (X, Y and Z)
yaaaay
woah
you could read all of this on the official roblox documentation btw
wha
yea
tell me
now think about it
you press on the button
the show open variable is false
it sets the gui to visible and then sets it to true
then it checks if it's true
what does the red dot do
it is true
and so it sets it's visible back to false
and the variable back to false
you literally just did nothing
if i used that would it work
yea, for a start at least
though
it still wont work
cuz you know what
You didnt specify a variable in the if statement
you just wrote that if a string saying "StoreOpen" is equal to boolean false then this thing happens
it obviously wont be equal to the boolean cuz it's a whole different datatype
you forgot to tick this little button here
Use Variable
also it still wont work even after all that
didnt you say a variable starts out as nothing
cuz you just asked it to compare a variable that Doesnt fucking exist
Exactlyy
unless you specify the variable's value it will always be represented as Nil
and if you try to compare a Nil variable to something it just wont work
is there a if variable = nil feature ;-;
you need to set the variable to something
before the gui left click event connects
wait you dont need a action to set a variable?
it only connects when the script arrives to it's position inb a line
nono you got that right
WHAT
i was just using comment blocks to make it faster
this is correct, the only things wrong are the if statements and the lack of a set variable block before gui left click
btw you can do this literally in a single if statement LMAO
aura aura
You are smart and prolific in this, with enough practice you will be able to make a bunch of really cool and complex stuffs
only if you wish to ofc
AURA
i'll probably be back here
im working on a game similar to bear but it's more like
a hide and seek thing. a fnaf themed hide and seek
can you rate the lobby that i totally didnt steal from bear at all rq
i just want opinions on it
send a full screenshot in retro chat it fits there
i will tell my praises there
nvm i got help