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

i made a script to open a gun shop for my fps game when i click it it does not show the shop?

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?

1 answer

Instead of using ".", you need to use ":" because it is a function.

:Connect()

not

.Connect

1 comment

0

thank you so much this worked!

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