Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a open and close script but with ImageLabels?

Asked by 4 years ago

I have no Idea how to make one so please help me

0
If you mean when you press an Imagelabel, you should use an ImageButton instead. mudathir2007 157 — 4y
0
what the hell do you mean dualworlds 90 — 4y

1 answer

Log in to vote
1
Answered by
Ziffixture 6913 Moderation Voter Community Moderator
4 years ago
Edited 4 years ago

You cannot make a open/close program for a GUILabel Instance as there is no interaction signal to connect to. To actively create a togglable Image, you'll have to use an ImageButton.

local ImageButton = script.Parent --// ImageButton GUIObject

ImageButton.MouseButton1Click:Connect(function()
    ImageButton.Visible = (not Image.Visible)
end)
0
thanks AndreiWs2 0 — 4y
Ad

Answer this question