View difference between Paste ID: UD4rFVGH and nFLLR3MQ
SHOW: | | - or go back to the newest paste.
1-
local plr = game.Players.LocalPlayer
1+
2-
local character = plr.Character
2+
3-
player = game:GetService("Players").LocalPlayer
3+
-- Created by Nebula_Zorua --
4-
chara = player.Character
4+
-- Bai Bai (Bye bye Remake) --
5-
local humanoid = character.Humanoid
5+
-- Bye-bye baby blue.. --
6-
chara.Humanoid.MaxHealth = math.huge
6+
-- I wish you could see the wicked truth.. --
7-
chara.Humanoid.Health = math.huge
7+
-- Caught up in a rush, it's killing you.. --
8
9-
humanoid.Changed:connect(function()
9+
-- Discord: Nebula the Zorua#6969
10-
if chara.Humanoid.Health > math.huge then
10+
-- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA
11-
chara.Humanoid.Health = math.huge
11+
12-
 end
12+
wait(1/60)
13-
end)
13+
14
--// Shortcut Variables \\--
15
local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
16
local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
17
local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
18
local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
19
local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
20
local R3 = {N=Region3.new}
21
local De = S.Debris
22
local WS = workspace
23
local Lght = S.Lighting
24
local RepS = S.ReplicatedStorage
25
local IN = Instance.new
26
local Plrs = S.Players
27
28
--// Initializing \\--
29
local Plr = Plrs.LocalPlayer
30
local Char = Plr.Character
31
local Hum = Char:FindFirstChildOfClass'Humanoid'
32
local RArm = Char["Right Arm"]
33
local LArm = Char["Left Arm"]
34
local RLeg = Char["Right Leg"]
35
local LLeg = Char["Left Leg"]	
36
local Root = Char:FindFirstChild'HumanoidRootPart'
37
local Torso = Char.Torso
38
local Head = Char.Head
39
local NeutralAnims = true
40
local Attack = false
41
local Debounces = {Debounces={}}
42
local Mouse = Plr:GetMouse()
43
local Hit = {}
44
local Sine = 0
45
local Change = 1
46
local GrabbedHead;
47
48
local Effects = IN("Folder",Char)
49
Effects.Name = "Effects"
50
51
52
--// Debounce System \\--
53
54
55
function Debounces:New(name,cooldown)
56
	local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
57
	setmetatable(aaaaa,{__index = Debounces})
58
	Debounces.Debounces[name] = aaaaa
59
	return aaaaa
60
end
61
62
function Debounces:Use(overrideUsable)
63
	assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
64
	if(self.Usable or overrideUsable)then
65
		self.Usable = false
66
		self.CoolingDown = true
67
		local LastUse = time()
68
		self.LastUse = LastUse
69
		delay(self.Cooldown or 2,function()
70
			if(self.LastUse == LastUse)then
71
				self.CoolingDown = false
72
				self.Usable = true
73
			end
74
		end)
75
	end
76
end
77
78
function Debounces:Get(name)
79
	assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
80
	for i,v in next, Debounces.Debounces do
81
		if(i == name)then
82
			return v;
83
		end
84
	end
85
end
86
87
function Debounces:GetProgressPercentage()
88
	assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
89
	if(self.CoolingDown and not self.Usable)then
90
		return math.max(
91
			math.floor(
92
				(
93
					(time()-self.LastUse)/self.Cooldown or 2
94
				)*100
95
			)
96
		)
97
	else
98
		return 100
99
	end
100
end
101
102
--// Instance Creation Functions \\--
103
104
function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
105
	local Sound = IN("Sound")
106
	Sound.SoundId = "rbxassetid://".. tostring(id or 0)
107
	Sound.Pitch = pitch or 1
108
	Sound.Volume = volume or 1
109
	Sound.Looped = looped or false
110
	if(autoPlay)then
111
		coroutine.wrap(function()
112
			repeat wait() until Sound.IsLoaded
113
			Sound.Playing = autoPlay or false
114
		end)()
115
	end
116
	if(not looped and effect)then
117
		Sound.Stopped:connect(function()
118
			Sound.Volume = 0
119
			Sound:destroy()
120
		end)
121
	elseif(effect)then
122
		warn("Sound can't be looped and a sound effect!")
123
	end
124
	Sound.Parent =parent or Torso
125
	return Sound
126
end
127
function Part(parent,color,material,size,cframe,anchored,cancollide)
128
	local part = IN("Part")
129
	part.Parent = parent or Char
130
	part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
131
	part.Material = material or Enum.Material.SmoothPlastic
132
	part.TopSurface,part.BottomSurface=10,10
133
	part.Size = size or V3.N(1,1,1)
134
	part.CFrame = cframe or CF.N(0,0,0)
135
	part.CanCollide = cancollide or false
136
	part.Anchored = anchored or false
137
	return part
138
end
139
140
function Weld(part0,part1,c0,c1)
141
	local weld = IN("Weld")
142
	weld.Parent = part0
143
	weld.Part0 = part0
144
	weld.Part1 = part1
145
	weld.C0 = c0 or CF.N()
146
	weld.C1 = c1 or CF.N()
147
	return weld
148
end
149
150
function Mesh(parent,meshtype,meshid,textid,scale,offset)
151
	local part = IN("SpecialMesh")
152
	part.MeshId = meshid or ""
153
	part.TextureId = textid or ""
154
	part.Scale = scale or V3.N(1,1,1)
155
	part.Offset = offset or V3.N(0,0,0)
156
	part.MeshType = meshtype or Enum.MeshType.Sphere
157
	part.Parent = parent
158
	return part
159
end
160
161
NewInstance = function(instance,parent,properties)
162
	local inst = Instance.new(instance)
163
	inst.Parent = parent
164
	if(properties)then
165
		for i,v in next, properties do
166
			pcall(function() inst[i] = v end)
167
		end
168
	end
169
	return inst;
170
end
171
172
function Clone(instance,parent,properties)
173
	local inst = instance:Clone()
174
	inst.Parent = parent
175
	if(properties)then
176
		for i,v in next, properties do
177
			pcall(function() inst[i] = v end)
178
		end
179
	end
180
	return inst;
181
end
182
183
function SoundPart(id,pitch,volume,looped,effect,autoPlay,cf)
184
	local soundPart = NewInstance("Part",Effects,{Transparency=1,CFrame=cf or Torso.CFrame,Anchored=true,CanCollide=false,Size=V3.N()})
185
	local Sound = IN("Sound")
186
	Sound.SoundId = "rbxassetid://".. tostring(id or 0)
187
	Sound.Pitch = pitch or 1
188
	Sound.Volume = volume or 1
189
	Sound.Looped = looped or false
190
	if(autoPlay)then
191
		coroutine.wrap(function()
192
			repeat wait() until Sound.IsLoaded
193
			Sound.Playing = autoPlay or false
194
		end)()
195
	end
196
	if(not looped and effect)then
197
		Sound.Stopped:connect(function()
198
			Sound.Volume = 0
199
			soundPart:destroy()
200
		end)
201
	elseif(effect)then
202
		warn("Sound can't be looped and a sound effect!")
203
	end
204
	Sound.Parent = soundPart
205
	return Sound
206
end
207
208
209
--// Extended ROBLOX tables \\--
210
local Instance = setmetatable({AllChildren = function(where,callback,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do callback(v) end end,  ClearChildrenOfClass = function(where,class,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do if(v:IsA(class))then v:destroy();end;end;end},{__index = Instance})
211
--// Require stuff \\--
212
function CamShake(who,times,intense,origin) 
213
	coroutine.wrap(function()
214
		if(script:FindFirstChild'CamShake')then
215
			local cam = script.CamShake:Clone()
216
			cam:WaitForChild'intensity'.Value = intense
217
			cam:WaitForChild'times'.Value = times
218
			
219
	 		if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
220
			cam.Parent = who
221
			wait()
222
			cam.Disabled = false
223
		elseif(who == Plr or who == Char or who:IsDescendantOf(Plr))then
224
			local intensity = intense
225
			local cam = workspace.CurrentCamera
226
			for i = 1, times do
227
				local camDistFromOrigin
228
				if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then
229
					camDistFromOrigin = math.floor( (cam.CFrame.p-origin.Position).magnitude )/25
230
				elseif(typeof(origin) == 'Vector3')then
231
					camDistFromOrigin = math.floor( (cam.CFrame.p-origin).magnitude )/25
232
				end
233
				if(camDistFromOrigin)then
234
					intensity = math.min(intense, math.floor(intense/camDistFromOrigin))
235
				end
236
				cam.CFrame = cam.CFrame:lerp(cam.CFrame*CFrame.new(math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100)*CFrame.Angles(math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100)),.4)
237
				swait()
238
			end
239
		end
240
	end)()
241
end
242
243
244
function CamShakeAll(times,intense,origin)
245
	for _,v in next, Plrs:players() do
246
		CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin)
247
	end
248
end
249
250
function ServerScript(code)
251
	if(script:FindFirstChild'Loadstring')then
252
		local load = script.Loadstring:Clone()
253
		load:WaitForChild'Sauce'.Value = code
254
		load.Disabled = false
255
		load.Parent = workspace
256
	elseif(NS and typeof(NS) == 'function')then
257
		NS(code,workspace)
258
	else
259
		warn("no serverscripts lol")
260
	end	
261
end
262
263
function LocalOnPlayer(who,code)
264
	ServerScript([[
265
		wait()
266
		script.Parent=nil
267
		if(not _G.Http)then _G.Http = game:service'HttpService' end
268
		
269
		local Http = _G.Http or game:service'HttpService'
270
		
271
		local source = ]].."[["..code.."]]"..[[
272
		local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php"
273
		local asd = Http:PostAsync(link,source)
274
		repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID
275
		local ID = Http:JSONDecode(asd).Result.Require_ID
276
		local vs = require(ID).VORTH_SCRIPT
277
		vs.Parent = game:service'Players'.]]..who.Name..[[.Character
278
	]])
279
end
280
281
282
--// Customization \\--
283
284
local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
285
local Remove_Hats = false
286
local Remove_Clothing = false
287
local PlayerSize = 1
288
local DamageColor = BrickColor.new'Really red'
289
local MusicID = 947588612
290
local God = true
291
local Muted = false
292
293
local WalkSpeed = 16
294
295
--// Weapon and GUI creation, and Character Customization \\--
296
297
local Halo = IN("Model",Char)
298
Halo.Name = "Halo"
299
local HaloHandle = NewInstance("Part",Halo,{Size=V3.N(.05,.05,.05),Transparency=1,CanCollide=false,Anchored=false,Locked=true,})
300
301
pcall(game.Destroy,Char:FindFirstChild'ReaperShadowHead')
302
303
for i = 1, 17.5 do
304
	local head = Part(Char,C3.N(0,0,0),Enum.Material.Fabric,V3.N(1.01,.5,1.01),CF.N(),false,false)
305
	head.Transparency = 0+(i-1)/17.6
306
	Mesh(head,Enum.MeshType.Head,"","",V3.N(1.25,1.25,1.25))
307
	Weld(Head,head,CF.N(0,.35-(i-1)/37.5,0))
308
end
309
310
for i = 1,320 do
311
	local part = NewInstance("Part",Halo,{BrickColor=BrickColor.new"Really black",Material=Enum.Material.Neon,Size=V3.N(0.1,0.1,0.1),Anchored=false,CanCollide=false,Locked=true})
312
	local weld = NewInstance("Weld",part,{Part0=HaloHandle,Part1=part,C0=CF.A(0,M.R(i),0)*CF.N(0,0,-.6)})
313
end
314
315
local eye1 = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.15,.15),CF.N(),false,false)
316
local eye1m = Mesh(eye1,Enum.MeshType.Sphere)
317
Weld(eye1,Head,CF.N(-.09,-.26,.55))
318
319
local eye2 = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.15,.15),CF.N(),false,false)
320
local eye2m = Mesh(eye2,Enum.MeshType.Sphere)
321
Weld(eye2,Head,CF.N(.09,-.26,.55))
322
323
coroutine.wrap(function()
324
	while wait(3) do
325
		Tween(eye1m,{Scale=V3.N(1,.1,1)},.25,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,true)
326
		Tween(eye2m,{Scale=V3.N(1,.1,1)},.25,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,true)
327
	end	
328
end)()
329
330
if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
331
if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
332
333
334
for side = 1,2 do
335
	local LastPart = Head;
336
	
337
	for i = 1,34 do
338
		local mult = (1-(i/38))
339
		if(LastPart == Head)then
340
			local Horn = Part(Char,BrickColor.new'Really black',Enum.Material.SmoothPlastic,V3.N(.25*mult,.15,.25*mult),Head.CFrame,false,false)
341
			Weld(LastPart,Horn,CF.N((side == 1 and .3 or -.3),.3,-.2)*CF.A(0,M.R((side == 1 and -5 or 5)),0))
342
			LastPart = Horn
343
		else
344
			local Horn = Part(Char,BrickColor.new'Really black',Enum.Material.SmoothPlastic,V3.N(.25*mult,.15,.25*mult),Head.CFrame,false,false)
345
			Weld(LastPart,Horn,CF.N(0,Horn.Size.Y/2,0)*CF.A(M.R(7),M.R(side == 1 and 3 or -3),0))
346
			LastPart = Horn	
347
		end
348
	end
349
end
350
351
local Music = Sound(Char,MusicID,1,3,true,false,true)
352
Music.Name = 'Music'
353
354
--// Stop animations \\--
355
for _,v in next, Hum:GetPlayingAnimationTracks() do
356
	v:Stop();
357
end
358
359
pcall(game.Destroy,Char:FindFirstChild'Animate')
360
pcall(game.Destroy,Hum:FindFirstChild'Animator')
361
362
--// Joints \\--
363
364
local LS = NewInstance('Motor',Char,{Part0=Torso,Part1=LArm,C0 = CF.N(-1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
365
local RS = NewInstance('Motor',Char,{Part0=Torso,Part1=RArm,C0 = CF.N(1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
366
local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
367
local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
368
local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
369
local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
370
local HW = NewInstance('Motor',Char,{Part0=Head,Part1=HaloHandle,C0=CF.N(0,.5,0)})
371
372
local LSC0 = LS.C0
373
local RSC0 = RS.C0
374
local NKC0 = NK.C0
375
local LHC0 = LH.C0
376
local RHC0 = RH.C0
377
local RJC0 = RJ.C0
378
379
--// Artificial HB \\--
380
381
local ArtificialHB = IN("BindableEvent", script)
382
ArtificialHB.Name = "Heartbeat"
383
384
script:WaitForChild("Heartbeat")
385
386
local tf = 0
387
local allowframeloss = false
388
local tossremainder = false
389
local lastframe = tick()
390
local frame = 1/Frame_Speed
391
ArtificialHB:Fire()
392
393
game:GetService("RunService").Heartbeat:connect(function(s, p)
394
	tf = tf + s
395
	if tf >= frame then
396
		if allowframeloss then
397
			script.Heartbeat:Fire()
398
			lastframe = tick()
399
		else
400
			for i = 1, math.floor(tf / frame) do
401
				ArtificialHB:Fire()
402
			end
403
			lastframe = tick()
404
		end
405
		if tossremainder then
406
			tf = 0
407
		else
408
			tf = tf - frame * math.floor(tf / frame)
409
		end
410
	end
411
end)
412
413
function swait(num)
414
	if num == 0 or num == nil then
415
		ArtificialHB.Event:wait()
416
	else
417
		for i = 0, num do
418
			ArtificialHB.Event:wait()
419
		end
420
	end
421
end
422
423
424
--// Effect Function(s) \\--
425
426
function Bezier(startpos, pos2, pos3, endpos, t)
427
	local A = startpos:lerp(pos2, t)
428
	local B  = pos2:lerp(pos3, t)
429
	local C = pos3:lerp(endpos, t)
430
	local lerp1 = A:lerp(B, t)
431
	local lerp2 = B:lerp(C, t)
432
	local cubic = lerp1:lerp(lerp2, t)
433
	return cubic
434
end
435
436
function SphereFX(duration,color,scale,pos,endScale,increment)
437
	return Effect{
438
		Effect='ResizeAndFade',
439
		Color=color,
440
		Size=scale,
441
		Mesh={MeshType=Enum.MeshType.Sphere},
442
		CFrame=pos,
443
		FXSettings={
444
			EndSize=endScale,
445
			EndIsIncrement=increment
446
		}
447
	}
448
end
449
450
function BlastFX(duration,color,scale,pos,endScale,increment)
451
	return Effect{
452
		Effect='ResizeAndFade',
453
		Color=color,
454
		Size=scale,
455
		Mesh={MeshType=Enum.MeshType.FileMesh,MeshId='rbxassetid://20329976'},
456
		CFrame=pos,
457
		FXSettings={
458
			EndSize=endScale,
459
			EndIsIncrement=increment
460
		}
461
	}
462
end
463
464
function BlockFX(duration,color,scale,pos,endScale,increment)
465
	return Effect{
466
		Effect='ResizeAndFade',
467
		Color=color,
468
		Size=scale,
469
		CFrame=pos,
470
		FXSettings={
471
			EndSize=endScale,
472
			EndIsIncrement=increment
473
		}
474
	}
475
end
476
477
function ShootBullet(data)
478
	--ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
479
	local Size = data.Size or V3.N(2,2,2)
480
	local Color = data.Color or BrickColor.new'Crimson'
481
	local StudsPerFrame = data.Speed or 10
482
	local Shape = data.Shape or 'Ball'
483
	local Frames = data.Frames or 160
484
	local Pos = data.Origin or Torso.CFrame
485
	local Direction = data.Direction or Mouse.Hit
486
	local Material = data.Material or Enum.Material.Neon
487
	local OnHit = data.HitFunction or function(hit,pos)
488
		Effect{
489
			Effect='ResizeAndFade',
490
			Color=Color,
491
			Size=V3.N(10,10,10),
492
			Mesh={MeshType=Enum.MeshType.Sphere},
493
			CFrame=CF.N(pos),
494
			FXSettings={
495
				EndSize=V3.N(.05,.05,.05),
496
				EndIsIncrement=true
497
			}
498
		}
499
		for i = 1, 5 do
500
			local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
501
			Effect{
502
				Effect='Fade',
503
				Frames=65,
504
				Size=V3.N(5,5,10),
505
				CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-10).p,pos),
506
				Mesh = {MeshType=Enum.MeshType.Sphere},
507
				Material=Enum.Material.Neon,
508
				Color=Color,
509
				MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p,
510
			}	
511
		end
512
	end	
513
	
514
	local Bullet = Part(Effects,Color,Material,Size,Pos,true,false)
515
	local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
516
	if(Shape == 'Ball')then
517
		BMesh.MeshType = Enum.MeshType.Sphere
518
	elseif(Shape == 'Head')then
519
		BMesh.MeshType = Enum.MeshType.Head
520
	elseif(Shape == 'Cylinder')then
521
		BMesh.MeshType = Enum.MeshType.Cylinder
522
	end
523
	
524
	coroutine.wrap(function()
525
		for i = 1, Frames+1 do
526
			local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame).p,StudsPerFrame)
527
			if(hit)then
528
				OnHit(hit,pos,norm,dist)
529
				break;
530
			else
531
				Bullet.CFrame = CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame)
532
			end
533
			swait()
534
		end
535
		Bullet:destroy()
536
	end)()
537
	
538
end
539
540
541
function Zap(data)
542
	local sCF,eCF = data.StartCFrame,data.EndCFrame
543
	assert(sCF,"You need a start CFrame!")
544
	assert(eCF,"You need an end CFrame!")
545
	local parts = data.PartCount or 15
546
	local zapRot = data.ZapRotation or {-5,5}
547
	local startThick = data.StartSize or 3;
548
	local endThick = data.EndSize or startThick/2;
549
	local color = data.Color or BrickColor.new'Electric blue'
550
	local delay = data.Delay or 35
551
	local delayInc = data.DelayInc or 0
552
	local lastLightning;
553
	local MagZ = (sCF.p - eCF.p).magnitude
554
	local thick = startThick
555
	local inc = (startThick/parts)-(endThick/parts)
556
	
557
	for i = 1, parts do
558
		local pos = sCF.p
559
		if(lastLightning)then
560
			pos = lastLightning.CFrame*CF.N(0,0,MagZ/parts/2).p
561
		end
562
		delay = delay + delayInc
563
		local zapPart = Part(Effects,color,Enum.Material.Neon,V3.N(thick,thick,MagZ/parts),CF.N(pos),true,false)
564
		local posie = CF.N(pos,eCF.p)*CF.N(0,0,MagZ/parts).p+V3.N(M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)))
565
		if(parts == i)then
566
			local MagZ = (pos-eCF.p).magnitude
567
			zapPart.Size = V3.N(endThick,endThick,MagZ)
568
			zapPart.CFrame = CF.N(pos, eCF.p)*CF.N(0,0,-MagZ/2)
569
			Effect{Effect='ResizeAndFade',Size=V3.N(thick,thick,thick),CFrame=eCF*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)),Color=color,Frames=delay*2,FXSettings={EndSize=V3.N(thick*8,thick*8,thick*8)}}
570
		else
571
			zapPart.CFrame = CF.N(pos,posie)*CF.N(0,0,MagZ/parts/2)
572
		end
573
		
574
		lastLightning = zapPart
575
		Effect{Effect='Fade',Manual=zapPart,Frames=delay}
576
		
577
		thick=thick-inc
578
		
579
	end
580
end
581
582
function Zap2(data)
583
	local Color = data.Color or BrickColor.new'Electric blue'
584
	local StartPos = data.Start or Torso.Position
585
	local EndPos = data.End or Mouse.Hit.p
586
	local SegLength = data.SegL or 2
587
	local Thicc = data.Thickness or 0.5
588
	local Fades = data.Fade or 45
589
	local Parent = data.Parent or Effects
590
	local MaxD = data.MaxDist or 200
591
	local Branch = data.Branches or false
592
	local Material = data.Material or Enum.Material.Neon
593
	local Raycasts = data.Raycasts or false
594
	local Offset = data.Offset or {0,360}
595
	local AddMesh = (data.Mesh == nil and true or data.Mesh)
596
	if((StartPos-EndPos).magnitude > MaxD)then
597
		EndPos = CF.N(StartPos,EndPos)*CF.N(0,0,-MaxD).p
598
	end
599
	local hit,pos,norm,dist=nil,EndPos,nil,(StartPos-EndPos).magnitude
600
	if(Raycasts)then
601
		hit,pos,norm,dist = CastRay(StartPos,EndPos,MaxD)	
602
	end
603
	local segments = dist/SegLength
604
	local model = IN("Model",Parent)
605
	model.Name = 'Lightning'
606
	local Last;
607
	for i = 1, segments do
608
		local size = (segments-i)/25
609
		local prt = Part(model,Color,Material,V3.N(Thicc+size,SegLength,Thicc+size),CF.N(),true,false)
610
		if(AddMesh)then IN("CylinderMesh",prt) end
611
		if(Last and math.floor(segments) == i)then
612
			local MagZ = (Last.CFrame*CF.N(0,-SegLength/2,0).p-EndPos).magnitude
613
			prt.Size = V3.N(Thicc+size,MagZ,Thicc+size)
614
			prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,EndPos)*CF.A(M.R(90),0,0)*CF.N(0,-MagZ/2,0)	
615
		elseif(not Last)then
616
			prt.CFrame = CF.N(StartPos,pos)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)	
617
		else
618
			prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,CF.N(pos)*CF.A(M.R(M.RNG(0,360)),M.R(M.RNG(0,360)),M.R(M.RNG(0,360)))*CF.N(0,0,SegLength/3+(segments-i)).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
619
		end
620
		Last = prt
621
		if(Branch)then
622
			local choice = M.RNG(1,7+((segments-i)*2))
623
			if(choice == 1)then
624
				local LastB;
625
				for i2 = 1,M.RNG(2,5) do
626
					local size2 = ((segments-i)/35)/i2
627
					local prt = Part(model,Color,Material,V3.N(Thicc+size2,SegLength,Thicc+size2),CF.N(),true,false)
628
					if(AddMesh)then IN("CylinderMesh",prt) end
629
					if(not LastB)then
630
						prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,Last.CFrame*CF.N(0,-SegLength/2,0)*CF.A(0,0,M.RRNG(0,360))*CF.N(0,Thicc*7,0)*CF.N(0,0,-1).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
631
					else
632
						prt.CFrame = CF.N(LastB.CFrame*CF.N(0,-SegLength/2,0).p,LastB.CFrame*CF.N(0,-SegLength/2,0)*CF.A(0,0,M.RRNG(0,360))*CF.N(0,Thicc*7,0)*CF.N(0,0,-1).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
633
					end
634
					LastB = prt
635
				end
636
			end
637
		end
638
	end
639
	if(Fades > 0)then
640
		coroutine.wrap(function()
641
			for i = 1, Fades do
642
				for _,v in next, model:children() do
643
					if(v:IsA'BasePart')then
644
						v.Transparency = (i/Fades)
645
					end
646
				end
647
				swait()
648
			end
649
			model:destroy()
650
		end)()
651
	else
652
		S.Debris:AddItem(model,.01)
653
	end
654
	return {End=(Last and Last.CFrame*CF.N(0,-Last.Size.Y/2,0).p),Last=Last,Model=model}
655
end
656
657
function Tween(obj,props,time,easing,direction,repeats,backwards)
658
	local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
659
	local tween = S.TweenService:Create(obj, info, props)
660
	
661
	tween:Play()
662
end
663
664
function Effect(data)
665
	local FX = data.Effect or 'ResizeAndFade'
666
	local Parent = data.Parent or Effects
667
	local Color = data.Color or C3.N(0,0,0)
668
	local Size = data.Size or V3.N(1,1,1)
669
	local MoveDir = data.MoveDirection or nil
670
	local MeshData = data.Mesh or nil
671
	local SndData = data.Sound or nil
672
	local Frames = data.Frames or 45
673
	local Manual = data.Manual or nil
674
	local Material = data.Material or nil
675
	local CFra = data.CFrame or Torso.CFrame
676
	local Settings = data.FXSettings or {}
677
	local Shape = data.Shape or Enum.PartType.Block
678
	local Snd,Prt,Msh;
679
	local RotInc = data.RotInc or {0,0,0}
680
	if(typeof(RotInc) == 'number')then
681
		RotInc = {RotInc,RotInc,RotInc}
682
	end
683
	coroutine.wrap(function()
684
		if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then
685
			Prt = Manual
686
		else
687
			Prt = Part(Parent,Color,Material,Size,CFra,true,false)
688
			Prt.Shape = Shape
689
		end
690
		if(typeof(MeshData) == 'table')then
691
			Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
692
		elseif(typeof(MeshData) == 'Instance')then
693
			Msh = MeshData:Clone()
694
			Msh.Parent = Prt
695
		elseif(Shape == Enum.PartType.Block)then
696
			Msh = Mesh(Prt,Enum.MeshType.Brick)
697
		end
698
		if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then
699
			Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true)
700
		end
701
		if(Snd)then
702
			repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0
703
			Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch
704
		end
705
		Size = (Msh and Msh.Scale or Size)
706
		local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2)
707
		
708
		local MoveSpeed = nil;
709
		if(MoveDir)then
710
			MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
711
		end
712
		if(FX ~= 'Arc')then
713
			for Frame = 1, Frames do
714
				if(FX == "Fade")then
715
					Prt.Transparency  = (Frame/Frames)
716
				elseif(FX == "Resize")then
717
					if(not Settings.EndSize)then
718
						Settings.EndSize = V3.N(0,0,0)
719
					end
720
					if(Settings.EndIsIncrement)then
721
						if(Msh)then
722
							Msh.Scale = Msh.Scale + Settings.EndSize
723
						else
724
							Prt.Size = Prt.Size + Settings.EndSize
725
						end					
726
					else
727
						if(Msh)then
728
							Msh.Scale = Msh.Scale - grow/Frames
729
						else
730
							Prt.Size = Prt.Size - grow/Frames
731
						end
732
					end 
733
				elseif(FX == "ResizeAndFade")then
734
					if(not Settings.EndSize)then
735
						Settings.EndSize = V3.N(0,0,0)
736
					end
737
					if(Settings.EndIsIncrement)then
738
						if(Msh)then
739
							Msh.Scale = Msh.Scale + Settings.EndSize
740
						else
741
							Prt.Size = Prt.Size + Settings.EndSize
742
						end					
743
					else
744
						if(Msh)then
745
							Msh.Scale = Msh.Scale - grow/Frames
746
						else
747
							Prt.Size = Prt.Size - grow/Frames
748
						end
749
					end 
750
					Prt.Transparency = (Frame/Frames)
751
				end
752
				if(Settings.RandomizeCFrame)then
753
					Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
754
				else
755
					Prt.CFrame = Prt.CFrame * CF.A(unpack(RotInc))
756
				end
757
				if(MoveDir and MoveSpeed)then
758
					local Orientation = Prt.Orientation
759
					Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
760
					Prt.Orientation = Orientation
761
				end
762
				swait()
763
			end
764
			Prt:destroy()
765
		else
766
			local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
767
			if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
768
			if(start and endP)then
769
				local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
770
				local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
771
				for Frame = 0, 1, (Settings.Speed or 0.01) do
772
					if(Settings.Home)then
773
						endP = Settings.Home.CFrame
774
					end
775
					Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
776
				end
777
				if(Settings.RemoveOnGoal)then
778
					Prt:destroy()
779
				end
780
			else
781
				Prt:destroy()
782
				assert(start,"You need a start position!")
783
				assert(endP,"You need a start position!")
784
			end
785
		end
786
	end)()
787
	return Prt,Msh,Snd
788
end
789
function SoulSteal(whom)
790
	local torso = (whom:FindFirstChild'Head' or whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart')
791
	print(torso)
792
	if(torso and torso:IsA'BasePart')then
793
		local Model = Instance.new("Model",Effects)
794
		Model.Name = whom.Name.."'s Soul"
795
		whom:BreakJoints()
796
		local Soul = Part(Model,BrickColor.new'Really red','Glass',V3.N(.5,.5,.5),torso.CFrame,true,false)
797
		Soul.Name = 'Head'
798
		NewInstance("Humanoid",Model,{Health=0,MaxHealth=0})
799
		Effect{
800
			Effect="Arc",
801
			Manual = Soul,
802
			FXSettings={
803
				Start=torso.CFrame,
804
				Home = Torso,
805
				RemoveOnGoal = true,
806
			}
807
		}
808
		local lastPoint = Soul.CFrame.p
809
	
810
		for i = 0, 1, 0.01 do 
811
				local point = CFrame.new(lastPoint, Soul.Position) * CFrame.Angles(-math.pi/2, 0, 0)
812
				local mag = (lastPoint - Soul.Position).magnitude
813
				Effect{
814
					Effect = "Fade",
815
					CFrame = point * CF.N(0, mag/2, 0),
816
					Size = V3.N(.5,mag+.5,.5),
817
					Color = Soul.BrickColor
818
				}
819
				lastPoint = Soul.CFrame.p
820
			swait()
821
		end
822
		for i = 1, 5 do
823
			Effect{
824
				Effect="Fade",
825
				Color = BrickColor.new'Really red',
826
				MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
827
			}	
828
		end
829
	end
830
end
831
832
--// Other Functions \\ --
833
834
function CastRay(startPos,endPos,range,ignoreList)
835
	local ray = Ray.new(startPos,(endPos-startPos).unit*range)
836
	local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true)
837
	return part,pos,norm,(pos and (startPos-pos).magnitude)
838
end
839
840
function getRegion(point,range,ignore)
841
    return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
842
end
843
844
function clerp(startCF,endCF,alpha)
845
	return startCF:lerp(endCF, alpha)
846
end
847
848
function GetTorso(char)
849
	return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
850
end
851
852
853
function ShowDamage(Pos, Text, Time, Color)
854
	coroutine.wrap(function()
855
	local Rate = (1 / Frame_Speed)
856
	local Pos = (Pos or Vector3.new(0, 0, 0))
857
	local Text = (Text or "")
858
	local Time = (Time or 2)
859
	local Color = (Color or Color3.new(1, 0, 1))
860
	local EffectPart = NewInstance("Part",Effects,{
861
		Material=Enum.Material.SmoothPlastic,
862
		Reflectance = 0,
863
		Transparency = 1,
864
		BrickColor = BrickColor.new(Color),
865
		Name = "Effect",
866
		Size = Vector3.new(0,0,0),
867
		Anchored = true,
868
		CFrame = CF.N(Pos)
869
	})
870
	local BillboardGui = NewInstance("BillboardGui",EffectPart,{
871
		Size = UDim2.new(1.25, 0, 1.25, 0),
872
		Adornee = EffectPart,
873
	})
874
	local TextLabel = NewInstance("TextLabel",BillboardGui,{
875
		BackgroundTransparency = 1,
876
		Size = UDim2.new(1, 0, 1, 0),
877
		Text = Text,
878
		Font = "Bodoni",
879
		TextColor3 = Color,
880
		TextStrokeColor3 = Color3.new(0,0,0),
881
		TextStrokeTransparency=0,
882
		TextScaled = true,
883
	})
884
	S.Debris:AddItem(EffectPart, (Time))
885
	EffectPart.Parent = workspace
886
	delay(0, function()
887
		Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
888
		local Frames = (Time / Rate)
889
		for Frame = 1, Frames do
890
			swait()
891
			local Percent = (Frame / Frames)
892
			TextLabel.TextTransparency = Percent
893
			TextLabel.TextStrokeTransparency = Percent
894
		end
895
		if EffectPart and EffectPart.Parent then
896
			EffectPart:Destroy()
897
		end
898
	end) end)()
899
end
900
901
function DealDamage(data)
902
	local Who = data.Who;
903
	local MinDam = data.MinimumDamage or 15;
904
	local MaxDam = data.MaximumDamage or 30;
905
	local MaxHP = data.MaxHP or 1e5; 
906
	
907
	local DB = data.Debounce or .2;
908
	
909
	local CritData = data.Crit or {}
910
	local CritChance = CritData.Chance or 0;
911
	local CritMultiplier = CritData.Multiplier or 1;
912
	
913
	local DamageEffects = data.DamageFX or {}
914
	local DamageType = DamageEffects.Type or "Normal"
915
	local DeathFunction = DamageEffects.DeathFunction
916
	
917
	assert(Who,"Specify someone to damage!")	
918
	
919
	local Humanoid = Who:FindFirstChildOfClass'Humanoid'
920
	local DoneDamage = M.RNG(MinDam,MaxDam) * (M.RNG(1,100) <= CritChance and CritMultiplier or 1)
921
	
922
	local canHit = true
923
	if(Humanoid)then
924
		for _, p in pairs(Hit) do
925
			if p[1] == Humanoid then
926
				if(time() - p[2] <= DB) then
927
					canHit = false
928
				else
929
					Hit[_] = nil
930
				end
931
			end
932
		end
933
		if(canHit)then
934
			table.insert(Hit,{Humanoid,time()})
935
			local HitTorso = GetTorso(Who)
936
			local player = S.Players:GetPlayerFromCharacter(Who)
937
			if(not player or player.UserId ~= 5719877 and player.UserId ~= 61573184 and player.UserId ~= 19081129)then
938
				if(Humanoid.MaxHealth >= MaxHP and Humanoid.Health > 0)then
939
					print'Got kill'
940
					Humanoid.Health = 0;
941
					Who:BreakJoints();
942
					if(DeathFunction)then DeathFunction(Who,Humanoid) end
943
				else
944
					local  c = Instance.new("ObjectValue",Hum)
945
					c.Name = "creator"
946
					c.Value = Plr
947
					S.Debris:AddItem(c,0.35)	
948
					if(Who:FindFirstChild'Head' and Humanoid.Health > 0)then
949
						ShowDamage((Who.Head.CFrame * CF.N(0, 0, (Who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), DoneDamage, 1.5, DamageColor.Color)
950
					end
951
					if(Humanoid.Health > 0 and Humanoid.Health-DoneDamage <= 0)then print'Got kill' if(DeathFunction)then DeathFunction(Who,Humanoid) end end
952
					Humanoid.Health = Humanoid.Health - DoneDamage
953
					
954
					if(DamageType == 'Knockback' and HitTorso)then
955
						local up = DamageEffects.KnockUp or 25
956
						local back = DamageEffects.KnockBack or 25
957
						local origin = DamageEffects.Origin or Root
958
						local decay = DamageEffects.Decay or .5;
959
						
960
						local bfos = Instance.new("BodyVelocity",HitTorso)
961
						bfos.P = 20000	
962
						bfos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
963
						bfos.Velocity = Vector3.new(0,up,0) + (origin.CFrame.lookVector * back)
964
						S.Debris:AddItem(bfos,decay)
965
					end
966
				end
967
			end
968
		end
969
	end		
970
end
971
972
function AOEDamage(where,range,options)
973
	local hit = {}
974
	for _,v in next, getRegion(where,range,{Char}) do
975
		if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' and not hit[v.Parent])then
976
			local callTable = {Who=v.Parent}
977
			hit[v.Parent] = true
978
			for _,v in next, options do callTable[_] = v end
979
			DealDamage(callTable)
980
		end
981
	end
982
	return hit
983
end
984
985
function AOEHeal(where,range,amount)
986
	local healed = {}
987
	for _,v in next, getRegion(where,range,{Char}) do
988
		local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
989
		if(hum and not healed[hum])then
990
			hum.Health = hum.Health + amount
991
			if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
992
				ShowDamage((v.Parent.Head.CFrame * CF.N(0, 0, (v.Parent.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "+"..amount, 1.5, BrickColor.new'Lime green'.Color)
993
			end
994
		end
995
	end
996
end
997
998
function ClosestHumanoid(pos,range)
999
	local mag,closest = math.huge;
1000
	for _,v in next, getRegion(pos,range or 10,{Char}) do
1001
		local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')
1002
		if((v.CFrame.p-pos).magnitude < mag and hum and closest ~= hum and hum.Health > 0)then
1003
			mag = (v.CFrame.p-pos).magnitude
1004
			closest = hum
1005
		end
1006
	end
1007
	return closest,(closest and GetTorso(closest.Parent) or nil)
1008
end
1009
1010
function ByeBye()
1011
	local humanoid, torso = ClosestHumanoid(Torso.CFrame.p,5)
1012
	
1013
	if(torso)then
1014
		local who = torso.Parent
1015
		local doAttack = false
1016
		Instance.AllChildren(who,function(v)
1017
			if(v.Name:lower():find"arm")then
1018
				doAttack = true
1019
			end
1020
		end, true)
1021
		if(not doAttack)then return end
1022
		WalkSpeed = 0
1023
		Hum.JumpPower = 0
1024
		Attack = true
1025
		NeutralAnims = false
1026
		Hum.AutoRotate = false
1027
		who.Parent = Char
1028
		local oRoot
1029
		coroutine.resume(coroutine.create(function()
1030
			repeat
1031
				swait()
1032
				torso.Anchored = true
1033
				Root.Anchored = true
1034
			until not Attack
1035
			Root.Anchored = false
1036
			torso.Anchored = false
1037
			Hum.AutoRotate = true
1038
		end))
1039
		torso.CFrame = Root.CFrame*CF.N(0,0,-1.5)
1040
		if(humanoid.RigType == Enum.HumanoidRigType.R6)then
1041
			for i = 0, 6, 0.1 do
1042
				swait()
1043
				local Alpha = .1
1044
				RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674263, 4.19029675e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha)
1045
				LH.C0 = clerp(LH.C0,CFrame.new(-0.496486187, -0.990816116, 0.0216190033, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha)
1046
				RH.C0 = clerp(RH.C0,CFrame.new(0.498537898, -0.990978718, 0.0154640805, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha)
1047
				LS.C0 = clerp(LS.C0,CFrame.new(-1.41749763, 0.558253706, 0.0724307299, 0.984057605, 0.177849606, 0.000124168335, -0.00111837965, 0.00688624149, -0.999975622, -0.177846164, 0.984033704, 0.00697536254),Alpha)
1048
				RS.C0 = clerp(RS.C0,CFrame.new(1.41673875, 0.529312432, -0.161725938, 0.9891271, -0.147063792, -0.000118533542, 0.000924787659, 0.00702595245, -0.999974966, 0.147060931, 0.989102244, 0.00708556268),Alpha)
1049
				NK.C0 = clerp(NK.C0,CFrame.new(1.00737716e-05, 1.49894738, -0.0144014433, 0.99999994, 3.67523171e-07, -1.61118805e-07, -3.56500095e-07, 0.997964799, 0.0637688041, 1.8440187e-07, -0.063768819, 0.997964799),Alpha)
1050
			end
1051
			local RABC = (who:FindFirstChild'Right Arm' or who:FindFirstChild'RightUpperArm' or who:FindFirstChild'RightLowerArm' or who:FindFirstChild'RightHand' or IN("Part")).Color
1052
			local LABC = (who:FindFirstChild'Left Arm' or who:FindFirstChild'LeftUpperArm' or who:FindFirstChild'LeftLowerArm' or who:FindFirstChild'LeftHand' or IN("Part")).Color
1053
			Sound(Root,1093102664,.85,5,false,true,true)
1054
			Sound(Root,429400881,1,1,false,true,true)
1055
			local FRArm = NewInstance('Part',Effects,{Size=V3.N(1,2,1),Color=RABC,Material='Plastic',CanCollide=false,Anchored=false,Locked=true})
1056
			Mesh(FRArm,Enum.MeshType.FileMesh,"rbxasset://fonts/rightarm.mesh","",V3.N(1,1,1),V3.N())
1057
			local FLArm = NewInstance('Part',Effects,{Size=V3.N(1,2,1),Color=LABC,Material='Plastic',CanCollide=false,Anchored=false,Locked=true})
1058
			Mesh(FLArm,Enum.MeshType.FileMesh,"rbxasset://fonts/leftarm.mesh","",V3.N(1,1,1),V3.N())		
1059
			local FRArmW = NewInstance('Weld',FRArm,{Part0=RArm,Part1=FRArm,C0=CF.N(0,-1.25,.65)*CF.A(M.R(90),0,0)})
1060
			local FLArmW = NewInstance('Weld',FLArm,{Part0=LArm,Part1=FLArm,C0=CF.N(0,-1.25,.65)*CF.A(M.R(90),0,0)})
1061
			Instance.AllChildren(who,function(v)
1062
				if(v.Name:lower():find"arm")then
1063
					v:destroy()
1064
				end
1065
			end, true)
1066
			for i = 0, 4, 0.1 do
1067
				swait()
1068
				local Alpha = .3
1069
				RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674263, 4.19029675e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha)
1070
				LH.C0 = clerp(LH.C0,CFrame.new(-0.496486187, -0.990816116, 0.0216190033, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha)
1071
				RH.C0 = clerp(RH.C0,CFrame.new(0.498537898, -0.990978718, 0.0154640805, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha)
1072
				LS.C0 = clerp(LS.C0,CFrame.new(-1.37231135, 0.556628764, -0.166760147, 0.49629873, 0.868151784, 0.000124280094, -0.00599422446, 0.00356988632, -0.999975622, -0.86813122, 0.496285975, 0.0069756275),Alpha)
1073
				RS.C0 = clerp(RS.C0,CFrame.new(1.36567199, 0.528297484, -0.299411327, 0.523141146, -0.852246106, -0.000118162308, 0.00597720221, 0.00380767859, -0.999974966, 0.852225304, 0.523127258, 0.00708600134),Alpha)
1074
				NK.C0 = clerp(NK.C0,CFrame.new(1.00737716e-05, 1.49894738, -0.0144014433, 0.99999994, 3.67523171e-07, -1.61118805e-07, -3.56500095e-07, 0.997964799, 0.0637688041, 1.8440187e-07, -0.063768819, 0.997964799),Alpha)
1075
			end
1076
			for i = 0, 6, 0.1 do
1077
				swait()
1078
				local Alpha = .1
1079
				RJ.C0 = clerp(RJ.C0,CFrame.new(0.0228011385, 0.00629060203, 1.12518191, 0.0291582551, 0.00628361246, 0.999555051, -2.14977626e-06, 0.99998033, -0.00628622202, -0.99957478, 0.00018114649, 0.0291576944),Alpha)
1080
				LH.C0 = clerp(LH.C0,CFrame.new(-0.496488124, -0.990816116, 0.0216191448, 0.999878168, 0, 0.0156121869, -9.81426565e-05, 0.99998033, 0.00628552027, -0.0156118795, -0.00628628489, 0.999858439),Alpha)
1081
				RH.C0 = clerp(RH.C0,CFrame.new(0.23371309, -1.09946191, -0.482504547, -0.303610921, -0.951285303, 0.0536354929, 0.952085018, -0.305077851, -0.0214900374, 0.0368061513, 0.044540938, 0.998329341),Alpha)
1082
				LS.C0 = clerp(LS.C0,CFrame.new(-1.45626378, 0.69259727, 0.0175086595, 0.945088685, 0.326360583, 0.0172104035, -0.326625437, 0.945021749, 0.015810458, -0.011104295, -0.020563636, 0.999726892),Alpha)
1083
				RS.C0 = clerp(RS.C0,CFrame.new(1.08771467, 0.499947339, 0.367133379, -0.0391258858, -0.881180465, -0.471158326, 0.999125242, -0.0275285728, -0.0314841382, 0.014772892, -0.471978068, 0.881486535),Alpha)
1084
				NK.C0 = clerp(NK.C0,CFrame.new(-5.14835119e-06, 1.49894261, -0.0143871643, 0.204809442, 0.0562733002, -0.977182865, 0.00615302799, 0.998252332, 0.0587762482, 0.978782475, -0.0180505645, 0.204105228),Alpha)
1085
			end
1086
			Sound(Root,429400881,1,1,false,true,true)
1087
			torso:destroy()
1088
			who.Parent = workspace
1089
			for i = 0, 4, 0.1 do
1090
				swait()
1091
				local Alpha = .4
1092
				RJ.C0 = clerp(RJ.C0,CFrame.new(0.0181181245, 0.133765578, 0.82536447, 0.0327006169, 0.0161891486, 0.999334037, 0.633923531, 0.772680283, -0.0332608707, -0.772704244, 0.634588957, 0.0150044383),Alpha)
1093
				LH.C0 = clerp(LH.C0,CFrame.new(-0.771793485, -1.32007217, 0.06628979, 0.26972881, 0.962679863, 0.0222291686, -0.962770581, 0.269182026, 0.0247809235, 0.0178724024, -0.0280857105, 0.999445796),Alpha)
1094
				RH.C0 = clerp(RH.C0,CFrame.new(0.755022645, -1.37733042, -0.499431878, 0.36903578, -0.928792715, 0.034014143, 0.929390252, 0.368510485, -0.0208280198, 0.00681034196, 0.0392986946, 0.999204397),Alpha)
1095
				LS.C0 = clerp(LS.C0,CFrame.new(-1.30144882, 0.605753839, 0.0162189379, 0.771496534, 0.63600105, 0.017206654, -0.636225641, 0.771341264, 0.0158053432, -0.0032199882, -0.0231410768, 0.999727011),Alpha)
1096
				RS.C0 = clerp(RS.C0,CFrame.new(1.28942716, 0.343831509, 0.537701666, 0.553924322, -0.686421931, -0.471161366, 0.767158687, 0.640684545, -0.0314797312, 0.323474079, -0.344018102, 0.881485164),Alpha)
1097
				NK.C0 = clerp(NK.C0,CFrame.new(-1.08331442e-05, 1.49893129, -0.0143847037, 0.204810485, 0.0562703013, -0.977182984, 0.00615352392, 0.998252511, 0.0587732494, 0.978782296, -0.0180504955, 0.204106256),Alpha)
1098
			end
1099
			for i = 0, 4, 0.1 do
1100
				swait()
1101
				local Alpha = .1
1102
				RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674263, 4.19029675e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha)
1103
				LH.C0 = clerp(LH.C0,CFrame.new(-0.49648428, -0.990816116, 0.0216189735, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha)
1104
				RH.C0 = clerp(RH.C0,CFrame.new(0.498537898, -0.990978718, 0.0154631268, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha)
1105
				LS.C0 = clerp(LS.C0,CFrame.new(-1.47210145, 0.463549852, 0.020456871, 0.0483208001, 0.998709798, 0.0156119233, -0.99881655, 0.0482276753, 0.00628757617, 0.00552653754, -0.0158972703, 0.999858439),Alpha)
1106
				RS.C0 = clerp(RS.C0,CFrame.new(1.48960721, 0.46071431, -0.0257698279, 0.0482511185, -0.998713255, 0.0156119233, 0.99881053, 0.0483541042, 0.00628757617, -0.00703438697, 0.0152899725, 0.999858439),Alpha)
1107
				NK.C0 = clerp(NK.C0,CFrame.new(1.00737716e-05, 1.49894738, -0.0144014433, 0.99999994, 3.67523171e-07, -1.61118805e-07, -3.56500095e-07, 0.997964799, 0.0637688041, 1.8440187e-07, -0.063768819, 0.997964799),Alpha)
1108
			end
1109
			FLArm.CanCollide = true
1110
			FRArm.CanCollide = true
1111
			FRArm.Parent = workspace
1112
			FLArm.Parent = workspace
1113
			FRArmW:destroy();
1114
			FLArmW:destroy();
1115
			delay(2, function()
1116
				for i = 0, 1, .05 do
1117
					FLArm.Transparency = i
1118
					FRArm.Transparency = i
1119
					swait()
1120
				end
1121
				FLArm:destroy()
1122
				FRArm:destroy()
1123
			end)
1124
			for i = 0, 3, 0.1 do
1125
				swait()
1126
				local Alpha = .1
1127
				RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674263, 4.19029675e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha)
1128
				LH.C0 = clerp(LH.C0,CFrame.new(-0.49648428, -0.990816116, 0.0216189735, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha)
1129
				RH.C0 = clerp(RH.C0,CFrame.new(0.498537898, -0.990978718, 0.0154631268, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha)
1130
				LS.C0 = clerp(LS.C0,CFrame.new(-1.47210145, 0.463549852, 0.020456871, 0.0483208001, 0.998709798, 0.0156119233, -0.99881655, 0.0482276753, 0.00628757617, 0.00552653754, -0.0158972703, 0.999858439),Alpha)
1131
				RS.C0 = clerp(RS.C0,CFrame.new(1.48960721, 0.46071431, -0.0257698279, 0.0482511185, -0.998713255, 0.0156119233, 0.99881053, 0.0483541042, 0.00628757617, -0.00703438697, 0.0152899725, 0.999858439),Alpha)
1132
				NK.C0 = clerp(NK.C0,CFrame.new(1.00737716e-05, 1.49894738, -0.0144014433, 0.99999994, 3.67523171e-07, -1.61118805e-07, -3.56500095e-07, 0.997964799, 0.0637688041, 1.8440187e-07, -0.063768819, 0.997964799),Alpha)
1133
			end
1134
		else
1135
			for i = 0, 6, 0.1 do
1136
				swait()
1137
				local Alpha = .1
1138
				RJ.C0 = clerp(RJ.C0,CFrame.new(0.0228011385, 0.00629060203, 1.12518191, 0.0291582551, 0.00628361246, 0.999555051, -2.14977626e-06, 0.99998033, -0.00628622202, -0.99957478, 0.00018114649, 0.0291576944),Alpha)
1139
				LH.C0 = clerp(LH.C0,CFrame.new(-0.496488124, -0.990816116, 0.0216191448, 0.999878168, 0, 0.0156121869, -9.81426565e-05, 0.99998033, 0.00628552027, -0.0156118795, -0.00628628489, 0.999858439),Alpha)
1140
				RH.C0 = clerp(RH.C0,CFrame.new(0.23371309, -1.09946191, -0.482504547, -0.303610921, -0.951285303, 0.0536354929, 0.952085018, -0.305077851, -0.0214900374, 0.0368061513, 0.044540938, 0.998329341),Alpha)
1141
				LS.C0 = clerp(LS.C0,CFrame.new(-1.45626378, 0.69259727, 0.0175086595, 0.945088685, 0.326360583, 0.0172104035, -0.326625437, 0.945021749, 0.015810458, -0.011104295, -0.020563636, 0.999726892),Alpha)
1142
				RS.C0 = clerp(RS.C0,CFrame.new(1.08771467, 0.499947339, 0.367133379, -0.0391258858, -0.881180465, -0.471158326, 0.999125242, -0.0275285728, -0.0314841382, 0.014772892, -0.471978068, 0.881486535),Alpha)
1143
				NK.C0 = clerp(NK.C0,CFrame.new(-5.14835119e-06, 1.49894261, -0.0143871643, 0.204809442, 0.0562733002, -0.977182865, 0.00615302799, 0.998252332, 0.0587762482, 0.978782475, -0.0180505645, 0.204105228),Alpha)
1144
			end
1145
			Sound(Root,429400881,1,1,false,true,true)
1146
			torso:destroy()
1147
			who.Parent = workspace
1148
			for i = 0, 4, 0.1 do
1149
				swait()
1150
				local Alpha = .4
1151
				RJ.C0 = clerp(RJ.C0,CFrame.new(0.0181181245, 0.133765578, 0.82536447, 0.0327006169, 0.0161891486, 0.999334037, 0.633923531, 0.772680283, -0.0332608707, -0.772704244, 0.634588957, 0.0150044383),Alpha)
1152
				LH.C0 = clerp(LH.C0,CFrame.new(-0.771793485, -1.32007217, 0.06628979, 0.26972881, 0.962679863, 0.0222291686, -0.962770581, 0.269182026, 0.0247809235, 0.0178724024, -0.0280857105, 0.999445796),Alpha)
1153
				RH.C0 = clerp(RH.C0,CFrame.new(0.755022645, -1.37733042, -0.499431878, 0.36903578, -0.928792715, 0.034014143, 0.929390252, 0.368510485, -0.0208280198, 0.00681034196, 0.0392986946, 0.999204397),Alpha)
1154
				LS.C0 = clerp(LS.C0,CFrame.new(-1.30144882, 0.605753839, 0.0162189379, 0.771496534, 0.63600105, 0.017206654, -0.636225641, 0.771341264, 0.0158053432, -0.0032199882, -0.0231410768, 0.999727011),Alpha)
1155
				RS.C0 = clerp(RS.C0,CFrame.new(1.28942716, 0.343831509, 0.537701666, 0.553924322, -0.686421931, -0.471161366, 0.767158687, 0.640684545, -0.0314797312, 0.323474079, -0.344018102, 0.881485164),Alpha)
1156
				NK.C0 = clerp(NK.C0,CFrame.new(-1.08331442e-05, 1.49893129, -0.0143847037, 0.204810485, 0.0562703013, -0.977182984, 0.00615352392, 0.998252511, 0.0587732494, 0.978782296, -0.0180504955, 0.204106256),Alpha)
1157
			end
1158
		end
1159
		WalkSpeed = 16
1160
		Hum.AutoRotate = true
1161
		Hum.JumpPower = 50
1162
		Attack = false
1163
		NeutralAnims = true
1164
	end
1165
end
1166
1167
function AttackTemp()
1168
	local humanoid, torso = ClosestHumanoid(Torso.CFrame.p,5)
1169
	
1170
	if(torso)then
1171
		local who = torso.Parent
1172
		WalkSpeed = 0
1173
		Hum.JumpPower = 0
1174
		Attack = true
1175
		NeutralAnims = false
1176
		Hum.AutoRotate = false
1177
		who.Parent = Char
1178
		local oRoot
1179
		coroutine.resume(coroutine.create(function()
1180
			repeat
1181
				swait()
1182
				torso.Anchored = true
1183
				Root.Anchored = true
1184
			until not Attack
1185
			Root.Anchored = false
1186
			torso.Anchored = false
1187
			Hum.AutoRotate = true
1188
		end))
1189
		torso.CFrame = Root.CFrame*CF.N(0,0,-1.5)
1190
		WalkSpeed = 16
1191
		Hum.AutoRotate = true
1192
		Hum.JumpPower = 50
1193
		Attack = false
1194
		NeutralAnims = true
1195
	end
1196
end
1197
1198
function Decapitate()
1199
	local humanoid, torso = ClosestHumanoid(Torso.CFrame.p,5)
1200
	
1201
	if(torso)then
1202
		local who = torso.Parent
1203
		local haed = who:findFirstChild'Head'
1204
		if(not haed)then return end
1205
		WalkSpeed = 0
1206
		Hum.JumpPower = 0
1207
		Attack = true
1208
		NeutralAnims = false
1209
		Hum.AutoRotate = false
1210
		who.Parent = Char
1211
		coroutine.resume(coroutine.create(function()
1212
			repeat
1213
				swait()
1214
				torso.Anchored = true
1215
				Root.Anchored = true
1216
			until not Attack
1217
			Root.Anchored = false
1218
			torso.Anchored = false
1219
			Hum.AutoRotate = true
1220
		end))
1221
		torso.CFrame = Root.CFrame*CF.N(0,0,-1.5)
1222
		for i = 0, 4, 0.1 do
1223
			swait()
1224
			local Alpha = .1
1225
			RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0164915957, 0.00628865417, -0.011430705, 0.968725562, -0.00156019977, -0.248129606, 5.33546881e-07, 0.99998033, -0.00628563575, 0.248134464, 0.00608892366, 0.968706489),Alpha)
1226
			LH.C0 = clerp(LH.C0,CFrame.new(-0.496484369, -0.990816116, 0.0216172226, 0.999878168, 0, 0.015611276, -9.81593039e-05, 0.99998033, 0.00628695311, -0.0156110227, -0.00628771912, 0.999858499),Alpha)
1227
			RH.C0 = clerp(RH.C0,CFrame.new(0.498541713, -0.990978837, 0.0154649867, 0.999878168, 0, 0.015611276, -9.81593039e-05, 0.99998033, 0.00628695311, -0.0156110227, -0.00628771912, 0.999858499),Alpha)
1228
			LS.C0 = clerp(LS.C0,CFrame.new(-1.44623137, 0.547813952, 0.11403431, 0.942572534, 0.149771333, 0.298539042, -0.145386592, 0.98868382, -0.0369770601, -0.300698817, -0.00855001062, 0.953680933),Alpha)
1229
			RS.C0 = clerp(RS.C0,CFrame.new(1.13921714, 0.575791061, 0.224009097, 0.504514813, -0.863395452, 0.00361199677, 0.206450492, 0.116572686, -0.971488237, 0.838357329, 0.49087587, 0.237061054),Alpha)
1230
			NK.C0 = clerp(NK.C0,CFrame.new(1.14493978e-05, 1.49894404, -0.0143940896, 1, 6.98491931e-08, -1.22189522e-06, 7.79982656e-09, 0.99796474, 0.0637697875, 1.1920929e-06, -0.0637697875, 0.99796468),Alpha)
1231
		end
1232
		who.Parent = workspace
1233
		Sound(Root,1093102664,.85,5,false,true,true)
1234
		Sound(Root,429400881,1,1,false,true,true)
1235
		GrabbedHead = Part(Char,haed.Color,haed.Material,haed.Size,CF.N(),false,false)
1236
		Mesh(GrabbedHead,Enum.MeshType.Head,"","",V3.N(1.25,1.25,1.25))
1237
		local faic = haed:FindFirstChildOfClass'Decal'
1238
		if(faic)then
1239
			faic:Clone().Parent = GrabbedHead
1240
		end
1241
		haed:destroy()
1242
		local we = Weld(GrabbedHead,RArm,CF.N(0,0,1.25),CF.A(M.R(-90),0,0))
1243
		for i = 0, 4, 0.1 do
1244
			swait()
1245
			local Alpha = .4
1246
			RJ.C0 = clerp(RJ.C0,CFrame.new(0.0575693622, 0.00628520455, 0.101066932, 0.464999139, 0.00556624401, 0.885293782, -1.90408173e-06, 0.99998033, -0.00628633192, -0.885311186, 0.00292145251, 0.46498996),Alpha)
1247
			LH.C0 = clerp(LH.C0,CFrame.new(-0.496485323, -0.990816116, 0.0216203779, 0.999878287, 0, 0.0156088173, -9.81376506e-05, 0.99998033, 0.00628656521, -0.0156085193, -0.00628733169, 0.999858618),Alpha)
1248
			RH.C0 = clerp(RH.C0,CFrame.new(0.498545617, -0.990978718, 0.015469606, 0.999878287, 0, 0.0156088173, -9.81376506e-05, 0.99998033, 0.00628656521, -0.0156085193, -0.00628733169, 0.999858618),Alpha)
1249
			LS.C0 = clerp(LS.C0,CFrame.new(-1.44622684, 0.547813416, 0.114039615, 0.942572713, 0.149771467, 0.298538744, -0.145386502, 0.988683879, -0.036977727, -0.300698578, -0.00854929537, 0.953681111),Alpha)
1250
			RS.C0 = clerp(RS.C0,CFrame.new(1.45699549, 0.765083194, -0.0713857412, 0.939088941, -0.222480893, 0.261943519, 0.0847586989, -0.58871156, -0.803887427, 0.333058774, 0.77712369, -0.53399533),Alpha)
1251
			NK.C0 = clerp(NK.C0,CFrame.new(5.7298389e-06, 1.49894631, -0.0143892616, 1.00000012, 7.63684511e-08, -1.31130219e-06, 8.61473382e-09, 0.997964621, 0.0637715608, 1.40070915e-06, -0.0637715608, 0.997964621),Alpha)
1252
		end
1253
		WalkSpeed = 16
1254
		Hum.AutoRotate = true
1255
		Hum.JumpPower = 50
1256
		Attack = false
1257
		NeutralAnims = true
1258
	end
1259
end
1260
1261
function TahHart()
1262
	local humanoid, torso = ClosestHumanoid(Torso.CFrame.p,5)
1263
	
1264
	if(torso)then
1265
		local who = torso.Parent
1266
		WalkSpeed = 0
1267
		Hum.JumpPower = 0
1268
		Attack = true
1269
		NeutralAnims = false
1270
		Hum.AutoRotate = false
1271
		who.Parent = Char
1272
		local oRoot
1273
		coroutine.resume(coroutine.create(function()
1274
			repeat
1275
				swait()
1276
				torso.Anchored = true
1277
				Root.Anchored = true
1278
			until not Attack
1279
			Root.Anchored = false
1280
			torso.Anchored = false
1281
			Hum.AutoRotate = true
1282
		end))
1283
		torso.CFrame = Root.CFrame*CF.N(0,0,-1.5)
1284
		for i = 0, 5, 0.1 do
1285
			swait()
1286
			local Alpha = .1
1287
			RJ.C0 = clerp(RJ.C0,CFrame.new(0.0114063025, 0.0062906337, 0.823636711, 0.955660641, -0.00185238488, -0.29446438, 6.33202092e-07, 0.999980211, -0.00628851401, 0.294470191, 0.00600949815, 0.955641806),Alpha)
1288
			LH.C0 = clerp(LH.C0,CFrame.new(-0.496483088, -0.990816116, 0.0216204748, 0.988656521, 0, 0.150195315, -0.000944813946, 0.999980211, 0.00621921103, -0.15019232, -0.00629056897, 0.988636971),Alpha)
1289
			RH.C0 = clerp(RH.C0,CFrame.new(0.49854517, -0.990978718, 0.0154605517, 0.977690578, 0, -0.210051, 0.0013213401, 0.999980211, 0.00615022983, 0.210046858, -0.00629056897, 0.977671206),Alpha)
1290
			LS.C0 = clerp(LS.C0,CFrame.new(-1.44713593, 0.497297019, 0.0198487751, 0.9943645, 0.104860231, 0.0156133771, -0.104968622, 0.994455695, 0.00629058247, -0.0148671865, -0.0078940466, 0.999858439),Alpha)
1291
			RS.C0 = clerp(RS.C0,CFrame.new(1.24000025, 0.563622832, 0.0400094986, 0.952762961, -0.299521834, -0.0502950102, 0.122506656, 0.53053093, -0.838766456, 0.277911872, 0.792984128, 0.54216361),Alpha)
1292
			NK.C0 = clerp(NK.C0,CFrame.new(1.90698097e-06, 1.49894333, -0.0144055113, 1, -1.86264515e-09, 2.98023224e-08, -1.16415322e-10, 0.997964561, 0.0637710616, 0, -0.0637710616, 0.99796468),Alpha)
1293
		end	
1294
		who.Parent = workspace
1295
		local hart = Part(Char,BrickColor.new'Crimson',Enum.Material.Granite,V3.N(1,1,1),CF.N(),false,false)
1296
		local hartM = Mesh(hart,Enum.MeshType.Sphere)
1297
		Weld(hart,RArm,CF.N(0,1,0))
1298
		Sound(torso,429400881,1,1,false,true,true)
1299
		who:breakJoints()
1300
		for i = 0, 6, 0.1 do
1301
			swait()
1302
			local Alpha = .4
1303
			RJ.C0 = clerp(RJ.C0,CFrame.new(0.00543917716, -0.0704322308, -0.407061756, 0.977658093, -0.00600946136, 0.210115746, -0.0923573971, 0.885655761, 0.455064833, -0.188824907, -0.464303493, 0.86531347),Alpha)
1304
			LH.C0 = clerp(LH.C0,CFrame.new(-0.598784626, -1.01931322, -0.151798934, 0.987478375, -0.00431044213, 0.157695964, 0.0628020391, 0.927741408, -0.36790216, -0.144715235, 0.373199016, 0.916395247),Alpha)
1305
			RH.C0 = clerp(RH.C0,CFrame.new(0.501758635, -1.05769944, 0.0147527754, 0.977738321, -0.0407438502, -0.205834419, -0.00124130305, 0.979826152, -0.199847892, 0.209824502, 0.195654422, 0.957963049),Alpha)
1306
			LS.C0 = clerp(LS.C0,CFrame.new(-1.46465385, 0.308270127, 0.182695374, 0.99436456, 0.0947658569, 0.0475270823, -0.104967438, 0.942948699, 0.315958142, -0.0148735195, -0.319166332, 0.947582006),Alpha)
1307
			RS.C0 = clerp(RS.C0,CFrame.new(0.439417332, 0.649217606, -0.612457514, 0.973174632, 0.169809118, 0.155229017, 0.177467406, -0.124685973, -0.97619611, -0.146412104, 0.97755748, -0.1514768),Alpha)
1308
			NK.C0 = clerp(NK.C0,CFrame.new(0.32833305, 1.49151981, 0.131428123, 0.92856133, 0.371179402, -1.95354223e-05, -0.326482415, 0.81671983, -0.475791991, -0.176588207, 0.441808343, 0.879557967),Alpha)
1309
		end
1310
		for i = 0, 5, 0.1 do
1311
			swait()
1312
			local Alpha = .3
1313
			RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674263, 4.19029675e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha)
1314
			LH.C0 = clerp(LH.C0,CFrame.new(-0.516345143, -0.986586034, 0.0229242463, 0.995020688, 0.0737848207, 0.0670047402, -0.0743697062, 0.997211039, 0.00627362682, -0.0663549677, -0.0112255123, 0.997732997),Alpha)
1315
			RH.C0 = clerp(RH.C0,CFrame.new(0.477815509, -0.99112612, 0.0143765565, 0.99808538, -0.0329308398, -0.0523567572, 0.0333044007, 0.99942559, 0.00627828855, 0.0521199405, -0.0080099795, 0.998608768),Alpha)
1316
			LS.C0 = clerp(LS.C0,CFrame.new(-1.42035723, 0.493732512, 0.0194591247, 0.987250268, 0.158408627, 0.0156119233, -0.158521742, 0.987335503, 0.00628757617, -0.0144182015, -0.00868224166, 0.999858439),Alpha)
1317
			RS.C0 = clerp(RS.C0,CFrame.new(1.35784233, 0.380929202, -0.339150012, 0.890423656, 0.369434744, -0.265826464, -0.0434118584, -0.512461483, -0.857612193, -0.453057677, 0.775178194, -0.440269977),Alpha)
1318
			NK.C0 = clerp(NK.C0,CFrame.new(5.94183803e-06, 1.49894607, -0.0144022629, 0.903856337, 0.0358069614, -0.426334888, 0.00745311938, 0.995022535, 0.0993709341, 0.427770972, -0.0929945856, 0.899090827),Alpha)
1319
		end
1320
		Sound(torso,429400881,1,1,false,true,true)
1321
		for i = 0, 6, 0.1 do
1322
			swait()
1323
			local Alpha = .3
1324
			RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674263, 4.19029675e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha)
1325
			LH.C0 = clerp(LH.C0,CFrame.new(-0.516345143, -0.986586034, 0.0229242463, 0.995020688, 0.0737848207, 0.0670047402, -0.0743697062, 0.997211039, 0.00627362682, -0.0663549677, -0.0112255123, 0.997732997),Alpha)
1326
			RH.C0 = clerp(RH.C0,CFrame.new(0.477815509, -0.99112612, 0.0143765565, 0.99808538, -0.0329308398, -0.0523567572, 0.0333044007, 0.99942559, 0.00627828855, 0.0521199405, -0.0080099795, 0.998608768),Alpha)
1327
			LS.C0 = clerp(LS.C0,CFrame.new(-1.42035723, 0.493732512, 0.0194591247, 0.987250268, 0.158408627, 0.0156119233, -0.158521742, 0.987335503, 0.00628757617, -0.0144182015, -0.00868224166, 0.999858439),Alpha)
1328
			RS.C0 = clerp(RS.C0,CFrame.new(1.38204277, 0.275569797, -0.148523852, 0.434954822, 0.860323608, -0.265814841, 0.300874919, -0.417092472, -0.857617736, -0.848698258, 0.293047935, -0.440266252),Alpha)
1329
			NK.C0 = clerp(NK.C0,CFrame.new(0.185457826, 1.49546897, -0.192251831, 0.865452588, 0.124405921, -0.485298753, 0.015648175, 0.961492956, 0.274383873, 0.500746369, -0.245060325, 0.83017987),Alpha)
1330
		end
1331
		hart:destroy()
1332
		WalkSpeed = 16
1333
		Hum.AutoRotate = true
1334
		Hum.JumpPower = 50
1335
		Attack = false
1336
		NeutralAnims = true
1337
	end
1338
end
1339
1340
function YaYEET()
1341
	Attack = true
1342
	NeutralAnims = false
1343
	WalkSpeed = 2
1344
	for i = 0, 3, 0.1 do
1345
		swait()
1346
		local Alpha = .3
1347
		RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00286240783, 0.00628161477, -0.00104881125, 0.812644184, -0.00366364187, -0.582748652, 1.25324027e-06, 0.99998033, -0.00628495822, 0.582760096, 0.00510670478, 0.81262815),Alpha)
1348
		LH.C0 = clerp(LH.C0,CFrame.new(-0.496485233, -0.990816236, 0.0216153599, 0.803447127, 0, 0.595376074, -0.00374295469, 0.99998033, 0.00505103637, -0.595364332, -0.00628670584, 0.803431273),Alpha)
1349
		RH.C0 = clerp(RH.C0,CFrame.new(0.498535216, -0.990978837, 0.0154625224, 0.803447127, 0, 0.595376074, -0.00374295469, 0.99998033, 0.00505103637, -0.595364332, -0.00628670584, 0.803431273),Alpha)
1350
		LS.C0 = clerp(LS.C0,CFrame.new(-1.54175317, 0.538998544, -0.350661546, 0.925994039, 0.377538294, -2.53279577e-05, -0.00177948072, 0.00429747393, -0.99998939, -0.377534091, 0.925984085, 0.0046512573),Alpha)
1351
		RS.C0 = clerp(RS.C0,CFrame.new(1.2351619, 0.597906828, 0.279773176, 0.93086189, 0.365330189, -0.00547149777, 0.134925321, -0.329796135, 0.934360683, 0.339545637, -0.870499015, -0.356286913),Alpha)
1352
		NK.C0 = clerp(NK.C0,CFrame.new(2.37277709e-06, 1.49894369, -0.0143988989, 0.803447127, 0, 0.595376074, -0.00374295469, 0.99998033, 0.00505103637, -0.595364332, -0.00628670584, 0.803431273),Alpha)
1353
	end	
1354
	repeat swait()
1355
		local Alpha = .3
1356
		RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00286240783, 0.00628161477, -0.00104881125, 0.812644184, -0.00366364187, -0.582748652, 1.25324027e-06, 0.99998033, -0.00628495822, 0.582760096, 0.00510670478, 0.81262815),Alpha)
1357
		LH.C0 = clerp(LH.C0,CFrame.new(-0.496485233, -0.990816236, 0.0216153599, 0.803447127, 0, 0.595376074, -0.00374295469, 0.99998033, 0.00505103637, -0.595364332, -0.00628670584, 0.803431273),Alpha)
1358
		RH.C0 = clerp(RH.C0,CFrame.new(0.498535216, -0.990978837, 0.0154625224, 0.803447127, 0, 0.595376074, -0.00374295469, 0.99998033, 0.00505103637, -0.595364332, -0.00628670584, 0.803431273),Alpha)
1359
		LS.C0 = clerp(LS.C0,CFrame.new(-1.54175317, 0.538998544, -0.350661546, 0.925994039, 0.377538294, -2.53279577e-05, -0.00177948072, 0.00429747393, -0.99998939, -0.377534091, 0.925984085, 0.0046512573),Alpha)
1360
		RS.C0 = clerp(RS.C0,CFrame.new(1.2351619, 0.597906828, 0.279773176, 0.93086189, 0.365330189, -0.00547149777, 0.134925321, -0.329796135, 0.934360683, 0.339545637, -0.870499015, -0.356286913),Alpha)
1361
		NK.C0 = clerp(NK.C0,CFrame.new(2.37277709e-06, 1.49894369, -0.0143988989, 0.803447127, 0, 0.595376074, -0.00374295469, 0.99998033, 0.00505103637, -0.595364332, -0.00628670584, 0.803431273),Alpha)
1362
	until not S.UserInputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton1)
1363
	for i = 0, .7, 0.1 do
1364
		swait()
1365
		local Alpha = .3
1366
		RJ.C0 = clerp(RJ.C0,CFrame.new(-0.248571783, 0.00628784206, -0.324586183, 0.811912656, 0.00367011107, 0.583767474, -1.25562076e-06, 0.99998033, -0.00628506951, -0.583779037, 0.00510219391, 0.811896563),Alpha)
1367
		LH.C0 = clerp(LH.C0,CFrame.new(-0.496491075, -0.990815997, 0.0216309726, 0.82092762, 0, -0.571032405, 0.00358997518, 0.99998033, 0.00516101997, 0.57102108, -0.00628681574, 0.820911348),Alpha)
1368
		RH.C0 = clerp(RH.C0,CFrame.new(0.498523057, -0.990978718, 0.0154775968, 0.82092762, 0, -0.571032405, 0.00358997518, 0.99998033, 0.00516101997, 0.57102108, -0.00628681574, 0.820911348),Alpha)
1369
		LS.C0 = clerp(LS.C0,CFrame.new(-1.23150444, 0.50935328, 0.410490841, 0.925997376, -0.315732628, 0.206983045, -0.00177847152, 0.54460144, 0.838693202, -0.377526015, -0.776995718, 0.503737926),Alpha)
1370
		RS.C0 = clerp(RS.C0,CFrame.new(0.944793224, 0.478973299, -0.436145425, 0.805186868, 0.59043932, 0.055278115, -0.0953396112, 0.220887601, -0.970628381, -0.5853073, 0.776266813, 0.234148055),Alpha)
1371
		NK.C0 = clerp(NK.C0,CFrame.new(-6.4575579e-06, 1.49894357, -0.014398125, 0.82092762, 0, -0.571032405, 0.00358997518, 0.99998033, 0.00516101997, 0.57102108, -0.00628681574, 0.820911348),Alpha)
1372
	end
1373
	GrabbedHead.Parent = workspace
1374
	GrabbedHead.CanCollide = true
1375
	pcall(function() GrabbedHead.Weld:destroy() end)
1376
	GrabbedHead.Velocity = Mouse.Hit.lookVector*250
1377
	local ev;
1378
	local haed = GrabbedHead;
1379
	ev = GrabbedHead.Touched:connect(function(t)
1380
		if(t.Parent and t.Parent ~= Char and not t.Parent:IsDescendantOf(Char) and t.Parent:FindFirstChildOfClass'Humanoid')then
1381
			t.Parent:breakJoints()
1382
		end
1383
		if(ev and t.Parent ~= Char and not t.Parent:IsDescendantOf(Char))then 
1384
			ev:disconnect() 
1385
			ev = nil
1386
			delay(2, function()
1387
				for i = 0, 1, .05 do
1388
					haed.Transparency = i
1389
					swait()
1390
				end
1391
				haed:destroy()
1392
			end)
1393
		end
1394
	end)
1395
	GrabbedHead = nil
1396
	for i = 0, 4, 0.1 do
1397
		swait()
1398
		local Alpha = .3
1399
		RJ.C0 = clerp(RJ.C0,CFrame.new(-0.248571783, 0.00628784206, -0.324586183, 0.811912656, 0.00367011107, 0.583767474, -1.25562076e-06, 0.99998033, -0.00628506951, -0.583779037, 0.00510219391, 0.811896563),Alpha)
1400
		LH.C0 = clerp(LH.C0,CFrame.new(-0.496491075, -0.990815997, 0.0216309726, 0.82092762, 0, -0.571032405, 0.00358997518, 0.99998033, 0.00516101997, 0.57102108, -0.00628681574, 0.820911348),Alpha)
1401
		RH.C0 = clerp(RH.C0,CFrame.new(0.498523057, -0.990978718, 0.0154775968, 0.82092762, 0, -0.571032405, 0.00358997518, 0.99998033, 0.00516101997, 0.57102108, -0.00628681574, 0.820911348),Alpha)
1402
		LS.C0 = clerp(LS.C0,CFrame.new(-1.23150444, 0.50935328, 0.410490841, 0.925997376, -0.315732628, 0.206983045, -0.00177847152, 0.54460144, 0.838693202, -0.377526015, -0.776995718, 0.503737926),Alpha)
1403
		RS.C0 = clerp(RS.C0,CFrame.new(0.944793224, 0.478973299, -0.436145425, 0.805186868, 0.59043932, 0.055278115, -0.0953396112, 0.220887601, -0.970628381, -0.5853073, 0.776266813, 0.234148055),Alpha)
1404
		NK.C0 = clerp(NK.C0,CFrame.new(-6.4575579e-06, 1.49894357, -0.014398125, 0.82092762, 0, -0.571032405, 0.00358997518, 0.99998033, 0.00516101997, 0.57102108, -0.00628681574, 0.820911348),Alpha)
1405
	end
1406
	Attack = false
1407
	NeutralAnims = true
1408
	WalkSpeed = 16
1409
end
1410
1411
1412
--// Wrap it all up \\--
1413
1414
Mouse.KeyDown:connect(function(k)
1415
	if(Attack)then return end
1416
	if(not GrabbedHead)then
1417
		if(k == 'z')then
1418
			ByeBye()
1419
		elseif(k == 'x')then
1420
			Decapitate()
1421
		elseif(k == 'c')then
1422
			TahHart()
1423
		end
1424
	end
1425
end)
1426
1427
Mouse.Button1Down:connect(function()
1428
	if(Attack)then return end
1429
	if(GrabbedHead)then
1430
		YaYEET()
1431
	end	
1432
end)
1433
1434
local deg = 0
1435
while true do
1436
	swait()
1437
	Sine = Sine + Change
1438
	if(not Music)then
1439
		Music = Sound(Torso,MusicID,1,1,true,false,true)
1440
		Music.Name = 'Music'
1441
	end
1442
	Music.SoundId = "rbxassetid://"..MusicID
1443
	Music.Parent = Torso
1444
	Music.Pitch = 1
1445
	Music.Volume = 1
1446
	if(not Muted)then
1447
		Music:Resume()
1448
	else
1449
		Music:Pause()
1450
	end
1451
	
1452
	
1453
	if(God)then
1454
		Hum.MaxHealth = 1e100
1455
		Hum.Health = 1e100
1456
		if(not Char:FindFirstChildOfClass'ForceField')then IN("ForceField",Char).Visible = false end
1457
		Hum.Name = M.RNG()*100
1458
	end
1459
	
1460
	local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * (4*PlayerSize)), Char)
1461
	
1462
	local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
1463
	local State = (Hum.PlatformStand and 'Paralyzed' or Hum.Sit and 'Sit' or not hitfloor and Root.Velocity.y < -1 and "Fall" or not hitfloor and Root.Velocity.y > 1 and "Jump" or hitfloor and Walking and (Hum.WalkSpeed < 24 and "Walk" or "Run") or hitfloor and "Idle")
1464
	if(not Effects or not Effects.Parent)then
1465
		Effects = IN("Model",Char)
1466
		Effects.Name = "Effects"
1467
	end																																																																																																				
1468
	if(State == 'Run')then
1469
		local wsVal = 7 / (Hum.WalkSpeed/16)
1470
		local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
1471
		Change = 1
1472
		RH.C1 = RH.C1:lerp(CF.N(0,1-.1*M.C(Sine/wsVal),0+.2*M.C(Sine/wsVal))*CF.A(M.R(8-0*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/1.5,0,0),.2)
1473
		LH.C1 = LH.C1:lerp(CF.N(0,1+.1*M.C(Sine/wsVal),0-.2*M.C(Sine/wsVal))*CF.A(M.R(8+0*M.C(Sine/wsVal))+M.S(Sine/wsVal)/1.5,0,0),.2)
1474
	elseif(State == 'Walk')then
1475
		local wsVal = 7 / (Hum.WalkSpeed/16)
1476
		local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
1477
		Change = 1
1478
		RH.C1 = RH.C1:lerp(CF.N(0,1-.5*M.C(Sine/wsVal)/2,0+.5*M.C(Sine/wsVal)/2)*CF.A(M.R(15-35*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/2.5,0,0),Alpha)
1479
		LH.C1 = LH.C1:lerp(CF.N(0,1+.5*M.C(Sine/wsVal)/2,0-.5*M.C(Sine/wsVal)/2)*CF.A(M.R(15+35*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2.5,0,0),Alpha)
1480
	else
1481
		RH.C1 = RH.C1:lerp(CF.N(0,1,0),.2)
1482
		LH.C1 = LH.C1:lerp(CF.N(0,1,0),.2)
1483
	end
1484
	Hum.WalkSpeed = WalkSpeed
1485
	if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
1486
	if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
1487
	local face = Head:FindFirstChild'face'
1488
	if(not face)then
1489
		NewInstance("Decal",Head,{Name='face',Face=Enum.NormalId.Front,Texture="rbxassetid://404306534"})
1490
	else
1491
		face.Texture = "rbxassetid://404306534"
1492
	end
1493
	
1494
	RArm.Color 		= C3.N(0.2,0.2,0.2)
1495
	LArm.Color 		= C3.N(0.2,0.2,0.2)
1496
	RLeg.Color 		= C3.N(0.2,0.2,0.2)
1497
	LLeg.Color 		= C3.N(0.2,0.2,0.2)
1498
	Torso.Color 	= C3.N(0.2,0.2,0.2)
1499
	Head.Color 		= C3.N(0.2,0.2,0.2)
1500
	
1501
	deg = deg + 1
1502
	HW.C0 = HW.C0:lerp(CF.N(0,1.5,0)*CF.A(0,M.R(deg),0),.2)
1503
	if(NeutralAnims)then	
1504
		if(State == 'Idle')then
1505
			local Alpha = .1
1506
			Change = 1
1507
			RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.1+.05*M.C(Sine/18),0),Alpha)
1508
			NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(-10-2.5*M.S(Sine/18)),M.R(20*M.C(Sine/18)),M.R(10)),Alpha)
1509
			LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0+.1*M.S(Sine/18),0)*CF.A(0,M.R(5+5*M.C(Sine/18)),M.R(-10-5*M.C(Sine/18))),Alpha)
1510
			RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0+.1*M.S(Sine/18),0)*CF.A(0,M.R(-5-5*M.C(Sine/18)),M.R(10+5*M.C(Sine/18))),Alpha)
1511
			LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.05*M.C(Sine/18),0)*CF.A(0,0,M.R(-10)),Alpha)
1512
			RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.05*M.C(Sine/18),-.2),Alpha)
1513
			-- idle
1514
		elseif(State == 'Run')then
1515
			local wsVal = 7 / (Hum.WalkSpeed/16)
1516
			local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
1517
			local Alpha2 = math.min(.15 * (Hum.WalkSpeed/16),1)
1518
			RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-15+2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha2)
1519
			NK.C0 = NK.C0:lerp(NKC0,Alpha)
1520
			LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+45*M.S(Sine/wsVal)),0,M.R(-5)),Alpha)
1521
			RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-45*M.S(Sine/wsVal)),0,M.R(5)),Alpha)
1522
			LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
1523
			RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
1524
		elseif(State == 'Walk')then
1525
			local wsVal = 7 / (Hum.WalkSpeed/16)
1526
			local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
1527
			local Alpha2 = math.min(.15 * (Hum.WalkSpeed/16),1)
1528
			RJ.C0 = RJ.C0:lerp(CF.N(0,-.175+.1*M.C(Sine/(wsVal/2)+-M.S(Sine/(wsVal/2))/7),0)*CF.A(M.R(-9-2.5*M.C(Sine/(wsVal/2))),M.R(10*M.C(Sine/wsVal)),Root.RotVelocity.y/75),Alpha2)
1529
			NK.C0 = NK.C0:lerp(NKC0*CF.A(0,-Head.RotVelocity.y/75,0),Alpha)
1530
			LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,-.27*M.C(Sine/wsVal))*CF.A(M.R(45*M.C(Sine/wsVal)),0,M.R(-5)+LArm.RotVelocity.y/75),Alpha)
1531
			RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,.27*M.C(Sine/wsVal))*CF.A(M.R(-45*M.C(Sine/wsVal)),0,M.R(5)-RArm.RotVelocity.y/75),Alpha)
1532
			LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,0,0),Alpha)
1533
			RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,0,0),Alpha)
1534
		elseif(State == 'Jump')then
1535
			local Alpha = .1
1536
			local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
1537
			LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)),Alpha)
1538
			RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)),Alpha)
1539
			RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
1540
			NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
1541
			LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
1542
			RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
1543
		elseif(State == 'Fall')then
1544
			local Alpha = .1
1545
			local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
1546
			LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
1547
			RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
1548
			RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
1549
			NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
1550
			LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
1551
			RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
1552
		elseif(State == 'Paralyzed')then
1553
			-- paralyzed
1554
		elseif(State == 'Sit')then
1555
			-- sit
1556
		end
1557
	end
1558
	
1559
end