View difference between Paste ID: DwzGpHGE and yiEp0fFP
SHOW: | | - or go back to the newest paste.
1
wait(0.2)
2
local plr = owner
3
local char = plr.Character
4
local hum = char.Humanoid
5
local hed = char.Head
6
local root = char.HumanoidRootPart
7
local rootj = root.RootJoint
8
local tors = char.Torso
9
local ra = char["Right Arm"]
10
local la = char["Left Arm"]
11
local rl = char["Right Leg"]
12
local ll = char["Left Leg"]
13
local neck = tors["Neck"]
14
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
15
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
16
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
17
local maincolor = BrickColor.new("Institutional white")
18
-------------------------------------------------------
19
--Start Good Stuff--
20
-------------------------------------------------------
21
cam = game.Workspace.CurrentCamera
22
CF = CFrame.new
23
angles = CFrame.Angles
24
attack = false
25
Euler = CFrame.fromEulerAnglesXYZ
26
Rad = math.rad
27
IT = Instance.new
28
BrickC = BrickColor.new
29
Cos = math.cos
30
Acos = math.acos
31
Sin = math.sin
32
Asin = math.asin
33
Abs = math.abs
34
Mrandom = math.random
35
Floor = math.floor
36
Character = char
37
Torso = tors
38
39
for i,v in pairs(Character:children()) do
40
    if v:IsA("Hair") then
41
        v:Destroy()
42
    end
43
end
44
45-
    if v:IsA("Shirt") then
45+
46
if v:IsA("Shirt") then
47
v.ShirtTemplate = "rbxassetid://1533635803"
48
elseif v:IsA("Pants") then
49
v.PantsTemplate = "rbxassetid://1460022985"
50-
    if v:IsA("Pants") then
50+
51
v:Remove()
52
wait(.1)
53
Torso.roblox:Remove()
54
elseif v:IsA("Accessory") then
55-
    if v:IsA("Graphic Shirt") then
55+
56
end
57
end
58
-------------------------------------------------------
59
--End Good Stuff--
60-
    if v:IsA("GraphicShirt") then
60+
61
Player_Size = 0.6
62
for _,v in pairs (char:children()) do
63
if v:IsA("Part") then
64
v.BrickColor = BrickColor.new("Black")
65
end
66
end
67-
v.ShirtTemplate = "rbxassetid://0"
67+
68
local AddInstance = function(Object, ...)
69-
v.PantsTemplate = "rbxassetid://0"
69+
70
for i,v in next,(...) do
71
Obj[i] = v
72
end
73
return Obj
74
end
75
76
light = Instance.new("PointLight",hed)
77
light.Range = 1.5
78
light.Brightness = 1.5
79
80
local Reaper2 = AddInstance("Part",{
81
            Parent = tors,
82
            CFrame = tors.CFrame,
83
            formFactor = "Symmetric",
84
            Size = Vector3.new(0.462, 1.403, 2.495),
85
            CanCollide = false,
86
            TopSurface = "Smooth",
87
            BottomSurface = "Smooth",
88
            Locked = true,
89
            BrickColor = BrickColor.new("Black"),
90
        })
91
        local Weld = AddInstance("Weld",{
92
            Parent = Reaper2,
93
            Part0 = tors,
94
            C0 = CFrame.new(0 * Player_Size, -1.7 * Player_Size, 1 * Player_Size)*CFrame.Angles(0, 0, 0),
95
            Part1 = Reaper2,
96
        })
97
        local Mesh = AddInstance("SpecialMesh",{
98
            Parent = Reaper2,
99
            MeshId = "rbxassetid://2759032628",
100
            Scale = Vector3.new(1 * Player_Size, 1 * Player_Size, 0.5 * Player_Size),
101
            VertexColor = Vector3.new(0.5, 0.5, 0.5),
102
        })
103
104
function weld(a, b, acf)
105
    local w = Instance.new("Weld", a)
106
    w.Part0 = a
107
    w.Part1 = b
108
    w.C0 = acf
109
end
110
111
local brickcolorey = BrickColor.new("Institutional white")
112
local reye = Instance.new("Part", char)
113
reye.Transparency = 0
114
reye.CanCollide = false
115
reye.BrickColor = brickcolorey
116
reye.Material = "Neon"
117
reye.Size = Vector3.new(.25 * Player_Size,.35 * Player_Size,.25 * Player_Size)
118
weld(reye, char.Head, CFrame.new(-0.15 * Player_Size,-0.2 * Player_Size,0.55 * Player_Size), CFrame.new(1 * Player_Size,0 * Player_Size,0 * Player_Size))
119
m1 = Instance.new("SpecialMesh", reye)
120
m1.MeshType = "Sphere"
121
m1.Scale = Vector3.new(0.9,0.9,0.9)
122
reye.Locked = true
123
reye.Name = "re"
124
 
125
 
126
local brickcolorey = BrickColor.new("Institutional white")
127
local leye = Instance.new("Part", char)
128
leye.CanCollide = false
129
leye.BrickColor = brickcolorey
130
leye.Material = "Neon"
131
leye.Transparency = 0
132
leye.Size = Vector3.new(.25 * Player_Size,.35 * Player_Size,.15 * Player_Size)
133
weld(leye, char.Head, CFrame.new(0.15 * Player_Size,-0.2 * Player_Size,0.55 * Player_Size), CFrame.new(1 * Player_Size,0 * Player_Size,0 * Player_Size))
134
m1 = Instance.new("SpecialMesh", leye)
135
m1.MeshType = "Sphere"
136
m1.Scale = Vector3.new(0.9,0.9,0.9)
137
leye.Locked = true
138
leye.Name = "le"
139
140
hed.face.Transparency = 1
141
hed.face.Texture = "rbxassetid://0"
142
143
necko = CF(0 * Player_Size, 1 * Player_Size, 0 * Player_Size, -1 * Player_Size, -0 * Player_Size, -0 * Player_Size, 0 * Player_Size, 0 * Player_Size, 1 * Player_Size, 0 * Player_Size, 1 * Player_Size, 0 * Player_Size)
144
RW = Instance.new("Weld") 
145
LW = Instance.new("Weld")
146
RH = tors["Right Hip"]
147
LH = tors["Left Hip"]
148
RSH = tors["Right Shoulder"] 
149
LSH = tors["Left Shoulder"] 
150
RW.Name = "RW"
151
RW.Part0 = tors 
152
RW.C0 = CF(1.5, 0.5, 0)
153
RW.C1 = CF(0, 0.5, 0) 
154
RW.Part1 = ra
155
RW.Parent = tors 
156
LW.Name = "LW"
157
LW.Part0 = tors 
158
LW.C0 = CF(-1.5, 0.5, 0)
159
LW.C1 = CF(0, 0.5, 0) 
160
LW.Part1 = la
161
LW.Parent = tors
162
Effects = {}
163
-------------------------------------------------------
164
--Start HeartBeat--
165
-------------------------------------------------------
166
ArtificialHB = Instance.new("BindableEvent", script)
167
ArtificialHB.Name = "Heartbeat"
168
script:WaitForChild("Heartbeat")
169
170
frame = 1 / 60
171
tf = 0
172
allowframeloss = false
173
tossremainder = false
174
175
176
lastframe = tick()
177
script.Heartbeat:Fire()
178
179
180
game:GetService("RunService").Heartbeat:connect(function(s, p)
181
	tf = tf + s
182
	if tf >= frame then
183
		if allowframeloss then
184
			script.Heartbeat:Fire()
185
			lastframe = tick()
186
		else
187
			for i = 1, math.floor(tf / frame) do
188
				script.Heartbeat:Fire()
189
			end
190
			lastframe = tick()
191
		end
192
		if tossremainder then
193
			tf = 0
194
		else
195
			tf = tf - frame * math.floor(tf / frame)
196
		end
197
	end
198
end)
199
-------------------------------------------------------
200
--End HeartBeat--
201
-------------------------------------------------------
202
203
-------------------------------------------------------
204
--Start Important Functions--
205
-------------------------------------------------------
206
function swait(num)
207
	if num == 0 or num == nil then
208
		game:service("RunService").Stepped:wait(0)
209
	else
210
		for i = 0, num do
211
			game:service("RunService").Stepped:wait(0)
212
		end
213
	end
214
end
215
function thread(f)
216
	coroutine.resume(coroutine.create(f))
217
end
218
function clerp(a, b, t)
219
	local qa = {
220
		QuaternionFromCFrame(a)
221
	}
222
	local qb = {
223
		QuaternionFromCFrame(b)
224
	}
225
	local ax, ay, az = a.x, a.y, a.z
226
	local bx, by, bz = b.x, b.y, b.z
227
	local _t = 1 - t
228
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
229
end
230
function QuaternionFromCFrame(cf)
231
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
232
	local trace = m00 + m11 + m22
233
	if trace > 0 then
234
		local s = math.sqrt(1 + trace)
235
		local recip = 0.5 / s
236
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
237
	else
238
		local i = 0
239
		if m00 < m11 then
240
			i = 1
241
		end
242
		if m22 > (i == 0 and m00 or m11) then
243
			i = 2
244
		end
245
		if i == 0 then
246
			local s = math.sqrt(m00 - m11 - m22 + 1)
247
			local recip = 0.5 / s
248
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
249
		elseif i == 1 then
250
			local s = math.sqrt(m11 - m22 - m00 + 1)
251
			local recip = 0.5 / s
252
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
253
		elseif i == 2 then
254
			local s = math.sqrt(m22 - m00 - m11 + 1)
255
			local recip = 0.5 / s
256
			return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
257
		end
258
	end
259
end
260
function QuaternionToCFrame(px, py, pz, x, y, z, w)
261
	local xs, ys, zs = x + x, y + y, z + z
262
	local wx, wy, wz = w * xs, w * ys, w * zs
263
	local xx = x * xs
264
	local xy = x * ys
265
	local xz = x * zs
266
	local yy = y * ys
267
	local yz = y * zs
268
	local zz = z * zs
269
	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))
270
end
271
function QuaternionSlerp(a, b, t)
272
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
273
	local startInterp, finishInterp
274
	if cosTheta >= 1.0E-4 then
275
		if 1 - cosTheta > 1.0E-4 then
276
			local theta = math.acos(cosTheta)
277
			local invSinTheta = 1 / Sin(theta)
278
			startInterp = Sin((1 - t) * theta) * invSinTheta
279
			finishInterp = Sin(t * theta) * invSinTheta
280
		else
281
			startInterp = 1 - t
282
			finishInterp = t
283
		end
284
	elseif 1 + cosTheta > 1.0E-4 then
285
		local theta = math.acos(-cosTheta)
286
		local invSinTheta = 1 / Sin(theta)
287
		startInterp = Sin((t - 1) * theta) * invSinTheta
288
		finishInterp = Sin(t * theta) * invSinTheta
289
	else
290
		startInterp = t - 1
291
		finishInterp = t
292
	end
293
	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
294
end
295
function rayCast(Position, Direction, Range, Ignore)
296
	return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
297
end
298
local RbxUtility = LoadLibrary("RbxUtility")
299
local Create = RbxUtility.Create
300
301
-------------------------------------------------------
302
--Start Damage Function--
303
-------------------------------------------------------
304
function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
305
	if hit.Parent == nil then
306
		return
307
	end
308
	local h = hit.Parent:FindFirstChildOfClass("Humanoid")
309
	for _, v in pairs(hit.Parent:children()) do
310
		if v:IsA("Humanoid") then
311
			h = v
312
		end
313
	end
314
         if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
315
	
316
         hit.Parent:FindFirstChild("Head"):BreakJoints()
317
         end
318
319
	if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
320
		if hit.Parent:findFirstChild("DebounceHit") ~= nil then
321
			if hit.Parent.DebounceHit.Value == true then
322
				return
323
			end
324
		end
325
         if insta == true then
326
         hit.Parent:FindFirstChild("Head"):BreakJoints()
327
         end
328
		local c = Create("ObjectValue"){
329
			Name = "creator",
330
			Value = game:service("Players").LocalPlayer,
331
			Parent = h,
332
		}
333
		game:GetService("Debris"):AddItem(c, .5)
334
		if HitSound ~= nil and HitPitch ~= nil then
335
			CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) 
336
		end
337
		local Damage = math.random(minim, maxim)
338
		local blocked = false
339
		local block = hit.Parent:findFirstChild("Block")
340
		if block ~= nil then
341
			if block.className == "IntValue" then
342
				if block.Value > 0 then
343
					blocked = true
344
					block.Value = block.Value - 1
345
					print(block.Value)
346
				end
347
			end
348
		end
349
		if blocked == false then
350
			h.Health = h.Health - Damage
351
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
352
		else
353
			h.Health = h.Health - (Damage / 2)
354
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
355
		end
356
		if Type == "Knockdown" then
357
			local hum = hit.Parent.Humanoid
358
			hum.PlatformStand = true
359
			coroutine.resume(coroutine.create(function(HHumanoid)
360
				swait(1)
361
				HHumanoid.PlatformStand = false
362
			end), hum)
363
			local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
364
			local bodvol = Create("BodyVelocity"){
365
				velocity = angle * knockback,
366
				P = 5000,
367
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
368
				Parent = hit,
369
			}
370
			local rl = Create("BodyAngularVelocity"){
371
				P = 3000,
372
				maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
373
				angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
374
				Parent = hit,
375
			}
376
			game:GetService("Debris"):AddItem(bodvol, .5)
377
			game:GetService("Debris"):AddItem(rl, .5)
378
		elseif Type == "Normal" then
379
			local vp = Create("BodyVelocity"){
380
				P = 500,
381
				maxForce = Vector3.new(math.huge, 0, math.huge),
382
				velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
383
			}
384
			if knockback > 0 then
385
				vp.Parent = hit.Parent.Torso
386
			end
387
			game:GetService("Debris"):AddItem(vp, .5)
388
		elseif Type == "Up" then
389
			local bodyVelocity = Create("BodyVelocity"){
390
				velocity = Vector3.new(0, 20, 0),
391
				P = 5000,
392
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
393
				Parent = hit,
394
			}
395
			game:GetService("Debris"):AddItem(bodyVelocity, .5)
396
		elseif Type == "DarkUp" then
397
			coroutine.resume(coroutine.create(function()
398
				for i = 0, 1, 0.1 do
399
					swait()
400
					Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
401
				end
402
			end))
403
			local bodyVelocity = Create("BodyVelocity"){
404
				velocity = Vector3.new(0, 20, 0),
405
				P = 5000,
406
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
407
				Parent = hit,
408
			}
409
			game:GetService("Debris"):AddItem(bodyVelocity, 1)
410
		elseif Type == "Snare" then
411
			local bp = Create("BodyPosition"){
412
				P = 2000,
413
				D = 100,
414
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
415
				position = hit.Parent.Torso.Position,
416
				Parent = hit.Parent.Torso,
417
			}
418
			game:GetService("Debris"):AddItem(bp, 1)
419
		elseif Type == "Freeze" then
420
			local BodPos = Create("BodyPosition"){
421
				P = 50000,
422
				D = 1000,
423
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
424
				position = hit.Parent.Torso.Position,
425
				Parent = hit.Parent.Torso,
426
			}
427
			local BodGy = Create("BodyGyro") {
428
				maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
429
				P = 20e+003,
430
				Parent = hit.Parent.Torso,
431
				cframe = hit.Parent.Torso.CFrame,
432
			}
433
			hit.Parent.Torso.Anchored = true
434
			coroutine.resume(coroutine.create(function(Part) 
435
				swait(1.5)
436
				Part.Anchored = false
437
			end), hit.Parent.Torso)
438
			game:GetService("Debris"):AddItem(BodPos, 3)
439
			game:GetService("Debris"):AddItem(BodGy, 3)
440
		end
441
		local debounce = Create("BoolValue"){
442
			Name = "DebounceHit",
443
			Parent = hit.Parent,
444
			Value = true,
445
		}
446
		game:GetService("Debris"):AddItem(debounce, Delay)
447
		c = Create("ObjectValue"){
448
			Name = "creator",
449
			Value = Player,
450
			Parent = h,
451
		}
452
		game:GetService("Debris"):AddItem(c, .5)
453
	end
454
end
455
-------------------------------------------------------
456
--End Damage Function--
457
-------------------------------------------------------
458
459
-------------------------------------------------------
460
--Start Damage Function Customization--
461
-------------------------------------------------------
462
function ShowDamage(Pos, Text, Time, Color)
463
	local Rate = (1 / 30)
464
	local Pos = (Pos or Vector3.new(0, 0, 0))
465
	local Text = (Text or "")
466
	local Time = (Time or 2)
467
	local Color = (Color or Color3.new(1, 0, 1))
468
	local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
469
	EffectPart.Anchored = true
470
	local BillboardGui = Create("BillboardGui"){
471
		Size = UDim2.new(3, 0, 3, 0),
472
		Adornee = EffectPart,
473
		Parent = EffectPart,
474
	}
475
	local TextLabel = Create("TextLabel"){
476
		BackgroundTransparency = 1,
477
		Size = UDim2.new(1, 0, 1, 0),
478
		Text = Text,
479
		Font = "Bodoni",
480
		TextColor3 = Color,
481
		TextScaled = true,
482
		TextStrokeColor3 = Color3.fromRGB(0,0,0),
483
		Parent = BillboardGui,
484
	}
485
	game.Debris:AddItem(EffectPart, (Time))
486
	EffectPart.Parent = game:GetService("Workspace")
487
	delay(0, function()
488
		local Frames = (Time / Rate)
489
		for Frame = 1, Frames do
490
			wait(Rate)
491
			local Percent = (Frame / Frames)
492
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
493
			TextLabel.TextTransparency = Percent
494
		end
495
		if EffectPart and EffectPart.Parent then
496
			EffectPart:Destroy()
497
		end
498
	end)
499
end
500
-------------------------------------------------------
501
--End Damage Function Customization--
502
-------------------------------------------------------
503
504
function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
505
  for _, c in pairs(workspace:children()) do
506
    local hum = c:findFirstChild("Humanoid")
507
    if hum ~= nil then
508
      local head = c:findFirstChild("Head")
509
      if head ~= nil then
510
        local targ = head.Position - Part.Position
511
        local mag = targ.magnitude
512
        if magni >= mag and c.Name ~= plr.Name then
513
          Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
514
        end
515
      end
516
    end
517
  end
518
end
519
520
521
CFuncs = {
522
	Part = {
523
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
524
			local Part = Create("Part")({
525
				Parent = Parent,
526
				Reflectance = Reflectance,
527
				Transparency = Transparency,
528
				CanCollide = false,
529
				Locked = true,
530
				BrickColor = BrickColor.new(tostring(BColor)),
531
				Name = Name,
532
				Size = Size,
533
				Material = Material
534
			})
535
			RemoveOutlines(Part)
536
			return Part
537
		end
538
	},
539
	Mesh = {
540
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
541
			local Msh = Create(Mesh)({
542
				Parent = Part,
543
				Offset = OffSet,
544
				Scale = Scale
545
			})
546
			if Mesh == "SpecialMesh" then
547
				Msh.MeshType = MeshType
548
				Msh.MeshId = MeshId
549
			end
550
			return Msh
551
		end
552
	},
553
	Mesh = {
554
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
555
			local Msh = Create(Mesh)({
556
				Parent = Part,
557
				Offset = OffSet,
558
				Scale = Scale
559
			})
560
			if Mesh == "SpecialMesh" then
561
				Msh.MeshType = MeshType
562
				Msh.MeshId = MeshId
563
			end
564
			return Msh
565
		end
566
	},
567
	Weld = {
568
		Create = function(Parent, Part0, Part1, C0, C1)
569
			local Weld = Create("Weld")({
570
				Parent = Parent,
571
				Part0 = Part0,
572
				Part1 = Part1,
573
				C0 = C0,
574
				C1 = C1
575
			})
576
			return Weld
577
		end
578
	},
579
	Sound = {
580
		Create = function(id, par, vol, pit)
581
			coroutine.resume(coroutine.create(function()
582
				local S = Create("Sound")({
583
					Volume = vol,
584
					Pitch = pit or 1,
585
					SoundId = id,
586
					Parent = par or workspace
587
				})
588
				wait()
589
				S:play()
590
				game:GetService("Debris"):AddItem(S, 6)
591
			end))
592
		end
593
	},
594
	ParticleEmitter = {
595
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
596
			local fp = Create("ParticleEmitter")({
597
				Parent = Parent,
598
				Color = ColorSequence.new(Color1, Color2),
599
				LightEmission = LightEmission,
600
				Size = Size,
601
				Texture = Texture,
602
				Transparency = Transparency,
603
				ZOffset = ZOffset,
604
				Acceleration = Accel,
605
				Drag = Drag,
606
				LockedToPart = LockedToPart,
607
				VelocityInheritance = VelocityInheritance,
608
				EmissionDirection = EmissionDirection,
609
				Enabled = Enabled,
610
				Lifetime = LifeTime,
611
				Rate = Rate,
612
				Rotation = Rotation,
613
				RotSpeed = RotSpeed,
614
				Speed = Speed,
615
				VelocitySpread = VelocitySpread
616
			})
617
			return fp
618
		end
619
	}
620
}
621
function RemoveOutlines(part)
622
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
623
end
624
function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
625
	local Part = Create("Part")({
626
		formFactor = FormFactor,
627
		Parent = Parent,
628
		Reflectance = Reflectance,
629
		Transparency = Transparency,
630
		CanCollide = false,
631
		Locked = true,
632
		BrickColor = BrickColor.new(tostring(BColor)),
633
		Name = Name,
634
		Size = Size,
635
		Material = Material
636
	})
637
	RemoveOutlines(Part)
638
	return Part
639
end
640
function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
641
	local Msh = Create(Mesh)({
642
		Parent = Part,
643
		Offset = OffSet,
644
		Scale = Scale
645
	})
646
	if Mesh == "SpecialMesh" then
647
		Msh.MeshType = MeshType
648
		Msh.MeshId = MeshId
649
	end
650
	return Msh
651
end
652
function CreateWeld(Parent, Part0, Part1, C0, C1)
653
	local Weld = Create("Weld")({
654
		Parent = Parent,
655
		Part0 = Part0,
656
		Part1 = Part1,
657
		C0 = C0,
658
		C1 = C1
659
	})
660
	return Weld
661
end
662
663
664
-------------------------------------------------------
665
--Start Effect Function--
666
-------------------------------------------------------
667
EffectModel = Instance.new("Model", char)
668
Effects = {
669
  Block = {
670
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
671
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
672
      prt.Anchored = true
673
      prt.CFrame = cframe
674
      local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
675
      game:GetService("Debris"):AddItem(prt, 10)
676
      if Type == 1 or Type == nil then
677
        table.insert(Effects, {
678
          prt,
679
          "Block1",
680
          delay,
681
          x3,
682
          y3,
683
          z3,
684
          msh
685
        })
686
      elseif Type == 2 then
687
        table.insert(Effects, {
688
          prt,
689
          "Block2",
690
          delay,
691
          x3,
692
          y3,
693
          z3,
694
          msh
695
        })
696
      else
697
        table.insert(Effects, {
698
          prt,
699
          "Block3",
700
          delay,
701
          x3,
702
          y3,
703
          z3,
704
          msh
705
        })
706
      end
707
    end
708
  },
709
  Sphere = {
710
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
711
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
712
      prt.Anchored = true
713
      prt.CFrame = cframe
714
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
715
      game:GetService("Debris"):AddItem(prt, 10)
716
      table.insert(Effects, {
717
        prt,
718
        "Cylinder",
719
        delay,
720
        x3,
721
        y3,
722
        z3,
723
        msh
724
      })
725
    end
726
  },
727
  Cylinder = {
728
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
729
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
730
      prt.Anchored = true
731
      prt.CFrame = cframe
732
      local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
733
      game:GetService("Debris"):AddItem(prt, 10)
734
      table.insert(Effects, {
735
        prt,
736
        "Cylinder",
737
        delay,
738
        x3,
739
        y3,
740
        z3,
741
        msh
742
      })
743
    end
744
  },
745
  Wave = {
746
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
747
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
748
      prt.Anchored = true
749
      prt.CFrame = cframe
750
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
751
      game:GetService("Debris"):AddItem(prt, 10)
752
      table.insert(Effects, {
753
        prt,
754
        "Cylinder",
755
        delay,
756
        x3 / 60,
757
        y3 / 60,
758
        z3 / 60,
759
        msh
760
      })
761
    end
762
  },
763
  Ring = {
764
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
765
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
766
      prt.Anchored = true
767
      prt.CFrame = cframe
768
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
769
      game:GetService("Debris"):AddItem(prt, 10)
770
      table.insert(Effects, {
771
        prt,
772
        "Cylinder",
773
        delay,
774
        x3,
775
        y3,
776
        z3,
777
        msh
778
      })
779
    end
780
  },
781
  Break = {
782
    Create = function(brickcolor, cframe, x1, y1, z1)
783
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
784
      prt.Anchored = true
785
      prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
786
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
787
      local num = math.random(10, 50) / 1000
788
      game:GetService("Debris"):AddItem(prt, 10)
789
      table.insert(Effects, {
790
        prt,
791
        "Shatter",
792
        num,
793
        prt.CFrame,
794
        math.random() - math.random(),
795
        0,
796
        math.random(50, 100) / 100
797
      })
798
    end
799
  },
800
Spiral = {
801
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
802
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
803
      prt.Anchored = true
804
      prt.CFrame = cframe
805
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
806
      game:GetService("Debris"):AddItem(prt, 10)
807
      table.insert(Effects, {
808
        prt,
809
        "Cylinder",
810
        delay,
811
        x3,
812
        y3,
813
        z3,
814
        msh
815
      })
816
    end
817
  },
818
Push = {
819
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
820
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
821
      prt.Anchored = true
822
      prt.CFrame = cframe
823
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
824
      game:GetService("Debris"):AddItem(prt, 10)
825
      table.insert(Effects, {
826
        prt,
827
        "Cylinder",
828
        delay,
829
        x3,
830
        y3,
831
        z3,
832
        msh
833
      })
834
    end
835
  }
836
}
837
function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
838
	local fp = IT("Part")
839
	fp.formFactor = formfactor 
840
	fp.Parent = parent
841
	fp.Reflectance = reflectance
842
	fp.Transparency = transparency
843
	fp.CanCollide = false 
844
	fp.Locked = true
845
	fp.BrickColor = brickcolor
846
	fp.Name = name
847
	fp.Size = size
848
	fp.Position = tors.Position 
849
	RemoveOutlines(fp)
850
	fp.Material = "SmoothPlastic"
851
	fp:BreakJoints()
852
	return fp 
853
end 
854
 
855
function mesh(Mesh,part,meshtype,meshid,offset,scale)
856
	local mesh = IT(Mesh) 
857
	mesh.Parent = part
858
	if Mesh == "SpecialMesh" then
859
		mesh.MeshType = meshtype
860
	if meshid ~= "nil" then
861
		mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
862
		end
863
	end
864
	mesh.Offset = offset
865
	mesh.Scale = scale
866
	return mesh
867
end
868
869
function Magic(bonuspeed, type, pos, scale, value, color, MType)
870
	local type = type
871
	local rng = Instance.new("Part", char)
872
	rng.Anchored = true
873
	rng.BrickColor = color
874
	rng.CanCollide = false
875
	rng.FormFactor = 3
876
	rng.Name = "Ring"
877
	rng.Material = "Neon"
878
	rng.Size = Vector3.new(1, 1, 1)
879
	rng.Transparency = 0
880
	rng.TopSurface = 0
881
	rng.BottomSurface = 0
882
	rng.CFrame = pos
883
	local rngm = Instance.new("SpecialMesh", rng)
884
	rngm.MeshType = MType
885
	rngm.Scale = scale
886
	local scaler2 = 1
887
	if type == "Add" then
888
		scaler2 = 1 * value
889
	elseif type == "Divide" then
890
		scaler2 = 1 / value
891
	end
892
	coroutine.resume(coroutine.create(function()
893
		for i = 0, 10 / bonuspeed, 0.1 do
894
			swait()
895
			if type == "Add" then
896
				scaler2 = scaler2 - 0.01 * value / bonuspeed
897
			elseif type == "Divide" then
898
				scaler2 = scaler2 - 0.01 / value * bonuspeed
899
			end
900
			rng.Transparency = rng.Transparency + 0.01 * bonuspeed
901
			rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
902
		end
903
		rng:Destroy()
904
	end))
905
end
906
907
function Eviscerate(dude)
908
	if dude.Name ~= char then
909
		local bgf = IT("BodyGyro", dude.Head)
910
		bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
911
		local val = IT("BoolValue", dude)
912
		val.Name = "IsHit"
913
		local ds = coroutine.wrap(function()
914
			dude:WaitForChild("Head"):BreakJoints()
915
			wait(0.5)
916
			target = nil
917
			coroutine.resume(coroutine.create(function()
918
				for i, v in pairs(dude:GetChildren()) do
919
					if v:IsA("Accessory") then
920
						v:Destroy()
921
					end
922
					if v:IsA("Humanoid") then
923
						v:Destroy()
924
					end
925
					if v:IsA("CharacterMesh") then
926
						v:Destroy()
927
					end
928
					if v:IsA("Model") then
929
						v:Destroy()
930
					end
931
					if v:IsA("Part") or v:IsA("MeshPart") then
932
						for x, o in pairs(v:GetChildren()) do
933
							if o:IsA("Decal") then
934
								o:Destroy()
935
							end
936
						end
937
						coroutine.resume(coroutine.create(function()
938
							v.Material = "Neon"
939
							v.CanCollide = false
940
							local PartEmmit1 = IT("ParticleEmitter", v)
941
							PartEmmit1.LightEmission = 1
942
							PartEmmit1.Texture = "rbxassetid://284205403"
943
							PartEmmit1.Color = ColorSequence.new(maincolor.Color)
944
							PartEmmit1.Rate = 150
945
							PartEmmit1.Lifetime = NumberRange.new(1)
946
							PartEmmit1.Size = NumberSequence.new({
947
								NumberSequenceKeypoint.new(0, 0.75, 0),
948
								NumberSequenceKeypoint.new(1, 0, 0)
949
							})
950
							PartEmmit1.Transparency = NumberSequence.new({
951
								NumberSequenceKeypoint.new(0, 0, 0),
952
								NumberSequenceKeypoint.new(1, 1, 0)
953
							})
954
							PartEmmit1.Speed = NumberRange.new(0, 0)
955
							PartEmmit1.VelocitySpread = 30000
956
							PartEmmit1.Rotation = NumberRange.new(-500, 500)
957
							PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
958
							local BodPoss = IT("BodyPosition", v)
959
							BodPoss.P = 3000
960
							BodPoss.D = 1000
961
							BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
962
							BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
963
							v.Color = maincolor.Color
964
							coroutine.resume(coroutine.create(function()
965
								for i = 0, 49 do
966
									swait(1)
967
									v.Transparency = v.Transparency + 0.08
968
								end
969
								wait(0.5)
970
								PartEmmit1.Enabled = false
971
								wait(3)
972
								v:Destroy()
973
								dude:Destroy()
974
							end))
975
						end))
976
					end
977
				end
978
			end))
979
		end)
980
		ds()
981
	end
982
end
983
984
function FindNearestHead(Position, Distance, SinglePlayer)
985
	if SinglePlayer then
986
		return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
987
	end
988
	local List = {}
989
	for i, v in pairs(workspace:GetChildren()) do
990
		if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
991
			table.insert(List, v)
992
		end
993
	end
994
	return List
995
end
996
997
function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
998
	local type = type
999
	local rng = Instance.new("Part", char)
1000
	rng.Anchored = true
1001
	rng.BrickColor = color
1002
	rng.CanCollide = false
1003
	rng.FormFactor = 3
1004
	rng.Name = "Ring"
1005
	rng.Material = "Neon"
1006
	rng.Size = Vector3.new(1, 1, 1)
1007
	rng.Transparency = 0
1008
	rng.TopSurface = 0
1009
	rng.BottomSurface = 0
1010
	rng.CFrame = pos
1011
	rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
1012
	local rngm = Instance.new("SpecialMesh", rng)
1013
	rngm.MeshType = MType
1014
	rngm.Scale = Vector3.new(x1, y1, z1)
1015
	local scaler2 = 1
1016
	local speeder = FastSpeed
1017
	if type == "Add" then
1018
		scaler2 = 1 * value
1019
	elseif type == "Divide" then
1020
		scaler2 = 1 / value
1021
	end
1022
	coroutine.resume(coroutine.create(function()
1023
		for i = 0, 10 / bonuspeed, 0.1 do
1024
			swait()
1025
			if type == "Add" then
1026
				scaler2 = scaler2 - 0.01 * value / bonuspeed
1027
			elseif type == "Divide" then
1028
				scaler2 = scaler2 - 0.01 / value * bonuspeed
1029
			end
1030
			speeder = speeder - 0.01 * FastSpeed * bonuspeed
1031
			rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
1032
			rng.Transparency = rng.Transparency + 0.01 * bonuspeed
1033
			rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
1034
		end
1035
		rng:Destroy()
1036
	end))
1037
end
1038
1039
function SoulSteal(dude)
1040
if dude.Name ~= char then
1041
local bgf = IT("BodyGyro", dude.Head)
1042
bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
1043
local val = IT("BoolValue", dude)
1044
val.Name = "IsHit"
1045
local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
1046
local soulst = coroutine.wrap(function()
1047
local soul = Instance.new("Part",dude)
1048
soul.Size = Vector3.new(1,1,1)
1049
soul.CanCollide = false
1050
soul.Anchored = false
1051
soul.Position = torso.Position
1052
soul.Transparency = 1
1053
local PartEmmit1 = IT("ParticleEmitter", soul)
1054
PartEmmit1.LightEmission = 1
1055
PartEmmit1.Texture = "rbxassetid://569507414"
1056
PartEmmit1.Color = ColorSequence.new(maincolor.Color)
1057
PartEmmit1.Rate = 250
1058
PartEmmit1.Lifetime = NumberRange.new(1.6)
1059
PartEmmit1.Size = NumberSequence.new({
1060
	NumberSequenceKeypoint.new(0, 1, 0),
1061
	NumberSequenceKeypoint.new(1, 0, 0)
1062
})
1063
PartEmmit1.Transparency = NumberSequence.new({
1064
	NumberSequenceKeypoint.new(0, 0, 0),
1065
	NumberSequenceKeypoint.new(1, 1, 0)
1066
})
1067
PartEmmit1.Speed = NumberRange.new(0, 0)
1068
PartEmmit1.VelocitySpread = 30000
1069
PartEmmit1.Rotation = NumberRange.new(-360, 360)
1070
PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
1071
local BodPoss = IT("BodyPosition", soul)
1072
BodPoss.P = 3000
1073
BodPoss.D = 1000
1074
BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
1075
BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
1076
wait(1.6)
1077
soul.Touched:connect(function(hit)
1078
	if hit.Parent == char then
1079
	soul:Destroy()
1080
	end
1081
end)
1082
wait(1.2)
1083
while soul do
1084
	swait()
1085
	PartEmmit1.Color = ColorSequence.new(maincolor.Color)
1086
	BodPoss.Position = tors.Position
1087
end
1088
end)
1089
	soulst()
1090
	end
1091
end
1092
function FaceMouse()
1093
local	Cam = workspace.CurrentCamera
1094
	return {
1095
		CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
1096
		Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
1097
	}
1098
end
1099
-------------------------------------------------------
1100
--End Effect Function--
1101
-------------------------------------------------------
1102
function Cso(ID, PARENT, VOLUME, PITCH)
1103
	local NSound = nil
1104
	coroutine.resume(coroutine.create(function()
1105
		NSound = IT("Sound", PARENT)
1106
		NSound.Volume = VOLUME
1107
		NSound.Pitch = PITCH
1108
		NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
1109
		swait()
1110
		NSound:play()
1111
		game:GetService("Debris"):AddItem(NSound, 10)
1112
	end))
1113
	return NSound
1114
end
1115
function CameraEnshaking(Length, Intensity)
1116
	coroutine.resume(coroutine.create(function()
1117
		local intensity = 1 * Intensity
1118
		local rotM = 0.01 * Intensity
1119
		for i = 0, Length, 0.1 do
1120
			swait()
1121
			intensity = intensity - 0.05 * Intensity / Length
1122
			rotM = rotM - 5.0E-4 * Intensity / Length
1123
			hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
1124
			cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
1125
		end
1126
		hum.CameraOffset = Vector3.new(0, 0, 0)
1127
	end))
1128
end
1129
1130
function getRegion(point,range,ignore)
1131
    return workspace:FindPartsInRegion3WithIgnoreList(Region3.new(point-Vector3.new(1,1,1)*range/2,point+Vector3.new(1,1,1)*range/2),ignore,100)
1132
end
1133
1134
function GetTorso(chars)
1135
	return chars:FindFirstChild'Torso' or chars:FindFirstChild'UpperTorso'
1136
end
1137
1138
function ClosestHumanoid(pos,range)
1139
	local mag,closest = math.huge;
1140
	for _,v in next, getRegion(pos,range or 10,{char}) do
1141
		local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')
1142
		if((v.CFrame.p-pos).magnitude < mag and hum and closest ~= hum and hum.Health > 0)then
1143
			mag = (v.CFrame.p-pos).magnitude
1144
			closest = hum
1145
		end
1146
	end
1147
	return closest,(closest and GetTorso(closest.Parent) or nil)
1148
end
1149
1150
for _,v in pairs (char:children()) do
1151
if v:IsA("Accessory") or v:IsA("Hat") then
1152
v:Destroy()
1153
end
1154
end
1155
-------------------------------------------------------
1156
--Start Customization--
1157
-------------------------------------------------------
1158
local Player_Size = 0.6
1159
if Player_Size ~= 1 then
1160
root.Size = root.Size * Player_Size
1161
tors.Size = tors.Size * Player_Size
1162
hed.Size = hed.Size * Player_Size
1163
ra.Size = ra.Size * Player_Size
1164
la.Size = la.Size * Player_Size
1165
rl.Size = rl.Size * Player_Size
1166
ll.Size = ll.Size * Player_Size
1167
----------------------------------------------------------------------------------
1168
rootj.Parent = root
1169
neck.Parent = tors
1170
RW.Parent = tors
1171
LW.Parent = tors
1172
RH.Parent = tors
1173
LH.Parent = tors
1174
----------------------------------------------------------------------------------
1175
rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
1176
rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
1177
neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
1178
neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
1179
RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
1180
LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
1181
----------------------------------------------------------------------------------
1182
RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
1183
LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
1184
RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
1185
LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
1186
--hat.Parent = Character
1187
end
1188
----------------------------------------------------------------------------------
1189
local SONG = 0
1190
local SONG2 = 0
1191
local Music = Instance.new("Sound",tors)
1192
Music.Volume = 2.5
1193
Music.Looped = true
1194
Music.Pitch = 1 --Pitcher
1195
----------------------------------------------------------------------------------
1196
local equipped = false
1197
local idle = 0
1198
local change = 1
1199
local val = 0
1200
local toim = 0
1201
local idleanim = 0.4
1202
local sine = 0
1203
local Sit = 1
1204
local VALUE1 = false
1205
local VALUE2 = false
1206
----------------------------------------------------------------------------------
1207
hum.WalkSpeed = 45
1208
hum.JumpPower = 50
1209
hum.Animator.Parent = nil
1210
-------------------------------------------------------
1211
--End Customization--
1212
-------------------------------------------------------
1213
-------------------------------------------------------
1214
--Start Animations--
1215
-------------------------------------------------------
1216
print("By Makhail07")
1217
while true do
1218
	swait()
1219
	sine = sine + change
1220
	local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
1221
	local velderp = root.Velocity.y
1222
	hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
1223
	if equipped == true or equipped == false then
1224
		if attack == false then
1225
			idle = idle + 1
1226
		else
1227
			idle = 0
1228
		end
1229
		if 1 < root.Velocity.y and hitfloor == nil then
1230
			Anim = "Jump"
1231
			if attack == false then
1232
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.1)
1233
				neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
1234
				RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.1)
1235
				LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.1)
1236
				RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
1237
				LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
1238
			end
1239
		elseif -1 > root.Velocity.y and hitfloor == nil then
1240
			Anim = "Fall"
1241
			if attack == false then
1242
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.1)
1243
				neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
1244
				RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.1)
1245
				LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.1)
1246
				RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1)
1247
				LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1)
1248
			end
1249
		elseif torvel < 1 and hitfloor ~= nil then
1250
			Anim = "Idle"
1251
			change = 1
1252
			if attack == false then
1253
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
1254
				tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-3.75), Rad(0), Rad(0)), 0.3)
1255
				RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -0.6 - 0.1 * Player_Size * Cos(sine / 20), 0.025 * Player_Size * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
1256
				LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -0.6 - 0.1 * Player_Size * Cos(sine / 20), 0.025 * Player_Size * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
1257
				RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.05 * Player_Size * Sin(sine / 30), 0.025 * Player_Size * Cos(sine / 20)) * angles(Rad(30 * Cos(sine / 20)), Rad(0), Rad(5)), 0.1)
1258
				LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.05 * Player_Size * Sin(sine / 30), 0.025 * Player_Size * Cos(sine / 20)) * angles(Rad(30 * Cos(sine / 20)), Rad(0), Rad(-5)), 0.1)
1259
			end
1260
		elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then
1261
			Anim = "Walk"
1262
			change = 1
1263
			if attack == false then
1264
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0 * Player_Size, 0 * Player_Size, -0.175 + 0.025 * Player_Size * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
1265
            tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
1266
            RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -0.625 - 0.5 * Player_Size * Cos(sine / 7) / 2, 0.7 * Player_Size * Cos(sine / 7) / 2) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
1267
            LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -0.625 + 0.5 * Cos(sine / 7) / 2 * Player_Size, -0.7 * Cos(sine / 7) / 2 * Player_Size) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
1268
            RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.05 * Player_Size * Sin(sine / 30), 0.34 * Player_Size * Cos(sine / 7)) * angles(Rad(110)  * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
1269
            LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.05 * Player_Size * Sin(sine / 30), -0.34 * Player_Size * Cos(sine / 7)) * angles(Rad(-110)  * Cos(sine / 7) , Rad(0) ,    Rad(-13) + la.RotVelocity.Y / 75), 0.15)
1270
			end
1271
		end
1272
	end
1273
	Music.SoundId = "rbxassetid://"..SONG
1274
	Music.Looped = true
1275
	Music.Pitch = 1
1276
	Music.Volume = 5
1277
	Music.Parent = tors
1278
	Music:Resume()
1279
	if 0 < #Effects then
1280
		for e = 1, #Effects do
1281
			if Effects[e] ~= nil then
1282
				local Thing = Effects[e]
1283
				if Thing ~= nil then
1284
					local Part = Thing[1]
1285
					local Mode = Thing[2]
1286
					local Delay = Thing[3]
1287
					local IncX = Thing[4]
1288
					local IncY = Thing[5]
1289
					local IncZ = Thing[6]
1290
					if 1 >= Thing[1].Transparency then
1291
						if Thing[2] == "Block1" then
1292
							Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1293
							local Mesh = Thing[1].Mesh
1294
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1295
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1296
						elseif Thing[2] == "Block2" then
1297
							Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
1298
							local Mesh = Thing[7]
1299
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1300
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1301
						elseif Thing[2] == "Block3" then
1302
							Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
1303
							local Mesh = Thing[7]
1304
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1305
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1306
						elseif Thing[2] == "Cylinder" then
1307
							local Mesh = Thing[1].Mesh
1308
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1309
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1310
						elseif Thing[2] == "Blood" then
1311
							local Mesh = Thing[7]
1312
							Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
1313
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1314
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1315
						elseif Thing[2] == "Elec" then
1316
							local Mesh = Thing[1].Mesh
1317
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
1318
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1319
						elseif Thing[2] == "Disappear" then
1320
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1321
						elseif Thing[2] == "Shatter" then
1322
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1323
							Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
1324
							Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
1325
							Thing[6] = Thing[6] + Thing[5]
1326
						end
1327
					else
1328
						Part.Parent = nil
1329
						table.remove(Effects, e)
1330
					end
1331
				end
1332
			end
1333
		end
1334
	end
1335
end
1336
-------------------------------------------------------
1337
--End Animations And Script--
1338
-------------------------------------------------------