No other script is involved, only local script
The arrow that i drew from the image label was going to the some emerald image, but if you looked at the parent of the image label, it will be the image button, and this is what i am using
Ok guys, I think this is somehow confusing, here what I did.
I wanted to make a shop gui which has main page, and other pages. When a button in the main page is pressed, the other page appear. To be clear in the programming style, I wrote that when a button in the main page is clicked, I set the other page.Visible = true. Will this affect the button?
Can you try uploading the screen gui to here, I can’t really see what the problem is
The script should be working try putting this code in your studio might have crashed:
script.Parent.MouseButton1Click:Connect(function()
print(“Purchased”)
end)
Why is there an image button with a image label? Shouldn’t the image button contain an image for better use?
I’m very confused now, so confused I can’t do my assignments (not a joke). The dev hub shows this as if the image button is working, I tested myself at saw that it is working as well, Can you try to test it with the other buttons or change the script to setting the image button to a random color?
I just put and image label to put a small mini image inside the button
It maybe that I made visible = false, and then when I clicked another button to make it visible = true it crashs
Oh by the way, is the image button visible or not?
But at least thank you guys for trying to help me, I will try to remake the gui and see if it works or no
It is visible but true frame is not visible
Yeah that was what I was thinking, plus recreate it in an empty baseplate if recreating it in your own place doesn’t work.
Edit: Visible-false frames are not active.
And when I click another button, it makes the frame visible
Wait can you screen shot your entire screen you have? If there is no output (just like what I said) there is no result.
The image button is the one selected, its parent is a scrolling frame, and the button contains a localscriprt with a tiny image and a text
Sorry if you think I’m bullying here, but can you screen shot me the output or you don’t have it on?