Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2018
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. local RS = game:GetService("RunService")
  2. local plr = game:GetService("Players").LocalPlayer
  3. local char = plr.Character or plr.CharacterAdded:wait()
  4. local head = char.Head
  5.  
  6. -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
  7.  
  8. for _, v in pairs(head:GetChildren())do
  9. if v:IsA'Decal' then
  10. v.Texture = "http://www.roblox.com/asset/?id=1449607543"
  11. end
  12. end
  13.  
  14. local offset = Vector3.new(0,0.15,(head.Size.Z/1.6))
  15. local part = Instance.new("Part", head)
  16. part.CanCollide = false
  17. part.Color = Color3.fromRGB(0,0,0)
  18. part.Position = Vector3.new(head.Position)
  19. part.Size = Vector3.new(0.3,0.02,0.1)
  20.  
  21. local sound = Instance.new("Sound", part)
  22. sound.SoundId = "rbxassetid://157518993"
  23. sound.Looped = true
  24. sound.Volume = 1
  25.  
  26. sound:Play()
  27.  
  28. local partw = Instance.new("Weld", part)
  29. partw.Part0 = part
  30. partw.Part1 = head
  31. partw.C0 = part.CFrame + offset
  32. partw.C1 = head.CFrame
  33. local mesh = Instance.new("BlockMesh", part)
  34.  
  35. -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
  36.  
  37. while wait() do
  38. local effector = 500 -- lower numbers have higher effect
  39. local mouthwideness = 5 -- higher numbers have a higher effect
  40. mesh.Scale = Vector3.new(1+(sound.PlaybackLoudness/effector),0.5+((sound.PlaybackLoudness/effector)*mouthwideness),0)
  41. end
  42.  
  43. --duruteru
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement