View difference between Paste ID: Q1TcKy1P and 1MiiuqER
SHOW: | | - or go back to the newest paste.
1
-- This script has been converted to FE by iPxter
2
3
4
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
5
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
6
do
7
	print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
8
	script.Parent = Player.Character
9
10
	--RemoteEvent for communicating
11
	local Event = Instance.new("RemoteEvent")
12
	Event.Name = "UserInput_Event"
13
14
	--Fake event to make stuff like Mouse.KeyDown work
15
	local function fakeEvent()
16
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
17
		t.connect = t.Connect
18
		return t
19
	end
20
21
	--Creating fake input objects with fake variables
22
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
23
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
24
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
25
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
26
	end}
27
	--Merged 2 functions into one by checking amount of arguments
28
	CAS.UnbindAction = CAS.BindAction
29
30
	--This function will trigger the events that have been :Connect()'ed
31
	local function te(self,ev,...)
32
		local t = m[ev]
33
		if t and t._fakeEvent and t.Function then
34
			t.Function(...)
35
		end
36
	end
37
	m.TrigEvent = te
38
	UIS.TrigEvent = te
39
40
	Event.OnServerEvent:Connect(function(plr,io)
41
	    if plr~=Player then return end
42
		if io.isMouse then
43
			m.Target = io.Target
44
			m.Hit = io.Hit
45
		else
46
			local b = io.UserInputState == Enum.UserInputState.Begin
47
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
			end
50
			for _,t in pairs(CAS.Actions) do
51
				for _,k in pairs(t.Keys) do
52
					if k==io.KeyCode then
53
						t.Function(t.Name,io.UserInputState,io)
54
					end
55
				end
56
			end
57
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
	    end
60
	end)
61
	Event.Parent = NLS([==[
62
	local Player = game:GetService("Players").LocalPlayer
63
	local Event = script:WaitForChild("UserInput_Event")
64
65
	local UIS = game:GetService("UserInputService")
66
	local input = function(io,a)
67
		if a then return end
68
		--Since InputObject is a client-side instance, we create and pass table instead
69
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
70
	end
71
	UIS.InputBegan:Connect(input)
72
	UIS.InputEnded:Connect(input)
73
74
	local Mouse = Player:GetMouse()
75
	local h,t
76
	--Give the server mouse data 30 times every second, but only if the values changed
77
	--If player is not moving their mouse, client won't fire events
78
	while wait(1/30) do
79
		if h~=Mouse.Hit or t~=Mouse.Target then
80
			h,t=Mouse.Hit,Mouse.Target
81
			Event:FireServer({isMouse=true,Target=t,Hit=h})
82
		end
83
	end]==],Player.Character)
84
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
85
end
86
local FavIDs = {
87
	340106355, --Nefl Crystals
88
	927529620, --Dimension
89
	876981900, --Fantasy
90
	398987889, --Ordinary Days
91
	1117396305, --Oh wait, it's you.
92
	885996042, --Action Winter Journey
93
	919231299, --Sprawling Idiot Effigy
94
	743466274, --Good Day Sunshine
95
	727411183, --Knife Fight
96
	1402748531, --The Earth Is Counting On You!
97
	595230126 --Robot Language
98
	}
99
100
101
102
--The reality of my life isn't real but a Universe -makhail07
103
wait()
104
local plr = owner
105
print('Local User is '..plr.Name)
106
local char = plr.Character
107
local hum = char.Humanoid
108
local hed = char.Head
109
local root = char.HumanoidRootPart
110
local rootj = root.RootJoint
111
local tors = char.Torso
112
local ra = char["Right Arm"]
113
local la = char["Left Arm"]
114
local rl = char["Right Leg"]
115
local ll = char["Left Leg"]
116
local neck = tors["Neck"]
117
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
118
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
119
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
120
local maincolor = BrickColor.new("Institutional white")
121
-------------------------------------------------------
122
--Start Whitelist and Invincibility--
123
-------------------------------------------------------	
124
ff = Instance.new("ForceField",char)
125
ff.Visible = false
126
hum.Name = "Base"
127
hum.MaxHealth = 1.0E298
128
hum.Health = 1.0E298
129
game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
130
  if hum.Health > 0.1 and hum.Health < 1.0E298 then
131
    hum.MaxHealth = 1.0E298
132
    hum.Health = 1.0E298
133
  end
134
end)
135
-------------------------------------------------------
136
--End Whitelist and Invincibility--
137
-------------------------------------------------------	
138
139
-------------------------------------------------------
140
--Start Good Stuff--
141
-------------------------------------------------------
142
cam = game.Workspace.CurrentCamera
143
CF = CFrame.new
144
angles = CFrame.Angles
145
attack = false
146
Euler = CFrame.fromEulerAnglesXYZ
147
Rad = math.rad
148
IT = Instance.new
149
BrickC = BrickColor.new
150
Cos = math.cos
151
Acos = math.acos
152
Sin = math.sin
153
Asin = math.asin
154
Abs = math.abs
155
Mrandom = math.random
156
Floor = math.floor
157
-------------------------------------------------------
158
--End Good Stuff--
159
-------------------------------------------------------
160
necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
161
RSH, LSH = nil, nil 
162
RW = Instance.new("Weld") 
163
LW = Instance.new("Weld")
164
RH = tors["Right Hip"]
165
LH = tors["Left Hip"]
166
RSH = tors["Right Shoulder"] 
167
LSH = tors["Left Shoulder"] 
168
RSH.Parent = nil 
169
LSH.Parent = nil 
170
RW.Name = "RW"
171
RW.Part0 = tors 
172
RW.C0 = CF(1.5, 0.5, 0)
173
RW.C1 = CF(0, 0.5, 0) 
174
RW.Part1 = ra
175
RW.Parent = tors 
176
LW.Name = "LW"
177
LW.Part0 = tors 
178
LW.C0 = CF(-1.5, 0.5, 0)
179
LW.C1 = CF(0, 0.5, 0) 
180
LW.Part1 = la
181
LW.Parent = tors
182
Effects = {}
183
-------------------------------------------------------
184
--Start HeartBeat--
185
-------------------------------------------------------
186
ArtificialHB = Instance.new("BindableEvent", script)
187
ArtificialHB.Name = "Heartbeat"
188
script:WaitForChild("Heartbeat")
189
190
frame = 1 / 60
191
tf = 0
192
allowframeloss = false
193
tossremainder = false
194
195
196
lastframe = tick()
197
script.Heartbeat:Fire()
198
199
200
game:GetService("RunService").Heartbeat:connect(function(s, p)
201
	tf = tf + s
202
	if tf >= frame then
203
		if allowframeloss then
204
			script.Heartbeat:Fire()
205
			lastframe = tick()
206
		else
207
			for i = 1, math.floor(tf / frame) do
208
				script.Heartbeat:Fire()
209
			end
210
			lastframe = tick()
211
		end
212
		if tossremainder then
213
			tf = 0
214
		else
215
			tf = tf - frame * math.floor(tf / frame)
216
		end
217
	end
218
end)
219
-------------------------------------------------------
220
--End HeartBeat--
221
-------------------------------------------------------
222
223
-------------------------------------------------------
224
--Start Important Functions--
225
-------------------------------------------------------
226
function swait(num)
227
	if num == 0 or num == nil then
228
		game:service("RunService").Stepped:wait(0)
229
	else
230
		for i = 0, num do
231
			game:service("RunService").Stepped:wait(0)
232
		end
233
	end
234
end
235
function thread(f)
236
	coroutine.resume(coroutine.create(f))
237
end
238
function clerp(a, b, t)
239
	local qa = {
240
		QuaternionFromCFrame(a)
241
	}
242
	local qb = {
243
		QuaternionFromCFrame(b)
244
	}
245
	local ax, ay, az = a.x, a.y, a.z
246
	local bx, by, bz = b.x, b.y, b.z
247
	local _t = 1 - t
248
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
249
end
250
function QuaternionFromCFrame(cf)
251
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
252
	local trace = m00 + m11 + m22
253
	if trace > 0 then
254
		local s = math.sqrt(1 + trace)
255
		local recip = 0.5 / s
256
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
257
	else
258
		local i = 0
259
		if m00 < m11 then
260
			i = 1
261
		end
262
		if m22 > (i == 0 and m00 or m11) then
263
			i = 2
264
		end
265
		if i == 0 then
266
			local s = math.sqrt(m00 - m11 - m22 + 1)
267
			local recip = 0.5 / s
268
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
269
		elseif i == 1 then
270
			local s = math.sqrt(m11 - m22 - m00 + 1)
271
			local recip = 0.5 / s
272
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
273
		elseif i == 2 then
274
			local s = math.sqrt(m22 - m00 - m11 + 1)
275
			local recip = 0.5 / s
276
			return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
277
		end
278
	end
279
end
280
function QuaternionToCFrame(px, py, pz, x, y, z, w)
281
	local xs, ys, zs = x + x, y + y, z + z
282
	local wx, wy, wz = w * xs, w * ys, w * zs
283
	local xx = x * xs
284
	local xy = x * ys
285
	local xz = x * zs
286
	local yy = y * ys
287
	local yz = y * zs
288
	local zz = z * zs
289
	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))
290
end
291
function QuaternionSlerp(a, b, t)
292
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
293
	local startInterp, finishInterp
294
	if cosTheta >= 1.0E-4 then
295
		if 1 - cosTheta > 1.0E-4 then
296
			local theta = math.acos(cosTheta)
297
			local invSinTheta = 1 / Sin(theta)
298
			startInterp = Sin((1 - t) * theta) * invSinTheta
299
			finishInterp = Sin(t * theta) * invSinTheta
300
		else
301
			startInterp = 1 - t
302
			finishInterp = t
303
		end
304
	elseif 1 + cosTheta > 1.0E-4 then
305
		local theta = math.acos(-cosTheta)
306
		local invSinTheta = 1 / Sin(theta)
307
		startInterp = Sin((t - 1) * theta) * invSinTheta
308
		finishInterp = Sin(t * theta) * invSinTheta
309
	else
310
		startInterp = t - 1
311
		finishInterp = t
312
	end
313
	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
314
end
315
function rayCast(Position, Direction, Range, Ignore)
316
	return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
317
end
318
local RbxUtility = LoadLibrary("RbxUtility")
319
local Create = RbxUtility.Create
320
321
-------------------------------------------------------
322
--Start Damage Function--
323
-------------------------------------------------------
324
function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
325
	if hit.Parent == nil then
326
		return
327
	end
328
	local h = hit.Parent:FindFirstChildOfClass("Humanoid")
329
	for _, v in pairs(hit.Parent:children()) do
330
		if v:IsA("Humanoid") then
331
			h = v
332
		end
333
	end
334
         if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
335
	
336
         hit.Parent:FindFirstChild("Head"):BreakJoints()
337
         end
338
339
	if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
340
		if hit.Parent:findFirstChild("DebounceHit") ~= nil then
341
			if hit.Parent.DebounceHit.Value == true then
342
				return
343
			end
344
		end
345
         if insta == true then
346
         hit.Parent:FindFirstChild("Head"):BreakJoints()
347
         end
348
		local c = Create("ObjectValue"){
349
			Name = "creator",
350
			Value = owner,
351
			Parent = h,
352
		}
353
		game:GetService("Debris"):AddItem(c, .5)
354
		if HitSound ~= nil and HitPitch ~= nil then
355
			CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) 
356
		end
357
		local Damage = math.random(minim, maxim)
358
		local blocked = false
359
		local block = hit.Parent:findFirstChild("Block")
360
		if block ~= nil then
361
			if block.className == "IntValue" then
362
				if block.Value > 0 then
363
					blocked = true
364
					block.Value = block.Value - 1
365
					print(block.Value)
366
				end
367
			end
368
		end
369
		if blocked == false then
370
			h.Health = h.Health - Damage
371
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
372
		else
373
			h.Health = h.Health - (Damage / 2)
374
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
375
		end
376
		if Type == "Knockdown" then
377
			local hum = hit.Parent.Humanoid
378
			hum.PlatformStand = true
379
			coroutine.resume(coroutine.create(function(HHumanoid)
380
				swait(1)
381
				HHumanoid.PlatformStand = false
382
			end), hum)
383
			local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
384
			local bodvol = Create("BodyVelocity"){
385
				velocity = angle * knockback,
386
				P = 5000,
387
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
388
				Parent = hit,
389
			}
390
			local rl = Create("BodyAngularVelocity"){
391
				P = 3000,
392
				maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
393
				angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
394
				Parent = hit,
395
			}
396
			game:GetService("Debris"):AddItem(bodvol, .5)
397
			game:GetService("Debris"):AddItem(rl, .5)
398
		elseif Type == "Normal" then
399
			local vp = Create("BodyVelocity"){
400
				P = 500,
401
				maxForce = Vector3.new(math.huge, 0, math.huge),
402
				velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
403
			}
404
			if knockback > 0 then
405
				vp.Parent = hit.Parent.Torso
406
			end
407
			game:GetService("Debris"):AddItem(vp, .5)
408
		elseif Type == "Up" then
409
			local bodyVelocity = Create("BodyVelocity"){
410
				velocity = Vector3.new(0, 20, 0),
411
				P = 5000,
412
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
413
				Parent = hit,
414
			}
415
			game:GetService("Debris"):AddItem(bodyVelocity, .5)
416
		elseif Type == "DarkUp" then
417
			coroutine.resume(coroutine.create(function()
418
				for i = 0, 1, 0.1 do
419
					swait()
420
					Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
421
				end
422
			end))
423
			local bodyVelocity = Create("BodyVelocity"){
424
				velocity = Vector3.new(0, 20, 0),
425
				P = 5000,
426
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
427
				Parent = hit,
428
			}
429
			game:GetService("Debris"):AddItem(bodyVelocity, 1)
430
		elseif Type == "Snare" then
431
			local bp = Create("BodyPosition"){
432
				P = 2000,
433
				D = 100,
434
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
435
				position = hit.Parent.Torso.Position,
436
				Parent = hit.Parent.Torso,
437
			}
438
			game:GetService("Debris"):AddItem(bp, 1)
439
		elseif Type == "Freeze" then
440
			local BodPos = Create("BodyPosition"){
441
				P = 50000,
442
				D = 1000,
443
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
444
				position = hit.Parent.Torso.Position,
445
				Parent = hit.Parent.Torso,
446
			}
447
			local BodGy = Create("BodyGyro") {
448
				maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
449
				P = 20e+003,
450
				Parent = hit.Parent.Torso,
451
				cframe = hit.Parent.Torso.CFrame,
452
			}
453
			hit.Parent.Torso.Anchored = true
454
			coroutine.resume(coroutine.create(function(Part) 
455
				swait(1.5)
456
				Part.Anchored = false
457
			end), hit.Parent.Torso)
458
			game:GetService("Debris"):AddItem(BodPos, 3)
459
			game:GetService("Debris"):AddItem(BodGy, 3)
460
		end
461
		local debounce = Create("BoolValue"){
462
			Name = "DebounceHit",
463
			Parent = hit.Parent,
464
			Value = true,
465
		}
466
		game:GetService("Debris"):AddItem(debounce, Delay)
467
		c = Create("ObjectValue"){
468
			Name = "creator",
469
			Value = Player,
470
			Parent = h,
471
		}
472
		game:GetService("Debris"):AddItem(c, .5)
473
	end
474
end
475
-------------------------------------------------------
476
--End Damage Function--
477
-------------------------------------------------------
478
479
-------------------------------------------------------
480
--Start Damage Function Customization--
481
-------------------------------------------------------
482
function ShowDamage(Pos, Text, Time, Color)
483
	local Rate = (1 / 30)
484
	local Pos = (Pos or Vector3.new(0, 0, 0))
485
	local Text = (Text or "")
486
	local Time = (Time or 2)
487
	local Color = (Color or Color3.new(1, 0, 1))
488
	local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
489
	EffectPart.Anchored = true
490
	local BillboardGui = Create("BillboardGui"){
491
		Size = UDim2.new(3, 0, 3, 0),
492
		Adornee = EffectPart,
493
		Parent = EffectPart,
494
	}
495
	local TextLabel = Create("TextLabel"){
496
		BackgroundTransparency = 1,
497
		Size = UDim2.new(1, 0, 1, 0),
498
		Text = Text,
499
		Font = "Bodoni",
500
		TextColor3 = Color,
501
		TextScaled = true,
502
		TextStrokeColor3 = Color3.fromRGB(0,0,0),
503
		Parent = BillboardGui,
504
	}
505
	game.Debris:AddItem(EffectPart, (Time))
506
	EffectPart.Parent = game:GetService("Workspace")
507
	delay(0, function()
508
		local Frames = (Time / Rate)
509
		for Frame = 1, Frames do
510
			wait(Rate)
511
			local Percent = (Frame / Frames)
512
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
513
			TextLabel.TextTransparency = Percent
514
		end
515
		if EffectPart and EffectPart.Parent then
516
			EffectPart:Destroy()
517
		end
518
	end)
519
end
520
-------------------------------------------------------
521
--End Damage Function Customization--
522
-------------------------------------------------------
523
524
function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
525
  for _, c in pairs(workspace:children()) do
526
    local hum = c:findFirstChild("Humanoid")
527
    if hum ~= nil then
528
      local head = c:findFirstChild("Head")
529
      if head ~= nil then
530
        local targ = head.Position - Part.Position
531
        local mag = targ.magnitude
532
        if magni >= mag and c.Name ~= plr.Name then
533
          Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
534
        end
535
      end
536
    end
537
  end
538
end
539
540
541
CFuncs = {
542
	Part = {
543
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
544
			local Part = Create("Part")({
545
				Parent = Parent,
546
				Reflectance = Reflectance,
547
				Transparency = Transparency,
548
				CanCollide = false,
549
				Locked = true,
550
				BrickColor = BrickColor.new(tostring(BColor)),
551
				Name = Name,
552
				Size = Size,
553
				Material = Material
554
			})
555
			RemoveOutlines(Part)
556
			return Part
557
		end
558
	},
559
	Mesh = {
560
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
561
			local Msh = Create(Mesh)({
562
				Parent = Part,
563
				Offset = OffSet,
564
				Scale = Scale
565
			})
566
			if Mesh == "SpecialMesh" then
567
				Msh.MeshType = MeshType
568
				Msh.MeshId = MeshId
569
			end
570
			return Msh
571
		end
572
	},
573
	Mesh = {
574
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
575
			local Msh = Create(Mesh)({
576
				Parent = Part,
577
				Offset = OffSet,
578
				Scale = Scale
579
			})
580
			if Mesh == "SpecialMesh" then
581
				Msh.MeshType = MeshType
582
				Msh.MeshId = MeshId
583
			end
584
			return Msh
585
		end
586
	},
587
	Weld = {
588
		Create = function(Parent, Part0, Part1, C0, C1)
589
			local Weld = Create("Weld")({
590
				Parent = Parent,
591
				Part0 = Part0,
592
				Part1 = Part1,
593
				C0 = C0,
594
				C1 = C1
595
			})
596
			return Weld
597
		end
598
	},
599
	Sound = {
600
		Create = function(id, par, vol, pit)
601
			coroutine.resume(coroutine.create(function()
602
				local S = Create("Sound")({
603
					Volume = vol,
604
					Pitch = pit or 1,
605
					SoundId = id,
606
					Parent = par or workspace
607
				})
608
				wait()
609
				S:play()
610
				game:GetService("Debris"):AddItem(S, 6)
611
			end))
612
		end
613
	},
614
	ParticleEmitter = {
615
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
616
			local fp = Create("ParticleEmitter")({
617
				Parent = Parent,
618
				Color = ColorSequence.new(Color1, Color2),
619
				LightEmission = LightEmission,
620
				Size = Size,
621
				Texture = Texture,
622
				Transparency = Transparency,
623
				ZOffset = ZOffset,
624
				Acceleration = Accel,
625
				Drag = Drag,
626
				LockedToPart = LockedToPart,
627
				VelocityInheritance = VelocityInheritance,
628
				EmissionDirection = EmissionDirection,
629
				Enabled = Enabled,
630
				Lifetime = LifeTime,
631
				Rate = Rate,
632
				Rotation = Rotation,
633
				RotSpeed = RotSpeed,
634
				Speed = Speed,
635
				VelocitySpread = VelocitySpread
636
			})
637
			return fp
638
		end
639
	}
640
}
641
function RemoveOutlines(part)
642
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
643
end
644
function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
645
	local Part = Create("Part")({
646
		formFactor = FormFactor,
647
		Parent = Parent,
648
		Reflectance = Reflectance,
649
		Transparency = Transparency,
650
		CanCollide = false,
651
		Locked = true,
652
		BrickColor = BrickColor.new(tostring(BColor)),
653
		Name = Name,
654
		Size = Size,
655
		Material = Material
656
	})
657
	RemoveOutlines(Part)
658
	return Part
659
end
660
function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
661
	local Msh = Create(Mesh)({
662
		Parent = Part,
663
		Offset = OffSet,
664
		Scale = Scale
665
	})
666
	if Mesh == "SpecialMesh" then
667
		Msh.MeshType = MeshType
668
		Msh.MeshId = MeshId
669
	end
670
	return Msh
671
end
672
function CreateWeld(Parent, Part0, Part1, C0, C1)
673
	local Weld = Create("Weld")({
674
		Parent = Parent,
675
		Part0 = Part0,
676
		Part1 = Part1,
677
		C0 = C0,
678
		C1 = C1
679
	})
680
	return Weld
681
end
682
683
684
-------------------------------------------------------
685
--Start Effect Function--
686
-------------------------------------------------------
687
EffectModel = Instance.new("Model", char)
688
Effects = {
689
  Block = {
690
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
691
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
692
      prt.Anchored = true
693
      prt.CFrame = cframe
694
      local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
695
      game:GetService("Debris"):AddItem(prt, 10)
696
      if Type == 1 or Type == nil then
697
        table.insert(Effects, {
698
          prt,
699
          "Block1",
700
          delay,
701
          x3,
702
          y3,
703
          z3,
704
          msh
705
        })
706
      elseif Type == 2 then
707
        table.insert(Effects, {
708
          prt,
709
          "Block2",
710
          delay,
711
          x3,
712
          y3,
713
          z3,
714
          msh
715
        })
716
      else
717
        table.insert(Effects, {
718
          prt,
719
          "Block3",
720
          delay,
721
          x3,
722
          y3,
723
          z3,
724
          msh
725
        })
726
      end
727
    end
728
  },
729
  Sphere = {
730
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
731
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
732
      prt.Anchored = true
733
      prt.CFrame = cframe
734
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
735
      game:GetService("Debris"):AddItem(prt, 10)
736
      table.insert(Effects, {
737
        prt,
738
        "Cylinder",
739
        delay,
740
        x3,
741
        y3,
742
        z3,
743
        msh
744
      })
745
    end
746
  },
747
  Cylinder = {
748
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
749
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
750
      prt.Anchored = true
751
      prt.CFrame = cframe
752
      local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
753
      game:GetService("Debris"):AddItem(prt, 10)
754
      table.insert(Effects, {
755
        prt,
756
        "Cylinder",
757
        delay,
758
        x3,
759
        y3,
760
        z3,
761
        msh
762
      })
763
    end
764
  },
765
  Wave = {
766
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
767
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
768
      prt.Anchored = true
769
      prt.CFrame = cframe
770
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
771
      game:GetService("Debris"):AddItem(prt, 10)
772
      table.insert(Effects, {
773
        prt,
774
        "Cylinder",
775
        delay,
776
        x3 / 60,
777
        y3 / 60,
778
        z3 / 60,
779
        msh
780
      })
781
    end
782
  },
783
  Ring = {
784
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
785
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
786
      prt.Anchored = true
787
      prt.CFrame = cframe
788
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
789
      game:GetService("Debris"):AddItem(prt, 10)
790
      table.insert(Effects, {
791
        prt,
792
        "Cylinder",
793
        delay,
794
        x3,
795
        y3,
796
        z3,
797
        msh
798
      })
799
    end
800
  },
801
  Break = {
802
    Create = function(brickcolor, cframe, x1, y1, z1)
803
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
804
      prt.Anchored = true
805
      prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
806
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
807
      local num = math.random(10, 50) / 1000
808
      game:GetService("Debris"):AddItem(prt, 10)
809
      table.insert(Effects, {
810
        prt,
811
        "Shatter",
812
        num,
813
        prt.CFrame,
814
        math.random() - math.random(),
815
        0,
816
        math.random(50, 100) / 100
817
      })
818
    end
819
  },
820
Spiral = {
821
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
822
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
823
      prt.Anchored = true
824
      prt.CFrame = cframe
825
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
826
      game:GetService("Debris"):AddItem(prt, 10)
827
      table.insert(Effects, {
828
        prt,
829
        "Cylinder",
830
        delay,
831
        x3,
832
        y3,
833
        z3,
834
        msh
835
      })
836
    end
837
  },
838
Push = {
839
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
840
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
841
      prt.Anchored = true
842
      prt.CFrame = cframe
843
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
844
      game:GetService("Debris"):AddItem(prt, 10)
845
      table.insert(Effects, {
846
        prt,
847
        "Cylinder",
848
        delay,
849
        x3,
850
        y3,
851
        z3,
852
        msh
853
      })
854
    end
855
  }
856
}
857
function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
858
	local fp = IT("Part")
859
	fp.formFactor = formfactor 
860
	fp.Parent = parent
861
	fp.Reflectance = reflectance
862
	fp.Transparency = transparency
863
	fp.CanCollide = false 
864
	fp.Locked = true
865
	fp.BrickColor = brickcolor
866
	fp.Name = name
867
	fp.Size = size
868
	fp.Position = tors.Position 
869
	RemoveOutlines(fp)
870
	fp.Material = "SmoothPlastic"
871
	fp:BreakJoints()
872
	return fp 
873
end 
874
 
875
function mesh(Mesh,part,meshtype,meshid,offset,scale)
876
	local mesh = IT(Mesh) 
877
	mesh.Parent = part
878
	if Mesh == "SpecialMesh" then
879
		mesh.MeshType = meshtype
880
	if meshid ~= "nil" then
881
		mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
882
		end
883
	end
884
	mesh.Offset = offset
885
	mesh.Scale = scale
886
	return mesh
887
end
888
889
function Magic(bonuspeed, type, pos, scale, value, color, MType)
890
	local type = type
891
	local rng = Instance.new("Part", char)
892
	rng.Anchored = true
893
	rng.BrickColor = color
894
	rng.CanCollide = false
895
	rng.FormFactor = 3
896
	rng.Name = "Ring"
897
	rng.Material = "Neon"
898
	rng.Size = Vector3.new(1, 1, 1)
899
	rng.Transparency = 0
900
	rng.TopSurface = 0
901
	rng.BottomSurface = 0
902
	rng.CFrame = pos
903
	local rngm = Instance.new("SpecialMesh", rng)
904
	rngm.MeshType = MType
905
	rngm.Scale = scale
906
	local scaler2 = 1
907
	if type == "Add" then
908
		scaler2 = 1 * value
909
	elseif type == "Divide" then
910
		scaler2 = 1 / value
911
	end
912
	coroutine.resume(coroutine.create(function()
913
		for i = 0, 10 / bonuspeed, 0.1 do
914
			swait()
915
			if type == "Add" then
916
				scaler2 = scaler2 - 0.01 * value / bonuspeed
917
			elseif type == "Divide" then
918
				scaler2 = scaler2 - 0.01 / value * bonuspeed
919
			end
920
			rng.Transparency = rng.Transparency + 0.01 * bonuspeed
921
			rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
922
		end
923
		rng:Destroy()
924
	end))
925
end
926
927
function Eviscerate(dude)
928
	if dude.Name ~= char then
929
		local bgf = IT("BodyGyro", dude.Head)
930
		bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
931
		local val = IT("BoolValue", dude)
932
		val.Name = "IsHit"
933
		local ds = coroutine.wrap(function()
934
			dude:WaitForChild("Head"):BreakJoints()
935
			wait(0.5)
936
			target = nil
937
			coroutine.resume(coroutine.create(function()
938
				for i, v in pairs(dude:GetChildren()) do
939
					if v:IsA("Accessory") then
940
						v:Destroy()
941
					end
942
					if v:IsA("Humanoid") then
943
						v:Destroy()
944
					end
945
					if v:IsA("CharacterMesh") then
946
						v:Destroy()
947
					end
948
					if v:IsA("Model") then
949
						v:Destroy()
950
					end
951
					if v:IsA("Part") or v:IsA("MeshPart") then
952
						for x, o in pairs(v:GetChildren()) do
953
							if o:IsA("Decal") then
954
								o:Destroy()
955
							end
956
						end
957
						coroutine.resume(coroutine.create(function()
958
							v.Material = "Neon"
959
							v.CanCollide = false
960
							local PartEmmit1 = IT("ParticleEmitter", v)
961
							PartEmmit1.LightEmission = 1
962
							PartEmmit1.Texture = "rbxassetid://284205403"
963
							PartEmmit1.Color = ColorSequence.new(maincolor.Color)
964
							PartEmmit1.Rate = 150
965
							PartEmmit1.Lifetime = NumberRange.new(1)
966
							PartEmmit1.Size = NumberSequence.new({
967
								NumberSequenceKeypoint.new(0, 0.75, 0),
968
								NumberSequenceKeypoint.new(1, 0, 0)
969
							})
970
							PartEmmit1.Transparency = NumberSequence.new({
971
								NumberSequenceKeypoint.new(0, 0, 0),
972
								NumberSequenceKeypoint.new(1, 1, 0)
973
							})
974
							PartEmmit1.Speed = NumberRange.new(0, 0)
975
							PartEmmit1.VelocitySpread = 30000
976
							PartEmmit1.Rotation = NumberRange.new(-500, 500)
977
							PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
978
							local BodPoss = IT("BodyPosition", v)
979
							BodPoss.P = 3000
980
							BodPoss.D = 1000
981
							BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
982
							BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
983
							v.Color = maincolor.Color
984
							coroutine.resume(coroutine.create(function()
985
								for i = 0, 49 do
986
									swait(1)
987
									v.Transparency = v.Transparency + 0.08
988
								end
989
								wait(0.5)
990
								PartEmmit1.Enabled = false
991
								wait(3)
992
								v:Destroy()
993
								dude:Destroy()
994
							end))
995
						end))
996
					end
997
				end
998
			end))
999
		end)
1000
		ds()
1001
	end
1002
end
1003
1004
function FindNearestHead(Position, Distance, SinglePlayer)
1005
	if SinglePlayer then
1006
		return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
1007
	end
1008
	local List = {}
1009
	for i, v in pairs(workspace:GetChildren()) do
1010
		if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
1011
			table.insert(List, v)
1012
		end
1013
	end
1014
	return List
1015
end
1016
1017
function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
1018
	local type = type
1019
	local rng = Instance.new("Part", char)
1020
	rng.Anchored = true
1021
	rng.BrickColor = color
1022
	rng.CanCollide = false
1023
	rng.FormFactor = 3
1024
	rng.Name = "Ring"
1025
	rng.Material = "Neon"
1026
	rng.Size = Vector3.new(1, 1, 1)
1027
	rng.Transparency = 0
1028
	rng.TopSurface = 0
1029
	rng.BottomSurface = 0
1030
	rng.CFrame = pos
1031
	rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
1032
	local rngm = Instance.new("SpecialMesh", rng)
1033
	rngm.MeshType = MType
1034
	rngm.Scale = Vector3.new(x1, y1, z1)
1035
	local scaler2 = 1
1036
	local speeder = FastSpeed
1037
	if type == "Add" then
1038
		scaler2 = 1 * value
1039
	elseif type == "Divide" then
1040
		scaler2 = 1 / value
1041
	end
1042
	coroutine.resume(coroutine.create(function()
1043
		for i = 0, 10 / bonuspeed, 0.1 do
1044
			swait()
1045
			if type == "Add" then
1046
				scaler2 = scaler2 - 0.01 * value / bonuspeed
1047
			elseif type == "Divide" then
1048
				scaler2 = scaler2 - 0.01 / value * bonuspeed
1049
			end
1050
			speeder = speeder - 0.01 * FastSpeed * bonuspeed
1051
			rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
1052
			rng.Transparency = rng.Transparency + 0.01 * bonuspeed
1053
			rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
1054
		end
1055
		rng:Destroy()
1056
	end))
1057
end
1058
1059
function SoulSteal(dude)
1060
if dude.Name ~= char then
1061
local bgf = IT("BodyGyro", dude.Head)
1062
bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
1063
local val = IT("BoolValue", dude)
1064
val.Name = "IsHit"
1065
local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
1066
local soulst = coroutine.wrap(function()
1067
local soul = Instance.new("Part",dude)
1068
soul.Size = Vector3.new(1,1,1)
1069
soul.CanCollide = false
1070
soul.Anchored = false
1071
soul.Position = torso.Position
1072
soul.Transparency = 1
1073
local PartEmmit1 = IT("ParticleEmitter", soul)
1074
PartEmmit1.LightEmission = 1
1075
PartEmmit1.Texture = "rbxassetid://569507414"
1076
PartEmmit1.Color = ColorSequence.new(maincolor.Color)
1077
PartEmmit1.Rate = 250
1078
PartEmmit1.Lifetime = NumberRange.new(1.6)
1079
PartEmmit1.Size = NumberSequence.new({
1080
	NumberSequenceKeypoint.new(0, 1, 0),
1081
	NumberSequenceKeypoint.new(1, 0, 0)
1082
})
1083
PartEmmit1.Transparency = NumberSequence.new({
1084
	NumberSequenceKeypoint.new(0, 0, 0),
1085
	NumberSequenceKeypoint.new(1, 1, 0)
1086
})
1087
PartEmmit1.Speed = NumberRange.new(0, 0)
1088
PartEmmit1.VelocitySpread = 30000
1089
PartEmmit1.Rotation = NumberRange.new(-360, 360)
1090
PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
1091
local BodPoss = IT("BodyPosition", soul)
1092
BodPoss.P = 3000
1093
BodPoss.D = 1000
1094
BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
1095
BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
1096
wait(1.6)
1097
soul.Touched:connect(function(hit)
1098
	if hit.Parent == char then
1099
	soul:Destroy()
1100
	end
1101
end)
1102
wait(1.2)
1103
while soul do
1104
	swait()
1105
	PartEmmit1.Color = ColorSequence.new(maincolor.Color)
1106
	BodPoss.Position = tors.Position
1107
end
1108
end)
1109
	soulst()
1110
	end
1111
end
1112
function FaceMouse()
1113
local	Cam = workspace.CurrentCamera
1114
	return {
1115
		CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
1116
		Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
1117
	}
1118
end
1119
-------------------------------------------------------
1120
--End Effect Function--
1121
-------------------------------------------------------
1122
function Cso(ID, PARENT, VOLUME, PITCH)
1123
	local NSound = nil
1124
	coroutine.resume(coroutine.create(function()
1125
		NSound = IT("Sound", PARENT)
1126
		NSound.Volume = VOLUME
1127
		NSound.Pitch = PITCH
1128
		NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
1129
		swait()
1130
		NSound:play()
1131
		game:GetService("Debris"):AddItem(NSound, 10)
1132
	end))
1133
	return NSound
1134
end
1135
function CameraEnshaking(Length, Intensity)
1136
	coroutine.resume(coroutine.create(function()
1137
		local intensity = 1 * Intensity
1138
		local rotM = 0.01 * Intensity
1139
		for i = 0, Length, 0.1 do
1140
			swait()
1141
			intensity = intensity - 0.05 * Intensity / Length
1142
			rotM = rotM - 5.0E-4 * Intensity / Length
1143
			hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
1144
			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)
1145
		end
1146
		hum.CameraOffset = Vector3.new(0, 0, 0)
1147
	end))
1148
end
1149
-------------------------------------------------------
1150
--End Important Functions--
1151
-------------------------------------------------------
1152
1153
1154
-------------------------------------------------------
1155
--Start Customization--
1156
-------------------------------------------------------
1157
local Player_Size = 1
1158
if Player_Size ~= 1 then
1159
root.Size = root.Size * Player_Size
1160
tors.Size = tors.Size * Player_Size
1161
hed.Size = hed.Size * Player_Size
1162
ra.Size = ra.Size * Player_Size
1163
la.Size = la.Size * Player_Size
1164
rl.Size = rl.Size * Player_Size
1165
ll.Size = ll.Size * Player_Size
1166
----------------------------------------------------------------------------------
1167
rootj.Parent = root
1168
neck.Parent = tors
1169
RW.Parent = tors
1170
LW.Parent = tors
1171
RH.Parent = tors
1172
LH.Parent = tors
1173
----------------------------------------------------------------------------------
1174
rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
1175
rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
1176
neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
1177
neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
1178
RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
1179
LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
1180
----------------------------------------------------------------------------------
1181
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))
1182
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))
1183
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))
1184
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))
1185
--hat.Parent = Character
1186
end
1187
----------------------------------------------------------------------------------
1188
local SONG = 0
1189
local SONG2 = 0
1190
local Music = Instance.new("Sound",tors)
1191
Music.Volume = 2.5
1192
Music.Looped = true
1193
Music.Pitch = 1 --Pitcher
1194
local HighNoon = Instance.new("Sound",char)
1195
HighNoon.Volume = 10
1196
HighNoon.SoundId = "rbxassetid://814875394"
1197
HighNoon.Looped = false
1198
HighNoon.Pitch = 1 --Pitcher
1199
----------------------------------------------------------------------------------
1200
local equipped = false
1201
local idle = 0
1202
local change = 1
1203
local val = 0
1204
local toim = 0
1205
local idleanim = 0.4
1206
local sine = 0
1207
----------------------------------------------------------------------------------
1208
hum.WalkSpeed = 8
1209
hum.JumpPower = 57
1210
hum.Animator.Parent = nil
1211
local Hair = Instance.new("Part", char)
1212
Hair.Name = "Hair"
1213
Hair.CanCollide = false
1214
Hair.BrickColor = BrickColor.new("Institutional white")
1215
Hair.Transparency = 0
1216
Hair.Material = "Plastic"
1217
Hair.Size = Vector3.new(1, 1, 2)
1218
Hair.TopSurface = Enum.SurfaceType.Smooth
1219
Hair.BottomSurface = Enum.SurfaceType.Smooth
1220
1221
local Weld = Instance.new("Weld", Hair)
1222
Weld.Part0 = hed
1223
Weld.Part1 = Hair
1224
Weld.C1 = CFrame.new(0, -.6, 0)
1225
Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0)
1226
1227
local M2 = Instance.new("SpecialMesh")
1228
M2.Parent = Hair
1229
M2.MeshId = "http://www.roblox.com/asset/?id=1031410"
1230
M2.TextureId = "http://www.roblox.com/asset/?id=42211425"
1231
M2.Scale = Vector3.new(1, 1, 1)
1232
1233
local Hat = char:FindFirstChild("Hat_F") or Instance.new("Hat")
1234
Hat.AttachmentPos = Vector3.new(0, 0.33, 0)
1235
Hat.Name = "Hat_F"
1236
local Hair2 = Instance.new("Part", char)
1237
Hair2.Name = "Hair2"
1238
Hair2.CanCollide = false
1239
Hair2.BrickColor = BrickColor.new("Institutional white")
1240
Hair.Transparency = 0
1241
Hair2.Material = "Plastic"
1242
Hair2.Size = Vector3.new(1, 1, 2)
1243
Hair2.TopSurface = Enum.SurfaceType.Smooth
1244
Hair2.BottomSurface = Enum.SurfaceType.Smooth
1245
1246
local Weld = Instance.new("Weld", Hair)
1247
Weld.Part0 = hed
1248
Weld.Part1 = Hair
1249
Weld.C1 = CFrame.new(0, -.6, 0)
1250
Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0)
1251
1252
local M2 = Instance.new("SpecialMesh")
1253
M2.Parent = Hair2
1254
M2.MeshId = "http://www.roblox.com/asset/?id=16627529"
1255
M2.TextureId = "http://www.roblox.com/asset/?id=220635562"
1256
M2.Scale = Vector3.new(1, 1, 1)
1257
1258
local Hat = char:FindFirstChild("Hat_F") or Instance.new("Hat")
1259
Hat.AttachmentPos = Vector3.new(0, 0.33, 0)
1260
Hat.Name = "Hat_F2"
1261
local Handle = Hat:FindFirstChild("Handle") or Instance.new("Part", Hat)
1262
if Handle.Name ~= "Handle" then
1263
  Handle.Size = Vector3.new(1, 1, 1)
1264
end
1265
Handle.BottomSurface = 0
1266
Handle.Name = "Handle"
1267
Handle.TopSurface = 0
1268
Handle.Locked = 1
1269
handle = Instance.new("Part", char)
1270
handle.TopSurface = "Smooth"
1271
handle.BottomSurface = "Smooth"
1272
handle.Material = "Neon"
1273
handle.Size = Vector3.new(0.4, 1.2, 2)
1274
handle.CanCollide = false
1275
handle.FormFactor = "Custom"
1276
local Weldb = Instance.new("Weld", char)
1277
Weldb.Part0 = ra
1278
Weldb.Part1 = handle
1279
Weldb.C1 = CFrame.new(0, -.4, -1.6) *angles(Rad(90), Rad(0), Rad(180))
1280
local KnifeMesh = Instance.new("SpecialMesh", handle)
1281
KnifeMesh.MeshType = "FileMesh"
1282
KnifeMesh.MeshId = "http://www.roblox.com/asset/?id=130099641"
1283
KnifeMesh.TextureId = "http://www.roblox.com/asset/?id=209727730"
1284
KnifeMesh.Scale = Vector3.new(.002, .002, .002)
1285
-------------------------------------------------------
1286
--End Customization--
1287
-------------------------------------------------------
1288
1289
1290
-------------------------------------------------------
1291
--Start Attacks N Stuff--
1292
-------------------------------------------------------
1293
function High_Noon()
1294
	print("Oh no.....")
1295
	attack = true
1296
	HighNoon:Play()
1297
	--Cso("814875394", char, 10, 1)
1298
	local orb = Instance.new("Part", char)
1299
	orb.Anchored = true
1300
	orb.BrickColor = BrickC("Really red")
1301
	orb.CanCollide = false
1302
	orb.FormFactor = 3
1303
	orb.Name = "Ring"
1304
	orb.Material = "Neon"
1305
	orb.Size = Vector3.new(1, 1, 1)
1306
	orb.Transparency = 0
1307
	orb.TopSurface = 0
1308
	orb.BottomSurface = 0
1309
	local orbm = Instance.new("SpecialMesh", orb)
1310
	orbm.MeshType = "Sphere"
1311
	orbm.Name = "SizeMesh"
1312
	orbm.Scale = Vector3.new(0, 0, 0)
1313
	local scaled = 0.1
1314
	local posid = 0
1315
	for i = 0, 109, 0.1 do
1316
		swait()
1317
		scaled = scaled + 0.001
1318
		--posid = posid - scaled
1319
		orb.CFrame = ra.CFrame * CF(0, -0.1 + posid / 1.05, 0)
1320
		orbm.Scale = orbm.Scale + Vector3.new(scaled, scaled, scaled)
1321
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.2)
1322
		tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(30), Rad(0), Rad(0)), 0.2)
1323
		RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2)
1324
		LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2)
1325
		RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(90)), 0.2)
1326
		LW.C0 = clerp(LW.C0, CF(-1.2* Player_Size, 0.8 + 0.02 * Sin(sine / 20* Player_Size), -.6* Player_Size) * angles(Rad(-45), Rad(-.6), Rad(136 - 4.5 * Sin(sine / 20))), 0.2)
1327
	end
1328
	coroutine.resume(coroutine.create(function()
1329
		orb.Anchored = false
1330
		--CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1)
1331
		local a = Instance.new("Part", workspace)
1332
		a.Name = "Direction"
1333
		a.Anchored = true
1334
		a.BrickColor = BrickC("Bright red")
1335
		a.Material = "Neon"
1336
		a.Transparency = 1
1337
		a.CanCollide = false
1338
		local ray = Ray.new(orb.CFrame.p, (root.CFrame.lookVector - orb.CFrame.p).unit * 500)
1339
		local ignore = orb
1340
		local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
1341
		a.BottomSurface = 10
1342
		a.TopSurface = 10
1343
		local distance = (orb.CFrame.p - position).magnitude
1344
		a.Size = Vector3.new(0.1, 0.1, 0.1)
1345
		a.CFrame = CF(orb.CFrame.p, position) * CF(0, 0, 0)
1346
		orb.CFrame = a.CFrame
1347
		a:Destroy()
1348
		local bv = Instance.new("BodyVelocity")
1349
		bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
1350
		bv.velocity = orb.CFrame.lookVector * 125
1351
		bv.Parent = orb
1352
		local hitted = false
1353
		game:GetService("Debris"):AddItem(orb, 15)
1354
		wait()
1355
		local hit = orb.Touched:connect(function(hit)
1356
			if hitted == false then
1357
				hitted = true
1358
				coroutine.resume(coroutine.create(function() 
1359
		for i = 0,1.8,0.1 do
1360
			swait()
1361
			hum.CameraOffset = Vector3.new(Mrandom(-1,1),0,Mrandom(-1,1))
1362
		end
1363
		for i = 0,1.8,0.1 do
1364
			swait()
1365
		hum.CameraOffset = Vector3.new(0,0,0)
1366
		end
1367
	end))
1368
				CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1)
1369
				for i, v in pairs(FindNearestHead(orb.CFrame.p, 50000)) do
1370
		if v:FindFirstChild("Head") then
1371
			Eviscerate(v)
1372
		end
1373
	end
1374
				Magic(1, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickC("Really red"), "Sphere")
1375
				Magic(2, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickC("Really red"), "Sphere")
1376
				for i = 0, 9 do
1377
					--Aura(1, 2.5, "Add", orb.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Royal purple"), 0, "Sphere")
1378
					--Aura(2, 5, "Add", orb.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Royal purple"), 0, "Sphere")
1379
				end
1380
				orb.Anchored = true
1381
				orb.Transparency = 1
1382
				wait(8)
1383
				orb:Destroy()
1384
			end
1385
		end)
1386
	end))
1387
	for i = 0, 6, 0.1 do
1388
		swait()
1389
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.2)
1390
		tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(30), Rad(0), Rad(0)), 0.2)
1391
		RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2)
1392
		LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2)
1393
		RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(124)), 0.2)
1394
		LW.C0 = clerp(LW.C0, CF(-1.2* Player_Size, 0.8 + 0.02 * Sin(sine / 20* Player_Size), -.6* Player_Size) * angles(Rad(-45), Rad(-.6), Rad(136 - 4.5 * Sin(sine / 20))), 0.2)
1395
	end
1396
	attack = false
1397
end
1398
function Up_High_Noon()
1399
	print("Oh no.....")
1400
	attack = true
1401
	HighNoon:Play()
1402
	--Cso("814875394", char, 10, 1)
1403
	local orb = Instance.new("Part", char)
1404
	orb.Anchored = true
1405
	orb.BrickColor = BrickC("Really red")
1406
	orb.CanCollide = false
1407
	orb.FormFactor = 3
1408
	orb.Name = "Ring"
1409
	orb.Material = "Neon"
1410
	orb.Size = Vector3.new(1, 1, 1)
1411
	orb.Transparency = 0
1412
	orb.TopSurface = 0
1413
	orb.BottomSurface = 0
1414
	local orbm = Instance.new("SpecialMesh", orb)
1415
	orbm.MeshType = "Sphere"
1416
	orbm.Name = "SizeMesh"
1417
	orbm.Scale = Vector3.new(0, 0, 0)
1418
	local scaled = 0.1
1419
	local posid = 0
1420
	for i = 0, 109, 0.1 do
1421
		swait()
1422
		scaled = scaled + 0.001
1423
		posid = posid - scaled
1424
		orb.CFrame = ra.CFrame * CF(0, -0.1 + posid / 1.05, 0)
1425
		orbm.Scale = orbm.Scale + Vector3.new(scaled, scaled, scaled)
1426
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.2)
1427
		tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(30), Rad(0), Rad(0)), 0.2)
1428
		RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2)
1429
		LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2)
1430
		RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(180)), 0.2)
1431
		LW.C0 = clerp(LW.C0, CF(-1.2* Player_Size, 0.8 + 0.02 * Sin(sine / 20* Player_Size), -.6* Player_Size) * angles(Rad(-45), Rad(-.6), Rad(136 - 4.5 * Sin(sine / 20))), 0.2)
1432
	end
1433
	coroutine.resume(coroutine.create(function()
1434
		orb.Anchored = false
1435
		--CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1)
1436
		local a = Instance.new("Part", workspace)
1437
		a.Name = "Direction"
1438
		a.Anchored = true
1439
		a.BrickColor = BrickC("Bright red")
1440
		a.Material = "Neon"
1441
		a.Transparency = 1
1442
		a.CanCollide = false
1443
		local ray = Ray.new(orb.CFrame.p, (root.CFrame.lookVector - orb.CFrame.p).unit * 500)
1444
		local ignore = orb
1445
		local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
1446
		a.BottomSurface = 10
1447
		a.TopSurface = 10
1448
		local distance = (orb.CFrame.p - position).magnitude
1449
		a.Size = Vector3.new(0.1, 0.1, 0.1)
1450
		a.CFrame = CF(orb.CFrame.p, position) * CF(0, 0, 0)
1451
		orb.CFrame = a.CFrame
1452
		a:Destroy()
1453
		local bv = Instance.new("BodyVelocity")
1454
		bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
1455
		bv.velocity = orb.CFrame.lookVector * 125
1456
		bv.Parent = orb
1457
		local hitted = false
1458
		game:GetService("Debris"):AddItem(orb, 15)
1459
		wait()
1460
		local hit = orb.Touched:connect(function(hit)
1461
			if hitted == false then
1462
				hitted = true
1463
				coroutine.resume(coroutine.create(function() 
1464
		for i = 0,1.8,0.1 do
1465
			swait()
1466
			hum.CameraOffset = Vector3.new(Mrandom(-1,1),0,Mrandom(-1,1))
1467
		end
1468
		for i = 0,1.8,0.1 do
1469
			swait()
1470
		hum.CameraOffset = Vector3.new(0,0,0)
1471
		end
1472
	end))
1473
				CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1)
1474
					for i, v in pairs(FindNearestHead(orb.CFrame.p, 50000)) do
1475
		if v:FindFirstChild("Head") then
1476
			Eviscerate(v)
1477
		end
1478
	end
1479
				Magic(1, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickC("Really red"), "Sphere")
1480
				Magic(2, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickC("Really red"), "Sphere")
1481
				for i = 0, 9 do
1482
					--Aura(1, 2.5, "Add", orb.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Royal purple"), 0, "Sphere")
1483
					--Aura(2, 5, "Add", orb.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Royal purple"), 0, "Sphere")
1484
				end
1485
				orb.Anchored = true
1486
				orb.Transparency = 1
1487
				wait(8)
1488
				orb:Destroy()
1489
			end
1490
		end)
1491
	end))
1492
	for i = 0, 6, 0.1 do
1493
		swait()
1494
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.2)
1495
		tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(30), Rad(0), Rad(0)), 0.2)
1496
		RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2)
1497
		LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2)
1498
		RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(124)), 0.2)
1499
		LW.C0 = clerp(LW.C0, CF(-1.2* Player_Size, 0.8 + 0.02 * Sin(sine / 20* Player_Size), -.6* Player_Size) * angles(Rad(-45), Rad(-.6), Rad(136 - 4.5 * Sin(sine / 20))), 0.2)
1500
	end
1501
	attack = false
1502
end
1503
-------------------------------------------------------
1504
--End Attacks N Stuff--
1505
-------------------------------------------------------
1506
mouse.KeyDown:connect(function(key)
1507
    if string.byte(key) == 48 then
1508
        Swing = 2
1509
        hum.WalkSpeed = 38.82
1510
	end
1511
end)
1512
mouse.KeyUp:connect(function(key)
1513
    if string.byte(key) == 48 then
1514
        Swing = 1
1515
        hum.WalkSpeed = 8
1516
	end
1517
end)
1518
mouse.KeyDown:connect(function(key)
1519
	if attack == false then
1520
		if key == 'z' then
1521
			High_Noon()
1522
		elseif key == 'x' then
1523
			Up_High_Noon()
1524
		end
1525
	end
1526
end)
1527
1528
 
1529
1530
1531
1532
1533
1534
1535
-------------------------------------------------------
1536
--Start Animations--
1537
-------------------------------------------------------
1538
while true do
1539
	swait()
1540
	sine = sine + change
1541
	local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
1542
	local velderp = root.Velocity.y
1543
	hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
1544
	if equipped == true or equipped == false then
1545
		if attack == false then
1546
			idle = idle + 1
1547
		else
1548
			idle = 0
1549
		end
1550
		if 1 < root.Velocity.y and hitfloor == nil then
1551
			Anim = "Jump"
1552
			if attack == false then
1553
				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)
1554
				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)
1555
				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)
1556
				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)
1557
				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)
1558
				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)
1559
			end
1560
		elseif -1 > root.Velocity.y and hitfloor == nil then
1561
			Anim = "Fall"
1562
			if attack == false then
1563
				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)
1564
				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)
1565
				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)
1566
				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)
1567
				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)
1568
				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)
1569
			end
1570
		elseif torvel < 1 and hitfloor ~= nil then
1571
			Anim = "Idle"
1572
			change = .5
1573
			if attack == false then
1574
				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)
1575
				tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
1576
				RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
1577
				LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
1578
				RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(3 + 4.5 * Sin(sine / 20))), 0.1)
1579
				LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20* Player_Size), 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-3 - 4.5 * Sin(sine / 20))), 0.1)
1580
			end
1581
		elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
1582
			Anim = "Walk"
1583
			change = .9
1584
			if attack == false then
1585
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15)
1586
				tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
1587
				RH.C0 = clerp(RH.C0, CF(1, -0.8 - 0.5 * Cos(sine / 7) / 2, 0.6 * Cos(sine / 7) / 2)  * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
1588
         		LH.C0 = clerp(LH.C0, CF(-1, -0.8 + 0.5 * Cos(sine / 7) / 2, -0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
1589
				RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 7), 0) * angles(Rad(37)  * Cos(sine / 7) , Rad(0), Rad(-.6) - ra.RotVelocity.Y / 75), 0.1)
1590
				LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 7), 0) * angles(Rad(-37)  * Cos(sine / 7) , Rad(0) ,	Rad(.6) + la.RotVelocity.Y / 75), 0.1)
1591
			end
1592
		elseif torvel >= 25 and hitfloor ~= nil then
1593
			Anim = "Sprint"
1594
			change = 1.35
1595
			if attack == false then
1596
			rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * 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)
1597
			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)
1598
			RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 - 35 * 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)
1599
         	LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 + 35 * 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)
1600
			RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.34 * Cos(sine / 7)) * angles(Rad(110)  * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
1601
			LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -0.34 * Cos(sine / 7)) * angles(Rad(-110)  * Cos(sine / 7) , Rad(0) ,	Rad(-13) + la.RotVelocity.Y / 75), 0.15)
1602
			end
1603
		end
1604
	end
1605
	Music.SoundId = "rbxassetid://"..SONG
1606
	Music.Looped = true
1607
	Music.Pitch = 1
1608
	Music.Volume = 5
1609
	Music.Parent = tors
1610
	Music:Resume()
1611
	for _, c in pairs(char:GetChildren()) do
1612
		if c.ClassName == "Accessory" then
1613
			c:remove()
1614
		end
1615
	end
1616
	if 0 < #Effects then
1617
		for e = 1, #Effects do
1618
			if Effects[e] ~= nil then
1619
				local Thing = Effects[e]
1620
				if Thing ~= nil then
1621
					local Part = Thing[1]
1622
					local Mode = Thing[2]
1623
					local Delay = Thing[3]
1624
					local IncX = Thing[4]
1625
					local IncY = Thing[5]
1626
					local IncZ = Thing[6]
1627
					if 1 >= Thing[1].Transparency then
1628
						if Thing[2] == "Block1" then
1629
							Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1630
							local Mesh = Thing[1].Mesh
1631
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1632
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1633
						elseif Thing[2] == "Block2" then
1634
							Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
1635
							local Mesh = Thing[7]
1636
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1637
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1638
						elseif Thing[2] == "Block3" then
1639
							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)
1640
							local Mesh = Thing[7]
1641
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1642
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1643
						elseif Thing[2] == "Cylinder" then
1644
							local Mesh = Thing[1].Mesh
1645
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1646
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1647
						elseif Thing[2] == "Blood" then
1648
							local Mesh = Thing[7]
1649
							Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
1650
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1651
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1652
						elseif Thing[2] == "Elec" then
1653
							local Mesh = Thing[1].Mesh
1654
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
1655
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1656
						elseif Thing[2] == "Disappear" then
1657
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1658
						elseif Thing[2] == "Shatter" then
1659
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1660
							Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
1661
							Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
1662
							Thing[6] = Thing[6] + Thing[5]
1663
						end
1664
					else
1665
						Part.Parent = nil
1666
						table.remove(Effects, e)
1667
					end
1668
				end
1669
			end
1670
		end
1671
	end
1672
end
1673
-------------------------------------------------------
1674
--End Animations And Script--
1675
-------------------------------------------------------