4zx16

Remove Face On Touch

Dec 13th, 2021 (edited)
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. --[[
  2.  || πŸ“œ AUTHOR: @4zx16 || REMOVE FACE ON TOUCH
  3. ]]
  4. local function onTouch(hit)
  5.     local player = hit.Parent:FindFirstChild("Humanoid")
  6.    
  7.     if player ~= nil then
  8.         if hit.Parent:FindFirstChild("Head"):FindFirstChild("face").Texture == nil then return end
  9.         hit.Parent:FindFirstChild("Head"):FindFirstChild("face").Texture = 0
  10.     end
  11. end
  12. script.Parent.Touched:Connect(onTouch)
Add Comment
Please, Sign In to add comment