Why doesn't it work? (Changing texts via script and player image)

So i made a script where it will show your info on a certain gui, but i get no errors with the script but it doesn’t work…


local Players = game:GetService("Players")

while wait(1) do
	
	local userId = script.OwnerUserId.Value
	local thumbType = Enum.ThumbnailType.HeadShot
	local thumbSize = Enum.ThumbnailSize.Size420x420
	local content, isReady = Players:GetUserThumbnailAsync(userId, thumbType, thumbSize)
	
	script.Parent.Frame:FindFirstChild("Name").Text = "APPLICANT, " .. script.OwnerName.Value .. ""
	script.Parent.Frame:FindFirstChild("UserId").Text = "W " .. script.OwnerUserId.Value .. ""
	script.Parent.Frame:FindFirstChild("PlayerImage").Image = content
		
end

Please help

What kind of script is this? Is this a local script or a normal script?

Normal, because i made a tool for it, if the tool gets stolen i still want to show original player info.

The script worked before, but after that it stopped working for some reason.

nvm i fixed it, don’t need no help anymore