Advertisement
23111111

Untitled

Sep 16th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mouth = Instance.new("Part", workspace)
  2. mouth.Anchored = false
  3. mouth.Parent = head
  4. mouth.TopSurface = 0
  5. mouth.BrickColor = BrickColor.new("Teal")
  6. mouth.BottomSurface = 0
  7. mouth.Material = "SmoothPlastic"
  8. mouthm = Instance.new("SpecialMesh", mouth)
  9. mouthm.MeshType = Enum.MeshType.Sphere
  10. mouthm.Scale = Vector3.new(.13,0.1,0.05)
  11. ogsize = mouthm.Scale
  12. weld = Instance.new("Weld", head)
  13. weld.Part0 = mouth
  14. weld.Part1 = head
  15. weld.C1 = CFrame.new(0,-.25,-.6)
  16. game:service'RunService'.RenderStepped:connect(function()
  17. mouthm.Scale = mouthm.Scale:lerp(Vector3.new(ogsize.X+sound.PlaybackLoudness/20000,sound.PlaybackLoudness/1000,ogsize.Z),0.8)
  18. neck.C0 = neck.C0:lerp(CFrame.new(0,1,0)*CFrame.Angles(math.rad(mouthm.Scale.Y*100) +math.rad(-90),0,math.rad(180)),0.1)
  19. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement