I am making a windows XP game and having a download button so it basically make a invisible icon or whatever set to visible but the button is in another ui that’s not the same and my script don’t wanna work
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Options.Startup.ChangePicMain.ChangePic4.Visible = true
end)
Pegagittt
(Pegagit)
January 4, 2022, 8:18pm
#2
Could u send me Pictures from the Explorer?
Hello, your path has a small mistake
This path is better
script.Parent.Parent.ChangePicMain.ChangePic4.Visible = true
i tried this and this came up in the output Options is not a valid member of ScreenGui “Players.SomeOddYtber2.PlayerGui.Options”
Sorry. I edit my message. Now that will work
this did infact show but it didnt show when i clicked it it just showed the game played
You forget to put that on a function connected to the event MouseButton1Click
Put that on your script
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.ChangePicMain.ChangePic4.Visible = true
end)
Pegagittt
(Pegagit)
January 4, 2022, 8:37pm
#9
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent:WaitForChild(“ChangePicMain”):WaitForChild(“ChangePic4”).Visible = true
end)
– U dont need that many "Parent"´s
1 Like
Pegagittt
(Pegagit)
January 4, 2022, 8:39pm
#11
No Problem!
If u need more help tell me.
1 Like
question is it possible for to have a search like google but the script has a maxium of what comes up like google i realise this is properly impossible but ive had this answer
Pegagittt
(Pegagit)
January 4, 2022, 8:41pm
#13
Can you explain it to me with more details?
so you search for something and little bars come up for search suggestions ofc a script will control it without it getting odd… like a search engine
This issue has been re unsolved i tried moving it in another ui frame but this did not make it work
Pegagittt
(Pegagit)
January 5, 2022, 4:31pm
#17
Hey, is your Problem that you need help to script this or your UI is not working?
1 Like
I have a intention for making things break on complete accident i was moving it to another ui and tested edit some code didnt work so i reverted the code back and its ye broke
Pegagittt
(Pegagit)
January 5, 2022, 10:06pm
#19
Could u send me the Scripts or the complete UI then i will see if i can fix it.
thats alot of scripts how about i send a copy of the game if you want that is but we will be here for ages putting scripts on