#Gui

113 messages · Page 1 of 1 (latest)

noble rover
#

this button need to open

#

this

#

thats the open button

#

script.Parent.MouseButton1Click:Connect(function()

end)

#

this is in the localscript

#

and this is this

pulsar pulsar
#

ok uh

#

why not just do

#

if frame.visible = true then
frame.visible = false
else
frame.visible = true

jovial parrot
#

or

frame.Visible = not frame.Visible
noble rover
#

i need to start with local?

jovial parrot
#

no

#
if Frame.Visible == true then
  Frame.Visible = false
else
  Frame.Visible = true
end
noble rover
#

still not working

jovial parrot
#

yeah because you didnt put it in the event

noble rover
#

wdym

jovial parrot
#

you shouldnt put it in the end of the script

noble rover
jovial parrot
#

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

noble rover
#

but put here?

#

or

#

here

noble rover
jovial parrot
#

put it in the open button script

noble rover
#

.

jovial parrot
#

redo CTRL+z

#

dont replace the entire script

#

replace the section of the code

noble rover
jovial parrot
#

oh

noble rover
jovial parrot
#

put it in the long script then.

noble rover
#

oh

#

on the top?

jovial parrot
#

no, replace your original code (the one with the if value == 0 then)

noble rover
#

so here

jovial parrot
#

no..

#

you replaced the event

noble rover
#

the buttom

#

of this

jovial parrot
#

keep the

menuButton.ImageButton.MouseButton1Click:Connect(function()
    -- paste code in here
end)
noble rover
#

oh

#

now working

#

not*

jovial parrot
#

can i see the code?

noble rover
#

i screen record u all the "Team changer"

#

gui

#

1 sec

jovial parrot
#

i cant call rn

#

just providing screenshots would be enough

noble rover
#

screen record on obs (:

jovial parrot
#

oh ok

noble rover
#

there u go

jovial parrot
#

i cant watch that. its a mkv

#

replace the mkv with a mp4

noble rover
jovial parrot
#

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

noble rover
#

oh ok

#

so now i got 1 localscript

#

what now

jovial parrot
#

you didnt replace the value == 0 code

noble rover
#

this?

jovial parrot
#

just replace the entire if code with

Frame.Visible = not Frame.Visible
#

no

#

not just that

#

the entire if

noble rover
#

oh

#

fuck

jovial parrot
#

its ok CTRL + Z

#

to undo

noble rover
jovial parrot
#

yep

#

it should work

noble rover
#

still not working

#

listen the first time with the first code it worked

#

but after i put all the teams its not working

jovial parrot
#

are there no errors in the console, no warnings?

noble rover
#

let me check

#

the console in f9?

jovial parrot
#

yeah

noble rover
jovial parrot
#

StarBucks isnt a valid member of Frame 'Players.NikBer233.PlayerGui.TeamChange.Frame'

#

somewhere in your code you spelt StarBucks wrong and its causing errors

noble rover
#

all of this becuase the starbucs?

#

bucks

jovial parrot
#

probably but your original code wasnt good practice

(not trying to be rude, just trying to show you good practice)

noble rover
jovial parrot
#

yep

noble rover
#

its spell right no?

jovial parrot
#

no

noble rover
jovial parrot
#

the Frame.StarBucks is causing error

noble rover
#

what

jovial parrot
#

not the color

noble rover
#

StarBucks like this no?

#

am i stupid?

jovial parrot
#

i dont know, you need to check whats inside Frame and check if starbucks exist

noble rover
#

oh damn

#

the B is like this b

jovial parrot
#

well if the object inside Frame is called that then yes

noble rover
#

now its work crying