Ok, so, I'm making a customize option for my game, and it includes a face changer GUI. I'm using a custom "StarterCharacter." On the dummy I put a custom face, and named it accordingly. I tested and found this script worked.
function onTouch(part)
local humanoid = part.Parent:FindFirstChild("Humanoid")
if (humanoid ~= nil) then -- if a humanoid exists, then
humanoid.Parent.Head.face.Texture = script.Parent.Decal.Texture
end
end
script.Parent.Touched:connect(onTouch)
script.Parent.Touched:connect(onTouch)
Instead of a part being touched though, its a GUI button that will be clicked to change the players face. This is one script I tried, but didn't work.
local humanoid = game.Player.LocalPlayer.Character
script.Parent.MouseButton1Click:Connect(function()
humainoid.Head.face:Destroy()
humainoid.Head.face.Texture = "rbxassetid//10907551"
end)
Any help why this isn't working? I'm new to Roblox Studio, so I'm still learning, bear in mind that when you see my bad scripting skills :P

4 comments
that line of code is all to be put on a single line by the way
So, this would work for only if one person is in the game? It's a multiplayer game so I guess I try RemoteEvents. I do, however, have a little understanding how to use RemoteEvents.
Thanks anyway!
no problem by the way (I haven't been here in ages), and I've just realised how cringey I was just seven months ago. Hope you got there in the end :)