I have this simple function here:
local function NewUserCard(PresetID: number?)
local Clone = Frames.Page3.Members.Members.PlayerTemplate:Clone()
Clone.Parent = Frames.Page3.Members.Members
Clone.Visible = true
Clone:SetAttribute("IsTemplate", false)
Clone:SetAttribute("TemplateType", "User")
local function CheckTask()
local Success, Info = pcall(function()
print("m")
return {
game.Players:GetNameFromUserIdAsync(tonumber(Clone.TextInput.Text)),
game.Players:GetUserThumbnailAsync(
tonumber(Clone.TextInput.Text),
Enum.ThumbnailType.HeadShot,
Enum.ThumbnailSize.Size100x100
),
}
end)
if Success then
Clone._Name.Text = `{Info[1]}`
Clone.Image.Image = Info[2]
else
print(Info)
Clone._Name.Text = `Not found`
Clone.Image.Image = "rbxassetid://15105863258"
end
end
Clone.TextInput:GetPropertyChangedSignal("Text", function()
print("hi", Checking, Thread)
if Checking then
task.cancel(Thread) --// too quick, stop the old one...
Thread = task.spawn(CheckTask)
else
Thread = task.spawn(CheckTask)
end
end)
ConnectionsTable["Close" .. math.random(1, 500)] = Clone.Delete.MouseButton1Click:Connect(function()
Clone:Destroy()
end)
Clone.TextInput.Text = PresetID or ""
end
However, a total of zero print statements are firing. I do not know what is wrong or what the potential issue could be.
If it helps, here are the text box properties:

