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
Try this,
player = game.Players.LocalPlayer if player.Name == WhiteList then gui.Visible = true
Try it out, if it doesn't work let me know.