Greetings dear developers, my current issue would not usually require a devforum post, however I do feel the need to create this post to hear your opinions. So, my problem is, of course, related to the following code:
local trackingDevice = script.Parent
local trackingGui = game.Players.LocalPlayer.PlayerGui:WaitForChild('TrackingInterface')
trackingDevice.Equipped:Connect(function()
trackingGui.Enabled = true
end)
trackingDevice.Unequipped:Connect(function()
trackingGui.Enabled = false
end)
The apparent issue is that the GUI won’t become enabled when it is equipped. Any thoughts?
put print statements in these two spots to see if they are going through. If they are, then its probably something with the screenGui. Usually what I do is that I have all my screenGui’s enabled all the time, and to toggle them on or off, I build the UI inside a Frame like the image below.