Hello, I am also a new roblox lua scripter. Here is something you can start off doing if you want to mess with "Guis" that do something when a button is clicked. The lines of code you see below is just some simple lines of code i've learnt in a day or two.
07 | local image = script.Parent.Parent.ImageLabel |
08 | local button = script.Parent |
11 | script.Parent.MouseButton 1 Click:Connect( function () |
12 | if visible = = false then |
22 | button.MouseEnter:Connect( function () |
23 | if image.Visible = = false then |
24 | button.Text = "Open Image" |
27 | button.Text = "Close Image" |
31 | button.MouseLeave:Connect( function () |
32 | if image.Visible = = true then |
33 | button.Text = "Close Image" |
36 | button.Text = "Open Image" |
P.S) if you want to accpet this answer as the "my question answered" since I gave you an example i'd be very appreciated :)