My screen gui won't display
1 | script.Parent.Equipped:Connect( function () |
2 | script.Parent.Parent.Parent.StarterGui [ "Device Screen" ] .Enabled = true |
3 | end ) |
4 |
5 | script.Parent.Unequipped:Connect( function () |
6 | script.Parent.Parent.Parent.PlayerGui [ "Device Screen" ] .Enabled = false |
7 | end ) |
I have tried startergui and playergui
You are going to be using PlayerGui
but instead of Script.Parent
Your going to need to use game.Players.LocalPlayer.PlayerGui
Full example in local script in your tool
1 | game.Players.LocalPlayer.PlayerGui [ "Device Screen" ] .Enabled = true --For the Unequipped function copy this and change it to false |
Hope this Helps!!
You have set the PlayerGui (which is the correct one) to false instead of true.