Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

`` 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"

1 comment

0

this site is so confusing

2 answers

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

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.