This is suppose to be a kick panel visible only for people I whitelist, but it doesn't work and it says in the Output : "PlayerGui is not a valid member of StartGui"
local WhiteList ={"PLAYNAME"}
local player = game.Players.Name
--this script goes in the Gui. It removes if the owner has no gamepass
plr = script.Parent.Parent.Parent --Should lead to parent of PlayerGui (startergui)
repeat wait() until plr.PlayerGui
if not player == WhiteList then
script.Parent:Destroy()
end
--This should make me see the kick panel--
Anybody help ? thanks

1 comment
I NOT "SPECEFIL"