Why won't my textbutton do anything onclick? [SOLVED]
Asked by
5 years ago Edited 5 years ago
**THANKS SO MUCH iiiAmericanLight FOR SOLVING THE QUESTION! **
So, I'm making a game, obviously, and I'm trying to make these imagelabels turn visible by the press of a button, but the button doesn't do anything. Before you ask, the imagelabels work perfectly if I manually turn them visible on Roblox studio, it's just I want it where, like I said, the button turns them visible. When I mean they work perfectly, I mean that they turn visible.
The script:
01 | local Cat = script.Parent.Parent.Cat |
02 | local Cat 2 = script.Parent.Parent.Cat 2 |
03 | local Cat 3 = script.Parent.Parent.Cat 3 |
04 | local Cat 4 = script.Parent.Parent.Cat 4 |
05 | local Cat 5 = script.Parent.Parent.Cat 5 |
07 | script.Parent.MouseButton 1 Click:connect( function () |
08 | script.Parent.Text = "Hi" |
Thank you!