I am trying to make a tool which when selected it shows a GUI which will be able to control a system I am developing.
Ok so: Put your GUI into StartGui and turn the frame's visibility to false. (Use a local script for this)
01 | local gui = game.Players.LocalPlayer.PlayerGui:WaitForChild( "YOUR SCREEN GUI NAME HERE" , 5 ).YOUR FRAME NAME HERE |
02 |
03 | script.Parent.Equipped:Connect( function () |
04 |
05 | gui.Visible = true |
06 | end ) |
07 |
08 | script.Parent.Unequipped:Connect( function () |
09 | gui.Visible = false |
10 | end ) |
Script.Parent being inside the tool like here:https://gyazo.com/ebf795437d388fc492584cbadb632f57