Hi, I'm trying to get access to my GUI, so I can make changes, but I don't know how, because my script is located in StarterPack, because I'm making something with Tools, and I can't access StarterGui. I've tried inserting the GUI into the Player's PlayerGui which seems like the best option to do something like this, but it doesn't work. Can someone help?
Code:
local Tool = script.Parent
local GUI = Tool.GUI
Tool.Equipped:Connect(function()
local Player = game.Players.LocalPlayer
GUI.Parent = Player:WaitForChild("PlayerGui")
end)

4 comments
errors?
No errors for some reason, the output is empty.
GUI.Enabled = true
Hmmm, that doesn't work. And also, when I took away the Equipped event, there was an error in the output saying "attempting to index nil with PlayerGui"