Advertisement
Guest User

roblox

a guest
Feb 16th, 2020
115
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.  
  3. local plr = game.Players.LocalPlayer
  4.  
  5. repeat wait() until plr.Character
  6.  
  7. plr = game.Players.LocalPlayer    
  8.  
  9. char = plr.Character
  10.  
  11. torso = char.Torso
  12.  
  13. head = char.Head
  14.  
  15. neck = torso.Neck
  16.  
  17. head.face:Destroy()
  18.  
  19. sound = Instance.new("Sound", head)
  20.  
  21. sound.SoundId = "rbxassetid://"
  22.  
  23. sound.Volume = 100
  24.  
  25. sound:Play()
  26.  
  27. sound.Looped = true
  28.  
  29. plr.Chatted:connect(function(message)
  30.  
  31.             if message:sub(1,4) == "Play" then
  32.  
  33.             sound:Stop()
  34.  
  35.                 sound.SoundId = "http://www.roblox.com/asset/?id="..message:sub(6)
  36.  
  37.     sound:Play()
  38.  
  39.     end
  40.  
  41. end)
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51. ---- [[ Left Eye]] ----
  52.  
  53.  
  54.  
  55. eye1 = Instance.new("Part", workspace)
  56.  
  57. eye1.Anchored = false
  58.  
  59. eye1.Parent = head
  60.  
  61. eye1.TopSurface = 0
  62.  
  63. eye1.BrickColor = BrickColor.new("Black")
  64.  
  65. eye1.BottomSurface = 0
  66.  
  67. eye1m = Instance.new("SpecialMesh", eye1)
  68.  
  69. eye1m.MeshType = Enum.MeshType.Sphere
  70.  
  71. eye1m.Scale = Vector3.new(0.02,0.12,0.03)
  72.  
  73. ogsize = eye1m.Scale
  74.  
  75. weld = Instance.new("Weld", head)
  76.  
  77. weld.Part0 = eye1
  78.  
  79. weld.Part1 = head
  80.  
  81. weld.C1 = CFrame.new(-.17,.14,-.57)
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89. ---- [[ Right Eye ]] ----
  90.  
  91.  
  92.  
  93.  
  94.  
  95. eye2 = Instance.new("Part", workspace)
  96.  
  97. eye2.Anchored = false
  98.  
  99. eye2.Parent = head
  100.  
  101. eye2.TopSurface = 0
  102.  
  103. eye2.BrickColor = BrickColor.new("Black")
  104.  
  105. eye2.BottomSurface = 0
  106.  
  107. eye2m = Instance.new("SpecialMesh", eye2)
  108.  
  109. eye2m.MeshType = Enum.MeshType.Sphere
  110.  
  111. eye2m.Scale = Vector3.new(0.02,0.12,0.03)
  112.  
  113. ogsize = eye2m.Scale
  114.  
  115. weld = Instance.new("Weld", head)
  116.  
  117. weld.Part0 = eye2
  118.  
  119. weld.Part1 = head
  120.  
  121. weld.C1 = CFrame.new(.17,.14,-.57)
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. ---- [[ Mouth ]] ----
  130.  
  131.  
  132.  
  133. mouth = Instance.new("Part", workspace)
  134.  
  135. mouth.Anchored = false
  136.  
  137. mouth.Parent = head
  138.  
  139. mouth.TopSurface = 0
  140.  
  141. mouth.BrickColor = BrickColor.new("Black")
  142.  
  143. mouth.BottomSurface = 0
  144.  
  145. mouth.Material = "SmoothPlastic"
  146.  
  147. mouthm = Instance.new("SpecialMesh", mouth)
  148.  
  149. mouthm.MeshType = Enum.MeshType.Sphere
  150.  
  151. mouthm.Scale = Vector3.new(.13,0.1,0.05)
  152.  
  153. ogsize = mouthm.Scale
  154.  
  155. weld = Instance.new("Weld", head)
  156.  
  157. weld.Part0 = mouth
  158.  
  159. weld.Part1 = head
  160.  
  161. weld.C1 = CFrame.new(0,-.25,-.6)
  162.  
  163. game:service'RunService'.RenderStepped:connect(function()
  164.  
  165. mouthm.Scale = mouthm.Scale:lerp(Vector3.new(ogsize.X+sound.PlaybackLoudness/20000,sound.PlaybackLoudness/1000,ogsize.Z),0.8)
  166.  
  167. 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)
  168.  
  169. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement