So basically I'm making a face changer UI, And the code linked worked fine. Until I tried to show my friend it in a game, Which then, he didn't see my changed face. So I thought the script being a local script was the problem, So i made it a regular script and now i get this
Players.andypop12345.PlayerGui.FaceChangeUi.FaceChange.AngrySadE.ImageButton.Script:5: attempt to index nil with 'Name'
Here's the script I attempted to use
local player = game.Players.LocalPlayer
local face = "http://www.roblox.com/asset/?id=5965483051"
script.Parent.MouseButton1Down:Connect(function()
game.Workspace[player.Name].Chest.FaceHere.Face.Texture = face
end)
Line 5 is the line that's giving the error And feel free to just give me the code if you want, but that's lazy me talking, I want to learn how to script better and stuff so try just point out why its not working instead of just giving me the solution.

3 comments
Also i don't know why it says the face doesn't exist, cause it still works.
Your script is not Filtering Enabled, it means your face only changes on client and not server-wide.
You will require RemoteEvent/RemoteFunction here, you can lean how to use them in YouTube tutorials. https://developer.roblox.com/en-us/api-reference/class/RemoteEvent