I put a local script inside of the tool and wrote this.
01 | script.Parent.Equipped:Connect( function () |
02 | local player = game:GetService( "Players" ).LocalPlayer |
04 | local targGui = player:WaitForChild( "PlayerGui" ):FindFirstChild( "PUT THE NAME OF THE GUI YOU WANT HERE" ) |
06 | targGui.Enabled = true |
11 | script.Parent.Unequipped:Connect( function () |
12 | local player = game:GetService( "Players" ).LocalPlayer |
14 | local targGui = player:WaitForChild( "PlayerGui" ):FindFirstChild( "PUT THE NAME OF THE GUI YOU WANT HERE" ) |
16 | targGui.Enabled = false |
Make sure you change the name of the targeted gui where it says PUT THE NAME OF THE GUI YOU WANT HERE
Also make sure you have your gui disabled in starter gui and reset on respawn is enabled.
Hope this helped, if it didn't work let me know so I can fix it for you.
Remember: This is not a request site.