#Close Button Help

61 messages · Page 1 of 1 (latest)

dire nest
#

I am new to scripting in general and I need help on my close button because I can't seem to get it to get rid of the close button, and the gui.

#

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

#

I tried this script and it only got rid of my actual close button instead of that and the gui.

#

could anybody help?

dire nest
hard thistle
#

mbs

#

im a UE5/unity lifeform

dire nest
#

lmao all good

#

thats the entire gui i want to close

#

the button at the bottom is what I am supposed to use to close it

dire nest
hard thistle
#

show the whole one

#

until StarterGUI

#

or wait

#

I suppose ur script is in ' Button '

#

script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Parent.TutorialMain.Visible = false
end)

dire nest
dire nest
faint falconBOT
#

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

dire nest
#

Okay ill try

#

it out

dire nest
hard thistle
dire nest
#

i just made it

#

and it still didn't work

hard thistle
#

where did u made i t

dire nest
hard thistle
#

alr

#
script.Parent.Activated:Connect(function()
  script.Parent.Parent.Parent.Visible=false
end)
dire nest
#

try that instead?

#

yoo

#

thank you @hard thistle

faint falconBOT
#

studio** You are now Level 4! **studio

dire nest
#

it works

hard thistle
#

i thought u had the Close image not in the TutorialMain Frame

#

anyways

#

gl hf

dire nest
#

thank youu

#

@hard thistle Could you possibly make gamepasses for my game in the future?

#

I already have a built in auto clicker, and a auto open cases made

dire nest
#

also all my buttons stopped working now on my hotbar

#

I activated all of them, they were working before

hard thistle
#

k

#

show output, explorer and scripts

dire nest
#

@hard thistle well the buttons work, but only in studio testing?

#

Like they will work in testing inside studio but not in game.

hard thistle
#

you re not waiting for them to be created

#

local var=path:WaitForChild("childName")

dire nest
hard thistle
#

i gave you a basic idea

dire nest
#

oh

hard thistle
#

if you want to start scripting atleast frontend, please watch tutorials for a basic framework of understanding

#

then use the knowledge

#

for backend is diff

#

for backend you must learn off devforums