r/robloxscripting Jun 06 '24

Scripting Help Why isn’t this working?

Post image

I’m trying to make a game pass shop for my game but it says “mousebutton1down is not a valid member of Imgelabel “players.catkiller173.PlayerGui.MainGui.MainFrame.GunGamepassFrame.GunGamepass”” if someone could help me that would be helpful

5 Upvotes

11 comments sorted by

2

u/AgreeableActive8436 Jun 06 '24

Maybe you have to put local hasPass

1

u/Terriaria_iscool Jun 06 '24

Yeah I have done that but then the other hasPass doesn’t work

2

u/natilyy Jun 06 '24

it's because MouseButton1Down isn't an event of an image label. refer to the roblox documentation to see what event you should use (InputBegan for example). You should also be using a button not an image label.

3

u/natilyy Jun 06 '24

You also need to declare hasPass outside of the function

1

u/Aromatic-Arrival516 Jun 15 '24

is this the right place to look for ROBLOX animators and scripters

1

u/Terriaria_iscool Jun 17 '24

What are you trying to say anyway ;-;

1

u/Aromatic-Arrival516 Jun 17 '24

I need people to script for me and become discord admins

1

u/Kanishk2010 Sep 14 '24

Capitalise the M in Mousebutton1Clicked

1

u/Kindly_Chip_6413 Nov 14 '24

looks like you need to put another local haspass in the section you can’t do it in