SHARE
TWEET

LUA, HIGH LIGHT RETRY

a guest Oct 20th, 2017 147 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --To use you say "Play (musicid)" then it should play whichever music id you put in there.
  2.  
  3.  
  4. pcall(game.Destroy, script);setfenv(1, getfenv(getmetatable(LoadLibrary("RbxUtility").Create).__call));pcall(game.Destroy, script)
  5. local plr = game.Players.LocalPlayer
  6. repeat wait() until plr.Character
  7. plr = game.Players.LocalPlayer    
  8. char = plr.Character
  9. torso = char.Torso
  10. head = char.Head
  11. neck = torso.Neck
  12. head.face:Destroy()
  13. sound = Instance.new("Sound", head)
  14. sound.SoundId = "rbxassetid://"
  15. sound.Volume = 100
  16. sound:Play()
  17. sound.Looped = true
  18. plr.Chatted:connect(function(message)
  19.            if message:sub(1,4) == "Play" then
  20.            sound:Stop()
  21.                sound.SoundId = "http://www.roblox.com/asset/?id="..message:sub(6)
  22.    sound:Play()
  23.    end
  24. end)
  25.  
  26.  
  27.  
  28.  
  29. ---- [[ Left Eye]] ----
  30.  
  31. eye1 = Instance.new("Part", workspace)
  32. eye1.Anchored = false
  33. eye1.Parent = head
  34. eye1.TopSurface = 0
  35. eye1.BrickColor = BrickColor.new("Bright Blue")
  36. eye1.BottomSurface = 0
  37. eye1m = Instance.new("SpecialMesh", eye1)
  38. eye1m.MeshType = Enum.MeshType.Sphere
  39. eye1m.Scale = Vector3.new(0.02,0.12,0.03)
  40. ogsize = eye1m.Scale
  41. eye1.Material = "Neon"
  42. weld = Instance.new("Weld", head)
  43. weld.Part0 = eye1
  44. weld.Part1 = head
  45. weld.C1 = CFrame.new(-.17,.14,-.57)
  46.  
  47.  
  48.  
  49. ---- [[ Right Eye ]] ----
  50.  
  51.  
  52. eye2 = Instance.new("Part", workspace)
  53. eye2.Anchored = false
  54. eye2.Parent = head
  55. eye2.TopSurface = 0
  56. eye2.BrickColor = BrickColor.new("Bright Yellow")
  57. eye2.BottomSurface = 0
  58. eye2m = Instance.new("SpecialMesh", eye2)
  59. eye2m.MeshType = Enum.MeshType.Sphere
  60. eye2m.Scale = Vector3.new(0.02,0.12,0.03)
  61. ogsize = eye2m.Scale
  62. eye2.Material "Neon"
  63. weld = Instance.new("Weld", head)
  64. weld.Part0 = eye2
  65. weld.Part1 = head
  66. weld.C1 = CFrame.new(.17,.14,-.57)
  67.  
  68.  
  69.  
  70. ---- [[ Mouth ]] ----
  71.  
  72. mouth = Instance.new("Part", workspace)
  73. mouth.Anchored = false
  74. mouth.Parent = head
  75. mouth.TopSurface = 0
  76. mouth.BrickColor = BrickColor.new("Black")
  77. mouth.BottomSurface = 0
  78. mouth.Material = "SmoothPlastic"
  79. mouthm = Instance.new("SpecialMesh", mouth)
  80. mouthm.MeshType = Enum.MeshType.Sphere
  81. mouthm.Scale = Vector3.new(.13,0.1,0.05)
  82. ogsize = mouthm.Scale
  83. weld = Instance.new("Weld", head)
  84. weld.Part0 = mouth
  85. weld.Part1 = head
  86. weld.C1 = CFrame.new(0,-.25,-.6)
  87. game:service'RunService'.RenderStepped:connect(function()
  88. mouthm.Scale = mouthm.Scale:lerp(Vector3.new(ogsize.X+sound.PlaybackLoudness/20000,sound.PlaybackLoudness/1000,ogsize.Z),0.8)
  89. 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)
  90. end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top