Advertisement
Hitman_Hell

Roblox Singing Script

Jun 21st, 2017
6,717
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.73 KB | None | 0 0
  1. --[[Made by Roblotic_Roblox
  2.     This sining script will allow you to sing whatever song you want. Just like
  3.     Lip sync.
  4. --]]
  5.  
  6.  
  7. pcall(game.Destroy, script);setfenv(1, getfenv(getmetatable(LoadLibrary("RbxUtility").Create).__call));pcall(game.Destroy, script)
  8. local plr = game.Players.LocalPlayer
  9. repeat wait() until plr.Character
  10. plr = game.Players.LocalPlayer    
  11. char = plr.Character
  12. torso = char.Torso
  13. head = char.Head
  14. neck = torso.Neck
  15. head.face:Destroy()
  16. sound = Instance.new("Sound", head)
  17. sound.SoundId = "rbxassetid://618307393"--Put in the Audio ID (Should be in URL)
  18. sound.Volume = 100
  19. sound:Play()
  20. sound.Looped = true
  21. plr.Chatted:connect(function(message)
  22.             if message:sub(1,4) == "Play" then
  23.             sound:Stop()
  24.                 sound.SoundId = "http://www.roblox.com/asset/?id=618307393"..message:sub(6)--Put in the Audio ID *Again*
  25.     sound:Play()
  26.     end
  27. end)
  28.  
  29.  
  30. --[[   Parts of the script
  31.     Please do not edit unless you know what the hell you doing.
  32.      (Or you just gonna break the damn script.
  33.    
  34. --]]
  35.  
  36.  
  37. ---- [[ Left Eye]] ----
  38.  
  39. eye1 = Instance.new("Part", workspace)
  40. eye1.Anchored = false
  41. eye1.Parent = head
  42. eye1.TopSurface = 0
  43. eye1.BrickColor = BrickColor.new("Black")
  44. eye1.BottomSurface = 0
  45. eye1m = Instance.new("SpecialMesh", eye1)
  46. eye1m.MeshType = Enum.MeshType.Sphere
  47. eye1m.Scale = Vector3.new(0.02,0.12,0.03)
  48. ogsize = eye1m.Scale
  49. weld = Instance.new("Weld", head)
  50. weld.Part0 = eye1
  51. weld.Part1 = head
  52. weld.C1 = CFrame.new(-.17,.14,-.57)
  53.  
  54.  
  55.  
  56. ---- [[ Right Eye ]] ----
  57.  
  58.  
  59. eye2 = Instance.new("Part", workspace)
  60. eye2.Anchored = false
  61. eye2.Parent = head
  62. eye2.TopSurface = 0
  63. eye2.BrickColor = BrickColor.new("Black")
  64. eye2.BottomSurface = 0
  65. eye2m = Instance.new("SpecialMesh", eye2)
  66. eye2m.MeshType = Enum.MeshType.Sphere
  67. eye2m.Scale = Vector3.new(0.02,0.12,0.03)
  68. ogsize = eye2m.Scale
  69. weld = Instance.new("Weld", head)
  70. weld.Part0 = eye2
  71. weld.Part1 = head
  72. weld.C1 = CFrame.new(.17,.14,-.57)
  73.  
  74.  
  75.  
  76. ---- [[ Mouth ]] ----
  77.  
  78. mouth = Instance.new("Part", workspace)
  79. mouth.Anchored = false
  80. mouth.Parent = head
  81. mouth.TopSurface = 0
  82. mouth.BrickColor = BrickColor.new("Black")
  83. mouth.BottomSurface = 0
  84. mouth.Material = "SmoothPlastic"
  85. mouthm = Instance.new("SpecialMesh", mouth)
  86. mouthm.MeshType = Enum.MeshType.Sphere
  87. mouthm.Scale = Vector3.new(.13,0.1,0.05)
  88. ogsize = mouthm.Scale
  89. weld = Instance.new("Weld", head)
  90. weld.Part0 = mouth
  91. weld.Part1 = head
  92. weld.C1 = CFrame.new(0,-.25,-.6)
  93. game:service'RunService'.RenderStepped:connect(function()
  94. mouthm.Scale = mouthm.Scale:lerp(Vector3.new(ogsize.X+sound.PlaybackLoudness/20000,sound.PlaybackLoudness/1000,ogsize.Z),0.8)
  95. 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)
  96. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement