Bear23913
(BearBoi)
February 13, 2021, 11:27am
1
Hey developers, I am trying to make a GUI become visible after a wait, this is the script i’ve got and nothing seems to come out on the output if you have any suggestions please do let me know.
local SongList = script.Parent.SongList
print("Found GUI")
wait(9.70)
print("Waited")
local SongList = script.Parent.Visible = true
end
2 Likes
Crictoli
(cric)
February 13, 2021, 11:46am
2
Try:
Check if there’s anything in the output like bugs
Check parent of the script
If nothing works then this is because of this line of code that has two equals, you have to make a variable without changing the value.
local SongList = script.Parent.Visible = true
Instead just change the properties in another line of code
local SongList = script.Parent
Songlist.Visible = true
You can also do this without making a variable.
script.Parent.Visible = true
1 Like
Hey there! is this a local or a server script?
You should make a variable for the Frame before setting it to Visible. If this doesn’t work try
A - PlayerGui
B - Print Debugging
Updated Code:
local SongList = script.Parent.SongList
print("Found GUI")
wait(9.70)
print("Waited")
local SongList = script.Parent
SongList.Visible = true
end
1 Like
local SongList = script.Parent.SongList
print(“Found GUI”)
wait(9.70)
print(“Waited”)
SongList.Visible = true
end
1 Like
Bear23913
(BearBoi)
February 13, 2021, 12:12pm
6
Each thing I try, it also has a underlined red on the end.
remove the end lol, you don’t need an end over there.
martearo
(Uncle_Dinero)
February 13, 2021, 12:14pm
8
why are you writing “end”?, there isn’t a function for an end to be written.
1 Like