Advertisement
DedFense

Sing fail script

Jun 11th, 2017
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. sound = Instance.new("Sound", head)
  10. sound.SoundId = "rbxassetid://479538022"
  11. sound.Volume = 100
  12. sound:Play()
  13. sound.Looped = true
  14. plr.Chatted:connect(function(message)
  15. if message:sub(1,4) == "Play" then
  16. sound:Stop()
  17. sound.SoundId = "http://www.roblox.com/asset/?id="..message:sub(6)
  18. sound:Play()
  19. elseif message:sub(1,5) == "Pitch" then
  20. sound.Pitch = message:sub(7)
  21. end
  22. end)
  23.  
  24.  
  25.  
  26. ---- [[ Mouth ]] ----
  27.  
  28. mouth = Instance.new("Part", workspace)
  29. mouth.Anchored = false
  30. mouth.Parent = head
  31. mouth.TopSurface = 0
  32. mouth.BrickColor = BrickColor.new("Really black")
  33. mouth.BottomSurface = 0
  34. mouth.Material = "SmoothPlastic"
  35. mouthm = Instance.new("SpecialMesh", mouth)
  36. mouthm.MeshType = Enum.MeshType.Sphere
  37. mouthm.Scale = Vector3.new(.13,0.1,0.05)
  38. ogsize = mouthm.Scale
  39. weld = Instance.new("Weld", head)
  40. weld.Part0 = mouth
  41. weld.Part1 = head
  42. weld.C1 = CFrame.new(0,-.25,-.6)
  43. game:service'RunService'.RenderStepped:connect(function()
  44. mouthm.Scale = mouthm.Scale:lerp(Vector3.new(ogsize.X+sound.PlaybackLoudness/20000,sound.PlaybackLoudness/1000,ogsize.Z),0.8)
  45. 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)
  46. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement