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

Its always saying "Mousebutton1up is not a valid member of image button" what am i doing wrong ?

Asked by 3 years ago
Edited 3 years ago

`` local ScreenGui = script.Parent local ShopFrame = ScreenGui.ShopFrame local OpenShop = ScreenGui.OpenShop

OpenShop.MouseButton1up:Connect(function() ShopFrame.Visible = not ShopFrame.Visible end)``

The Error

MouseButton1up is not a valid member of ImageButton "Players.JumpingConclusions.PlayerGui.Gui #4.OpenShop"

0
this site is so confusing JumpingConclusions 5 — 3y

2 answers

Log in to vote
1
Answered by
Dalamix 26
3 years ago

You're supposed to write "MouseButton1Up" not "MouseButton1up". Small difference, big change

Ad
Log in to vote
0
Answered by 3 years ago

The syntax is very picky on the way you spell. Everything needs to be character perfect. In this case, MouseButton1up should have an uppercase U in up.

Answer this question