i i made a script to open a gun shop for my fps game and when i click on the open shop button i get this Players.Auqa_dash.PlayerGui.MainMenu.MenuFolder.ShopButton.Open:1: invalid argument #1 to 'Connect' (RBXScriptSignal expected, got function)``
here is my code to open the shop: script.Parent.MouseButton1Click.Connect(function() script.Parent.Parent.Parent.Shop.Visible = true end) does anyone know how to fix this?
Instead of using ".", you need to use ":" because it is a function.
:Connect()
not
.Connect