Making a Gui Invisible..?
01 | local plrGui = game.Players.LocalPlayer.PlayerGui |
02 | local invP = plrGui.Core.Inventory |
05 | repeat wait() until game.Players.LocalPlayer |
06 | function OnClicked(playerwhoclicked) |
10 | script.Parent.MouseButton 1 Down:connect(OnClicked) |
OutPut Says LocalPlayer is a nill value
this is the errors
20:13:15.737 - local plrGui = game.Players.LocalPlayer.PlayerGui
local inv:1: attempt to index field 'LocalPlayer' (a nil value)
20:13:15.737 - Stack Begin
20:13:15.738 - Script 'local plrGui = game.Players.LocalPlayer.PlayerGui
local inv', Line 1
20:13:15.738 - Stack End