Gamer_blox

GamerBlox Face (Client)

Sep 2nd, 2023 (edited)
1,067
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 KB | Source Code | 0 0
  1. local faceId = "616380929" -- Replace with the ID of the desired face
  2.  
  3. game.Players.PlayerAdded:Connect(function(player)
  4.     player.CharacterAdded:Connect(function(character)
  5.         local head = character:WaitForChild("Head") -- Wait for the head to load
  6.         local face = head:WaitForChild("face") -- Check if a face decal already exists
  7.  
  8.         -- If a face decal already exists, remove it
  9.         if face then
  10.             face:Destroy()
  11.         end
  12.  
  13.         -- Create a new face decal and assign the desired face ID
  14.         local newFace = Instance.new("Decal")
  15.         newFace.Texture = "http://www.roblox.com/asset/?id=" .. faceId
  16.         newFace.Name = "face"
  17.         newFace.Parent = head
  18.     end)
  19. end)
  20.  
Advertisement
Add Comment
Please, Sign In to add comment