Hello! I am having a problem which seems pretty trivial. Essentially I want it so that when I equip a tool a GUI appears. However this will not work. I have read the documentation, and watched lots of youtube. Here is the code
local tool = script.Parent
local plr = game.Players.LocalPlayer
tool.Equipped:Connect(function()
plr.PlayerGui.test.Frame.Visible = not plr.PlayerGui.test.Frame.Visible
end)
tool.Unequipped:Connect(function()
plr.PlayerGui.test.Frame.Visible = not plr.PlayerGui.test.Frame.Visible
end)
You’re saying in your PlayerGui, that there are two things, a ScreenGui and a Frame.
Your code currently goes to the PlayerGui, then a ScreenGui, and then a random “test” object. It would really help if you could just send a picture of your explorer because I believe you aren’t explaining it correctly.