Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

ChangeSong GUI Won't become visible?

Asked by 4 years ago

-- Radio Power On local song1 = game.Workspace.Radio.Song1 local song2 = game.Workspace.Radio.Song2 local radioPower = script.Parent local radioPowerOff = script.Parent.Parent.RadioPowerOff local radioChangeSong = script.Parent.Parent.ChangeSong script.Parent.MouseButton1Click:Connect(function() radioPower.Visible = false radioPowerOff.Visible = true radioChangeSong = true if song1:Play() then song2:Play() else song1:Play() end end)

How come the GUI for "Change Song" won't become Visible when radioPowerOff.Visible is set to true? I have other scripts that should make this work. I am so close and this is the last step to me finishing it. These are BillBoardGUIs and they work perfectly fine, just Change Song will not become visible when the Radio is powered on.. Thanks in Advance!

0
ok what is the class name of the gui that isn't changing in visibility? AlexanderYar 788 — 4y
0
What do you mean by Class Name? Where do I find that>?? XRangerGuyX 29 — 4y
0
Ok i see your a new scripter or just inexperienced thats okay, so to find the class name, go to the object in the explorer which in this case is the gui, and then one of the properties says "ClassName", that is what type of object it is, like a part or gui or script or anything else. tell me what the classname is because there are multiple types of guis. AlexanderYar 788 — 4y
0
Ok. I thought that is what you meant. Sorry. It has been countless months since I have scripted. The type of GUI is a TextButton within a BillBoardGUI. That said TextButton is showing up above a Part I have made. XRangerGuyX 29 — 4y
View all comments (13 more)
0
so your trying to make the text button visible correct? AlexanderYar 788 — 4y
0
Yes that is what I am trying to do. When ever the Radio is turned on, it will show the 'Change Song' option. When the radio is off, it shouldn't show it. XRangerGuyX 29 — 4y
0
alright i know what to do. first of all, is there any output from that script that may tell you something isnt working? AlexanderYar 788 — 4y
0
Nothing at all. If there ever is an output error I refuse to ask for help since I know it is something that I should be able to fix. XRangerGuyX 29 — 4y
0
do some debugging. put a print() line in between every piece of code and have each one print something different, this is a working alternative way of finding errors in script if the script doesnt output its own errors. If one of the print() lines dont print then the code after it wont run or just doesnt work the way intended depending on the way your code is AlexanderYar 788 — 4y
0
Everything runs perfectly fine. I already debugged it and just gave it another go. Everything is firing up and going well.. Just.. Still not becoming Visible XRangerGuyX 29 — 4y
0
ok so then that means your most likely either naming something wrong or calling something too late or too early, so make sure there arent two things with the same name or a script that duplicates them and also just take a look at the script, even the small parts, and just think about what it does and if its possible something could be wrong, its what i do, it always works, i always eventually find AlexanderYar 788 — 4y
0
other than that i got no ideas. usually if i look at a game and look through everything, i find an error so you could just save your game to a new file and send that to this so i can take a look at your game or if not then i guess just post more code and/or send a screenshot of the explorer tab so i can see all the guis and stuff so i can find whats wrong. AlexanderYar 788 — 4y
0
I looked through it, tried to see if throwing it all into one script and fixed the Variables would help. It didn't help at all in fact it broke the entire script. Honestly I am stumped at this point. I have four scripts to make just this one radio work. XRangerGuyX 29 — 4y
0
I have the game saved as a file. How would I send a file through here? Also every other script is disabled that isn't needed, you will only need to mess with the things within BillboardGUI and the light blue part on the baseplate. XRangerGuyX 29 — 4y
0
why are there so many scripts? why are they scattered everywhere? organization make looking through code easier. So to send file you can either just upload the game to a second game and make it editable by people and then give the link to me, or its easier to upload it to media fire, you dont need an account for that, and send me that link. AlexanderYar 788 — 4y
0
Instead of making on single script for everything, I make a script for every single function and every single thing I want to happen. Which is a huge mistake.. If you believe that I can make the scripts a lot cleaner, please let me know! It would make scripting so much easier not having to go back and forth between scripts to find errors. XRangerGuyX 29 — 4y
0
Here is the medaifire link for the game: http://www.mediafire.com/file/d3zd0fkbggtg3pf/Radio.rbxl/file XRangerGuyX 29 — 4y

Answer this question