I have a server script that when a remote is fired then change the color of a textlabel (change color from a serverscript) Im trying to detect the label because it clones a template label then makes it the players name. I want it to do only specific players. But whenever I detect it it says TextLabel is nil. If anyone can help me define the label that would be great.
local a = function(Player)
local list = {};
for _, Player in next, PlayerService:GetPlayers() do
if Player.Name == list then
local txt = ScrollFrame[Player.Name]
txt.TextColor3 = Color3.new(0.666667, 0.333333, 1)
end;
end;
return RemoteEvent:FireClient(Player, list);
end;