View difference between Paste ID: HGX5vjFC and pd5wwKvd
SHOW: | | - or go back to the newest paste.
1
--- Made by: 123jl123 ---
2
--- Remake of SCP 035 The Mask ---
3
------------------------------------------------------
4
Player=game:GetService("Players").LocalPlayer
5
Character=Player.Character 
6
7
-------------------------------------------------------
8
local Orbd = Instance.new("Part", Character)
9
Orbd.Name = "Orbd"
10
Orbd.Shape = Enum.PartType.Ball
11
Orbd.CanCollide = false
12
Orbd.BrickColor = BrickColor.new("Really black")
13
Orbd.Transparency = 0
14
Orbd.Material = "Neon"
15
Orbd.Size = Vector3.new(0.3, 0.3, 0.3)
16
Orbd.TopSurface = Enum.SurfaceType.Smooth
17
Orbd.BottomSurface = Enum.SurfaceType.Smooth
18
19
local Weld = Instance.new("Weld", Orbd)
20
Weld.Part0 = Character.Head
21
Weld.Part1 = Orbd
22
Weld.C1 = CFrame.new(-0.26, -0.24, 0.55)
23
24
--------------------------------------------------------
25
local Orbvc = Instance.new("Part", Character)
26
Orbvc.Name = "Orbvc"
27
Orbvc.Shape = Enum.PartType.Ball
28
Orbvc.CanCollide = false
29
Orbvc.BrickColor = BrickColor.new("Really black")
30
Orbvc.Transparency = 0
31
Orbvc.Material = "Neon"
32
Orbvc.Size = Vector3.new(0.3, 0.3, 0.3)
33
Orbvc.TopSurface = Enum.SurfaceType.Smooth
34
Orbvc.BottomSurface = Enum.SurfaceType.Smooth
35
36
local Weld = Instance.new("Weld", Orbvc)
37
Weld.Part0 = Character.Head
38
Weld.Part1 = Orbvc
39
Weld.C1 = CFrame.new(0.26, -0.24, 0.55)
40
---------------------------------------------------------
41
local Mask = Instance.new("Part", Character)
42
Mask.Name = "Mask"
43
Mask.CanCollide = false
44
Mask.BrickColor = BrickColor.new("Really white")
45
Mask.Transparency = 0
46
Mask.Material = "Neon"
47
Mask.Size = Vector3.new(0.1, 0.1, 0.1)
48
Mask.TopSurface = Enum.SurfaceType.Smooth
49
Mask.BottomSurface = Enum.SurfaceType.Smooth
50
51
local Weld = Instance.new("Weld", Mask)
52
Weld.Part0 = Character.Head
53
Weld.Part1 = Mask
54
Weld.C1 = CFrame.new(0, -0.1, 0.8)
55
56
local M1 = Instance.new("SpecialMesh")
57
M1.Parent = Mask
58
M1.MeshId = "http://www.roblox.com/asset/?id=13520257"
59
M1.Scale = Vector3.new( 1, 1, 2)
60
----------------------------------------------------------
61
p = game.Players.LocalPlayer
62
char049 = p.Character
63
64
char049.Shirt:Remove()
65
for i,v in pairs(char049:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
66
wait()shirt = Instance.new("Shirt", char049)
67
shirt.Name = "Shirt"
68
pants = Instance.new("Pants", char049)
69
pants.Name = "Pants"
70
71
char049.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=648758131"
72
char049.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=472675863"
73-
-- Bodycolors!
73+
74-
local bdycolors = char:findFirstChild("Body Colors")
74+
75-
bdycolors.TorsoColor3 = Color3.new(0,0,0)
75+
76-
bdycolors.LeftArmColor3 = Color3.new(0,0,0)
76+
77-
bdycolors.RightArmColor3 = Color3.new(0,0,0)
77+
78-
bdycolors.HeadColor3 = Color3.new(0,0,0)
78+
79-
bdycolors.LeftLegColor3 = Color3.new(0,0,0)
79+
80-
bdycolors.RightLegColor3 = Color3.new(0,0,0)
80+
81
Effects = { }
82
local Player = game.Players.localPlayer
83
local Character = Player.Character
84
local Humanoid = Character.Humanoid
85
local mouse = Player:GetMouse()
86
local LeftArm = Character["Left Arm"]
87
local RightArm = Character["Right Arm"]
88
local LeftLeg = Character["Left Leg"]
89
local RightLeg = Character["Right Leg"]
90
local Head = Character.Head
91
local Torso = Character.Torso
92
local cam = game.Workspace.CurrentCamera
93
local RootPart = Character.HumanoidRootPart
94
local RootJoint = RootPart.RootJoint
95
local equipped = false
96
local attack = false
97
local Anim = 'Idle'
98
local idle = 0
99
local attacktype = 1
100
local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
101
local velocity = RootPart.Velocity.y
102
local sine = 0
103
local change = 1
104
local grabbed = false
105
local cn = CFrame.new
106
local mr = math.rad
107
local angles = CFrame.Angles
108
local ud = UDim2.new
109
local c3 = Color3.new
110
111
local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
112
Humanoid.Animator:Destroy()
113
Character.Animate:Destroy()
114
115
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
116
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
117
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
118
119
RSH, LSH = nil, nil 
120
121
RW = Instance.new("Weld") 
122
LW = Instance.new("Weld")
123
124
RH = Torso["Right Hip"]
125
LH = Torso["Left Hip"]
126
127
RSH = Torso["Right Shoulder"] 
128
LSH = Torso["Left Shoulder"] 
129
130
RSH.Parent = nil 
131
LSH.Parent = nil 
132
133
RW.Name = "RW"
134
RW.Part0 = Torso 
135
RW.C0 = cn(1.5, 0.5, 0)
136
RW.C1 = cn(0, 0.5, 0) 
137
RW.Part1 = RightArm
138
RW.Parent = Torso 
139
140
LW.Name = "LW"
141
LW.Part0 = Torso 
142
LW.C0 = cn(-1.5, 0.5, 0)
143
LW.C1 = cn(0, 0.5, 0) 
144
LW.Part1 = LeftArm
145
LW.Parent = Torso 
146
147
function clerp(a, b, t) 
148
local qa = {
149
QuaternionFromCFrame(a)
150
}
151
local qb = {
152
QuaternionFromCFrame(b)
153
} 
154
local ax, ay, az = a.x, a.y, a.z 
155
local bx, by, bz = b.x, b.y, b.z
156
local _t = 1 - t
157
return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) 
158
end 
159
160
function QuaternionFromCFrame(cf) 
161
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
162
local trace = m00 + m11 + m22 
163
if trace > 0 then 
164
local s = math.sqrt(1 + trace) 
165
local recip = 0.5 / s 
166
return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 
167
else 
168
local i = 0 
169
if m11 > m00 then
170
i = 1
171
end
172
if m22 > (i == 0 and m00 or m11) then 
173
i = 2 
174
end 
175
if i == 0 then 
176
local s = math.sqrt(m00 - m11 - m22 + 1) 
177
local recip = 0.5 / s 
178
return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip 
179
elseif i == 1 then 
180
local s = math.sqrt(m11 - m22 - m00 + 1) 
181
local recip = 0.5 / s 
182
return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip 
183
elseif i == 2 then 
184
local s = math.sqrt(m22 - m00 - m11 + 1) 
185
local recip = 0.5 / s
186
return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip 
187
end 
188
end 
189
end
190
191
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
192
local xs, ys, zs = x + x, y + y, z + z 
193
local wx, wy, wz = w * xs, w * ys, w * zs 
194
local xx = x * xs 
195
local xy = x * ys 
196
local xz = x * zs 
197
local yy = y * ys 
198
local yz = y * zs 
199
local zz = z * zs 
200
return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) 
201
end
202
203
function QuaternionSlerp(a, b, t) 
204
local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] 
205
local startInterp, finishInterp; 
206
if cosTheta >= 0.0001 then 
207
if (1 - cosTheta) > 0.0001 then 
208
local theta = math.acos(cosTheta) 
209
local invSinTheta = 1 / math.sin(theta) 
210
startInterp = math.sin((1 - t) * theta) * invSinTheta 
211
finishInterp = math.sin(t * theta) * invSinTheta  
212
else 
213
startInterp = 1 - t 
214
finishInterp = t 
215
end 
216
else 
217
if (1 + cosTheta) > 0.0001 then 
218
local theta = math.acos(-cosTheta) 
219
local invSinTheta = 1 / math.sin(theta) 
220
startInterp = math.sin((t - 1) * theta) * invSinTheta 
221
finishInterp = math.sin(t * theta) * invSinTheta 
222
else 
223
startInterp = t - 1 
224
finishInterp = t 
225
end 
226
end 
227
return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp 
228
end
229
230
function swait(num)
231
if num == 0 or num == nil then
232
game:service'RunService'.RenderStepped:wait(0)
233
else
234
for i = 0, num do
235
game:service'RunService'.RenderStepped:wait(0)
236
end
237
end
238
end
239
240
local RbxUtility = LoadLibrary("RbxUtility")
241
local Create = RbxUtility.Create
242
243
function RemoveOutlines(part)
244
part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
245
end
246
247
function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
248
local Part = Create("Part"){
249
formFactor = FormFactor,
250
Parent = Parent,
251
Reflectance = Reflectance,
252
Transparency = Transparency,
253
CanCollide = false,
254
Locked = true,
255
BrickColor = BrickColor.new(tostring(BColor)),
256
Name = Name,
257
Size = Size,
258
Material = Material,
259
}
260
RemoveOutlines(Part)
261
return Part
262
end
263
264
function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
265
local Msh = Create(Mesh){
266
Parent = Part,
267
Offset = OffSet,
268
Scale = Scale,
269
}
270
if Mesh == "SpecialMesh" then
271
Msh.MeshType = MeshType
272
Msh.MeshId = MeshId
273
end
274
return Msh
275
end
276
277
function CreateWeld(Parent, Part0, Part1, C0, C1)
278
local Weld = Create("Weld"){
279
Parent = Parent,
280
Part0 = Part0,
281
Part1 = Part1,
282
C0 = C0,
283
C1 = C1,
284
}
285
return Weld
286
end
287
288
function rayCast(Position, Direction, Range, Ignore)
289
return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) 
290
end 
291
292
function CreateSound(id, par, vol, pit) 
293
coroutine.resume(coroutine.create(function()
294
local sou = Instance.new("Sound", par or workspace)
295
sou.Volume = vol
296
sou.Pitch = pit or 1
297
sou.SoundId = id
298
wait() 
299
sou:play() 
300
game:GetService("Debris"):AddItem(sou, 6)
301
end))
302
end
303
304
local function getclosest(obj, distance)
305
local last, lastx = distance + 1
306
for i, v in pairs(workspace:GetChildren()) do
307
if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
308
local t = v.Torso
309
local dist = (t.Position - obj.Position).magnitude
310
if dist <= distance then
311
if dist < last then
312
last = dist
313
lastx = v
314
end
315
end
316
end
317
end
318
return lastx
319
end
320
321
function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
322
for i, v in pairs(hit:GetChildren()) do 
323
if v:IsA("Humanoid") and hit.Name ~= Character.Name then
324
local find = v:FindFirstChild("Hitz")
325
if not find then
326
if v.Parent:findFirstChild("Head") then
327
local BillG = Create("BillboardGui"){
328
Parent = v.Parent.Head,
329
Size = UDim2.new(1, 0, 1, 0),
330
Adornee = v.Parent.Head,
331
StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
332
}
333
local TL = Create("TextLabel"){
334
Parent = BillG,
335
Size = UDim2.new(3, 3, 3, 3),
336
BackgroundTransparency = 1,
337
Text = tostring(damage).."-",
338
TextColor3 = Color1.Color,
339
TextStrokeColor3 = Color2.Color,
340
TextStrokeTransparency = 0,
341
TextXAlignment = Enum.TextXAlignment.Center,
342
TextYAlignment = Enum.TextYAlignment.Center,
343
FontSize = Enum.FontSize.Size18,
344
Font = "ArialBold",
345
}
346
coroutine.resume(coroutine.create(function()
347
wait(1)
348
for i = 0, 1, .1 do
349
wait(.1)
350
BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
351
end
352
BillG:Destroy()
353
end))
354
end
355
v.Health = v.Health - damage
356
local bool = Create("BoolValue"){
357
Parent = v,
358
Name = 'Hitz',
359
}
360
if HSound ~= nil and HPitch ~= nil then
361
CreateSound(HSound, hit, 1, HPitch) 
362
end
363
game:GetService("Debris"):AddItem(bool, cooldown)
364
end
365
end
366
end
367
end
368
369
370
function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
371
local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
372
prt.Anchored = true
373
prt.CFrame = cframe
374
local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
375
game:GetService("Debris"):AddItem(prt, 10)
376
if Type == 1 or Type == nil then
377
table.insert(Effects, {
378
prt,
379
"Block1",
380
delay,
381
x3,
382
y3,
383
z3,
384
msh
385
})
386
elseif Type == 2 then
387
table.insert(Effects, {
388
prt,
389
"Block2",
390
delay,
391
x3,
392
y3,
393
z3,
394
msh
395
})
396
end
397
end
398
399
function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
400
local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
401
prt.Anchored = true
402
prt.CFrame = cframe
403
local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
404
game:GetService("Debris"):AddItem(prt, 10)
405
table.insert(Effects, {
406
prt,
407
"Cylinder",
408
delay,
409
x3,
410
y3,
411
z3,
412
msh
413
})
414
end
415
416
function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
417
local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
418
prt.Anchored = true
419
prt.CFrame = cframe * CFrame.new(x1, y1, z1)
420
local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
421
game:GetService("Debris"):AddItem(prt, 10)
422
table.insert(Effects, {
423
prt,
424
"Cylinder",
425
delay,
426
x3,
427
y3,
428
z3,
429
msh
430
})
431
end
432
433
function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
434
local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
435
prt.Anchored = true
436
prt.CFrame = cframe
437
local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
438
game:GetService("Debris"):AddItem(prt, 10)
439
table.insert(Effects, {
440
prt,
441
"Cylinder",
442
delay,
443
x3,
444
y3,
445
z3,
446
msh
447
})
448
end
449
450
function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
451
local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
452
prt.Anchored = true
453
prt.CFrame = cframe
454
local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
455
game:GetService("Debris"):AddItem(prt, 10)
456
table.insert(Effects, {
457
prt,
458
"Cylinder",
459
delay,
460
x3,
461
y3,
462
z3,
463
msh
464
})
465
end
466
467
function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
468
local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
469
prt.Anchored = true
470
prt.CFrame = cframe
471
local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
472
game:GetService("Debris"):AddItem(prt, 10)
473
table.insert(Effects, {
474
prt,
475
"Cylinder",
476
delay,
477
x3,
478
y3,
479
z3,
480
msh
481
})
482
end
483
484
function BreakEffect(brickcolor, cframe, x1, y1, z1)
485
local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
486
prt.Anchored = true
487
prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
488
local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
489
local num = math.random(10, 50) / 1000
490
game:GetService("Debris"):AddItem(prt, 10)
491
table.insert(Effects, {
492
prt,
493
"Shatter",
494
num,
495
prt.CFrame,
496
math.random() - math.random(),
497
0,
498
math.random(50, 100) / 100
499
})
500
end
501
502
503
504
505
for i = 0, 1, 0.05 do
506
swait()
507
RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
508
Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
509
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
510
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
511
if Torsovelocity > 2 then
512
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
513
RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
514
LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
515
elseif Torsovelocity < 1 then
516
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
517
RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
518
LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
519
end
520
end
521
attack = false
522
523
524
525
game:GetService'RunService'.Stepped:connect(function()
526
Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
527
velocity = RootPart.Velocity.y
528
sine = sine + change
529
local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
530
if equipped == true or equipped == false then
531
if RootPart.Velocity.y > 1 and hit == nil then 
532
Anim = "Jump"
533
if attack == false then
534
RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
535
Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
536
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), .1)
537
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), .1)
538
RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1)
539
LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1)
540
end
541
elseif RootPart.Velocity.y < -1 and hit == nil then 
542
Anim = "Fall"
543
if attack == false then
544
RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
545
Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
546
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), .1)
547
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), .1)
548
RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
549
LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
550
end
551
elseif Torsovelocity < 1 and hit ~= nil then
552
Anim = "Idle"
553
if attack == false then
554
change = 1
555
RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .1)
556
Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .1)
557
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1)
558
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5 - 3 * math.cos(sine / 25))), 0.1)
559
RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
560
LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
561
end
562
elseif Torsovelocity > 2 and hit ~= nil then
563
Anim = "Walk"
564
if attack == false then
565
RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 5))), .2)
566
Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
567
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
568
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
569
RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 3), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
570
LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 3), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
571
end
572
end
573
end
574
if #Effects > 0 then
575
for e = 1, #Effects do
576
if Effects[e] ~= nil then
577
local Thing = Effects[e]
578
if Thing ~= nil then
579
local Part = Thing[1]
580
local Mode = Thing[2]
581
local Delay = Thing[3]
582
local IncX = Thing[4]
583
local IncY = Thing[5]
584
local IncZ = Thing[6]
585
if Thing[1].Transparency <= 1 then
586
if Thing[2] == "Block1" then
587
Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
588
local Mesh = Thing[1].Mesh
589
Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
590
Thing[1].Transparency = Thing[1].Transparency + Thing[3]
591
elseif Thing[2] == "Block2" then
592
Thing[1].CFrame = Thing[1].CFrame
593
local Mesh = Thing[7]
594
Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
595
Thing[1].Transparency = Thing[1].Transparency + Thing[3]
596
elseif Thing[2] == "Cylinder" then
597
local Mesh = Thing[1].Mesh
598
Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
599
Thing[1].Transparency = Thing[1].Transparency + Thing[3]
600
elseif Thing[2] == "Blood" then
601
local Mesh = Thing[7]
602
Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
603
Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
604
Thing[1].Transparency = Thing[1].Transparency + Thing[3]
605
elseif Thing[2] == "Elec" then
606
local Mesh = Thing[1].Mesh
607
Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
608
Thing[1].Transparency = Thing[1].Transparency + Thing[3]
609
elseif Thing[2] == "Disappear" then
610
Thing[1].Transparency = Thing[1].Transparency + Thing[3]
611
elseif Thing[2] == "Shatter" then
612
Thing[1].Transparency = Thing[1].Transparency + Thing[3]
613
Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
614
Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
615
Thing[6] = Thing[6] + Thing[5]
616
end
617
else
618
Part.Parent = nil
619
table.remove(Effects, e)
620
end
621
end
622
end
623
end
624
end
625
end)
626
627
628
629
630
631
632
633
634
p = (game.Players.LocalPlayer.Name)
635
char = game.Players.LocalPlayer.Character
636
637
638
local player = game.Players.LocalPlayer
639
repeat wait() until player.Character.Humanoid
640
local humanoid = player.Character.Humanoid
641
local mouse = player:GetMouse()
642
643
for i,v in pairs(char:GetChildren()) do
644
  if v.ClassName == 'Accessory' then
645
      v:Destroy()
646
  end
647
end
648
649
ScarySound1 = Instance.new("Sound")
650
ScarySound1.Parent = char.Torso
651
ScarySound1.SoundId = "rbxassetid://161964276"
652
ScarySound1.Volume = .5
653
654
ScarySound2 = Instance.new("Sound")
655
ScarySound2.Parent = char.Torso
656
ScarySound2.SoundId = "rbxassetid://669623416"
657
ScarySound2.Volume = 2
658
ScarySound2.Looped = true
659
660
ScarySound3 = Instance.new("Sound")
661
ScarySound3.Parent = char.Torso
662
ScarySound3.SoundId = "rbxassetid://483810543"
663
ScarySound3.Volume = 0.3
664
ScarySound3.Looped = true
665
666
ScarySound4 = Instance.new("Sound")
667
ScarySound4.Parent = char.Torso
668
ScarySound4.SoundId = "rbxassetid://177113856"
669
ScarySound4.Volume = 2
670
ScarySound4.Looped = false
671
672
Punch = Instance.new("Sound")
673
Punch.Parent = char.Torso
674
Punch.SoundId = "rbxassetid://146938349"
675
Punch.Volume = 1.5
676
Punch.Looped = false
677
Punch.Pitch = 0.8
678
679
hole = Instance.new("Sound")
680
hole.Parent = char.Torso
681
hole.SoundId = "rbxassetid://224339308"
682
hole.Volume = .3
683
684
685
game.Players.LocalPlayer.Character.Sound:Destroy()
686
687
function Normal()
688
ScarySound3:Play()
689
char.Humanoid.WalkSpeed = 18
690
char.Head.face.Texture = "rbxassetid://0"
691
char["Left Leg"].Transparency = 0
692
char["Head"].Transparency = 0
693
char["Right Leg"].Transparency = 0
694
char["Torso"].Transparency = 0
695
char["Left Arm"].Transparency = 0
696
char["Right Arm"].Transparency = 0
697
end
698
699
function GoInvisible()
700
ScarySound3:Stop()
701
ScarySound1:Stop()
702
char.Humanoid.WalkSpeed = 120
703
char.Head.face.Transparency = 1
704
char["Left Leg"].Transparency = 0
705
char["Head"].Transparency = 0.5
706
char["Right Leg"].Transparency = 0.5
707
char["Torso"].Transparency = 0.5
708
char["Left Arm"].Transparency = 0.5
709
char["Right Arm"].Transparency = 0.5
710
Hood.Transparency = 0.5
711
Mask.Transparency = 0.5
712
Orbvc.Transparency = 0.5
713
Orbd.Transparency = 0.5
714
Orbvc.BrickColor = BrickColor.new("Really red")
715
Orbd.BrickColor = BrickColor.new("Really red")
716
wait(0.001)
717
char["Left Leg"].Transparency = 0.6
718
char["Head"].Transparency = 0.6
719
char["Right Leg"].Transparency = 0.6
720
char["Torso"].Transparency = 0.6
721
char["Left Arm"].Transparency = 0.6
722
char["Right Arm"].Transparency = 0.6
723
Hood.Transparency = 0.6
724
Mask.Transparency = 0.6
725
Orbvc.Transparency = 0.6
726
Orbd.Transparency = 0.6
727
wait(0.001)
728
char["Left Leg"].Transparency = 0.7
729
char["Head"].Transparency = 0.7
730
char["Right Leg"].Transparency = 0.7
731
char["Torso"].Transparency = 0.7
732
char["Left Arm"].Transparency = 0.7
733
char["Right Arm"].Transparency = 0.7
734
Hood.Transparency = 0.7
735
Mask.Transparency = 0.7
736
Orbvc.Transparency = 0.7
737
Orbd.Transparency = 0.7
738
wait(0.001)
739
char["Left Leg"].Transparency = 1
740
char["Head"].Transparency = 1
741
char["Right Leg"].Transparency = 1
742
char["Torso"].Transparency = 1
743
char["Left Arm"].Transparency = 1
744
char["Right Arm"].Transparency = 1
745
Hood.Transparency = 1
746
Mask.Transparency = 1
747
Orbvc.Transparency = 1
748
Orbd.Transparency = 1
749
end
750
751
function GoVisible()
752
ScarySound3:Play()
753
char.Humanoid.WalkSpeed = 16
754
ScarySound1:Play()
755
char.Head.face.Transparency = 0
756
Orbvc.BrickColor = BrickColor.new("Really black")
757
Orbd.BrickColor = BrickColor.new("Really black")
758
char["Left Leg"].Transparency = 0.9
759
char["Head"].Transparency = 0.9
760
char["Right Leg"].Transparency = 9
761
char["Torso"].Transparency = 0.9
762
char["Left Arm"].Transparency = 0.9
763
char["Right Arm"].Transparency = 0.9
764
Hood.Transparency = 0.9
765
Mask.Transparency = 0.9
766
Orbvc.Transparency = 0.9
767
Orbd.Transparency = 0.9
768
wait(0.001)
769
char["Left Leg"].Transparency = 0.7
770
char["Head"].Transparency = 0.7
771
char["Right Leg"].Transparency = 0.7
772
char["Torso"].Transparency = 0.7
773
char["Left Arm"].Transparency = 0.7
774
char["Right Arm"].Transparency = 0.7
775
Hood.Transparency = 0.7
776
Mask.Transparency = 0.7
777
Orbvc.Transparency = 0.7
778
Orbd.Transparency = 0.7
779
wait(0.001)
780
char["Left Leg"].Transparency = 0
781
char["Head"].Transparency = 0
782
char["Right Leg"].Transparency = 0
783
char["Torso"].Transparency = 0
784
char["Left Arm"].Transparency = 0
785
char["Right Arm"].Transparency = 0
786
Hood.Transparency = 0
787
Mask.Transparency = 0
788
Orbvc.Transparency = 0
789
Orbd.Transparency = 0
790
end
791
792
Normal()
793
794
795
796
mouse.KeyDown:connect(function(key)
797
if key == "z" then
798
if char.Head.Transparency == 0 then
799
GoInvisible()
800
801
elseif char.Head.Transparency == 1 then
802
GoVisible()
803
end
804
end end)
805
806
mouse.KeyDown:connect(function(key)
807
if key == "x" then
808
if ScarySound2.IsPlaying == false then
809
ScarySound2:Play()
810
elseif ScarySound2.IsPlaying == true then
811
ScarySound2:Stop()
812
813
814
end
815
end end)
816
817
mouse.KeyDown:connect(function(key)
818
if key == "r" then
819
if ScarySound4.IsPlaying == false then
820
ScarySound4:Play()
821
elseif ScarySound2.IsPlaying == true then
822
ScarySound4:Stop()
823
824
825
end
826
end end)
827
828
829
830
831
832
833
834
835
836
function onTouch(part)
837
838
local humanoid = part.Parent:findFirstChild("Humanoid")
839
local model = part.Parent
840
local torso = part.Parent:findFirstChild("Torso")
841
local head = part.Parent:findFirstChild("Head")
842
local leftleg = part.Parent:findFirstChild("Left Leg")
843
local rightleg = part.Parent:findFirstChild("Right Leg")
844
local leftarm = part.Parent:findFirstChild("Left Arm")
845
local rightarm = part.Parent:findFirstChild("Right Arm")
846
847
848
if (humanoid ~=nil) then
849
850
--humanoid.Health = 0
851
852
head.BrickColor = BrickColor.new("Really black")
853
torso.BrickColor = BrickColor.new("Really black")
854
leftleg.BrickColor = BrickColor.new("Really black")
855
rightleg.BrickColor = BrickColor.new("Really black")
856
rightarm.BrickColor = BrickColor.new("Really black")
857
leftarm.BrickColor = BrickColor.new("Really black")
858
humanoid.Sit = true
859
wait(0.5)
860
torso.Anchored = true
861
wait(3)
862
863
e=Instance.new('Part', model)
864
e.Size = Vector3.new(2.25,2.25,2.25)
865
e.Transparency = 1
866
e.Anchored = true
867
e.CFrame = CFrame.new(head.Position)
868
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
869
wait(0.1)
870
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
871
wait(0.1)
872
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
873
wait(0.1)
874
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
875
wait(0.1)
876
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
877
wait(0.1)
878
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
879
wait(0.1)
880
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
881
wait(0.1)
882
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
883
wait(0.1)
884
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
885
wait(0.1)
886
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
887
wait(0.1)
888
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
889
wait(0.1)
890
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
891
wait(0.1)
892
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
893
wait(0.1)
894
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
895
wait(0.1)
896
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
897
wait(0.1)
898
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
899
wait(0.1)
900
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
901
wait(0.1)
902
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
903
wait(0.1)
904
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
905
wait(0.1)
906
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
907
wait(0.1)
908
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
909
wait(0.1)
910
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
911
wait(0.1)
912
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
913
wait(0.1)
914
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
915
wait(0.1)
916
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
917
wait(0.1)
918
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
919
wait(0.1)
920
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
921
wait(0.1)
922
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
923
wait(0.1)
924
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
925
wait(0.1)
926
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
927
wait(0.1)
928
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
929
wait(0.1)
930
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
931
wait(0.1)
932
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
933
wait(0.1)
934
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
935
wait(0.1)
936
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
937
wait(0.1)
938
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
939
wait(0.1)
940
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
941
wait(0.1)
942
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
943
wait(0.1)
944
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
945
wait(0.1)
946
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
947
wait(0.1)
948
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
949
wait(0.1)
950
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
951
wait(0.1)
952
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
953
wait(0.1)
954
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
955
wait(0.1)
956
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
957
wait(0.1)
958
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
959
wait(0.1)
960
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
961
wait(0.1)
962
head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
963
964
965
wait(2)
966
head:Destroy()
967
q=Instance.new('ParticleEmitter', e)
968
q.Size = NumberSequence.new(1)
969
q.Rate = 500
970
q.Transparency = NumberSequence.new(0.5)
971
q.Speed = NumberRange.new(7)
972
q.VelocitySpread = 40
973
q.Lifetime = NumberRange.new(0.1,1)
974
q.Texture = 'rbxassetid://164417280'
975
976
torso.Anchored = true
977
rightleg.Anchored = true
978
leftleg.Anchored = true
979
rightarm.Anchored = true
980
leftarm.Anchored = true
981
ded = Instance.new("Sound")
982
ded.Parent = torso
983
ded.SoundId = "rbxassetid://130976109"
984
ded.Volume = 3
985
ded.Looped = false
986
wait()
987
ded:Play()
988
989
990
991
992
end
993
994
end 
995
996
997
998
char.Torso.Touched:connect(onTouch)
999
1000
mouse.KeyDown:connect(function(key)
1001
if key == "c" then
1002
1003
1004
Punch:Play() 
1005
1006
1007
1008
1009
end
1010
end)
1011
1012
debounce = false
1013
1014
function onTouched(hit)
1015
hole:Play()
1016
hit.CanCollide=false
1017
wait(.5)
1018
hit.CanCollide = true
1019
debounce = true
1020
1021
end
1022
game.Players.LocalPlayer.Character.Torso.Touched:connect(onTouched)
1023
1024
1025
while wait() do
1026
char["Left Leg"].BrickColor = BrickColor.new("Really black")
1027
char["Head"].BrickColor = BrickColor.new("Really black")
1028
char["Right Leg"].BrickColor = BrickColor.new("Really black")
1029
char["Torso"].BrickColor = BrickColor.new("Really black")
1030
char["Left Arm"].BrickColor = BrickColor.new("Black")
1031
char["Right Arm"].BrickColor = BrickColor.new("Black")
1032
end
1033
1034
------------------------------------------------------------------------