VorLex

Untitled

Jan 3rd, 2018
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. pcall(game.Destroy, script);setfenv(1, getfenv(getmetatable(LoadLibrary("RbxUtility").Create).__call));pcall(game.Destroy, script)
  2. local plr = game.Players.LocalPlayer
  3. repeat wait() until plr.Character
  4. plr = game.Players.LocalPlayer
  5. char = plr.Character
  6. torso = char.Torso
  7. head = char.Head
  8. neck = torso.Neck
  9. head.face:Destroy()
  10. sound = Instance.new("Sound", head)
  11. sound.SoundId = "rbxassetid://"
  12. sound.Volume = 100
  13. sound:Play()
  14. sound.Looped = true
  15. plr.Chatted:connect(function(message)
  16. if message:sub(1,4) == "Play" then
  17. sound:Stop()
  18. sound.SoundId = "http://www.roblox.com/asset/?id="..message:sub(6)
  19. sound:Play()
  20. end
  21. end)
  22.  
  23.  
  24.  
  25.  
  26. ---- [[ Left Eye]] ----
  27.  
  28. eye1 = Instance.new("Part", workspace)
  29. eye1.Anchored = false
  30. eye1.Parent = head
  31. eye1.TopSurface = 0
  32. eye1.BrickColor = BrickColor.new("White")
  33. eye1.BottomSurface = 0
  34. eye1m = Instance.new("SpecialMesh", eye1)
  35. eye1m.MeshType = Enum.MeshType.Sphere
  36. eye1m.Material = "SmoothPlastic"
  37. eye1m.Scale = Vector3.new(0.02,0.12,0.03)
  38. ogsize = eye1m.Scale
  39. weld = Instance.new("Weld", head)
  40. weld.Part0 = eye1
  41. weld.Part1 = head
  42. weld.C1 = CFrame.new(-.17,.14,-.57)
  43.  
  44.  
  45.  
  46. ---- [[ Right Eye ]] ----
  47.  
  48.  
  49. eye2 = Instance.new("Part", workspace)
  50. eye2.Anchored = false
  51. eye2.Parent = head
  52. eye2.TopSurface = 0
  53. eye2.BrickColor = BrickColor.new("Red")
  54. eye2.BottomSurface = 0
  55. eye2m = Instance.new("SpecialMesh", eye2)
  56. eye2m.MeshType = Enum.MeshType.Sphere
  57. eye2m.Material = "Neon"
  58. eye2m.Scale = Vector3.new(0.02,0.12,0.03)
  59. ogsize = eye2m.Scale
  60. weld = Instance.new("Weld", head)
  61. weld.Part0 = eye2
  62. weld.Part1 = head
  63. weld.C1 = CFrame.new(.17,.14,-.57)
  64.  
  65.  
  66.  
  67. ---- [[ Mouth ]] ----
  68.  
  69. mouth = Instance.new("Part", workspace)
  70. mouth.Anchored = false
  71. mouth.Parent = head
  72. mouth.TopSurface = 0
  73. mouth.BrickColor = BrickColor.new("Black")
  74. mouth.BottomSurface = 0
  75. mouth.Material = "SmoothPlastic"
  76. mouthm = Instance.new("SpecialMesh", mouth)
  77. mouthm.MeshType = Enum.MeshType.Sphere
  78. mouthm.Scale = Vector3.new(.13,0.1,0.05)
  79. ogsize = mouthm.Scale
  80. weld = Instance.new("Weld", head)
  81. weld.Part0 = mouth
  82. weld.Part1 = head
  83. weld.C1 = CFrame.new(0,-.25,-.6)
  84. game:service'RunService'.RenderStepped:connect(function()
  85. mouthm.Scale = mouthm.Scale:lerp(Vector3.new(ogsize.X+sound.PlaybackLoudness/20000,sound.PlaybackLoudness/1000,ogsize.Z),0.8)
  86. 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)
  87. end)
Add Comment
Please, Sign In to add comment