Advertisement
KashTheKingYT

Death Face

Nov 19th, 2021
3,864
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. local char = script.Parent
  2. local hum = char:WaitForChild("Humanoid")
  3.  
  4. function onDead()
  5.     local head = char:FindFirstChild("Head")
  6.     local face = head:FindFirstChild("face")
  7.    
  8.     face:Destroy()
  9.     local newFace = Instance.new("Decal", head)
  10.     newFace.Texture = "rbxassetid://434152481" --Put your image ID instead of numbers
  11.    
  12.     print("Player died")
  13. end
  14.  
  15. hum.Died:Connect(onDead)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement