#Button dissspear

169 messages · Page 1 of 1 (latest)

outer rose
#

Why do my button dissspear instead of opening the gui

zinc void
crystal summit
#

I think I know why

quartz snow
outer rose
#

local Button = script.Parent
local Frame = Button.Parent.Bed

Button.MouseButton1Click:Connect(function()
Frame.Visible = not Frame.Visible
end)

maiden estuary
#

where is the script located

outer rose
#

inside the button

glacial scrollBOT
#

studio** You are now Level 1! **studio

maiden estuary
#

And what does frame need to be?

outer rose
#

Bed frame

maiden estuary
#

change the name to BedFrame and do local Frame = Button.Parent.Parent.BedFrame

#

Right now there are 2 objects called bed

lost ocean
#

🙏🙏🙏🙏🙏 what is this

maiden estuary
#

the double parent is because the first parent bring it to the button, the second brings it to the gui so you can look for the BedFrame

lost ocean
#

You have duplicated name dawg

stoic shadow
#

"Frame.Visible = not Frame.Visible"

stoic shadow
#

That makes the value false

maiden estuary
lost ocean
maiden estuary
#

explain

stoic shadow
#

Yuh uh

#

It doesn't reverse the value

lost ocean
lost ocean
maiden estuary
#

oh yea it isnt script.parne

stoic shadow
#

Allright

lost ocean
#

It is because the name is duplicated 🙏🙏🙏🙏🙏🙏

#

JUST CHANGE THE NAME

stoic shadow
#

what does if bool then do

outer rose
#

Alright imma do that

maiden estuary
stoic shadow
#

if npt bool?

lost ocean
#

if true then run code

maiden estuary
#

if its false it runs the code

lost ocean
#

Who gave u s1

stoic shadow
#

Ok

lost ocean
#

💀

stoic shadow
#

Now lets say u have a false value

maiden estuary
stoic shadow
#

and u type if npt bool then

crystal summit
#

Yeah

stoic shadow
#

Er sorry

maiden estuary
lost ocean
stoic shadow
#

if bool then

#

You'd think that it'd check for it being flase right

maiden estuary
#

no?

glacial scrollBOT
#

studio** You are now Level 5! **studio

lost ocean
#

What so complicated about this

#

If true then run code

#

If not false then run code

#

If false then code no worki

#

if player.SkinColor == black then
player:kick()

maiden estuary
lost ocean
#

What

#

What so racist abt that

stoic shadow
#

you said that not bool reverse the value

#

So if the value is false then not value is true

#

According to you

maiden estuary
#

not = if it isnt true it runs the code

lost ocean
#

Yeah

stoic shadow
#

But if the value is false then if not value then cehcks if the value is false

#

NOT if the value is true

maiden estuary
#

if not player.Name == "Mimical" then
-- this only runs if the player isnt Mimical
end

lost ocean
#

🙏

stoic shadow
#

Thus means

#

that the not operator doesn't reverse the value

lost ocean
#

Your name does suit you

stoic shadow
#

Rather make it always false

lost ocean
#

Fuck no

#

It return the opposite of that bool value

stoic shadow
#

So Frame.Visible = not Frame.Visible will be false

lost ocean
#

WHAT DO YOU THINK "NOT FALSE" IS?

maiden estuary
#

that gives an error

stoic shadow
#

EXACTLY

lost ocean
#

🙏🙏🙏🙏🙏🙏🙏

stoic shadow
#

THATD WHAT IM SAYING

lost ocean
stoic shadow
#

ITS SUPPOSED TO BE FRAME.VISIBLE = TRUE

#

BECAUSE FRAME VISIBLE = FALSE

lost ocean
#

Try is yourself dumbass

#

My god

stoic shadow
#

AND FRAME.VISBLE = NOT FRAME.VISIBLE DOESN'T WORK

lost ocean
#

JUST FUCKING TRY IT YOURSELF

maiden estuary
#

it does

stoic shadow
#

BECAUSE NOT FRAME.VISIBLE RETURNS FALSE

lost ocean
#

OR STFU

maiden estuary
#

Calm down yall

#

please

#

Or stop talking

lost ocean
stoic shadow
#

HOW TF DO YOU THINK I KNOW THIS

outer rose
#

worked guys

stoic shadow
#

FINALLY

maiden estuary
#

Frame.Visible == Frame.Visible -- true
Frame.Visible == not Frame.Visible -- false

stoic shadow
#

YEAH

#

NOW YOU GET IT

lost ocean
#

My god

maiden estuary
#

Wdym I get it lol

#

I understand it already

lost ocean
#

Are you dumb?

maiden estuary
#

We dont need to be toxic please

#

Just like

#

cool off

#

if you are too mad

maiden estuary
stoic shadow
outer rose
#

I just changed the names

maiden estuary
#

Can you explain?

lost ocean
#

🤡🤡🤡🤡

stoic shadow
#

...o

lost ocean
#

🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡

maiden estuary
#

js stop

lost ocean
#

Boohooooo

maiden estuary
#

please

stoic shadow
#

Then just typing value would be true

maiden estuary
#

Cause hes trying to toggle it from whatever its current value is to the opposite

lost ocean
#

You sucks

stoic shadow
#

U typed it urself beforw

lost ocean
#

You sucks

maiden estuary
#

Frame.Visible = false is the same as
Frame.Visible = not Frame.Visible

stoic shadow
#

Thats fucking it im calling a S2

marble dust
#

enh

lost ocean
#

Yeah lmaoaoaoaooa

maiden estuary
#

except the second one makes it so if Frame.Visible == false, itll toggle to true

marble dust
#

what are yall arguing about

lost ocean
marble dust
#

what are yall even arguing about ;-

lost ocean
#

I sent this more than 10 times today

#

What a day

maiden estuary
#

Frame.Visible = true -- Frame is visible
Frame.Visible = Frame.Visible -- frame is visible
Frame.Visible = false -- Frame is not visible
Frame.Visible = not Frame.Visible -- Frame is visible
Frame.Visible = not Frame.Visible -- Frame is not visible

lost ocean
marble dust
lost ocean
#

Nothing

maiden estuary
marble dust
#

why does he disagree

marble dust
#
local Bool = false
print(not Bool)
marble dust
raven graniteBOT
#
Program Output
true

marble dust
#

oh wait! look at that!

#
local Bool = true
print(not Bool)
marble dust
raven graniteBOT
#
Program Output
false

marble dust
#

wow! look at that!

marble dust
#

ive used it atleast a million times

#

xd

#

its a good way to toggle visibility

stoic shadow
#

Well now i wanna die : (

marble dust
stoic shadow
#

Yeah

#

I guess i did well to rename myself to this

marble dust
#

now you dont need to add the extra 6 lines to your script

stoic shadow
#

Ye

grave willow
#

naw is this a condo games thats crazyyyyy work

#

😭

stoic shadow
#

K come to think of iy

#

Having a "Bed" frame might imply something

grave willow
#

he also tried to delete the ss

#

:Sob\