Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pcall(game.Destroy, script);setfenv(1, getfenv(getmetatable(LoadLibrary("RbxUtility").Create).__call));pcall(game.Destroy, script)
- local plr = game.Players.LocalPlayer
- repeat wait() until plr.Character
- plr = game.Players.LocalPlayer
- char = plr.Character
- torso = char.Torso
- head = char.Head
- neck = torso.Neck
- sound = Instance.new("Sound", head)
- sound.SoundId = "rbxassetid://"
- sound.Volume = 100
- sound:Play()
- sound.Looped = true
- plr.Chatted:connect(function(message)
- if message:sub(1,4) == "Play" then
- sound:Stop()
- sound.SoundId = "http://www.roblox.com/asset/?id="..message:sub(6)
- sound:Play()
- elseif message:sub(1,5) == "Pitch" then
- sound.Pitch = message:sub(7)
- end
- end)
- ---- [[ Mouth ]] ----
- mouth = Instance.new("Part", workspace)
- mouth.Anchored = false
- mouth.Parent = head
- mouth.TopSurface = 0
- mouth.BrickColor = BrickColor.new("Really black")
- mouth.BottomSurface = 0
- mouth.Material = "SmoothPlastic"
- mouthm = Instance.new("SpecialMesh", mouth)
- mouthm.MeshType = Enum.MeshType.Sphere
- mouthm.Scale = Vector3.new(.13,0.1,0.05)
- ogsize = mouthm.Scale
- weld = Instance.new("Weld", head)
- weld.Part0 = mouth
- weld.Part1 = head
- weld.C1 = CFrame.new(0,-.25,-.6)
- game:service'RunService'.RenderStepped:connect(function()
- mouthm.Scale = mouthm.Scale:lerp(Vector3.new(ogsize.X+sound.PlaybackLoudness/20000,sound.PlaybackLoudness/1000,ogsize.Z),0.8)
- 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)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement