#"Equipped is not a valid member or PlayerGui"
1 messages · Page 1 of 1 (latest)
Script? You're not accessing things correctly. What variable you think is the tool isn't
** You are now Level 2! **
script.Parent is the GUI, not the tool
and also, edit the player's PlayerGui, not StarterGui
so what would i change in terms of the "script.Parent" part? im newer to scripting so i dont really know how this works
You're making a path to the tool itself.
So script starts at the script itself.
Parent goes up one, which in this case is the GUI.
So where is the GUI and where is the tool?
script.Parent is playergui not a tool
are you asking where i have the gui and tool located
Yeah pretty much. Show the explorer for the tool and gui.
put a localscript inside the tool
** You are now Level 9! **
yea i gave my friend perms are we were tryna fix this
im guessing he moved iut
it was in the tool beforehand
still doesnt show the gui btw
lol
GUI is already ScreenGui, so doing GUI.ScreenGui won't be the ScreenGui you want
The last line doesn't really make sense
so what should i edit the GUI.ScreenGui to
Just GUI
k
I think its player.PlayerGui not game.PlayerGui
let me try that :P
is this correct???
yes and you can remove the unnecessary last line
you can do wait for child in case the screengui doesn't load in
like
doyou mean that last lin
e
cause i playtested it and the gui still didnt load in
yes remove the last line guis never show up in the character unless you put them there
send script
use wait for child on that line
** You are now Level 3! **
which line?
where you declare the gui variable
oh
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
put it in quotes as a string
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
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
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()
would the id of the sound be in quotations
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
k
then inside of the unequipped connection remove the second equipped connection
you tried to reference a ScreenGui that was in a ScreenGui
unless you have a SceenGui in one already then its not going to work
that problem has already been fixed
the only thing in my screen gui is a frame
could you show us the StarterGui in the explorer
yes
it could help a ton
the gui is showing when you equip the tool right?
oh its literally that simple
send the script again
also change wait for child screengui to be c00lgui
this is probably why
its going to return infinite yield possible if not
send it again
whats the console saying
lemme check
remove the unnecessary end) you have a syntax error
k
when you see a red line you should have alarms blaring in your head
keep that in mind for scripting
lol
99.9999% of the time if theres a red line the script is going to error
so how do i fix this one
was it the syntax error
with the extra end
remove the "end)"
leave one or remove both of them
you can also hover mouse over red lined things to see whats wrong with them
leave one
remember you can count the amount of things that would require an end to know how many you need
no errors
gui just doesnt show
beep noise plays though
hmmm
is the frame invisible
visible is unchecked
** You are now Level 4! **
thats why
oh
either keep it checked or modify frame itself
right now you are modifying its parent which is a screengui
grandpa do you know the difference between visible and enabled
enabled im pretty sure is not a property of ui elements only screengui
ah
then make it disabled at first
thats probably because enabled is activated in the explorer
either you can disable it whenever the script starts or change it in the explorer
either works
this cant be good
in the properties
i was right
it was there at one point
what are you selecting the frame or the screengui
YES.
i will send you a video of the properties
right now
smartest roblox studio users
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
is the enabled property unchecked
^
can you send that video please
yes because that is the one with the enabled
property not frames
finally
ikr