View difference between Paste ID: EP4gUm6n and Fs1ex6bt
SHOW: | | - or go back to the newest paste.
1
--Ppattasmouth
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://169376152"
14+
sound.SoundId = "rbxassetid://481143906"
15
sound.Volume = 6
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("Black")
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
weld = Instance.new("Weld", head)
42
weld.Part0 = eye1
43
weld.Part1 = head
44
weld.C1 = CFrame.new(-.17,.14,-.57)
45
46
47
48
---- [[ Right Eye ]] ----
49
50
51
eye2 = Instance.new("Part", workspace)
52
eye2.Anchored = false
53
eye2.Parent = head
54
eye2.TopSurface = 0
55
eye2.BrickColor = BrickColor.new("Black")
56
eye2.BottomSurface = 0
57
eye2m = Instance.new("SpecialMesh", eye2)
58
eye2m.MeshType = Enum.MeshType.Sphere
59
eye2m.Scale = Vector3.new(0.02,0.12,0.03)
60
ogsize = eye2m.Scale
61
weld = Instance.new("Weld", head)
62
weld.Part0 = eye2
63
weld.Part1 = head
64
weld.C1 = CFrame.new(.17,.14,-.57)
65
66
67
68
---- [[ Mouth ]] ----
69
70
mouth = Instance.new("Part", workspace)
71
mouth.Anchored = false
72
mouth.Parent = head
73
mouth.TopSurface = 0
74
mouth.BrickColor = BrickColor.new("Black")
75
mouth.BottomSurface = 0
76
mouth.Material = "SmoothPlastic"
77
mouthm = Instance.new("SpecialMesh", mouth)
78
mouthm.MeshType = Enum.MeshType.Sphere
79
mouthm.Scale = Vector3.new(.13,0.1,0.05)
80
ogsize = mouthm.Scale
81
weld = Instance.new("Weld", head)
82
weld.Part0 = mouth
83
weld.Part1 = head
84
weld.C1 = CFrame.new(0,-.25,-.6)
85
game:service'RunService'.RenderStepped:connect(function()
86
mouthm.Scale = mouthm.Scale:lerp(Vector3.new(ogsize.X+sound.PlaybackLoudness/20000,sound.PlaybackLoudness/1000,ogsize.Z),0.8)
87
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)
88
end)