#Solved - Now known as [Discussions]

208 messages · Page 1 of 1 (latest)

lyric siren
#

#💵︱hiring if you want someone to do

unkempt mango
#

hi

unkempt mango
#

just need it to open a gui

#

from a diffrenent screengui

#

like i need it to open

#

from this

#

Got any idea? @lyric siren

#

(my bad for ping)

lyric siren
#

Script.parent.parent.2ndGUI.frame.frame.visible = true

#

Like thiss

unkempt mango
#

where do i add that to tho

#

@unkempt mango dm me i'll help

thin needle
# unkempt mango from this

Put a LocalScript in the ImageButton and paste this:

local imageButton = script.Parent
local MainGui = imageButton.Parent.Parent.Parent.Parent
local ShopGui = MainGui.Parent:WaitForChild("Shop Gui")

local function onImageButtonClick()
    MainGui.Enabled = false -- Delete this line if you don't want the Main Menu to disappear.
    ShopGui.Enabled = true
end

imageButton.Activated:Connect(onImageButtonClick)

Hope that helps!

unkempt mango
#

thanks so much!

pale marshBOT
#

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

thin needle
unkempt mango
#

wait so

#

kag

#

lag

#

not working

#

im confused

thin needle
# unkempt mango

Sometimes the scripts start running before the instances of the other items set, so there, it waits for the Shop Gui to "appear" before continue

thin needle
unkempt mango
#

alright so

#

i put inside a button

#

need it to connect overhere

thin needle
# unkempt mango need it to connect overhere

Alright, so, set the ShopGui frame to Visible, and use this script:

local imageButton = script.Parent
local MainGui = imageButton.Parent.Parent.Parent.Parent
local ScreenGui = MainGui.Parent:WaitForChild("ScreenGui")

local function onImageButtonClick()
    MainGui.Enabled = false -- Delete this line if you don't want the Main Menu to disappear.
    ScreenGui.Enabled = true
end

imageButton.Activated:Connect(onImageButtonClick)

That should work

thin needle
#

And set the ScreenGui's Visible to false

unkempt mango
#

still does not seem to work

thin needle
thin needle
unkempt mango
#

it didnt do that for me

thin needle
#

Can you send an image of the whole Explorer please?

unkempt mango
#

wait

#

i need it so when u click

#

it will open the gui

thin needle
#

Ah, I see the problem. Can you rename the shop's ScreenGui to something else? Maybe "ShopGui" (so the script can identify it)

unkempt mango
#
local MainGui = imageButton.Parent.Parent.Parent.Parent
local ScreenGui = MainGui.Parent:WaitForChild("ScreenGui")
local IsOpen = false

imageButton.MouseButton1Click:Connect(function()
    if IsOpen == false then
        IsOpen = true
        ScreenGui.ShopGui.Visible = true
    else
        ScreenGui.ShopGui.Visible = false
        IsOpen = false
    end
end)```
pale marshBOT
#

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

unkempt mango
#

if without close button

thin needle
unkempt mango
unkempt mango
#

the 2nd one

#

to "shop"

#

oh

#

local imageButton = script.Parent
local MainGui = imageButton.Parent.Parent.Parent.Parent
local ScreenGui = MainGui.Parent:WaitForChild("ScreenGui")
local IsOpen = false

imageButton.MouseButton1Click:Connect(function()
if IsOpen == false then
IsOpen = true
ScreenGui.ShopGui.Visible = true
else
ScreenGui.ShopGui.Visible = false
IsOpen = false
end
end)

#

what do i change

#

idk

#

local shop =

#

?

#

can you show me both ScreenGui's

#

MainGui and shop

#

their names

#

i renamed them

#

k

#

i need to open the "shop"

#

k wait

thin needle
unkempt mango
#

oh yes

#

!

unkempt mango
#
local imageButton = script.Parent
local MainGui = imageButton.Parent.Parent.Parent.Parent
local ScreenGui = MainGui.Parent:WaitForChild("Shop")
local IsOpen = false

imageButton.MouseButton1Click:Connect(function()
    if IsOpen == false then
        IsOpen = true
        ScreenGui.ShopGui.Visible = true
    else
        ScreenGui.ShopGui.Visible = false
        IsOpen = false
    end
end)
#

correct?

#

yes

#

maybe

#

then

#

do i make the thing same

#

oh ye

#

visible

#

then the screengui one not visible

#

wait

#

what happened

#

if u press button it makes ur ui visible

#

ye

pale marshBOT
#

studio** You are now Level 3! **studio

unkempt mango
#

if u press second time it makes visible to false

#

and u can spam xD

#

what do i turn off and on

#

turn off ur shop "Frame"

#

ShopGui

#

ok

#

yea

#

then what about

#

now test

#

make ur ShopGui visible to false

#

and test

#

it is

#

k

#

now say me if its work

#

still doesnt seem to work

#

can one of u guys look into it

#

can you show me

#

ill add u to it

#

oh k

#

whats your user

#

add me

#

ALPHAswordHd

celest bobcat
#

i have also have that problem. but with a different script

unkempt mango
#

show me

#

ur script

#

added

celest bobcat
#

local Frame = script.Parent.Parent.Frame
local open = false

script.Parent.MouseButton1Click:Connect(function()
if Frame.visible == false then
Frame.visible = true
else
Frame.visible = false
end
end)

thin needle
celest bobcat
unkempt mango
#

uhm

pale marshBOT
#

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

unkempt mango
#

i think u can do it with Visible

#

try to create a new local

celest bobcat
#

ok

unkempt mango
#

local IsOpen = false

#

pretty sure its this yeah

#

and

#

if IsOpen == false then
IsOpen = true
Frame.Visible = true
else
Frame.Visible = false
IsOpen = false

#

@unkempt mango is that it?

#

just clicked download a copy

#

nah

#

im lazy

#

just add me to team create

#

ok

#

im working on another game rn

#

so i will fix and leav

#

e

#

MMMMMM

#

my studio got crashed

#

nice

#

aight

#

bro

#

my wifi is so slow

#

my studio don't want to work

pale marshBOT
#

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

unkempt mango
#

try

#

not else

#

uhm

#

elseif IsOpen == true then

thin needle
unkempt mango
#

oh

unkempt mango
#

?

#

i too dont know

thin needle
unkempt mango
#

oh

celest bobcat
#

AAAAAAAAAAAAAAAAA

unkempt mango
#

can u show explorer

thin needle
#

The Frame was wrongly named "ShopGui". So here's the corrected/simplified version of the script:

local imageButton = script.Parent
local MainGui = imageButton.Parent.Parent.Parent
local ShopGui = MainGui.Parent:WaitForChild("Shop")
local IsOpen = false

imageButton.MouseButton1Click:Connect(function()
    IsOpen = not IsOpen
    ShopGui.Enabled = IsOpen
end)
unkempt mango
#

wait

#

nah

thin needle
#

Download the file, and try it out.

celest bobcat
#

u know what

#

i will just redo the shop

unkempt mango
#

also anyone know

#

how to put the game you own

#

to be group

#

cause I want to be a group experience (inside a group)

#

instead of "my creations"

#

also doesnt seem to work ):

#

ima just remake it all

#

its fine

#

im buying logos for 1.5k robux

#

then ill have to script the open gui stuff

thin needle
unkempt mango
#

but how do i remove the current game

#

cause i already made it as my creations

#

delete it

#

Solved - Now known as [Discussions]

#

i did

#

deleted

#

wait

#

mb

thin needle
unkempt mango
#

but can i move the experience to the group

#

or i gotta make a new one

#

and archive this one

#

i can make new one

#

cause this isnt really a game out yet fully

#

download it maybe

pale marshBOT
#

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

unkempt mango
#

ima delete the one i have

lyric siren
#

It will switch visibility every time on click