So I have this script to make a GUI available to only certain people. However, I would like to know how to adapt this to making a LocalScript only enabled for certain people.
Help is greatly appreciated.
Script:
local Table_Of_Names = {"ThrashIsDead","poophead27272","darkslayer741"};
if table.find(Table_Of_Names,game:service'Players'.LocalPlayer.Name)then
script.Parent.Enabled = true
else
script.Parent.Enabled = false
end;

1 comment
Is this for when a player joins a game?