trying to make a UI where only certain people can see this specific text.
here is the script.
(no errors show)
if player.Name == "qtaian" then
script.Parent.Text = "Welcome, qtIan, you are deemed; owner."
else
script.Parent.Text = "Welcome you are deemed; guest."
wait(5)
script.Parent.TextTransparency = 1
end
local LocalPlayer = game.Players.LocalPlayer
local Allowed = {12345678; 12300000;} --UserID instead so you are not gonna do some hardwork to spell their names.
local function allowedPeople(thisPlayer)
for _, playerID in pairs(Allowed) do
if playerID == thisPlayer.UserId then
return true
end
end
end
if allowedPeople(LocalPlayer) == true then
script.Parent.Text = "Welcome, qtIan, you are deemed; owner."
else
script.Parent.Text = "Welcome you are deemed; guest."
wait(5)
script.Parent.TextTransparency = 1
end