#Anyone know how to make a script so where when i click X, the shop closes.

1 messages · Page 1 of 1 (latest)

kind bloom
#

I also need help to make an opening shop button if u could with that

twilit nimbus
#

just make the gui visible = false

#

when u click on the button

#

not complicated

unborn spindle
#

theere so many youtube video on this

floral quarryBOT
#

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

twilit nimbus
unborn spindle
#

Chtagpt even knowd this

kind bloom
unborn spindle
kind bloom
#

i already have a shop gui, i need a button to OPEN/CLOSE the gui

#

well mainly a script to close it

unborn spindle
#

follow it

#

it for dumbiees it will show scripting as well

kind bloom
#

is that a gray role talking to me 💔

#

dude

unborn spindle
kind bloom
#

omg thank you space

unborn spindle
#

like think about searching up stuff first

kind bloom
#

uhh

#

it still doesnt work bro

unborn spindle
#

show me the code

floral quarryBOT
#

studio** You are now Level 2! **studio

kind bloom
#

script.Parent.MouseButton1Click:Connect(function()
    frame.Visible = true
end)

Close GUI LocalScript:
    local frame = script.Parent.Parent

script.Parent.MouseButton1Click:Connect(function()
    frame.Visible = false
end)```
unborn spindle
#

foler sturce

#

please

kind bloom
#

what about the folder source?

unborn spindle
#

structure

kind bloom
#

what about it?

unborn spindle
#

show me it

kind bloom
#

wait im slow

#

mb

#

that first script under starter gui is where i put it

unborn spindle
#

.

kind bloom
#

?

unborn spindle
#

the exit script should be in the button

kind bloom
#

ohhh

#

no it still doesnt work

#

scripting never works for me 💔

unborn spindle
#

local frame = script.Parent.Parent

kind bloom
#

nope..

unborn spindle
#

folder thing

kind bloom
#

wdym

unborn spindle
#

structure

kind bloom
unborn spindle
#

....

kind bloom
#

?

unborn spindle
#

@twilit nimbus Lookk at this

kind bloom
#

whats wrong with it gng

unborn spindle
#

IT SHOULD BE A LOCAL SCRIPT

kind bloom
#

i tried that it still doesnt work

unborn spindle
#

I will sned something just paste it in tot he right scripts okay?

kind bloom
#

alr

twilit nimbus
#

learn the basics before making a game bro

unborn spindle
#

-- Closs GUI Local Script
local frame = script.Parent.Parent
local button = script.Parent

button.MouseButton1Click:Coonect(function()
frame.Visible = false

#

end)

kind bloom
#

im confused why it doesnt work

unborn spindle
#

beacuse it both in the same script bro

kind bloom
#

no its not

unborn spindle
#

I quit this

kind bloom
#

this thing is from 2018

#

NOT EVEN, 2014 💔 ✌️

twilit nimbus
#

u put coonect

#

check the output it literally tells you whats wrong with the script

kind bloom
#

alright ill show it

twilit nimbus
#

coonect

kind bloom
#

@twilit nimbus

twilit nimbus
#

💔

kind bloom
#

oh

#

OMG IT WORKED

#

YOO

#

TYSMM!!!

#

IVE BEEN TRYING TO DO THIS FOR SO LONG

#

nvm now it doesnt work again

floral quarryBOT
#

studio** You are now Level 10! **studio

kind bloom
#

WAIT IT DOES

#

wait @twilit nimbus

#

it gets rid of everything except the text laver

#

label

#

whys that

twilit nimbus
#

cus its not in the frame

kind bloom
#

@twilit nimbus

twilit nimbus
kind bloom
#

like this?

#

but when i deelete the text label that isnt in shop, it goes away

#

and there isnt another text label

#

even though i copied and pasted into the shop frame

subtle shale