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