#Gui
113 messages · Page 1 of 1 (latest)
this
thats the open button
script.Parent.MouseButton1Click:Connect(function()
end)
this is in the localscript
and this is this
ok uh
why not just do
if frame.visible = true then
frame.visible = false
else
frame.visible = true
or
frame.Visible = not frame.Visible
no
if Frame.Visible == true then
Frame.Visible = false
else
Frame.Visible = true
end
still not working
yeah because you didnt put it in the event
wdym
you shouldnt put it in the end of the script
replace
if value == 0 then
Frame.Visible = true
value = 1
elseif value == 1 then
Frame.Visible = not Frame.Visible
value = 0
end
with the new code i gave you
the image button need to open the frame
put it in the open button script
no no the long script its in there
oh
the local script on the image its this
put it in the long script then.
no, replace your original code (the one with the if value == 0 then)
keep the
menuButton.ImageButton.MouseButton1Click:Connect(function()
-- paste code in here
end)
can i see the code?
screen record on obs (:
oh ok
you didnt replace the code in the long one, you can delete the script in the button since your already handling the gui from one script
you didnt replace the value == 0 code
just replace the entire if code with
Frame.Visible = not Frame.Visible
no
not just that
the entire if
still not working
listen the first time with the first code it worked
but after i put all the teams its not working
are there no errors in the console, no warnings?
yeah
StarBucks isnt a valid member of Frame 'Players.NikBer233.PlayerGui.TeamChange.Frame'
somewhere in your code you spelt StarBucks wrong and its causing errors
probably but your original code wasnt good practice
(not trying to be rude, just trying to show you good practice)
yep
no
the Frame.StarBucks is causing error
not the color
i dont know, you need to check whats inside Frame and check if starbucks exist
well if the object inside Frame is called that then yes
now its work 