I’m currently using a tycoon kit, but instead of using Humanoids to display what you’ll buy when you step on it, I use BillboardUI’s, so it looks like this.
When you actually play the game, the buttons don’t appear because you haven’t started the tycoon or haven’t progressed enough, etc, which is intentional. Just when the button’s don’t appear, or aka being transparent, the BillboardUI’s are still there giving you this result:
So my question is, how would I go about making a script that checks if the part is transparent or not, so that the BillboardUI would follow it’s lead, something like this
if script.Parent.Transparency == 1 then script.Parent.BillboardGui.Enabled = false elseif script.Parent.Transparency == 0 then script.Parent.BillboardGui.Enabled = true end
In other words, if the part is invisible then the BillboardUI wouldn’t be enabled, if the part is visible then the BillboardUI would be enabled, this is my setup.
“Head” being the part you step on to make the purchase, just like all tycoons. It used to have a Humanoid to display it’s use/name, so that’s why it’s named that way.
I couldn’t find help elsewhere and have tried everything, so help would be much appreciated! I’m not really trying to learn scripting but that’s all I know. Thanks!