View difference between Paste ID: HKryqF76 and 925YZaw8
SHOW: | | - or go back to the newest paste.
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
head.face:Destroy()
10
sound = Instance.new("Sound", head)
11
sound.SoundId = "rbxassetid://"
12
sound.Volume = 100
13
sound:Play()
14
sound.Looped = true
15
plr.Chatted:connect(function(message)
16
            if message:sub(1,4) == "Play" then
17
            sound:Stop()
18
                sound.SoundId = "http://www.roblox.com/asset/?id="..message:sub(6)
19
    sound:Play()
20
    end
21
end)
22
23
24
25
26
---- [[ Left Eye]] ----
27
28
eye1 = Instance.new("Part", workspace)
29
eye1.Anchored = false
30
eye1.Parent = head
31
eye1.TopSurface = 0
32-
eye1.BrickColor = BrickColor.new("Black")
32+
eye1.BrickColor = BrickColor.new("Really Black")
33
eye1.BottomSurface = 0
34
eye1m = Instance.new("SpecialMesh", eye1)
35
eye1m.MeshType = Enum.MeshType.Sphere
36
eye1m.Scale = Vector3.new(0.02,0.12,0.03)
37
ogsize = eye1m.Scale
38
weld = Instance.new("Weld", head)
39
weld.Part0 = eye1
40
weld.Part1 = head
41
weld.C1 = CFrame.new(-.17,.14,-.57)
42
43
44
45
---- [[ Right Eye ]] ----
46
47
48
eye2 = Instance.new("Part", workspace)
49
eye2.Anchored = false
50
eye2.Parent = head
51
eye2.TopSurface = 0
52-
eye2.BrickColor = BrickColor.new("Black")
52+
eye2.BrickColor = BrickColor.new("Really Black")
53
eye2.BottomSurface = 0
54
eye2m = Instance.new("SpecialMesh", eye2)
55
eye2m.MeshType = Enum.MeshType.Sphere
56
eye2m.Scale = Vector3.new(0.02,0.12,0.03)
57
ogsize = eye2m.Scale
58
weld = Instance.new("Weld", head)
59
weld.Part0 = eye2
60
weld.Part1 = head
61
weld.C1 = CFrame.new(.17,.14,-.57)
62
63
64
65-
---- [[ Mouth ]] ----
65+
--Day night function--
66
67-
mouth = Instance.new("Part", workspace)
67+
local a = game.Players.LocalPlayer
68-
mouth.Anchored = false
68+
local mouse = a:GetMouse()
69-
mouth.Parent = head
69+
 
70-
mouth.TopSurface = 0
70+
game.Workspace[a.Name].Humanoid.HealthDisplayType = "AlwaysOff"
71-
mouth.BrickColor = BrickColor.new("Black")
71+
game.Workspace[a.Name].Humanoid.HealthDisplayDistance = "0"
72-
mouth.BottomSurface = 0
72+
game.Workspace[a.Name].Humanoid.DisplayDistanceType = "None"
73-
mouth.Material = "SmoothPlastic"
73+
 
74-
mouthm = Instance.new("SpecialMesh", mouth)
74+
 
75-
mouthm.MeshType = Enum.MeshType.Sphere
75+
 
76-
mouthm.Scale = Vector3.new(.13,0.1,0.05)
76+
mouse.KeyDown:connect(function(key)
77-
ogsize = mouthm.Scale
77+
if key == "q" then
78
local p = game.Workspace[a.Name]
79-
weld.Part0 = mouth
79+
for i,v in pairs(p:GetChildren()) do
80
    if v:IsA("Part") then
81-
weld.C1 = CFrame.new(0,-.25,-.6)
81+
        v.Transparency = 1
82-
game:service'RunService'.RenderStepped:connect(function()
82+
        p.Head.face.Transparency = 1
83-
mouthm.Scale = mouthm.Scale:lerp(Vector3.new(ogsize.X+sound.PlaybackLoudness/20000,sound.PlaybackLoudness/1000,ogsize.Z),0.8)
83+
        p.Cloak.Transparency = 1
84-
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)
84+
        p.Head.BillboardGui.Enabled = false
85
        game.Lighting.OutdoorAmbient = Color3.new(0, 0, 0)
86
        game.Lighting.Brightness = 0
87
        game.Lighting.Ambient = Color3.new(0, 0, 0)    
88
        p.Humanoid.WalkSpeed = 100
89
        p.Humanoid.JumpPower = 75
90
        game.Workspace.Gravity = 80
91
       
92
    end
93
end
94
 
95
end
96
end)
97
 
98
mouse.KeyDown:connect(function(key)
99
if key == "e" then
100
local p = game.Workspace[a.Name]
101
for i,v in pairs(p:GetChildren()) do
102
    if v:IsA("Part") then
103
        v.Transparency = 0
104
        p.Cloak.Transparency = 0
105
        p.Head.face.Transparency = 0
106
        p.Reference.Transparency = 1
107
        p.HumanoidRootPart.Transparency = 1
108
        p.Head.BillboardGui.Enabled = true
109
        game.Lighting.OutdoorAmbient = Color3.new(127, 127, 127)
110
        game.Lighting.Brightness = 1
111
        game.Lighting.Ambient = Color3.new(0, 0, 0)
112
        p.Humanoid.WalkSpeed = 21
113
        p.Humanoid.JumpPower = 50
114
        game.Workspace.Gravity = 100
115
    end
116
end
117
 
118
end
119
end)