This is script I made. It is not working. Can you help me?
1 Like
You need to locate the inventory from line 1 that is located in Player’s PlayerGui, not StarterGui.
3 Likes
So the GUI is inside of the player when you play. The starter gui is just where the gui is stored for when you start
If you want to get “Inventory”
You need to do
local player = game.Players.LocalPlayer
local playerGUI = player.PlayerGui
local Inventory = playerGUI.["Custom Inventory"].Inventory
local isOpen = false
function Open()
Inventory.Visible = true
end
button.MouseButton1Click:Connect(open)
2 Likes