script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.MainShop.Visible = not script.Parent.Parent.MainShop.Visible
local ClickSound = game.ReplicatedStorage.Click
local cs = game:GetService("ContentProvider")
cs:PreloadAsync(ClickSound)
ClickSound:Play()
end)
-- error
14:42:21.872 - Unable to cast to Array
How to fix this?