Basically when I click a button on a GUI it opens up another screengui. I'm using remotefunctions to enable the GUI but it isn't working.
Here is the code in my button:
script.Parent.MouseButton1Click:Connect(function() game.ReplicatedStorage.OpenShop:FireServer() end)
Here is my code in the other GUI (the one I want to be enabled):
game.ReplicatedStorage.OpenShop.OnServerEvent:Connect(function() script.Parent.Enabled = true end)
They're both in local scripts.
Here's the code I had before:
script.Parent.MouseButton1Click:Connect(function() script.Parent.Parent.Parent.ShopGUI.Enabled = true end)