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

MouseButton1Down is not a valid member of ImageLabel?

Asked by 4 years ago

I came across this error today and I can't seem to find the fix and hoping to find it here.

This is the error line!

table.insert(cons, i.MouseButton1Down:connect(function()

Already thanks for the support.

0
Uh... You know ImageLabel is not ImageButton, right... Block_manvn 395 — 4y
0
I am aware of that but I don't use the word ImageLabel in the LocalScript however it puts the error code MouseButton1Down is not a valid member of ImageLabel in the output! DevBuildr 0 — 4y
0
Check the classname of "i". It in the property window. Block_manvn 395 — 4y
View all comments (3 more)
0
I have honestly no clue how to do that. DevBuildr 0 — 4y
0
Every object in Roblox has Classname. https://developer.roblox.com/en-us/api-reference/property/Instance/ClassName Block_manvn 395 — 4y
0
Did you put your "end)"? uhi_o 417 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

To use Click functions you have to use image buttons instead of labels.

0
Does that also go for holding the mouse down? DevBuildr 0 — 4y
0
Also replacing the ImageLabel cases cause the following bug to appear "ImageButton is not a valid member of TextButton" DevBuildr 0 — 4y
0
? PrismaticFruits 842 — 4y
Ad

Answer this question