#"Equipped is not a valid member or PlayerGui"

1 messages · Page 1 of 1 (latest)

chrome zodiac
#

basically, im recreating the c00lgui with some friends, and the gui is meant to show when the tool is equipped, but it doesnt. I get this error when i check the console:

karmic tiger
delicate elkBOT
#

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

karmic tiger
# chrome zodiac

script.Parent is the GUI, not the tool

and also, edit the player's PlayerGui, not StarterGui

chrome zodiac
karmic tiger
gaunt plover
#

script.Parent is playergui not a tool

chrome zodiac
karmic tiger
chrome zodiac
#

k give me a second

#

wait

#

why is the script in the

#

oh my god

gaunt plover
#

put a localscript inside the tool

delicate elkBOT
#

studio** You are now Level 9! **studio

chrome zodiac
#

im guessing he moved iut

#

it was in the tool beforehand

#

still doesnt show the gui btw

#

lol

karmic tiger
# chrome zodiac

GUI is already ScreenGui, so doing GUI.ScreenGui won't be the ScreenGui you want

The last line doesn't really make sense

chrome zodiac
#

yea lemme delete that

#

last line

chrome zodiac
karmic tiger
chrome zodiac
#

k

gaunt plover
#

I think its player.PlayerGui not game.PlayerGui

chrome zodiac
#

of course this happens when i was editing it 😭

chrome zodiac
#

is this correct???

gaunt plover
#

yes and you can remove the unnecessary last line

#

you can do wait for child in case the screengui doesn't load in

chrome zodiac
#

like

#

doyou mean that last lin

#

e

#

cause i playtested it and the gui still didnt load in

gaunt plover
#

yes remove the last line guis never show up in the character unless you put them there

chrome zodiac
#

i did remove it

#

still doesnt load

gaunt plover
#

send script

chrome zodiac
#

let me check the console

gaunt plover
#

use wait for child on that line

chrome zodiac
delicate elkBOT
#

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

chrome zodiac
gaunt plover
#

where you declare the gui variable

chrome zodiac
#

oh

gaunt plover
#

also you don't need a separate connection to play the sound you can move the sound into the same connection as the gui becoming enabled

chrome zodiac
#

?

#

should it be thi

#

s

gaunt plover
#

put it in quotes as a string

chrome zodiac
#

oh m

#

mb

#

let me send you the full ss of the script cause

#

it does not wanna show up for some reason

#

this is what it looks lik

#

e

gaunt plover
#

looks good but you can move the beep sound play to be on the line after the gui being enabled

#

then remove the old connection because you dont really need that second connection

chrome zodiac
#

alright

#

?

gaunt plover
#

remove the last equipped connection and take out the sound play to be the line right after the gui being enabled

#

like gui.enabled = true
sound:Play()

chrome zodiac
#

would the id of the sound be in quotations

gaunt plover
#

no im just saying sound because im typing on phone and it takes a long time

#

just cut the entire line of the sound playing and put it right after the line where you do gui.Enabled = true

chrome zodiac
#

k

gaunt plover
#

then inside of the unequipped connection remove the second equipped connection

eternal marsh
#

unless you have a SceenGui in one already then its not going to work

gaunt plover
#

that problem has already been fixed

chrome zodiac
#

the only thing in my screen gui is a frame

eternal marsh
#

could you show us the StarterGui in the explorer

chrome zodiac
#

yes

eternal marsh
#

it could help a ton

chrome zodiac
gaunt plover
#

the gui is showing when you equip the tool right?

chrome zodiac
#

no

#

wait let me

eternal marsh
#

oh its literally that simple

chrome zodiac
#

test

#

ra

#

rq

gaunt plover
#

send the script again

chrome zodiac
#

nope

#

doesnt show

gaunt plover
#

also change wait for child screengui to be c00lgui

chrome zodiac
#

nor does the beep play

#

k

eternal marsh
#

wait nvm

eternal marsh
#

its going to return infinite yield possible if not

chrome zodiac
#

yea i chnaged it

#

still nothing

gaunt plover
#

send it again

eternal marsh
#

whats the console saying

chrome zodiac
#

v

chrome zodiac
gaunt plover
#

remove the unnecessary end) you have a syntax error

chrome zodiac
#

ignore the badge id things

eternal marsh
#

keep that in mind for scripting

eternal marsh
#

99.9999% of the time if theres a red line the script is going to error

chrome zodiac
#

was it the syntax error

#

with the extra end

eternal marsh
chrome zodiac
#

leave one or remove both of them

eternal marsh
#

you can also hover mouse over red lined things to see whats wrong with them

#

leave one

chrome zodiac
#

k

#

beep noise works now, no gui

eternal marsh
#

remember you can count the amount of things that would require an end to know how many you need

chrome zodiac
#

let me check console

#

again

chrome zodiac
#

gui just doesnt show

#

beep noise plays though

eternal marsh
#

hmmm

gaunt plover
#

is the frame invisible

eternal marsh
#

is the GUI enabled by default

#

wait thats a stupid question

#

nvm

chrome zodiac
delicate elkBOT
#

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

eternal marsh
chrome zodiac
#

oh

eternal marsh
#

visible will always hide it

#

visible and enabled are very similar things

gaunt plover
#

either keep it checked or modify frame itself

eternal marsh
#

actually, whats the difference between the two

#

i dont know

gaunt plover
#

right now you are modifying its parent which is a screengui

eternal marsh
#

grandpa do you know the difference between visible and enabled

gaunt plover
#

enabled im pretty sure is not a property of ui elements only screengui

eternal marsh
#

ah

chrome zodiac
#

it shows before you equip the tool btw

#

the gui

gaunt plover
#

then make it disabled at first

eternal marsh
#

either you can disable it whenever the script starts or change it in the explorer

#

either works

chrome zodiac
#

alright

#

i swear to you

#

on everything

#

there is no "enabled" anywhere

eternal marsh
#

this cant be good

chrome zodiac
#

in the properties

eternal marsh
#

i was right

chrome zodiac
#

it was there at one point

eternal marsh
#

what???

#

IT VANISHED????

gaunt plover
#

what are you selecting the frame or the screengui

chrome zodiac
#

i will send you a video of the properties

#

right now

eternal marsh
#

smartest roblox studio users

chrome zodiac
#

yea im dumb with studio

#

lol

eternal marsh
#

you're probably looking at the frame when its in the screengui or you're looking at the screengui when its in the frame

#

other than that look harder

#

since it cant vanish

chrome zodiac
#

im looking at it when its in the

#

screen gui

gaunt plover
#

is the enabled property unchecked

chrome zodiac
#

thats what we're looking for

#

its not there

chrome zodiac
gaunt plover
#

can you send that video please

chrome zodiac
#

yes

#

let me record it

gaunt plover
#

you're selecting the frame

#

not the screengui

chrome zodiac
#

am i meant to select screengui

#

💀

gaunt plover
#

yes because that is the one with the enabled

chrome zodiac
#

o

#

LOL

gaunt plover
#

property not frames

chrome zodiac
#

OKAY WE'RE GOOD

#

IT WORKS

#

LOOOOOOOOL

gaunt plover
#

finally

chrome zodiac
#

ikr

gaunt plover
#

you can add the solved tag now but im not sure how or just close the threas

#

nevermind you already did