For some reason, i've appeared to have entered in everything correctly, but the shop GUI isn't working. Is something wrong with my code? it's this:
1 | local player = game.Players.LocalPlayer |
2 |
3 | script.Parent.MouseButton 1 Click:Connect( function () |
4 | player.PlayerGui.ToolShop.Frame.Visible = true |
5 | end ) |
1 | Script.Parent.MouseButton 1 Click:Connect(Function() -- When you press the first GUI button do this function |
2 | Game.players.localplayer.PlayerGui.OTHER GUI.Enabled = true -- sets the second GUI to be visble |
3 | End) |
This will make when a gui is clicked it will make another gui open. This will work for sure. This should be a local script under the button.
Let me know if it works.