Good Evening!
Whenever I try to put a face ID on a player in which I am customizing the texture ends up going blank, any ideas? Looked through some forums but the codes don’t seem to help me.
My current code:
Customization_Remotes.FaceEvents.FaceEvent.OnServerEvent:Connect(function(plr, id)
local SelectedPlayer = plr.ValuesGame.SelectedPlayer.Value
local CustomizedPlayer = script.Parent.Players:FindFirstChild(SelectedPlayer)
local faceid = id
CustomizedPlayer:FindFirstChild("Head").face.Texture = "rbxassetid://"..tostring(faceid)
end)
Ah, so what you said reminded me to import the face and then copy down the whole link thing the face creates when applied, so I did that and applied the whole line as the ID, which in my case was “http://www.roblox.com/asset/?id=255828374”.
Customization_Remotes.FaceEvents.FaceEvent.OnServerEvent:Connect(function(plr, id)
local SelectedPlayer = plr.ValuesGame.SelectedPlayer.Value
local CustomizedPlayer = script.Parent.Players:FindFirstChild(SelectedPlayer)
local humanoid = CustomizedPlayer:FindFirstChild("Humanoid")
CustomizedPlayer:WaitForChild("Head"):WaitForChild("face").Texture = id
end)