#nvm i got help

1 messages · Page 1 of 1 (latest)

analog apex
#

pls help

#

idk how to send files as new member sorry

verbal hazel
#

Lvl 5

analog apex
devout bloom
#

your recording is fucked ://

analog apex
#

wut

#

it isnt if you fullscreen it

devout bloom
#

tells me a lot

#

fullscreen or not

analog apex
#

oh

#

hmm

#

i have an idea

devout bloom
#

just take a screenshot of the explorer

#

and properties list

#

though i dont think you need to screenshot properties

#

just the explorer

analog apex
#

would it be stupid for me to ask what's the explorer

devout bloom
#

the thing which has all of your objects

#

in a list

#

the window is titled Explorer

analog apex
#

the button image has the script in it

#

shop

devout bloom
#

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

analog apex
#

oh

devout bloom
#

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

analog apex
#

so being less organized is better for gui?

devout bloom
#

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

devout bloom
analog apex
#

ohh ok

#

thx ima try it

devout bloom
#

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

analog apex
#

wait does only the stuff inside the frame become visible

devout bloom
#

ya

#

like

analog apex
#

k

devout bloom
#

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)

analog apex
#

wait so is there something im doing wrong here

devout bloom
#

the gui left click path is wrong

analog apex
#

omg i just saw that

#

i didnt add parent

devout bloom
#

you arent clicking on the script, you are clicking on the shop image button

#

ya

analog apex
#

yay it works

devout bloom
#

YAAAAY!!!!

analog apex
#

ok one more question

devout bloom
#

im all ear muahaha

analog apex
#

when you make a variable does it start out at 0?

devout bloom
analog apex
#

i see

devout bloom
#

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

analog apex
#

is there a way to set a variable to a number whenever the player joins

devout bloom
devout bloom
#

have you tried using stuff like scratch before

analog apex
#

yeah

devout bloom
#

cuz that line of thinking and/or knowledge will be useful here

analog apex
#

i made a full game in scratcg

devout bloom
#

you know cap blocks?

analog apex
#

no lmao

devout bloom
#

like the ones that are at the start of a script in scratch

#

like the orange ones

#

When Green Flag is Clicked

analog apex
#

ohh

devout bloom
#

they are called cap blocks

analog apex
#

huh

devout bloom
#

retrostudio (and roblox by extension) has a similar thing but it's a LOT more dynamic

#

they are called Events

analog apex
#

yea i figured that part out

devout bloom
#

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

analog apex
#

is it every player

devout bloom
#

there's also a block called Player Removing

devout bloom
#

absolutely every player

#

when they join this specific server

analog apex
#

shoot

devout bloom
#

the event block fires

#

if they respawn that event block wont fire

#

cuz that's their character respawning, not the player

analog apex
#

can i used a get properties thing to make it only when that player joins

devout bloom
#

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

analog apex
#

i just want a way to make my variable start out as the same number every time you join

devout bloom
#

like

#

describe what you want to do i might give you a hint

analog apex
#

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

devout bloom
#

ohhhh

#

you can 100% make that

#
  • you wont even need to use player added for this
analog apex
#

wut

devout bloom
#

ok so in short

analog apex
#

hold on

#

i think i have a idea

devout bloom
#

remember

#

how i told you

#

that roblox clones everything inside of startergui

#

into player's own playergui folder

analog apex
#

yes

devout bloom
#

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

analog apex
#

bool can have variables?

devout bloom
#

the variable

#

can have a bool

#

here's a list of everything a variable can represent

devout bloom
# analog apex bool can have variables?

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

analog apex
#

woah

devout bloom
#

you could read all of this on the official roblox documentation btw

analog apex
#

ok so like

#

this would work right

devout bloom
#

funnily enough

#

No

analog apex
#

wha

devout bloom
#

do you know how retrostudio executes it's scripts

#

like in what order

analog apex
#

yea

devout bloom
#

tell me

analog apex
#

left to right

#

???

devout bloom
#

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

analog apex
#

what does the red dot do

devout bloom
#

it is true

#

and so it sets it's visible back to false

#

and the variable back to false

#

you literally just did nothing

devout bloom
#

If → Else

analog apex
#

if i used that would it work

devout bloom
#

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

analog apex
#

ok i fixed that

#

but like

devout bloom
#

also it still wont work even after all that

analog apex
#

didnt you say a variable starts out as nothing

devout bloom
#

cuz you just asked it to compare a variable that Doesnt fucking exist

devout bloom
#

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

analog apex
#

is there a if variable = nil feature ;-;

devout bloom
#

you need to set the variable to something

#

before the gui left click event connects

analog apex
#

wait you dont need a action to set a variable?

devout bloom
#

it only connects when the script arrives to it's position inb a line

devout bloom
analog apex
#

WHAT

devout bloom
#

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

analog apex
#

OMG TYSM YYOU ARE SO AWESOME SAUCE

#

im overjoyed rn

#

mb

#

sorry

devout bloom
#

btw you can do this literally in a single if statement LMAO

analog apex
#

im just excited it works

#

i did

devout bloom
#

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

analog apex
#

im remaking bear alpha so

#

idk

devout bloom
#

AURA

analog apex
#

i'll probably be back here

devout bloom
#

im working on a game similar to bear but it's more like

#

a hide and seek thing. a fnaf themed hide and seek

analog apex
#

can you rate the lobby that i totally didnt steal from bear at all rq

#

i just want opinions on it

devout bloom
#

i will tell my praises there

analog apex
#

nvm i got help