View difference between Paste ID: 6bGrWPLf and 09SB0yz9
SHOW: | | - or go back to the newest paste.
1
--void Script bbuilder fe script converter V2
2
3
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
4
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
5
local RealPlayer = Player
6
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
7
8
-- Created by Nebula_Zorua --
9
-- Edited by SHYIME --
10
-- Bai Bai (Bye bye Remake) --
11
-- Bye-bye baby blue.. --
12
-- I wish you could see the wicked truth.. --
13
-- Caught up in a rush, it's killing you.. --
14
15
-- Discord: Nebula the Zorua#6969
16
-- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA
17
18
wait(1/60)
19
20
--// Shortcut Variables \\--
21
local CF2 = CFrame.new
22
local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
23
local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
24
local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
25
local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
26
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}
27
local R3 = {N=Region3.new}
28
local De = S.Debris
29
local WS = workspace
30
local Lght = S.Lighting
31
local RepS = S.ReplicatedStorage
32
local IN = Instance.new
33
local Plrs = S.Players
34
35
C33 = Color3.new
36
Lght.TimeOfDay = 00
37
38
--// Initializing \\--
39
local Plr = Plrs.LocalPlayer
40
local Char = Plr.Character
41
local Hum = Char:FindFirstChildOfClass'Humanoid'
42
local RArm = Char["Right Arm"]
43
local LArm = Char["Left Arm"]
44
local RLeg = Char["Right Leg"]
45
local LLeg = Char["Left Leg"]	
46
local Root = Char:FindFirstChild'HumanoidRootPart'
47
local Torso = Char.Torso
48
local Head = Char.Head
49
local NeutralAnims = true
50
local Attack = false
51
local Debounces = {Debounces={}}
52
local Mouse = Plr:GetMouse()
53
local Hit = {}
54
local Sine = 0
55
local Change = 1
56
local GrabbedHead;
57
58
local Effects = IN("Folder",Char)
59
Effects.Name = "Effects"
60
61
62
--// Debounce System \\--
63
64
65
function Debounces:New(name,cooldown)
66
	local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
67
	setmetatable(aaaaa,{__index = Debounces})
68
	Debounces.Debounces[name] = aaaaa
69
	return aaaaa
70
end
71
72
function Debounces:Use(overrideUsable)
73
	assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
74
	if(self.Usable or overrideUsable)then
75
		self.Usable = false
76
		self.CoolingDown = true
77
		local LastUse = time()
78
		self.LastUse = LastUse
79
		delay(self.Cooldown or 2,function()
80
			if(self.LastUse == LastUse)then
81
				self.CoolingDown = false
82
				self.Usable = true
83
			end
84
		end)
85
	end
86
end
87
88
function Debounces:Get(name)
89
	assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
90
	for i,v in next, Debounces.Debounces do
91
		if(i == name)then
92
			return v;
93
		end
94
	end
95
end
96
97
function Debounces:GetProgressPercentage()
98
	assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
99
	if(self.CoolingDown and not self.Usable)then
100
		return math.max(
101
			math.floor(
102
				(
103
					(time()-self.LastUse)/self.Cooldown or 2
104
				)*100
105
			)
106
		)
107
	else
108
		return 100
109
	end
110
end
111
--//==============================\\--
112
--||        BILLBOARD             
113
--//==============================\\
114
local Player = game.Players.localPlayer
115
function RemoveOutlines(part)
116
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
117
end
118
local Create = LoadLibrary("RbxUtility").Create
119
120
CFuncs = {	
121
	["Part"] = {
122
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
123
			local Part = Create("Part"){
124
				Parent = Parent,
125
				Reflectance = Reflectance,
126
				Transparency = Transparency,
127
				CanCollide = false,
128
				Locked = true,
129
				BrickColor = BrickColor.new(tostring(BColor)),
130
				Name = Name,
131
				Size = Size,
132
				Material = Material,
133
			}
134
			RemoveOutlines(Part)
135
			return Part
136
		end;
137
	};
138
	["Sound"] = {
139
		Create = function(id, par, vol, pit) 
140
			coroutine.resume(coroutine.create(function()
141
				local S = Create("Sound"){
142
					Volume = vol,
143
					Pitch = pit or 1,
144
					SoundId = id,
145
					Parent = par or workspace,
146
				}
147
				wait() 
148
				S:play() 
149
				game:GetService("Debris"):AddItem(S, 6)
150
			end))
151
		end;
152
	};
153
}
154
155
local toggleTag = true
156
local txt = Instance.new("BillboardGui", Head)
157
txt.Adornee = nil
158
txt.Name = "NameDetect"
159
txt.Size = UDim2.new(4, 0, 1.2, 0)
160
txt.StudsOffset = Vector3.new(-8, 8/1.5, 0)
161
local text = Instance.new("TextLabel", txt)
162
text.Size = UDim2.new(10/2, 0, 7/2, 0)
163
text.FontSize = "Size8"
164
text.TextScaled = true
165
text.TextTransparency = 0
166
text.BackgroundTransparency = 1 
167
text.TextTransparency = 0
168
text.TextStrokeTransparency = 0
169
text.Font = "Garamond"
170
text.TextStrokeColor3 = Color3.new(0,0,1)
171
text.TextColor3 = Color3.new(0,0,0)
172
text.Text = "Lost Bye Bye"
173
174
175
function RecolorTextAndRename(name,col1,col2)
176
text.TextStrokeColor3 = col2
177
text.TextColor3 = col1
178
text.Text = name
179
end
180
RecolorTextAndRename("Lost Bye Bye",Color3.new(0,0,0),Color3.new(0,0,1))
181
182
function chatfunc(text)
183
local chat = coroutine.wrap(function()
184
if Char:FindFirstChild("TalkingBillBoard")~= nil then
185
Char:FindFirstChild("TalkingBillBoard"):destroy()
186
end
187
local naeeym2 = Instance.new("BillboardGui",Char)
188
naeeym2.Size = UDim2.new(0,100,0,40)
189
naeeym2.StudsOffset = Vector3.new(0,3,0)
190
naeeym2.Adornee = Char.Head
191
naeeym2.Name = "TalkingBillBoard"
192
local tecks2 = Instance.new("TextLabel",naeeym2)
193
tecks2.BackgroundTransparency = 1
194
tecks2.BorderSizePixel = 0
195
tecks2.Text = ""
196
tecks2.Font = "Antique"
197
tecks2.TextSize = 30
198
tecks2.TextStrokeTransparency = 0
199
tecks2.TextColor3 = Color3.new(.6,0,0)
200
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
201
tecks2.Size = UDim2.new(1,0,0.5,0)
202
local tecks3 = Instance.new("TextLabel",naeeym2)
203
tecks3.BackgroundTransparency = 1
204
tecks3.BorderSizePixel = 0
205
tecks3.Text = ""
206
tecks3.Font = "Antique"
207
tecks3.TextSize = 30
208
tecks3.TextStrokeTransparency = 0
209
tecks3.TextColor3 = BrickColor.new("Hot white").Color
210
tecks3.TextStrokeColor3 = Color3.new(0,0,0)
211
tecks3.Size = UDim2.new(1,0,0.5,0)
212
spawn(function()
213
	while wait() do
214
		tecks3.TextColor3 = BrickColor.random().Color
215
		tecks2.TextColor3 = BrickColor.random().Color
216
	end
217
end)
218
for i = 1,string.len(text),1 do
219
CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=178104975", Char, 1, 1)
220
tecks2.Text = string.sub(text,1,i)
221
tecks3.Text = string.sub(text,1,i)
222
wait(0.01)
223
end
224
wait(2)
225
for i = 1, 50 do
226
Swait()
227
tecks2.Position = tecks2.Position - UDim2.new(math.random(-1,1),math.random(-5,5),.05,math.random(-5,5))
228
tecks2.Rotation = tecks2.Rotation - .8
229
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
230
tecks2.TextTransparency = tecks2.TextTransparency + .04
231
tecks3.Position = tecks2.Position - UDim2.new(math.random(-1,1),math.random(-5,5),.05,math.random(-5,5))
232
tecks3.Rotation = tecks2.Rotation + .8
233
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
234
tecks3.TextTransparency = tecks2.TextTransparency + .04
235
end
236
naeeym2:Destroy()
237
end)
238
chat()
239
end
240
function onChatted(msg)
241
chatfunc(msg)
242
end
243
Player.Chatted:connect(onChatted)
244
245
spawn(function()
246
chatfunc("Bye Bye Remake Created By Nebula_Zorua")
247
wait(3)
248
chatfunc("Lost Bye Bye Remake Edited By SHYIME")
249
wait(3)
250
chatfunc("Bye-bye baby blue..")
251
wait(3)
252
chatfunc("I wish you could see the wicked truth..")
253
end)
254
255
shirt = Instance.new("Shirt", Char)
256
shirt = "Shirt"
257
pants = Instance.new("Pants", Char)
258
pants = "Pants"
259
Char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=969177997"
260
Char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=893974431"
261
--// Instance Creation Functions \\--
262
263
function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
264
	local Sound = IN("Sound")
265
	Sound.SoundId = "rbxassetid://".. tostring(id or 0)
266
	Sound.Pitch = pitch or 1
267
	Sound.Volume = volume or 1
268
	Sound.Looped = looped or false
269
	if(autoPlay)then
270
		coroutine.wrap(function()
271
			repeat wait() until Sound.IsLoaded
272
			Sound.Playing = autoPlay or false
273
		end)()
274
	end
275
	if(not looped and effect)then
276
		Sound.Stopped:connect(function()
277
			Sound.Volume = 0
278
			Sound:destroy()
279
		end)
280
	elseif(effect)then
281
		warn("Sound can't be looped and a sound effect!")
282
	end
283
	Sound.Parent =parent or Torso
284
	return Sound
285
end
286
function Part(parent,color,material,size,cframe,anchored,cancollide)
287
	local part = IN("Part")
288
	part.Parent = parent or Char
289
	part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
290
	part.Material = material or Enum.Material.SmoothPlastic
291
	part.TopSurface,part.BottomSurface=10,10
292
	part.Size = size or V3.N(1,1,1)
293
	part.CFrame = cframe or CF.N(0,0,0)
294
	part.CanCollide = cancollide or false
295
	part.Anchored = anchored or false
296
	return part
297
end
298
299
function Weld(part0,part1,c0,c1)
300
	local weld = IN("Weld")
301
	weld.Parent = part0
302
	weld.Part0 = part0
303
	weld.Part1 = part1
304
	weld.C0 = c0 or CF.N()
305
	weld.C1 = c1 or CF.N()
306
	return weld
307
end
308
309
function Mesh(parent,meshtype,meshid,textid,scale,offset)
310
	local part = IN("SpecialMesh")
311
	part.MeshId = meshid or ""
312
	part.TextureId = textid or ""
313
	part.Scale = scale or V3.N(1,1,1)
314
	part.Offset = offset or V3.N(0,0,0)
315
	part.MeshType = meshtype or Enum.MeshType.Sphere
316
	part.Parent = parent
317
	return part
318
end
319
320
NewInstance = function(instance,parent,properties)
321
	local inst = Instance.new(instance)
322
	inst.Parent = parent
323
	if(properties)then
324
		for i,v in next, properties do
325
			pcall(function() inst[i] = v end)
326
		end
327
	end
328
	return inst;
329
end
330
331
function Clone(instance,parent,properties)
332
	local inst = instance:Clone()
333
	inst.Parent = parent
334
	if(properties)then
335
		for i,v in next, properties do
336
			pcall(function() inst[i] = v end)
337
		end
338
	end
339
	return inst;
340
end
341
342
function SoundPart(id,pitch,volume,looped,effect,autoPlay,cf)
343
	local soundPart = NewInstance("Part",Effects,{Transparency=1,CFrame=cf or Torso.CFrame,Anchored=true,CanCollide=false,Size=V3.N()})
344
	local Sound = IN("Sound")
345
	Sound.SoundId = "rbxassetid://".. tostring(id or 0)
346
	Sound.Pitch = pitch or 1
347
	Sound.Volume = volume or 1
348
	Sound.Looped = looped or false
349
	if(autoPlay)then
350
		coroutine.wrap(function()
351
			repeat wait() until Sound.IsLoaded
352
			Sound.Playing = autoPlay or false
353
		end)()
354
	end
355
	if(not looped and effect)then
356
		Sound.Stopped:connect(function()
357
			Sound.Volume = 0
358
			soundPart:destroy()
359
		end)
360
	elseif(effect)then
361
		warn("Sound can't be looped and a sound effect!")
362
	end
363
	Sound.Parent = soundPart
364
	return Sound
365
end
366
367
368
--// Extended ROBLOX tables \\--
369
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})
370
--// Require stuff \\--
371
function CamShake(who,times,intense,origin) 
372
	coroutine.wrap(function()
373
		if(script:FindFirstChild'CamShake')then
374
			local cam = script.CamShake:Clone()
375
			cam:WaitForChild'intensity'.Value = intense
376
			cam:WaitForChild'times'.Value = times
377
			
378
	 		if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
379
			cam.Parent = who
380
			wait()
381
			cam.Disabled = false
382
		elseif(who == Plr or who == Char or who:IsDescendantOf(Plr))then
383
			local intensity = intense
384
			local cam = workspace.CurrentCamera
385
			for i = 1, times do
386
				local camDistFromOrigin
387
				if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then
388
					camDistFromOrigin = math.floor( (cam.CFrame.p-origin.Position).magnitude )/25
389
				elseif(typeof(origin) == 'Vector3')then
390
					camDistFromOrigin = math.floor( (cam.CFrame.p-origin).magnitude )/25
391
				end
392
				if(camDistFromOrigin)then
393
					intensity = math.min(intense, math.floor(intense/camDistFromOrigin))
394
				end
395
				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)
396
				swait()
397
			end
398
		end
399
	end)()
400
end
401
402
403
function CamShakeAll(times,intense,origin)
404
	for _,v in next, Plrs:players() do
405
		CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin)
406
	end
407
end
408
409
function ServerScript(code)
410
	if(script:FindFirstChild'Loadstring')then
411
		local load = script.Loadstring:Clone()
412
		load:WaitForChild'Sauce'.Value = code
413
		load.Disabled = false
414
		load.Parent = workspace
415
	elseif(NS and typeof(NS) == 'function')then
416
		NS(code,workspace)
417
	else
418
		warn("no serverscripts lol")
419
	end	
420
end
421
422
function LocalOnPlayer(who,code)
423
	ServerScript([[
424
		wait()
425
		script.Parent=nil
426
		if(not _G.Http)then _G.Http = game:service'HttpService' end
427
		
428
		local Http = _G.Http or game:service'HttpService'
429
		
430
		local source = ]].."[["..code.."]]"..[[
431
		local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php"
432
		local asd = Http:PostAsync(link,source)
433
		repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID
434
		local ID = Http:JSONDecode(asd).Result.Require_ID
435
		local vs = require(ID).VORTH_SCRIPT
436
		vs.Parent = game:service'Players'.]]..who.Name..[[.Character
437
	]])
438
end
439
440
441
442
--// Customization \\--
443
444
local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
445
local Remove_Hats = false
446
local Remove_Clothing = false
447
local PlayerSize = 1
448
local DamageColor = BrickColor.new'Really red'
449
local MusicID = 947588612
450
local God = true
451
local Muted = false
452
453
local WalkSpeed = 16
454
455
--// Weapon and GUI creation, and Character Customization \\--
456
457
local Halo = IN("Model",Char)
458
Halo.Name = "Halo"
459
local HaloHandle = NewInstance("Part",Halo,{Size=V3.N(.05,.05,.05),Transparency=1,CanCollide=false,Anchored=false,Locked=true,})
460
461
pcall(game.Destroy,Char:FindFirstChild'ReaperShadowHead')
462
463
for i = 1, 17.5 do
464
	local head = Part(Char,C3.N(0,0,0),Enum.Material.Fabric,V3.N(1.01,.5,1.01),CF.N(),false,false)
465
	head.Transparency = 0+(i-1)/17.6
466
	Mesh(head,Enum.MeshType.Head,"","",V3.N(1.25,1.25,1.25))
467
	Weld(Head,head,CF.N(0,.35-(i-1)/37.5,0))
468
end
469
470
for i = 1,320 do
471
	local part = NewInstance("Part",Halo,{BrickColor=BrickColor.new"Really blue",Material=Enum.Material.Neon,Size=V3.N(0.1,0.1,0.1),Anchored=false,CanCollide=false,Locked=true})
472
	local weld = NewInstance("Weld",part,{Part0=HaloHandle,Part1=part,C0=CF.A(0,M.R(i),0)*CF.N(0,0,-.6)})
473
end
474
475
476
IT = Instance.new
477
VT = Vector3.new
478
RAD = math.rad
479
UD2 = UDim2.new
480
BRICKC = BrickColor.new
481
ANGLES = CFrame.Angles
482
CF1 = CFrame.new
483
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
484
    local NEWPART = IT("Part")
485
    NEWPART.formFactor = FORMFACTOR
486
    NEWPART.Reflectance = REFLECTANCE
487
    NEWPART.Transparency = TRANSPARENCY
488
    NEWPART.CanCollide = false
489
    NEWPART.Locked = true
490
    NEWPART.Anchored = true
491
    if ANCHOR == false then
492
        NEWPART.Anchored = false
493
    end
494
    NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
495
    NEWPART.Name = NAME
496
    NEWPART.Size = SIZE
497
    NEWPART.Position = Torso.Position
498
    NEWPART.Material = MATERIAL
499
    NEWPART:BreakJoints()
500
    NEWPART.Parent = PARENT
501
    return NEWPART
502
end
503
504
function MakeForm(PART,TYPE)
505
    if TYPE == "Cyl" then
506
        local MSH = IT("CylinderMesh",PART)
507
    elseif TYPE == "Ball" then
508
        local MSH = IT("SpecialMesh",PART)
509
        MSH.MeshType = "Sphere"
510
    elseif TYPE == "Wedge" then
511
        local MSH = IT("SpecialMesh",PART)
512
        MSH.MeshType = "Wedge"
513
    end
514
end
515
516
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
517
    local NEWWELD = IT(TYPE)
518
    NEWWELD.Part0 = PART0
519
    NEWWELD.Part1 = PART1
520
    NEWWELD.C0 = C0
521
    NEWWELD.C1 = C1
522
    NEWWELD.Parent = PARENT
523
    return NEWWELD
524
end
525
526
local Eye = CreatePart(3, Char, "Neon", 0, 0, "Really blue", "Eye", VT(0.6,0.1,1)/2,false)
527
MakeForm(Eye,"Ball")
528
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF1(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF1(0, 0, 0.4))
529
local Eye = CreatePart(3, Char, "Neon", 0, 0, "Really blue", "Eye", VT(0.6,0.1,1)/2,false)
530
MakeForm(Eye,"Ball")
531
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF1(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF1(0, 0, 0.4))
532
local Eye = CreatePart(3, Char, "Neon", 0, 0, "Really blue", "Eye", VT(0.1,1,1)/2,false)
533
MakeForm(Eye,"Ball")
534
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF1(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF1(0, 0, 0.4))
535
local Eye = CreatePart(3, Char, "Neon", 0, 0, "Really blue", "Eye", VT(0.1,1,1)/2,false)
536
MakeForm(Eye,"Ball")
537
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF1(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF1(0, 0, 0.4))
538
539
if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
540
if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
541
542
543
for side = 1,2 do
544
	local LastPart = Head;
545
	
546
	for i = 1,34 do
547
		local mult = (1-(i/38))
548
		if(LastPart == Head)then
549
			local Horn = Part(Char,BrickColor.new'Really blue',Enum.Material.SmoothPlastic,V3.N(.25*mult,.15,.25*mult),Head.CFrame,false,false)
550
			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))
551
			LastPart = Horn
552
		else
553
			local Horn = Part(Char,BrickColor.new'Really blue',Enum.Material.SmoothPlastic,V3.N(.25*mult,.15,.25*mult),Head.CFrame,false,false)
554
			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))
555
			LastPart = Horn	
556
		end
557
	end
558
end
559
560
local Music = Sound(Char,MusicID,1,3,true,false,true)
561
Music.Name = 'Music'
562
563
--// Stop animations \\--
564
for _,v in next, Hum:GetPlayingAnimationTracks() do
565
	v:Stop();
566
end
567
568
pcall(game.Destroy,Char:FindFirstChild'Animate')
569
pcall(game.Destroy,Hum:FindFirstChild'Animator')
570
571
--// Joints \\--
572
573
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)})
574
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)})
575
local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
576
local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
577
local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
578
local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
579
local HW = NewInstance('Motor',Char,{Part0=Head,Part1=HaloHandle,C0=CF.N(0,.5,0)})
580
581
local LSC0 = LS.C0
582
local RSC0 = RS.C0
583
local NKC0 = NK.C0
584
local LHC0 = LH.C0
585
local RHC0 = RH.C0
586
local RJC0 = RJ.C0
587
588
--// Artificial HB \\--
589
590
local ArtificialHB = IN("BindableEvent", script)
591
ArtificialHB.Name = "Heartbeat"
592
593
script:WaitForChild("Heartbeat")
594
595
local tf = 0
596
local allowframeloss = false
597
local tossremainder = false
598
local lastframe = tick()
599
local frame = 1/Frame_Speed
600
ArtificialHB:Fire()
601
602
game:GetService("RunService").Heartbeat:connect(function(s, p)
603
	tf = tf + s
604
	if tf >= frame then
605
		if allowframeloss then
606
			script.Heartbeat:Fire()
607
			lastframe = tick()
608
		else
609
			for i = 1, math.floor(tf / frame) do
610
				ArtificialHB:Fire()
611
			end
612
			lastframe = tick()
613
		end
614
		if tossremainder then
615
			tf = 0
616
		else
617
			tf = tf - frame * math.floor(tf / frame)
618
		end
619
	end
620
end)
621
622
function swait(num)
623
	if num == 0 or num == nil then
624
		ArtificialHB.Event:wait()
625
	else
626
		for i = 0, num do
627
			ArtificialHB.Event:wait()
628
		end
629
	end
630
end
631
632
633
--// Effect Function(s) \\--
634
635
function Bezier(startpos, pos2, pos3, endpos, t)
636
	local A = startpos:lerp(pos2, t)
637
	local B  = pos2:lerp(pos3, t)
638
	local C = pos3:lerp(endpos, t)
639
	local lerp1 = A:lerp(B, t)
640
	local lerp2 = B:lerp(C, t)
641
	local cubic = lerp1:lerp(lerp2, t)
642
	return cubic
643
end
644
645
function SphereFX(duration,color,scale,pos,endScale,increment)
646
	return Effect{
647
		Effect='ResizeAndFade',
648
		Color=color,
649
		Size=scale,
650
		Mesh={MeshType=Enum.MeshType.Sphere},
651
		CFrame=pos,
652
		FXSettings={
653
			EndSize=endScale,
654
			EndIsIncrement=increment
655
		}
656
	}
657
end
658
659
function BlastFX(duration,color,scale,pos,endScale,increment)
660
	return Effect{
661
		Effect='ResizeAndFade',
662
		Color=color,
663
		Size=scale,
664
		Mesh={MeshType=Enum.MeshType.FileMesh,MeshId='rbxassetid://20329976'},
665
		CFrame=pos,
666
		FXSettings={
667
			EndSize=endScale,
668
			EndIsIncrement=increment
669
		}
670
	}
671
end
672
673
function BlockFX(duration,color,scale,pos,endScale,increment)
674
	return Effect{
675
		Effect='ResizeAndFade',
676
		Color=color,
677
		Size=scale,
678
		CFrame=pos,
679
		FXSettings={
680
			EndSize=endScale,
681
			EndIsIncrement=increment
682
		}
683
	}
684
end
685
686
function ShootBullet(data)
687
	--ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
688
	local Size = data.Size or V3.N(2,2,2)
689
	local Color = data.Color or BrickColor.new'Crimson'
690
	local StudsPerFrame = data.Speed or 10
691
	local Shape = data.Shape or 'Ball'
692
	local Frames = data.Frames or 160
693
	local Pos = data.Origin or Torso.CFrame
694
	local Direction = data.Direction or Mouse.Hit
695
	local Material = data.Material or Enum.Material.Neon
696
	local OnHit = data.HitFunction or function(hit,pos)
697
		Effect{
698
			Effect='ResizeAndFade',
699
			Color=Color,
700
			Size=V3.N(10,10,10),
701
			Mesh={MeshType=Enum.MeshType.Sphere},
702
			CFrame=CF.N(pos),
703
			FXSettings={
704
				EndSize=V3.N(.05,.05,.05),
705
				EndIsIncrement=true
706
			}
707
		}
708
		for i = 1, 5 do
709
			local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
710
			Effect{
711
				Effect='Fade',
712
				Frames=65,
713
				Size=V3.N(5,5,10),
714
				CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-10).p,pos),
715
				Mesh = {MeshType=Enum.MeshType.Sphere},
716
				Material=Enum.Material.Neon,
717
				Color=Color,
718
				MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p,
719
			}	
720
		end
721
	end	
722
	
723
	local Bullet = Part(Effects,Color,Material,Size,Pos,true,false)
724
	local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
725
	if(Shape == 'Ball')then
726
		BMesh.MeshType = Enum.MeshType.Sphere
727
	elseif(Shape == 'Head')then
728
		BMesh.MeshType = Enum.MeshType.Head
729
	elseif(Shape == 'Cylinder')then
730
		BMesh.MeshType = Enum.MeshType.Cylinder
731
	end
732
	
733
	coroutine.wrap(function()
734
		for i = 1, Frames+1 do
735
			local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame).p,StudsPerFrame)
736
			if(hit)then
737
				OnHit(hit,pos,norm,dist)
738
				break;
739
			else
740
				Bullet.CFrame = CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame)
741
			end
742
			swait()
743
		end
744
		Bullet:destroy()
745
	end)()
746
	
747
end
748
749
750
function Zap(data)
751
	local sCF,eCF = data.StartCFrame,data.EndCFrame
752
	assert(sCF,"You need a start CFrame!")
753
	assert(eCF,"You need an end CFrame!")
754
	local parts = data.PartCount or 15
755
	local zapRot = data.ZapRotation or {-5,5}
756
	local startThick = data.StartSize or 3;
757
	local endThick = data.EndSize or startThick/2;
758
	local color = data.Color or BrickColor.new'Electric blue'
759
	local delay = data.Delay or 35
760
	local delayInc = data.DelayInc or 0
761
	local lastLightning;
762
	local MagZ = (sCF.p - eCF.p).magnitude
763
	local thick = startThick
764
	local inc = (startThick/parts)-(endThick/parts)
765
	
766
	for i = 1, parts do
767
		local pos = sCF.p
768
		if(lastLightning)then
769
			pos = lastLightning.CFrame*CF.N(0,0,MagZ/parts/2).p
770
		end
771
		delay = delay + delayInc
772
		local zapPart = Part(Effects,color,Enum.Material.Neon,V3.N(thick,thick,MagZ/parts),CF.N(pos),true,false)
773
		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)))
774
		if(parts == i)then
775
			local MagZ = (pos-eCF.p).magnitude
776
			zapPart.Size = V3.N(endThick,endThick,MagZ)
777
			zapPart.CFrame = CF.N(pos, eCF.p)*CF.N(0,0,-MagZ/2)
778
			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)}}
779
		else
780
			zapPart.CFrame = CF.N(pos,posie)*CF.N(0,0,MagZ/parts/2)
781
		end
782
		
783
		lastLightning = zapPart
784
		Effect{Effect='Fade',Manual=zapPart,Frames=delay}
785
		
786
		thick=thick-inc
787
		
788
	end
789
end
790
791
function Zap2(data)
792
	local Color = data.Color or BrickColor.new'Electric blue'
793
	local StartPos = data.Start or Torso.Position
794
	local EndPos = data.End or Mouse.Hit.p
795
	local SegLength = data.SegL or 2
796
	local Thicc = data.Thickness or 0.5
797
	local Fades = data.Fade or 45
798
	local Parent = data.Parent or Effects
799
	local MaxD = data.MaxDist or 200
800
	local Branch = data.Branches or false
801
	local Material = data.Material or Enum.Material.Neon
802
	local Raycasts = data.Raycasts or false
803
	local Offset = data.Offset or {0,360}
804
	local AddMesh = (data.Mesh == nil and true or data.Mesh)
805
	if((StartPos-EndPos).magnitude > MaxD)then
806
		EndPos = CF.N(StartPos,EndPos)*CF.N(0,0,-MaxD).p
807
	end
808
	local hit,pos,norm,dist=nil,EndPos,nil,(StartPos-EndPos).magnitude
809
	if(Raycasts)then
810
		hit,pos,norm,dist = CastRay(StartPos,EndPos,MaxD)	
811
	end
812
	local segments = dist/SegLength
813
	local model = IN("Model",Parent)
814
	model.Name = 'Lightning'
815
	local Last;
816
	for i = 1, segments do
817
		local size = (segments-i)/25
818
		local prt = Part(model,Color,Material,V3.N(Thicc+size,SegLength,Thicc+size),CF.N(),true,false)
819
		if(AddMesh)then IN("CylinderMesh",prt) end
820
		if(Last and math.floor(segments) == i)then
821
			local MagZ = (Last.CFrame*CF.N(0,-SegLength/2,0).p-EndPos).magnitude
822
			prt.Size = V3.N(Thicc+size,MagZ,Thicc+size)
823
			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)	
824
		elseif(not Last)then
825
			prt.CFrame = CF.N(StartPos,pos)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)	
826
		else
827
			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)
828
		end
829
		Last = prt
830
		if(Branch)then
831
			local choice = M.RNG(1,7+((segments-i)*2))
832
			if(choice == 1)then
833
				local LastB;
834
				for i2 = 1,M.RNG(2,5) do
835
					local size2 = ((segments-i)/35)/i2
836
					local prt = Part(model,Color,Material,V3.N(Thicc+size2,SegLength,Thicc+size2),CF.N(),true,false)
837
					if(AddMesh)then IN("CylinderMesh",prt) end
838
					if(not LastB)then
839
						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)
840
					else
841
						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)
842
					end
843
					LastB = prt
844
				end
845
			end
846
		end
847
	end
848
	if(Fades > 0)then
849
		coroutine.wrap(function()
850
			for i = 1, Fades do
851
				for _,v in next, model:children() do
852
					if(v:IsA'BasePart')then
853
						v.Transparency = (i/Fades)
854
					end
855
				end
856
				swait()
857
			end
858
			model:destroy()
859
		end)()
860
	else
861
		S.Debris:AddItem(model,.01)
862
	end
863
	return {End=(Last and Last.CFrame*CF.N(0,-Last.Size.Y/2,0).p),Last=Last,Model=model}
864
end
865
866
function Tween(obj,props,time,easing,direction,repeats,backwards)
867
	local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
868
	local tween = S.TweenService:Create(obj, info, props)
869
	
870
	tween:Play()
871
end
872
873
function Effect(data)
874
	local FX = data.Effect or 'ResizeAndFade'
875
	local Parent = data.Parent or Effects
876
	local Color = data.Color or C3.N(0,0,0)
877
	local Size = data.Size or V3.N(1,1,1)
878
	local MoveDir = data.MoveDirection or nil
879
	local MeshData = data.Mesh or nil
880
	local SndData = data.Sound or nil
881
	local Frames = data.Frames or 45
882
	local Manual = data.Manual or nil
883
	local Material = data.Material or nil
884
	local CFra = data.CFrame or Torso.CFrame
885
	local Settings = data.FXSettings or {}
886
	local Shape = data.Shape or Enum.PartType.Block
887
	local Snd,Prt,Msh;
888
	local RotInc = data.RotInc or {0,0,0}
889
	if(typeof(RotInc) == 'number')then
890
		RotInc = {RotInc,RotInc,RotInc}
891
	end
892
	coroutine.wrap(function()
893
		if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then
894
			Prt = Manual
895
		else
896
			Prt = Part(Parent,Color,Material,Size,CFra,true,false)
897
			Prt.Shape = Shape
898
		end
899
		if(typeof(MeshData) == 'table')then
900
			Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
901
		elseif(typeof(MeshData) == 'Instance')then
902
			Msh = MeshData:Clone()
903
			Msh.Parent = Prt
904
		elseif(Shape == Enum.PartType.Block)then
905
			Msh = Mesh(Prt,Enum.MeshType.Brick)
906
		end
907
		if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then
908
			Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true)
909
		end
910
		if(Snd)then
911
			repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0
912
			Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch
913
		end
914
		Size = (Msh and Msh.Scale or Size)
915
		local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2)
916
		
917
		local MoveSpeed = nil;
918
		if(MoveDir)then
919
			MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
920
		end
921
		if(FX ~= 'Arc')then
922
			for Frame = 1, Frames do
923
				if(FX == "Fade")then
924
					Prt.Transparency  = (Frame/Frames)
925
				elseif(FX == "Resize")then
926
					if(not Settings.EndSize)then
927
						Settings.EndSize = V3.N(0,0,0)
928
					end
929
					if(Settings.EndIsIncrement)then
930
						if(Msh)then
931
							Msh.Scale = Msh.Scale + Settings.EndSize
932
						else
933
							Prt.Size = Prt.Size + Settings.EndSize
934
						end					
935
					else
936
						if(Msh)then
937
							Msh.Scale = Msh.Scale - grow/Frames
938
						else
939
							Prt.Size = Prt.Size - grow/Frames
940
						end
941
					end 
942
				elseif(FX == "ResizeAndFade")then
943
					if(not Settings.EndSize)then
944
						Settings.EndSize = V3.N(0,0,0)
945
					end
946
					if(Settings.EndIsIncrement)then
947
						if(Msh)then
948
							Msh.Scale = Msh.Scale + Settings.EndSize
949
						else
950
							Prt.Size = Prt.Size + Settings.EndSize
951
						end					
952
					else
953
						if(Msh)then
954
							Msh.Scale = Msh.Scale - grow/Frames
955
						else
956
							Prt.Size = Prt.Size - grow/Frames
957
						end
958
					end 
959
					Prt.Transparency = (Frame/Frames)
960
				end
961
				if(Settings.RandomizeCFrame)then
962
					Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
963
				else
964
					Prt.CFrame = Prt.CFrame * CF.A(unpack(RotInc))
965
				end
966
				if(MoveDir and MoveSpeed)then
967
					local Orientation = Prt.Orientation
968
					Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
969
					Prt.Orientation = Orientation
970
				end
971
				swait()
972
			end
973
			Prt:destroy()
974
		else
975
			local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
976
			if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
977
			if(start and endP)then
978
				local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
979
				local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
980
				for Frame = 0, 1, (Settings.Speed or 0.01) do
981
					if(Settings.Home)then
982
						endP = Settings.Home.CFrame
983
					end
984
					Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
985
				end
986
				if(Settings.RemoveOnGoal)then
987
					Prt:destroy()
988
				end
989
			else
990
				Prt:destroy()
991
				assert(start,"You need a start position!")
992
				assert(endP,"You need a start position!")
993
			end
994
		end
995
	end)()
996
	return Prt,Msh,Snd
997
end
998
function SoulSteal(whom)
999
	local torso = (whom:FindFirstChild'Head' or whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart')
1000
	print(torso)
1001
	if(torso and torso:IsA'BasePart')then
1002
		local Model = Instance.new("Model",Effects)
1003
		Model.Name = whom.Name.."'s Soul"
1004
		whom:BreakJoints()
1005
		local Soul = Part(Model,BrickColor.new'Really red','Glass',V3.N(.5,.5,.5),torso.CFrame,true,false)
1006
		Soul.Name = 'Head'
1007
		NewInstance("Humanoid",Model,{Health=0,MaxHealth=0})
1008
		Effect{
1009
			Effect="Arc",
1010
			Manual = Soul,
1011
			FXSettings={
1012
				Start=torso.CFrame,
1013
				Home = Torso,
1014
				RemoveOnGoal = true,
1015
			}
1016
		}
1017
		local lastPoint = Soul.CFrame.p
1018
	
1019
		for i = 0, 1, 0.01 do 
1020
				local point = CFrame.new(lastPoint, Soul.Position) * CFrame.Angles(-math.pi/2, 0, 0)
1021
				local mag = (lastPoint - Soul.Position).magnitude
1022
				Effect{
1023
					Effect = "Fade",
1024
					CFrame = point * CF.N(0, mag/2, 0),
1025
					Size = V3.N(.5,mag+.5,.5),
1026
					Color = Soul.BrickColor
1027
				}
1028
				lastPoint = Soul.CFrame.p
1029
			swait()
1030
		end
1031
		for i = 1, 5 do
1032
			Effect{
1033
				Effect="Fade",
1034
				Color = BrickColor.new'Really red',
1035
				MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
1036
			}	
1037
		end
1038
	end
1039
end
1040
1041
--// Other Functions \\ --
1042
1043
function CastRay(startPos,endPos,range,ignoreList)
1044
	local ray = Ray.new(startPos,(endPos-startPos).unit*range)
1045
	local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true)
1046
	return part,pos,norm,(pos and (startPos-pos).magnitude)
1047
end
1048
1049
function getRegion(point,range,ignore)
1050
    return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
1051
end
1052
1053
function clerp(startCF,endCF,alpha)
1054
	return startCF:lerp(endCF, alpha)
1055
end
1056
1057
function GetTorso(char)
1058
	return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
1059
end
1060
1061
1062
function ShowDamage(Pos, Text, Time, Color)
1063
	coroutine.wrap(function()
1064
	local Rate = (1 / Frame_Speed)
1065
	local Pos = (Pos or Vector3.new(0, 0, 0))
1066
	local Text = (Text or "")
1067
	local Time = (Time or 2)
1068
	local Color = (Color or Color3.new(1, 0, 1))
1069
	local EffectPart = NewInstance("Part",Effects,{
1070
		Material=Enum.Material.SmoothPlastic,
1071
		Reflectance = 0,
1072
		Transparency = 1,
1073
		BrickColor = BrickColor.new(Color),
1074
		Name = "Effect",
1075
		Size = Vector3.new(0,0,0),
1076
		Anchored = true,
1077
		CFrame = CF.N(Pos)
1078
	})
1079
	local BillboardGui = NewInstance("BillboardGui",EffectPart,{
1080
		Size = UDim2.new(1.25, 0, 1.25, 0),
1081
		Adornee = EffectPart,
1082
	})
1083
	local TextLabel = NewInstance("TextLabel",BillboardGui,{
1084
		BackgroundTransparency = 1,
1085
		Size = UDim2.new(1, 0, 1, 0),
1086
		Text = Text,
1087
		Font = "Bodoni",
1088
		TextColor3 = Color,
1089
		TextStrokeColor3 = Color3.new(0,0,0),
1090
		TextStrokeTransparency=0,
1091
		TextScaled = true,
1092
	})
1093
	S.Debris:AddItem(EffectPart, (Time))
1094
	EffectPart.Parent = workspace
1095
	delay(0, function()
1096
		Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
1097
		local Frames = (Time / Rate)
1098
		for Frame = 1, Frames do
1099
			swait()
1100
			local Percent = (Frame / Frames)
1101
			TextLabel.TextTransparency = Percent
1102
			TextLabel.TextStrokeTransparency = Percent
1103
		end
1104
		if EffectPart and EffectPart.Parent then
1105
			EffectPart:Destroy()
1106
		end
1107
	end) end)()
1108
end
1109
1110
local WEAPONGUI = IT("ScreenGui", game.Players.LocalPlayer.PlayerGui)
1111
WEAPONGUI.Name = "Weapon GUI"
1112
1113
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
1114
	local frame = IT("Frame")
1115
	frame.BackgroundTransparency = TRANSPARENCY
1116
	frame.BorderSizePixel = BORDERSIZEPIXEL
1117
	frame.Position = POSITION
1118
	frame.Size = SIZE
1119
	frame.BackgroundColor3 = COLOR
1120
	frame.BorderColor3 = BORDERCOLOR
1121
	frame.Name = NAME
1122
	frame.Parent = PARENT
1123
	return frame
1124
end
1125
1126
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
1127
	local label = IT("TextLabel")
1128
	label.BackgroundTransparency = 1
1129
	label.Size = UD2(1, 0, 1, 0)
1130
	label.Position = UD2(0, 0, 0, 0)
1131
	label.TextColor3 = TEXTCOLOR
1132
	label.TextStrokeTransparency = STROKETRANSPARENCY
1133
	label.TextTransparency = TRANSPARENCY
1134
	label.FontSize = TEXTFONTSIZE
1135
	label.Font = TEXTFONT
1136
	label.BorderSizePixel = BORDERSIZEPIXEL
1137
	label.TextScaled = false
1138
	label.Text = TEXT
1139
	label.Name = NAME
1140
	label.Parent = PARENT
1141
	return label
1142
end
1143
1144
local SKILLTEXTCOLOR = BRICKC"".Color
1145
local SKILLFONT = "Bodoni"
1146
local SKILLTEXTSIZE = 7
1147
1148
local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C33(0,0,0), C33(0, 0, 0), "Skill 1 Frame")
1149
local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C33(0,0,0), C33(0, 0, 0), "Skill 2 Frame")
1150
local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C33(0,0,0), C33(0, 0, 0), "Skill 3 Frame")
1151
local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C33(0,0,0), C33(0, 0, 0), "Skill 4 Frame")
1152
local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C33(0,0,0), C33(0, 0, 0), "Skill 5 Frame")
1153
local SKILL6FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50,0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C33(0,0,0), C33(0, 0, 0), "Skill 6 Frame")
1154
local SKILL7FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23,0, 0.60, 0), UD2(0.26, 0, 0.07, 0), C33(0,0,0), C33(0, 0, 0), "Skill 7 Frame")
1155
1156
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Bye Bye", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
1157
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[X] Head Throw", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
1158
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[Q] You Cant Hide", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
1159
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[R] Teleport", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
1160
local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[G] SMITE", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5") 
1161
local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[E] Brutal Overlord (Q)", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 6")
1162
local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[C] TAke Heart", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 7")
1163
1164
function DealDamage(data)
1165
	local Who = data.Who;
1166
	local MinDam = data.MinimumDamage or 15;
1167
	local MaxDam = data.MaximumDamage or 30;
1168
	local MaxHP = data.MaxHP or 1e5; 
1169
	
1170
	local DB = data.Debounce or .2;
1171
	
1172
	local CritData = data.Crit or {}
1173
	local CritChance = CritData.Chance or 0;
1174
	local CritMultiplier = CritData.Multiplier or 1;
1175
	
1176
	local DamageEffects = data.DamageFX or {}
1177
	local DamageType = DamageEffects.Type or "Normal"
1178
	local DeathFunction = DamageEffects.DeathFunction
1179
	
1180
	assert(Who,"Specify someone to damage!")	
1181
	
1182
	local Humanoid = Who:FindFirstChildOfClass'Humanoid'
1183
	local DoneDamage = M.RNG(MinDam,MaxDam) * (M.RNG(1,100) <= CritChance and CritMultiplier or 1)
1184
	
1185
	local canHit = true
1186
	if(Humanoid)then
1187
		for _, p in pairs(Hit) do
1188
			if p[1] == Humanoid then
1189
				if(time() - p[2] <= DB) then
1190
					canHit = false
1191
				else
1192
					Hit[_] = nil
1193
				end
1194
			end
1195
		end
1196
		if(canHit)then
1197
			table.insert(Hit,{Humanoid,time()})
1198
			local HitTorso = GetTorso(Who)
1199
			local player = S.Players:GetPlayerFromCharacter(Who)
1200
			if(not player or player.UserId ~= 5719877 and player.UserId ~= 61573184 and player.UserId ~= 19081129)then
1201
				if(Humanoid.MaxHealth >= MaxHP and Humanoid.Health > 0)then
1202
					print'Got kill'
1203
					Humanoid.Health = 0;
1204
					Who:BreakJoints();
1205
					if(DeathFunction)then DeathFunction(Who,Humanoid) end
1206
				else
1207
					local  c = Instance.new("ObjectValue",Hum)
1208
					c.Name = "creator"
1209
					c.Value = Plr
1210
					S.Debris:AddItem(c,0.35)	
1211
					if(Who:FindFirstChild'Head' and Humanoid.Health > 0)then
1212
						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)
1213
					end
1214
					if(Humanoid.Health > 0 and Humanoid.Health-DoneDamage <= 0)then print'Got kill' if(DeathFunction)then DeathFunction(Who,Humanoid) end end
1215
					Humanoid.Health = Humanoid.Health - DoneDamage
1216
					
1217
					if(DamageType == 'Knockback' and HitTorso)then
1218
						local up = DamageEffects.KnockUp or 25
1219
						local back = DamageEffects.KnockBack or 25
1220
						local origin = DamageEffects.Origin or Root
1221
						local decay = DamageEffects.Decay or .5;
1222
						
1223
						local bfos = Instance.new("BodyVelocity",HitTorso)
1224
						bfos.P = 20000	
1225
						bfos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
1226
						bfos.Velocity = Vector3.new(0,up,0) + (origin.CFrame.lookVector * back)
1227
						S.Debris:AddItem(bfos,decay)
1228
					end
1229
				end
1230
			end
1231
		end
1232
	end		
1233
end
1234
1235
function AOEDamage(where,range,options)
1236
	local hit = {}
1237
	for _,v in next, getRegion(where,range,{Char}) do
1238
		if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' and not hit[v.Parent])then
1239
			local callTable = {Who=v.Parent}
1240
			hit[v.Parent] = true
1241
			for _,v in next, options do callTable[_] = v end
1242
			DealDamage(callTable)
1243
		end
1244
	end
1245
	return hit
1246
end
1247
1248
function AOEHeal(where,range,amount)
1249
	local healed = {}
1250
	for _,v in next, getRegion(where,range,{Char}) do
1251
		local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
1252
		if(hum and not healed[hum])then
1253
			hum.Health = hum.Health + amount
1254
			if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
1255
				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)
1256
			end
1257
		end
1258
	end
1259
end
1260
1261
function ClosestHumanoid(pos,range)
1262
	local mag,closest = math.huge;
1263
	for _,v in next, getRegion(pos,range or 10,{Char}) do
1264
		local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')
1265
		if((v.CFrame.p-pos).magnitude < mag and hum and closest ~= hum and hum.Health > 0)then
1266
			mag = (v.CFrame.p-pos).magnitude
1267
			closest = hum
1268
		end
1269
	end
1270
	return closest,(closest and GetTorso(closest.Parent) or nil)
1271
end
1272
1273
local Whitelist = {
1274
	[{33104243,"Salvo_Starly"}] = {"Sorry, my Blazey..","OwO?","Ah, I'm sorry.. I thought you were an enemy.","Why did I even think of doing that.."},
1275
	[{19081129,"CKbackup"}] = {"S-sugarie! My bad!", "Ah, I'm sorry, my furry friend.","Why did I even think of doing that.."},
1276
	[{5719877,"Nebula_Zorua"}] = {"My creator!","N-nebula!?","I'm sorry, my creator!","F-father..?","Daddy..?","Sorry, Nebby..!"},
1277
	[{19909695,"makhail07"}] = {"Cretty!~","Yeef me dadi~","Marshdaddy~","Makhail, the edge master","Hello there, friend..~"},
1278
	[{44083134,"Fifkee"}] = {(function() return Plr.UserId == 5719877 and "Uh.. Who're you again?" or "You're Nebula's friend.. Right?" end)(),"Uuhh.. hi?","I nearly killed ya.","Oh. It's you."},
1279
}
1280
1281
--// Whitelist System \\--
1282
1283
function IsWhitelisted(id,who)
1284
	for i,v in next, Whitelist do
1285
		if(i[1] == id or i[2] == who)then
1286
			return v
1287
		end
1288
	end
1289
	return nil
1290
end
1291
1292
local r = 255
1293
local g = 0
1294
local b = 0
1295
1296
local RootPart = Char.HumanoidRootPart
1297
local RootJoint = RootPart.RootJoint
1298
1299
function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
1300
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Gold"), "Effect", VT(0,0,0))
1301
	local mesh = IT("SpecialMesh",wave)
1302
	mesh.MeshType = "FileMesh"
1303
	mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
1304
	mesh.Scale = SIZE
1305
	mesh.Offset = VT(0,0,-SIZE.X/8)
1306
	wave.CFrame = CFRAME
1307
	coroutine.resume(coroutine.create(function(PART)
1308
		for i = 1, WAIT do
1309
			Swait()
1310
			mesh.Scale = mesh.Scale + GROW
1311
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
1312
			if DOESROT == true then
1313
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
1314
			end
1315
			wave.Transparency = wave.Transparency + (0.5/WAIT)
1316
			if wave.Transparency > 0.99 then
1317
				wave:remove()
1318
			end
1319
		end
1320
	end))
1321
end
1322
1323
function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
1324
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Gold"), "Effect", VT(0,0,0))
1325
	local mesh = IT("SpecialMesh",wave)
1326
	mesh.MeshType = "FileMesh"
1327
	mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
1328
	mesh.Scale = SIZE
1329
	--mesh.Offset = VT(0,0,-SIZE.X/8)
1330
	wave.CFrame = CFRAME
1331
	coroutine.resume(coroutine.create(function(PART)
1332
		for i = 1, WAIT do
1333
			Swait()
1334
			mesh.Scale = mesh.Scale + GROW
1335
			--mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
1336
			if DOESROT == true then
1337
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
1338
			end
1339
			wave.Transparency = wave.Transparency + (0.5/WAIT)
1340
			if wave.Transparency > 0.99 then
1341
				wave:remove()
1342
			end
1343
		end
1344
	end))
1345
end
1346
1347
function Swait(NUMBER)
1348
	if NUMBER == 0 or NUMBER == nil then
1349
		ArtificialHB.Event:wait()
1350
	else
1351
		for i = 1, NUMBER do
1352
			ArtificialHB.Event:wait()
1353
		end
1354
	end
1355
end
1356
1357
function CreateSound(ID, PARENT, VOLUME, PITCH)
1358
	local NEWSOUND = nil
1359
	coroutine.resume(coroutine.create(function()
1360
		NEWSOUND = IT("Sound", PARENT)
1361
		NEWSOUND.Volume = VOLUME
1362
		NEWSOUND.Pitch = PITCH
1363
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
1364
		Swait()
1365
		NEWSOUND:play()
1366
		game:GetService("Debris"):AddItem(NEWSOUND, 10)
1367
	end))
1368
	return NEWSOUND
1369
end
1370
1371
local Rooted = false
1372
Debris = game:GetService("Debris")
1373
MRANDOM = math.random
1374
1375
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
1376
	local NEWMESH = IT(MESH)
1377
	if MESH == "SpecialMesh" then
1378
		NEWMESH.MeshType = MESHTYPE
1379
		if MESHID ~= "nil" and MESHID ~= "" then
1380
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
1381
		end
1382
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
1383
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
1384
		end
1385
	end
1386
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
1387
	NEWMESH.Scale = SCALE
1388
	NEWMESH.Parent = PARENT
1389
	return NEWMESH
1390
end
1391
1392
function QuaternionFromCFrame(cf)
1393
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
1394
	local trace = m00 + m11 + m22
1395
	if trace > 0 then 
1396
		local s = math.sqrt(1 + trace)
1397
		local recip = 0.5 / s
1398
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
1399
	else
1400
		local i = 0
1401
		if m11 > m00 then
1402
			i = 1
1403
		end
1404
		if m22 > (i == 0 and m00 or m11) then
1405
			i = 2
1406
		end
1407
		if i == 0 then
1408
			local s = math.sqrt(m00 - m11 - m22 + 1)
1409
			local recip = 0.5 / s
1410
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
1411
		elseif i == 1 then
1412
			local s = math.sqrt(m11 - m22 - m00 + 1)
1413
			local recip = 0.5 / s
1414
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
1415
		elseif i == 2 then
1416
			local s = math.sqrt(m22 - m00 - m11 + 1)
1417
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
1418
		end
1419
	end
1420
end
1421
1422
function QuaternionToCFrame(px, py, pz, x, y, z, w)
1423
	local xs, ys, zs = x + x, y + y, z + z
1424
	local wx, wy, wz = w * xs, w * ys, w * zs
1425
	local xx = x * xs
1426
	local xy = x * ys
1427
	local xz = x * zs
1428
	local yy = y * ys
1429
	local yz = y * zs
1430
	local zz = z * zs
1431
	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))
1432
end
1433
1434
ACOS = math.acos
1435
SIN = math.sin
1436
COS = math.cos
1437
1438
function QuaternionSlerp(a, b, t)
1439
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
1440
	local startInterp, finishInterp;
1441
	if cosTheta >= 0.0001 then
1442
		if (1 - cosTheta) > 0.0001 then
1443
			local theta = ACOS(cosTheta)
1444
			local invSinTheta = 1 / SIN(theta)
1445
			startInterp = SIN((1 - t) * theta) * invSinTheta
1446
			finishInterp = SIN(t * theta) * invSinTheta
1447
		else
1448
			startInterp = 1 - t
1449
			finishInterp = t
1450
		end
1451
	else
1452
		if (1 + cosTheta) > 0.0001 then
1453
			local theta = ACOS(-cosTheta)
1454
			local invSinTheta = 1 / SIN(theta)
1455
			startInterp = SIN((t - 1) * theta) * invSinTheta
1456
			finishInterp = SIN(t * theta) * invSinTheta
1457
		else
1458
			startInterp = t - 1
1459
			finishInterp = t
1460
		end
1461
	end
1462
	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
1463
end
1464
1465
function Clerp(a, b, t)
1466
	local qa = {QuaternionFromCFrame(a)}
1467
	local qb = {QuaternionFromCFrame(b)}
1468
	local ax, ay, az = a.x, a.y, a.z
1469
	local bx, by, bz = b.x, b.y, b.z
1470
	local _t = 1 - t
1471
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
1472
end
1473
1474
Character = Player.Character
1475
Torso = Character["Torso"]
1476
Head = Character["Head"]
1477
RightArm = Character["Right Arm"]
1478
LeftArm = Character["Left Arm"]
1479
RightLeg = Character["Right Leg"]
1480
LeftLeg = Character["Left Leg"]
1481
RootJoint = RootPart["RootJoint"]
1482
Neck = Torso["Neck"]
1483
RightShoulder = Torso["Right Shoulder"]
1484
LeftShoulder = Torso["Left Shoulder"]
1485
RightHip = Torso["Right Hip"]
1486
LeftHip = Torso["Left Hip"]
1487
1488
	local function weldBetween(a, b)
1489
	    local weldd = Instance.new("ManualWeld")
1490
	    weldd.Part0 = a
1491
	    weldd.Part1 = b
1492
	    weldd.C0 = CFrame.new()
1493
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
1494
	    weldd.Parent = a
1495
	    return weldd
1496
	end
1497
1498
Animation_Speed = 3
1499
local ROOTC0 = CF1(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
1500
local NECKC0 = CF1(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
1501
local RIGHTSHOULDERC0 = CF1(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
1502
local LEFTSHOULDERC0 = CF1(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
1503
local SINE = 0
1504
1505
function Slice(SIZE,WAIT,CFRAME,COLOR,GROW)
1506
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Gold"), "Effect", VT(1,1,1), true)
1507
	local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
1508
	wave.CFrame = CFRAME
1509
	coroutine.resume(coroutine.create(function(PART)
1510
		for i = 1, WAIT do
1511
			Swait()
1512
			mesh.Scale = mesh.Scale * GROW
1513
			wave.Transparency = wave.Transparency + (0.5/WAIT)
1514
			if wave.Transparency > 0.99 then
1515
				wave:remove()
1516
			end
1517
		end
1518
	end))
1519
end
1520
1521
1522
function MaxSpeed()
1523
	local ORIGIN = RootPart.Position
1524
	CreateWave2(VT(3,1,3),65,CF1(RootPart.Position)*CF1(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4))
1525
	CreateWave2(VT(3,1,3),65,CF1(RootPart.Position)*CF1(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6))
1526
	local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Gold", "Sound", VT(0,0,0))
1527
	SOUNDPART.CFrame = RootPart.CFrame
1528
	Debris:AddItem(SOUNDPART,5)
1529
	CreateSound("1295446488", SOUNDPART, 2, 1)
1530
	RootPart.CFrame = CF1(Mouse.Hit.p+VT(0,3,0),VT(ORIGIN.X,Mouse.Hit.p.Y,ORIGIN.Z))
1531
	Swait()
1532
	CreateWave2(VT(3,1,3),65,CF1(RootPart.Position)*CF1(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4))
1533
	CreateWave2(VT(3,1,3),65,CF1(RootPart.Position)*CF1(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6))
1534
	local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Gold", "Sound", VT(0,0,0))
1535
	SOUNDPART.CFrame = RootPart.CFrame
1536
	Debris:AddItem(SOUNDPART,5)
1537
	CreateSound("1295446488", SOUNDPART, 2, 1)
1538
	if MRANDOM(1,8) == 1 then
1539
		Attack = true
1540
		Rooted = true
1541
		local FRUITSTABLE = {
1542
			{MeshId = "16190555", TextureId = "16190577", Color = "Gold"},
1543
			{MeshId = "119574562", TextureId = "64374853", Color = "New Yeller"},
1544
			{MeshId = "24394186", TextureId = "24394178", Color = "Brown"}
1545
		}
1546
		local FRUIT = FRUITSTABLE[MRANDOM(1, #FRUITSTABLE)]
1547
		local FRUITMODEL = CreatePart(3, Effects, "Neon", 0, 0, FRUIT.Color, "Fruit", VT(0,0,0),false)
1548
 		CreateMesh("SpecialMesh", FRUITMODEL, "FileMesh", FRUIT.MeshId, FRUIT.TextureId, VT(2,2,2), VT(0,0,0))
1549
		FRUITMODEL.CFrame = RightArm.CFrame * CF1(0,-1.5,0)
1550
		weldBetween(RightArm,FRUITMODEL)
1551
		for i=0, 4, 0.1 / Animation_Speed do
1552
			Swait()
1553
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF1(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1554
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF1(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1555
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF1(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-145)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1556
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF1(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1557
			RightHip.C0 = Clerp(RightHip.C0, CF1(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1558
			LeftHip.C0 = Clerp(LeftHip.C0, CF1(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1559
		end
1560
		CreateSound("414517163", RightArm, 10, MRANDOM(7, 12) / 10)
1561
		FRUITMODEL:remove()
1562
		for i = 1, 15 do
1563
			Slice(0.1,15,RightArm.CFrame*CF1(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),FRUIT.Color, 1 + MRANDOM(1,10)/15)
1564
		end
1565
		for i=0, 0.5, 0.1 / Animation_Speed do
1566
			Swait()
1567
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF1(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1568
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF1(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1569
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF1(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-175)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1570
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF1(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1571
			RightHip.C0 = Clerp(RightHip.C0, CF1(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1572
			LeftHip.C0 = Clerp(LeftHip.C0, CF1(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1573
		end
1574
		Attack = false
1575
		Rooted = false
1576
	end
1577
end
1578
1579
function Taunt()
1580
	Attack = true
1581
	Rooted = true
1582
	local SOUND = CreateSound("134978657", Head, 10, 1)
1583
	Swait()
1584
	repeat
1585
		Swait()
1586
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.5) * ANGLES(RAD(-45+(SOUND.PlaybackLoudness/10)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1587
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1588
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-55), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1589
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-55), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1590
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-45+(SOUND.PlaybackLoudness/10)), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1591
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-45+(SOUND.PlaybackLoudness/10)), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1592
	until SOUND.Playing == false
1593
	Attack = false
1594
	Rooted = false
1595
end
1596
1597
local Target2Id = "rbxassetid://133820006"
1598
local Target = NewInstance("BillboardGui",Char,{Name='Target',Adornee=nil,LightInfluence=0,AlwaysOnTop=true,Size = UDim2.new(10,0,10,0)})
1599
local TargetImg1 = NewInstance("ImageLabel",Target,{BackgroundTransparency=1,Position = UDim2.new(.5,0,.5,0),Size = UDim2.new(1,0,1,0),AnchorPoint = Vector2.new(.5,.5),Image=Target1Id,ImageColor = C3.N(0,0,0),ImageTransparency=1})
1600
local TargetImg2 = TargetImg1:Clone();
1601
TargetImg2.Size = UDim2.new(1.4,0,1.4,0);
1602
TargetImg2.Image = Target2Id
1603
TargetImg2.Parent = Target
1604
TargetImg2.ImageColor3 = C3.RGB(165,0,0)
1605
function You_Cant_Hide()
1606
	local target = Mouse.Target
1607
	if(target and target.Parent and not Char:IsAncestorOf(target) and target.Parent:FindFirstChildOfClass'Humanoid')then
1608
		if(Victim ~= target.Parent)then
1609
			Victim = target.Parent;
1610
			Target.Enabled = true
1611
			Target.Adornee = GetTorso(Victim)
1612
			TargetImg1.ImageTransparency = 1
1613
			TargetImg2.ImageTransparency = 1
1614
			TargetImg1.Size = UDim2.new(6,0,6,0)
1615
			TargetImg2.Size = UDim2.new(6.4,0,6.4,0)
1616
			Tween(TargetImg1,{ImageTransparency=0,Size=UDim2.new(1,0,1,0)},.5,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
1617
			Tween(TargetImg2,{ImageTransparency=0,Size=UDim2.new(1.4,0,1.4,0)},.5,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
1618
		end
1619
	end
1620
end
1621
local BloodPuddles = {}
1622
local BloodColor = BrickColor.new'Maroon'
1623
local BloodMaterial = Enum.Material.Glass
1624
local blood = NewInstance("ParticleEmitter",nil,{
1625
	Color = ColorSequence.new(C3.N(.8,0,0)),
1626
	LightEmission=.1,
1627
	LightInfluence=1,
1628
	ZOffset=.9,
1629
	Size=NumberSequence.new{NumberSequenceKeypoint.new(0,.2,0),NumberSequenceKeypoint.new(1,3,0)},
1630
	Texture="rbxassetid://284205403",
1631
	Transparency=NumberSequence.new{NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)},
1632
	Acceleration = V3.N(0,-15,0),
1633
	Lifetime = NumberRange.new(1,2),
1634
	Rate=50,
1635
	Speed = NumberRange.new(5,15),
1636
	SpreadAngle = Vector2.new(15,15),
1637
	Enabled = false,
1638
	EmissionDirection = 'Back',
1639
})
1640
1641
function Blood(prt,amount)
1642
	local part = Instance.new("Part",Effects)
1643
	part.Transparency = 1
1644
	part.Size = prt.Size
1645
	part.Anchored = true
1646
	part.CanCollide = false
1647
	part.CFrame = CF.N(prt.Position,Torso.Position)
1648
	S.Debris:AddItem(part,5)
1649
	local prtcl = blood:Clone()
1650
	prtcl.Parent = part
1651
	prtcl:Emit(amount)
1652
end
1653
1654
function BloodDrop(pos,dir,maxsize)
1655
	local owo = NewInstance("Part",Char,{Material=BloodMaterial,BrickColor=BloodColor,Shape=Enum.PartType.Ball,Size=V3.N(.25,.25,.25), CanCollide = false})
1656
	owo.CFrame=CF.N(pos,dir)
1657
	local bv = Instance.new("BodyVelocity",owo) 
1658
	bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1659
	bv.velocity = CF.N(pos,dir+V3.N(M.RNG(-3,3)/30,M.RNG(-3,3)/30,M.RNG(-3,3)/30)).lookVector*15
1660
	bv.Name = "MOVE"
1661
	game:service'Debris':AddItem(bv,0.05)
1662
	local touch 
1663
	touch = owo.Touched:connect(function(hit)
1664
		if(hit.Anchored==true and hit.CanCollide and not hit.Parent:FindFirstChildOfClass'Humanoid' and not hit.Parent.Parent:FindFirstChildOfClass'Humanoid')then
1665
			touch:disconnect()
1666
			BloodPuddle(owo.Position+V3.N(0,1,0),3,maxsize,owo)
1667
			owo:destroy()
1668
		end
1669
	end)
1670
end
1671
function BloodPuddle(position,range,maxSize,where)
1672
	local hit, pos, norm = workspace:FindPartOnRayWithIgnoreList(Ray.new(
1673
		position,CF.N(position,position+V3.N(0,-1,0)).lookVector * range			
1674
	),{where,Char},false,true)
1675
	if(hit)then
1676
		if(BloodPuddles[hit])then
1677
			BloodPuddles[hit].Frame = 0
1678
			if(hit:FindFirstChild'CylinderMesh' and hit.CylinderMesh.Scale.Z < BloodPuddles[hit].MaxSize)then
1679
				hit.CylinderMesh.Scale = hit.CylinderMesh.Scale + V3.N(.1,0,.1)
1680
			end
1681
		else
1682
			local Puddle = NewInstance('Part',hit,{Material=BloodMaterial,BrickColor=BloodColor,Size=V3.N(1,.1,1),CFrame=CF.N(pos,pos+norm)*CF.A(90*M.P/180,0,0),Anchored=true,CanCollide=false,Archivable=false,Locked=true,Name='BloodPuddle'})
1683
			local Cyl = NewInstance('CylinderMesh',Puddle,{Name='CylinderMesh'})
1684
			BloodPuddles[Puddle] = {MaxSize=maxSize or 7,Frame=0}
1685
		end
1686
	end
1687
end
1688
1689
function Chat(text)
1690
	coroutine.wrap(function()
1691
		if Char:FindFirstChild("TalkingBillBoard")~= nil then
1692
			Char:FindFirstChild("TalkingBillBoard"):destroy()
1693
		end
1694
		local oText = text;
1695
		text = ""
1696
		for i = 1, #oText do
1697
			if(i%2 == 1)then
1698
				text = text..oText:sub(i,i):upper()
1699
			else
1700
				text = text..oText:sub(i,i):lower()
1701
			end
1702
		end
1703
		local Bill = Instance.new("BillboardGui",Char)
1704
		Bill.Size = UDim2.new(0,100,0,40)
1705
		Bill.StudsOffset = Vector3.new(0,3,0)
1706
		Bill.Adornee = Char.Head
1707
		Bill.Name = "TalkingBillBoard"
1708
		local Hehe = Instance.new("TextLabel",Bill)
1709
		Hehe.BackgroundTransparency = 1
1710
		Hehe.BorderSizePixel = 0
1711
		Hehe.Text = ""
1712
		Hehe.Font = "Bodoni"
1713
		Hehe.TextSize = 40
1714
		Hehe.TextStrokeTransparency = 0
1715
		Hehe.Size = UDim2.new(1,0,0.5,0)
1716
		coroutine.resume(coroutine.create(function()
1717
			while Hehe ~= nil do
1718
				swait()
1719
				Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) 
1720
				Hehe.Rotation = M.RNG(-M.RNG(5,15),M.RNG(5,15))
1721
				local aa = math.random(0, 255)/255
1722
				local bb = math.random(0, 255)/255
1723
				Hehe.TextColor3 = C3.N(aa,aa,aa)
1724
				Hehe.TextStrokeColor3 = C3.N(bb,bb,bb)
1725
			end
1726
		end))
1727
		for i = 1,string.len(text),1 do
1728
			swait(5)
1729
			Hehe.Text = string.sub(text,1,i)
1730
		end
1731
		swait(90)
1732
		for i = 0, 1, .025 do
1733
			swait()
1734
			Hehe.TextStrokeTransparency = i
1735
			Hehe.TextTransparency = i
1736
			Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
1737
		end
1738
		Bill:Destroy()
1739
	end)()
1740
end
1741
1742
function RandomChoice(table)
1743
	return table[M.RNG(1,#table)]
1744
end
1745
1746
function Ragdoll(who,half,glitching)
1747
	who:breakJoints()
1748
	pcall(function()
1749
		who.HumanoidRootPart:destroy()
1750
	end)
1751
	local who = who
1752
	local hhh = who:FindFirstChildOfClass'Humanoid'
1753
	local t = GetTorso(who)
1754
	if(hhh.RigType == Enum.HumanoidRigType.R6)then
1755
		local RA,LA,RL,LL,HD = who:FindFirstChild'Right Arm',who:FindFirstChild'Left Arm',who:FindFirstChild'Right Leg',who:FindFirstChild'Left Leg',who:FindFirstChild'Head'
1756
		local RAJ = NewInstance("Attachment",t,{Position=V3.N(1.5,.5,0),Orientation=V3.N()})
1757
		local RAJ2 = NewInstance("Attachment",RA,{Position=V3.N(0,.5,0),Orientation=V3.N()})
1758
		local LAJ = NewInstance("Attachment",t,{Position=V3.N(-1.5,.5,0),Orientation=V3.N()})
1759
		local LAJ2 = NewInstance("Attachment",LA,{Position=V3.N(0,.5,0),Orientation=V3.N()})
1760
		local NJ = NewInstance('Attachment',t,{Position=V3.N(0,1,0),Orientation=V3.N()})
1761
		local NJ2 = NewInstance('Attachment',HD,{Position=V3.N(0,-.5,0),Orientation=V3.N()})
1762
		local NJ3 = NewInstance('Attachment',HD,{Position=V3.N(0,.5,0),Orientation=V3.N()})
1763
		
1764
		local RAC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=RAJ,Attachment1=RAJ2})
1765
		local LAC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=LAJ,Attachment1=LAJ2})
1766
		local HC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=45,Attachment0=NJ,Attachment1=NJ2})
1767
1768
		local CollideRA = NewInstance('Part',who,{Size=RArm.Size/1.5,Anchored=false,Transparency=1,Name='Collision'})
1769
		local CollideLA = NewInstance('Part',who,{Size=LArm.Size/1.5,Anchored=false,Transparency=1,Name='Collision'})
1770
		local CollideHD = NewInstance('Part',who,{Size=HD.Size/1.5,Anchored=false,Transparency=1,Name='Collision'})
1771
		NewInstance('Weld',CollideRA,{Part0=RA,Part1=CollideRA})
1772
		NewInstance('Weld',CollideLA,{Part0=LA,Part1=CollideLA})
1773
		NewInstance('Weld',CollideHD,{Part0=HD,Part1=CollideHD})
1774
		
1775
		if(not half)then
1776
			local RLJ = NewInstance("Attachment",t,{Position=V3.N(.5,-1,0),Orientation=V3.N()})
1777
			local RLJ2 = NewInstance("Attachment",RL,{Position=V3.N(0,1,0),Orientation=V3.N()})
1778
			local LLJ = NewInstance("Attachment",t,{Position=V3.N(-.5,-1,0),Orientation=V3.N()})
1779
			local LLJ2 = NewInstance("Attachment",LL,{Position=V3.N(0,1,0),Orientation=V3.N()})
1780
			local RLC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=RLJ,Attachment1=RLJ2})
1781
			local LLC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=LLJ,Attachment1=LLJ2})
1782
		end
1783
		if(glitching)then
1784
			swait(120)
1785
			local pow = 75
1786
			local FT,RA,LA,RL,LL = Instance.new("SpecialMesh",t),Instance.new("SpecialMesh",RA),Instance.new("SpecialMesh",LA),Instance.new("SpecialMesh",RL),Instance.new("SpecialMesh",LL)
1787
			FT.MeshId,FT.Scale = "rbxasset://fonts/torso.mesh",V3.N(PlayerSize,PlayerSize,PlayerSize)
1788
			RA.MeshId,RA.Scale = "rbxasset://fonts/rightarm.mesh",V3.N(PlayerSize,PlayerSize,PlayerSize)
1789
			LA.MeshId,LA.Scale = "rbxasset://fonts/leftarm.mesh",V3.N(PlayerSize,PlayerSize,PlayerSize)
1790
			RL.MeshId,RL.Scale = "rbxasset://fonts/rightleg.mesh",V3.N(PlayerSize,PlayerSize,PlayerSize)
1791
			LL.MeshId,LL.Scale = "rbxasset://fonts/leftleg.mesh",V3.N(PlayerSize,PlayerSize,PlayerSize)
1792
			for i = 0, 1, .1 do
1793
				for _,v in next, who:GetDescendants() do
1794
					if(v:IsA'DataModelMesh')then
1795
						v.Offset = V3.N(M.RNG(-pow,pow)/100,M.RNG(-pow,pow)/100,M.RNG(-pow,pow)/100)
1796
					elseif(v:IsA'BasePart')then
1797
						v.Transparency = i
1798
					end
1799
				end
1800
				swait()
1801
			end
1802
			who:destroy()
1803
		end
1804
	else
1805
		if(glitching)then
1806
			swait(120)
1807
			for i = 0, 1, .1 do
1808
				for _,v in next, hhh:children() do
1809
					if(v:IsA'NumberValue')then
1810
						v.Value = M.RNG(0,10)
1811
					end
1812
				end
1813
				local pow = 75
1814
				for _,v in next, who:GetDescendants() do
1815
					if(v:IsA'DataModelMesh')then
1816
						v.Offset = V3.N(M.RNG(-pow,pow)/100,M.RNG(-pow,pow)/100,M.RNG(-pow,pow)/100)
1817
					elseif(v:IsA'BasePart')then
1818
						v.Transparency = i
1819
					end
1820
				end
1821
				swait()
1822
			end
1823
			who:destroy()
1824
		end
1825
		-- TODO: R15 Ragdoll
1826
	end
1827
end
1828
1829
function Brutal_Overlord()
1830
	if(Victim)then
1831
		Attack = true
1832
		NeutralAnims = false
1833
		local hum = Victim:FindFirstChildOfClass'Humanoid'
1834
		if(hum)then
1835
			Hum.JumpPower = 0
1836
			hum.WalkSpeed = 0
1837
			hum.JumpPower = 0
1838
			hum.AutoRotate = false
1839
			local tor,root = GetTorso(Victim),Victim:FindFirstChild'HumanoidRootPart'
1840
			if(tor)then
1841
				Root.CFrame = tor.CFrame * CF.N(0,0,2)
1842
				local V = Victim
1843
				V.Parent = Char
1844
				for i = 0, 2, 0.1 do
1845
					swait()
1846
					local Alpha = .3
1847
					RJ.C0 = clerp(RJ.C0,CFrame.new(0.00184797007, 0.00629393011, 0.00175395911, 0.916352093, -0.00251661055, -0.400364727, 0, 0.99998033, -0.00628567068, 0.400372595, 0.0057598874, 0.916333973),Alpha)
1848
					LH.C0 = clerp(LH.C0,CFrame.new(-0.565588713, -0.991164684, -0.032800708, 0.909990132, 0, 0.414630055, -0.00260622799, 0.99998033, 0.00571989827, -0.41462189, -0.00628567068, 0.909972131),Alpha)
1849
					RH.C0 = clerp(RH.C0,CFrame.new(0.562351584, -0.990811467, 0.0429569148, 0.909990132, 0, 0.414630055, -0.00260622799, 0.99998033, 0.00571989827, -0.41462189, -0.00628567068, 0.909972131),Alpha)
1850
					LS.C0 = clerp(LS.C0,CFrame.new(-1.479936, 0.442725629, -0.241928637, 0.997844577, 0.0469278991, -0.0458690971, -0.0638397709, 0.532425106, -0.844066501, -0.015188396, 0.845175505, 0.534273386),Alpha)
1851
					RS.C0 = clerp(RS.C0,CFrame.new(1.32794857, 0.365926802, 0.17400004, 0.584510565, -0.811339498, 0.00870320201, 0.447906405, 0.331590444, 0.830317855, -0.676555634, -0.481431335, 0.557222128),Alpha)
1852
					NK.C0 = clerp(NK.C0,CFrame.new(-0.00438193232, 1.49895084, -0.014841184, 0.916352212, -0.0230187047, 0.399710178, -0.00251696701, 0.997995079, 0.0632432774, -0.400364548, -0.0589591675, 0.914456904),Alpha)
1853
				end
1854
				for i = 0, 1, 0.1 do
1855
					swait()
1856
					local Alpha = .2
1857
					RJ.C0 = clerp(RJ.C0,CFrame.new(0.0928741172, 0.00629402744, 0.0566893518, 0.948310614, 0.00199300773, 0.317336231, 0, 0.99998033, -0.00628030393, -0.31734252, 0.00595567934, 0.948291838),Alpha)
1858
					LH.C0 = clerp(LH.C0,CFrame.new(-0.645890057, -0.990359426, 0.0953748077, 0.953149736, 0, -0.302498937, 0.00189978536, 0.99998033, 0.00598607073, 0.302492946, -0.00628030393, 0.953130901),Alpha)
1859
					RH.C0 = clerp(RH.C0,CFrame.new(0.44459179, -0.991404057, -0.0513649136, 0.953149736, 0, -0.302498937, 0.00189978536, 0.99998033, 0.00598607073, 0.302492946, -0.00628030393, 0.953130901),Alpha)
1860
					LS.C0 = clerp(LS.C0,CFrame.new(-1.47928679, 0.367728233, 0.116084039, 0.997845054, 0.0248440802, 0.0607300103, -0.0638346076, 0.581721425, 0.810879469, -0.0151824057, -0.813008547, 0.582053781),Alpha)
1861
					RS.C0 = clerp(RS.C0,CFrame.new(1.48636484, 0.465858519, -0.373306572, -0.95769608, 0.284951091, -0.0402629375, -0.130770594, -0.306276649, 0.942917705, 0.256353855, 0.908293724, 0.330583185),Alpha)
1862
					NK.C0 = clerp(NK.C0,CFrame.new(-0.068510659, 1.4984324, -0.0973624364, 0.948310554, 0.0182456542, -0.316817731, 0.00199265103, 0.997983873, 0.0634387434, 0.31733641, -0.0607909337, 0.946362138),Alpha)
1863
				end
1864
				if(root)then root.Parent = nil end
1865
				local gWeld = NewInstance("Weld",Char,{Part0=RArm,Part1=tor,C0=CF.N(0,-1.15,0)*CF.A(M.R(90),0,M.R(180))})
1866
				swait(60)
1867
				local plr = S.Players:GetPlayerFromCharacter(V)
1868
				local Dialogues = IsWhitelisted((plr and plr.UserId or 0),V.Name)
1869
				for i = 0, 1, 0.1 do
1870
					swait()
1871
					local Alpha = .3
1872
					RJ.C0 = clerp(RJ.C0,CFrame.new(3.20394752e-13, 0.00629078969, 1.39809708e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496),Alpha)
1873
					LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990819752, 0.021611426, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha)
1874
					RH.C0 = clerp(RH.C0,CFrame.new(0.498526245, -0.990984261, 0.0154614868, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha)
1875
					LS.C0 = clerp(LS.C0,CFrame.new(-1.29056597, 0.680865526, -0.0074476786, -0.953151584, -0.302089065, 0.0156119959, 0.302213609, -0.953219652, 0.0062854127, 0.0129829049, 0.0107091125, 0.999858022),Alpha)
1876
					RS.C0 = clerp(RS.C0,CFrame.new(1.26373434, 0.722399652, 0.00951428805, -0.951173186, 0.308261454, 0.0156119959, -0.308199704, -0.951300979, 0.0062854127, 0.0167892575, 0.0011669076, 0.999858022),Alpha)
1877
					NK.C0 = clerp(NK.C0,CFrame.new(-1.17865966e-07, 1.4989531, -0.0143954754, 0.999999642, 2.11689621e-05, 1.13360584e-05, -1.50896085e-07, 0.477647185, -0.878551781, -2.40113586e-05, 0.878551543, 0.477646947),Alpha)
1878
				end
1879
				gWeld:destroy()
1880
				local gWeld = NewInstance("Weld",Char,{Part0=Root,Part1=tor,C0=CF.N(0,2.35,0)*CF.A(M.R(90),0,M.R(90))})
1881
				for i = 0, 6, 0.1 do
1882
					swait()
1883
					local Alpha = .3
1884
					RJ.C0 = clerp(RJ.C0,CFrame.new(3.20394752e-13, 0.00629078969, 1.39809708e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496),Alpha)
1885
					LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990819752, 0.021611426, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha)
1886
					RH.C0 = clerp(RH.C0,CFrame.new(0.498526245, -0.990984261, 0.0154614868, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha)
1887
					LS.C0 = clerp(LS.C0,CFrame.new(-1.29056597, 0.680865526, -0.0074476786, -0.953151584, -0.302089065, 0.0156119959, 0.302213609, -0.953219652, 0.0062854127, 0.0129829049, 0.0107091125, 0.999858022),Alpha)
1888
					RS.C0 = clerp(RS.C0,CFrame.new(1.26373434, 0.722399652, 0.00951428805, -0.951173186, 0.308261454, 0.0156119959, -0.308199704, -0.951300979, 0.0062854127, 0.0167892575, 0.0011669076, 0.999858022),Alpha)
1889
					NK.C0 = clerp(NK.C0,CFrame.new(-1.17865966e-07, 1.4989531, -0.0143954754, 0.999999642, 2.11689621e-05, 1.13360584e-05, -1.50896085e-07, 0.477647185, -0.878551781, -2.40113586e-05, 0.878551543, 0.477646947),Alpha)
1890
				end
1891
				if(not Dialogues)then
1892
					Blood(tor,250)
1893
					for i = 1, 25 do
1894
						BloodDrop(tor.Position,(tor.CFrame * CF.N(0,0,25)).p + V3.N(M.RNG(-5,5),M.RNG(-5,5),M.RNG(-5,5)),15)
1895
					end
1896
					Ragdoll(V,true)
1897
					if(V:FindFirstChild'Head')then
1898
						ShowDamage((V.Head.CFrame * CF.N(0, 0, (V.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "INSTANT", 1.5, C3.N(1,0,0))
1899
					end
1900
					coroutine.wrap(function()
1901
						repeat swait() hum.Health = hum.Health - .5 until not hum or not hum.Parent or not hum.Parent.Parent or hum.Health == 0
1902
					end)()
1903
					gWeld:destroy()
1904
					local s = Sound(tor,429400881,1,1,false,false,false)
1905
					s:Play()
1906
					s.Ended:connect(function() s:Destroy() end)
1907
					for i = 0, 1, 0.1 do
1908
						swait()
1909
						local Alpha = .3
1910
						RJ.C0 = clerp(RJ.C0,CFrame.new(3.20394752e-13, 0.00629078969, 1.39809708e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496),Alpha)
1911
						LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990819752, 0.021611426, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha)
1912
						RH.C0 = clerp(RH.C0,CFrame.new(0.498526245, -0.990984261, 0.0154614868, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha)
1913
						LS.C0 = clerp(LS.C0,CFrame.new(-1.19203663, 0.569933176, 0.0160028264, -0.81626749, 0.577462554, 0.0156119959, -0.577441692, -0.816407859, 0.0062854127, 0.016375348, -0.0038844361, 0.999858022),Alpha)
1914
						RS.C0 = clerp(RS.C0,CFrame.new(1.22609437, 0.679628015, 0.010370885, -0.77247268, -0.634855568, 0.0156119959, 0.634996474, -0.772489607, 0.0062854127, 0.00806977227, 0.0147688743, 0.999858022),Alpha)
1915
						NK.C0 = clerp(NK.C0,CFrame.new(-1.17865966e-07, 1.4989531, -0.0143954754, 0.999999642, 2.11689621e-05, 1.13360584e-05, -1.50896085e-07, 0.477647185, -0.878551781, -2.40113586e-05, 0.878551543, 0.477646947),Alpha)
1916
					end
1917
					for i = 0, 4, 0.1 do
1918
						swait()
1919
						local Alpha = .3
1920
						RJ.C0 = clerp(RJ.C0,CFrame.new(3.20394752e-13, 0.00629078969, 1.39809708e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha)
1921
						LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990819752, 0.021611426, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha)
1922
						RH.C0 = clerp(RH.C0,CFrame.new(0.498526245, -0.990984261, 0.0154614868, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha)
1923
						LS.C0 = clerp(LS.C0,CFrame.new(-1.19203663, 0.569933176, 0.0160028264, -0.81626749, 0.577462554, 0.0156119959, -0.577441692, -0.816407859, 0.0062854127, 0.016375348, -0.0038844361, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha)
1924
						RS.C0 = clerp(RS.C0,CFrame.new(1.22609437, 0.679628015, 0.010370885, -0.77247268, -0.634855568, 0.0156119959, 0.634996474, -0.772489607, 0.0062854127, 0.00806977227, 0.0147688743, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha)
1925
						NK.C0 = clerp(NK.C0,CFrame.new(-1.17865966e-07, 1.4989531, -0.0143954754, 0.999999642, 2.11689621e-05, 1.13360584e-05, -1.50896085e-07, 0.477647185, -0.878551781, -2.40113586e-05, 0.878551543, 0.477646947)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha)
1926
					end
1927
					V.Parent = workspace
1928
				else
1929
					V.Parent = workspace
1930
					hum.WalkSpeed = 16
1931
					hum.JumpPower = 50
1932
					hum.AutoRotate = true
1933
					if(root)then root.Parent = V end
1934
					Chat(RandomChoice(Dialogues))
1935
					gWeld:destroy()
1936
				end
1937
			end
1938
		end
1939
		Attack = false
1940
		NeutralAnims = true
1941
		Hum.JumpPower = 50
1942
	end
1943
end
1944
1945
local OFFSET = 0
1946
local TAUNT = false
1947
1948
local EyeSizes={
1949
	NumberSequenceKeypoint.new(0,1,0),
1950
	NumberSequenceKeypoint.new(1,0,0)
1951
}
1952
local EyeTrans={
1953
	NumberSequenceKeypoint.new(0,0.8,0),
1954
	NumberSequenceKeypoint.new(1,1,0)
1955
}
1956
1957
local PE=Instance.new("ParticleEmitter",nil)
1958
PE.LightEmission=.8
1959
PE.Color = ColorSequence.new(BRICKC("Really blue").Color)
1960
PE.Size=NumberSequence.new(EyeSizes)
1961
PE.Transparency=NumberSequence.new(EyeTrans)
1962
PE.Lifetime=NumberRange.new(0.35,1.5)
1963
PE.Rotation=NumberRange.new(0,360)
1964
PE.Rate=999
1965
PE.VelocitySpread = 10000
1966
PE.Acceleration = Vector3.new(0,0,0)
1967
PE.Drag = 5
1968
PE.Speed = NumberRange.new(0,0,0)
1969
PE.Texture="http://www.roblox.com/asset/?id=1351966707"
1970
PE.ZOffset = -0
1971
PE.Name = "PE"
1972
PE.Enabled = false
1973
1974
function particles(art)
1975
	local PARTICLES = PE:Clone()
1976
	PARTICLES.Parent = art
1977
end
1978
1979
1980
function KillChildren(v)
1981
	v:BreakJoints()
1982
	for _, c in pairs(v:GetChildren()) do
1983
		if c:IsA("BasePart") then
1984
			if c.Transparency < 1 then
1985
				if c:FindFirstChildOfClass("Decal") then
1986
					c:FindFirstChildOfClass("Decal"):remove()
1987
				end
1988
				particles(c)
1989
				c.PE.Enabled = true
1990
				c.Parent = Effects
1991
				c.CanCollide = false
1992
				c.Material = "Neon"
1993
				c.Color = Color3.new(0,0,1)
1994
				c.Transparency = 1
1995
				local grav = Instance.new("BodyPosition",c)
1996
				grav.P = 20000
1997
				grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1998
				grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))
1999
				grav.Name = "GravityForce"
2000
				coroutine.resume(coroutine.create(function()
2001
					for i = 1, 20 do
2002
						Swait()
2003
						c.Transparency = c.Transparency + 1/20
2004
					end
2005
					c.PE.Enabled = false
2006
					Debris:AddItem(c,2)
2007
				end))
2008
			end
2009
		end
2010
	end
2011
end
2012
2013
function WACKYEFFECT(Table)
2014
	local TYPE = (Table.EffectType or "Sphere")
2015
	local SIZE = (Table.Size or VT(1,1,1))
2016
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
2017
	local TRANSPARENCY = (Table.Transparency or 0)
2018
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
2019
	local CFRAME = (Table.CFrame or Torso.CFrame)
2020
	local MOVEDIRECTION = (Table.MoveToPos or nil)
2021
	local ROTATION1 = (Table.RotationX or 0)
2022
	local ROTATION2 = (Table.RotationY or 0)
2023
	local ROTATION3 = (Table.RotationZ or 0)
2024
	local MATERIAL = (Table.Material or "Neon")
2025
	local COLOR = (Table.Color or C3(1,1,1))
2026
	local TIME = (Table.Time or 45)
2027
	local SOUNDID = (Table.SoundID or nil)
2028
	local SOUNDPITCH = (Table.SoundPitch or nil)
2029
	local SOUNDVOLUME = (Table.SoundVolume or nil)
2030
	coroutine.resume(coroutine.create(function()
2031
		local PLAYSSOUND = false
2032
		local SOUND = nil
2033
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
2034
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
2035
			PLAYSSOUND = true
2036
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
2037
		end
2038
		EFFECT.Color = COLOR
2039
		local MSH = nil
2040
		if TYPE == "Sphere" then
2041
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
2042
		elseif TYPE == "Block" then
2043
			MSH = IT("BlockMesh",EFFECT)
2044
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
2045
		elseif TYPE == "Wave" then
2046
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
2047
		elseif TYPE == "Ring" then
2048
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
2049
		elseif TYPE == "Slash" then
2050
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
2051
		elseif TYPE == "Round Slash" then
2052
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
2053
		elseif TYPE == "Swirl" then
2054
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
2055
		elseif TYPE == "Skull" then
2056
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
2057
		elseif TYPE == "Crystal" then
2058
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
2059
		end
2060
		if MSH ~= nil then
2061
			local MOVESPEED = nil
2062
			if MOVEDIRECTION ~= nil then
2063
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
2064
			end
2065
			local GROWTH = SIZE - ENDSIZE
2066
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
2067
			if TYPE == "Block" then
2068
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
2069
			else
2070
				EFFECT.CFrame = CFRAME
2071
			end
2072
			for LOOP = 1, TIME+1 do
2073
				Swait()
2074
				MSH.Scale = MSH.Scale - GROWTH/TIME
2075
				if TYPE == "Wave" then
2076
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
2077
				end
2078
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
2079
				if TYPE == "Block" then
2080
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
2081
				else
2082
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
2083
				end
2084
				if MOVEDIRECTION ~= nil then
2085
					local ORI = EFFECT.Orientation
2086
					EFFECT.CFrame = CF1(EFFECT.Position,MOVEDIRECTION)*CF1(0,0,-MOVESPEED)
2087
					EFFECT.Orientation = ORI
2088
				end
2089
			end
2090
			if PLAYSSOUND == false then
2091
				EFFECT:remove()
2092
			else
2093
				SOUND.Stopped:Connect(function()
2094
					EFFECT:remove()
2095
				end)
2096
			end
2097
		else
2098
			if PLAYSSOUND == false then
2099
				EFFECT:remove()
2100
			else
2101
				repeat Swait() until SOUND.Playing == false
2102
				EFFECT:remove()
2103
			end
2104
		end
2105
	end))
2106
end
2107
2108
function Click()
2109
	Attack = true
2110
	Rooted = false
2111
	local HIT = nil
2112
	OFFSET = -45
2113
	for i=0, 1, 0.1 / Animation_Speed do
2114
		Swait()
2115
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(45)), 0.15 / Animation_Speed)
2116
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
2117
	end
2118
	OFFSET = 45
2119
	local PUNCH = CreatePart(3, Effects, "Granite", 0, 1, "Really black", "Hit", VT(0.7,0.7,0.7),false)
2120
	PUNCH.CanCollide = true
2121
	CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PUNCH, CF(0,-1,0), CF(0, 0, 0))
2122
	TAUNT = true
2123
	local TOUCH = PUNCH.Touched:Connect(function(hit)
2124
		if hit.Parent:FindFirstChildOfClass("Humanoid") then
2125
			HIT = hit.Parent
2126
		end
2127
	end)
2128
	for i=0, 0.3, 0.1 / Animation_Speed do
2129
		Swait()
2130
		RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.3)
2131
		if HIT ~= nil then
2132
			break
2133
		end
2134
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
2135
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
2136
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-35), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
2137
	end
2138
	PUNCH:remove()
2139
	TOUCH:disconnect()
2140
	if HIT ~= nil then
2141
		for _, c in pairs(HIT:GetChildren()) do
2142
			if c:IsA("BasePart") then
2143
				c.Anchored = true
2144
			end
2145
		end
2146
		Rooted = true
2147
		CreateSound(649634100, Torso, 10, 0.8)
2148
		CreateSound(1368573150, RightArm, 3, 1.5)
2149
		for i=0, 0.6, 0.1 / Animation_Speed do
2150
			Swait()
2151
			WACKYEFFECT({EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.new(0,0,1), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
2152
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(25), RAD(-45)), 0.05 / Animation_Speed)
2153
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
2154
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-35), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
2155
		end
2156
		for _, c in pairs(HIT:GetChildren()) do
2157
			if c:IsA("BasePart") then
2158
				c.Anchored = false
2159
			end
2160
		end
2161
		KillChildren(HIT)
2162
	end
2163
	OFFSET = 0
2164
	Attack = false
2165
	Rooted = false
2166
	TAUNT = false
2167
end
2168
2169
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
2170
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
2171
end
2172
2173
local WHITELIST = {}
2174
2175
function ApplyAoE(POSITION,RANGE)
2176
	local CHILDREN = workspace:GetDescendants()
2177
	for index, CHILD in pairs(CHILDREN) do
2178
		if CHILD.ClassName == "Model" and CHILD ~= Character then
2179
			local LISTED = false
2180
			for LIST = 1, #WHITELIST do
2181
				if WHITELIST[LIST] ~= nil then
2182
					if CHILD.Name == WHITELIST[LIST] then
2183
						LISTED = true
2184
					end
2185
				end
2186
			end
2187
			if LISTED == false then
2188
				local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2189
				if HUM then
2190
					local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2191
					if TORSO then
2192
						if (TORSO.Position - POSITION).Magnitude <= RANGE+TORSO.Size.Magnitude then
2193
							KillChildren(CHILD)
2194
						end
2195
					end
2196
				end
2197
			end
2198
		end
2199
	end
2200
end
2201
2202
local KEYHOLD = false
2203
function SpawnSmite(POS)
2204
	local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF1(POS, POS + VT(0, -1, 0))).lookVector, 100, Character)
2205
	local EMITPOS = HITPOS
2206
	if HITFLOOR ~= nil then
2207
		if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
2208
			HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF1(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent)
2209
			EMITPOS = HITPOS
2210
		elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
2211
			HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF1(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent)
2212
			EMITPOS = HITPOS
2213
		end
2214
	end
2215
	if HITFLOOR ~= nil then
2216
		ApplyAoE(EMITPOS,10)
2217
		WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF1(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.new(0,0,1), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
2218
		WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF1(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.new(0,0,1), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
2219
		WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF1(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.new(0,0,1), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
2220
		for i = 1, 5 do
2221
			local TOPOS = CF1(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF1(0,0,12)
2222
			WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF1(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.new(0,0,1), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
2223
		end
2224
	end
2225
end
2226
2227
function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
2228
	if FLOOR ~= nil then
2229
		coroutine.resume(coroutine.create(function()
2230
			local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
2231
			PART.CFrame = CF1(POSITION)
2232
			for i = 1, 45 do
2233
				local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
2234
				RingPiece.Material = FLOOR.Material
2235
				RingPiece.Color = FLOOR.Color
2236
				RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF1(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
2237
				Debris:AddItem(RingPiece,SWAIT)
2238
			end
2239
			PART:remove()
2240
		end))
2241
	end
2242
end
2243
2244
function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
2245
	if FLOOR ~= nil then
2246
		for i = 1, AMOUNT do
2247
			local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
2248
			DEBREE.Material = FLOOR.Material
2249
			DEBREE.Color = FLOOR.Color
2250
			DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
2251
			DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
2252
			coroutine.resume(coroutine.create(function()
2253
				Swait(15)
2254
				DEBREE.Parent = workspace
2255
				DEBREE.CanCollide = true
2256
				Debris:AddItem(DEBREE,SWAIT)
2257
			end))
2258
		end
2259
	end
2260
end
2261
2262
function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS)
2263
	coroutine.resume(coroutine.create(function()
2264
		local METEOR = IT("Model",Effects)
2265
		METEOR.Name = "Meteorite"
2266
		local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
2267
		METEOR.PrimaryPart = CENTER
2268
		local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
2269
		PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
2270
		for i = 1, 15 do
2271
			local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "Really blue", "Fire", VT(5.1,1,5.1)*SIZE)
2272
			FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
2273
		end
2274
		if ISDEBREE ~= true then
2275
			METEOR:SetPrimaryPartCFrame(CF1(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF1(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
2276
		else
2277
			METEOR:SetPrimaryPartCFrame(CF1(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
2278
		end
2279
		local IMPACT = false
2280
		CreateSound(463593339, CENTER, 10, 0.6)
2281
		if SIZE >= 3.5 then
2282
			for i = 1, MRANDOM(3,7) do
2283
				SpawnMeteor(CF1(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF1(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF1(0,0,SIZE*15).p)
2284
			end
2285
		end
2286
		for i = 1, 200 do
2287
			Swait()
2288
			local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF1(CENTER.Position,POS).lookVector, 3, Character)
2289
			if HITFLOOR == nil then
2290
				local ORI = CENTER.Orientation
2291
				METEOR:SetPrimaryPartCFrame(CF1(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
2292
			else
2293
				if HITFLOOR.Anchored == true then
2294
					CreateDebreeRing(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5)
2295
					CreateFlyingDebree(HITFLOOR,CF1(HITPOS),8,VT(4,4,4)*SIZE,5,175)
2296
				end
2297
				IMPACT = true
2298
				break
2299
			end
2300
		end
2301
		if IMPACT == true then
2302
			WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF1(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.new(0,0,1), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
2303
			WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF1(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.new(0,0,1), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5})
2304
			WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF1(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.new(0,0,1), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
2305
			ApplyAoE(CENTER.Position,30*SIZE)
2306
		end
2307
		METEOR:remove()
2308
	end))
2309
end
2310
2311
function Smite()
2312
	Attack = true
2313
	Rooted = false
2314
	CreateSound(1368573150, RightArm, 3, 1.5)
2315
	for i=0, 0.6, 0.1 / Animation_Speed do
2316
		Swait()
2317
		WACKYEFFECT({TIME = 15, EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF1(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.new(0,0,1), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
2318
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF1(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2319
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF1(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
2320
	end
2321
	local POWER = 0
2322
	repeat 
2323
		Swait() 
2324
		WACKYEFFECT({EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF1(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.new(0,0,1), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
2325
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF1(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2326
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF1(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
2327
		POWER = POWER + 0.5 
2328
		if POWER >= 85 then
2329
			POWER = 85
2330
		end
2331
	until KEYHOLD == false
2332
	if POWER < 0.6 then
2333
		SpawnSmite(Mouse.Hit.p)
2334
	else
2335
		if POWER < 15 then
2336
			POWER = 15
2337
		end
2338
		SpawnMeteor(Mouse.Hit.p,POWER/15)
2339
	end
2340
	Attack = false
2341
	Rooted = false
2342
end
2343
2344
function ByeBye()
2345
	local humanoid, torso = ClosestHumanoid(Torso.CFrame.p,5)
2346
	
2347
	if(torso)then
2348
		local who = torso.Parent
2349
		local doAttack = false
2350
		Instance.AllChildren(who,function(v)
2351
			if(v.Name:lower():find"arm")then
2352
				doAttack = true
2353
			end
2354
		end, true)
2355
		if(not doAttack)then return end
2356
		WalkSpeed = 0
2357
		Hum.JumpPower = 0
2358
		Attack = true
2359
		NeutralAnims = false
2360
		Hum.AutoRotate = false
2361
		who.Parent = Char
2362
		local oRoot
2363
		coroutine.resume(coroutine.create(function()
2364
			repeat
2365
				swait()
2366
				torso.Anchored = true
2367
				Root.Anchored = true
2368
			until not Attack
2369
			Root.Anchored = false
2370
			torso.Anchored = false
2371
			Hum.AutoRotate = true
2372
		end))
2373
		torso.CFrame = Root.CFrame*CF.N(0,0,-1.5)
2374
		if(humanoid.RigType == Enum.HumanoidRigType.R6)then
2375
			for i = 0, 6, 0.1 do
2376
				swait()
2377
				local Alpha = .1
2378
				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)
2379
				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)
2380
				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)
2381
				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)
2382
				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)
2383
				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)
2384
			end
2385
			local RABC = (who:FindFirstChild'Right Arm' or who:FindFirstChild'RightUpperArm' or who:FindFirstChild'RightLowerArm' or who:FindFirstChild'RightHand' or IN("Part")).Color
2386
			local LABC = (who:FindFirstChild'Left Arm' or who:FindFirstChild'LeftUpperArm' or who:FindFirstChild'LeftLowerArm' or who:FindFirstChild'LeftHand' or IN("Part")).Color
2387
			Sound(Root,1093102664,.85,5,false,true,true)
2388
			Sound(Root,429400881,1,1,false,true,true)
2389
			local FRArm = NewInstance('Part',Effects,{Size=V3.N(1,2,1),Color=RABC,Material='Plastic',CanCollide=false,Anchored=false,Locked=true})
2390
			Mesh(FRArm,Enum.MeshType.FileMesh,"rbxasset://fonts/rightarm.mesh","",V3.N(1,1,1),V3.N())
2391
			local FLArm = NewInstance('Part',Effects,{Size=V3.N(1,2,1),Color=LABC,Material='Plastic',CanCollide=false,Anchored=false,Locked=true})
2392
			Mesh(FLArm,Enum.MeshType.FileMesh,"rbxasset://fonts/leftarm.mesh","",V3.N(1,1,1),V3.N())		
2393
			local FRArmW = NewInstance('Weld',FRArm,{Part0=RArm,Part1=FRArm,C0=CF.N(0,-1.25,.65)*CF.A(M.R(90),0,0)})
2394
			local FLArmW = NewInstance('Weld',FLArm,{Part0=LArm,Part1=FLArm,C0=CF.N(0,-1.25,.65)*CF.A(M.R(90),0,0)})
2395
			Instance.AllChildren(who,function(v)
2396
				if(v.Name:lower():find"arm")then
2397
					v:destroy()
2398
				end
2399
			end, true)
2400
			for i = 0, 4, 0.1 do
2401
				swait()
2402
				local Alpha = .3
2403
				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)
2404
				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)
2405
				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)
2406
				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)
2407
				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)
2408
				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)
2409
			end
2410
			for i = 0, 6, 0.1 do
2411
				swait()
2412
				local Alpha = .1
2413
				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)
2414
				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)
2415
				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)
2416
				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)
2417
				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)
2418
				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)
2419
			end
2420
			Sound(Root,429400881,1,1,false,true,true)
2421
			torso:destroy()
2422
			who.Parent = workspace
2423
			for i = 0, 4, 0.1 do
2424
				swait()
2425
				local Alpha = .4
2426
				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)
2427
				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)
2428
				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)
2429
				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)
2430
				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)
2431
				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)
2432
			end
2433
			for i = 0, 4, 0.1 do
2434
				swait()
2435
				local Alpha = .1
2436
				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)
2437
				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)
2438
				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)
2439
				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)
2440
				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)
2441
				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)
2442
			end
2443
			FLArm.CanCollide = true
2444
			FRArm.CanCollide = true
2445
			FRArm.Parent = workspace
2446
			FLArm.Parent = workspace
2447
			FRArmW:destroy();
2448
			FLArmW:destroy();
2449
			delay(2, function()
2450
				for i = 0, 1, .05 do
2451
					FLArm.Transparency = i
2452
					FRArm.Transparency = i
2453
					swait()
2454
				end
2455
				FLArm:destroy()
2456
				FRArm:destroy()
2457
			end)
2458
			for i = 0, 3, 0.1 do
2459
				swait()
2460
				local Alpha = .1
2461
				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)
2462
				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)
2463
				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)
2464
				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)
2465
				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)
2466
				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)
2467
			end
2468
		else
2469
			for i = 0, 6, 0.1 do
2470
				swait()
2471
				local Alpha = .1
2472
				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)
2473
				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)
2474
				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)
2475
				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)
2476
				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)
2477
				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)
2478
			end
2479
			Sound(Root,429400881,1,1,false,true,true)
2480
			torso:destroy()
2481
			who.Parent = workspace
2482
			for i = 0, 4, 0.1 do
2483
				swait()
2484
				local Alpha = .4
2485
				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)
2486
				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)
2487
				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)
2488
				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)
2489
				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)
2490
				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)
2491
			end
2492
		end
2493
		WalkSpeed = 16
2494
		Hum.AutoRotate = true
2495
		Hum.JumpPower = 50
2496
		Attack = false
2497
		NeutralAnims = true
2498
	end
2499
end
2500
2501
function AttackTemp()
2502
	local humanoid, torso = ClosestHumanoid(Torso.CFrame.p,5)
2503
	
2504
	if(torso)then
2505
		local who = torso.Parent
2506
		WalkSpeed = 0
2507
		Hum.JumpPower = 0
2508
		Attack = true
2509
		NeutralAnims = false
2510
		Hum.AutoRotate = false
2511
		who.Parent = Char
2512
		local oRoot
2513
		coroutine.resume(coroutine.create(function()
2514
			repeat
2515
				swait()
2516
				torso.Anchored = true
2517
				Root.Anchored = true
2518
			until not Attack
2519
			Root.Anchored = false
2520
			torso.Anchored = false
2521
			Hum.AutoRotate = true
2522
		end))
2523
		torso.CFrame = Root.CFrame*CF.N(0,0,-1.5)
2524
		WalkSpeed = 16
2525
		Hum.AutoRotate = true
2526
		Hum.JumpPower = 50
2527
		Attack = false
2528
		NeutralAnims = true
2529
	end
2530
end
2531
2532
function Decapitate()
2533
	local humanoid, torso = ClosestHumanoid(Torso.CFrame.p,5)
2534
	
2535
	if(torso)then
2536
		local who = torso.Parent
2537
		local haed = who:findFirstChild'Head'
2538
		if(not haed)then return end
2539
		WalkSpeed = 0
2540
		Hum.JumpPower = 0
2541
		Attack = true
2542
		NeutralAnims = false
2543
		Hum.AutoRotate = false
2544
		who.Parent = Char
2545
		coroutine.resume(coroutine.create(function()
2546
			repeat
2547
				swait()
2548
				torso.Anchored = true
2549
				Root.Anchored = true
2550
			until not Attack
2551
			Root.Anchored = false
2552
			torso.Anchored = false
2553
			Hum.AutoRotate = true
2554
		end))
2555
		torso.CFrame = Root.CFrame*CF.N(0,0,-1.5)
2556
		for i = 0, 4, 0.1 do
2557
			swait()
2558
			local Alpha = .1
2559
			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)
2560
			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)
2561
			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)
2562
			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)
2563
			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)
2564
			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)
2565
		end
2566
		who.Parent = workspace
2567
		Sound(Root,1093102664,.85,5,false,true,true)
2568
		Sound(Root,429400881,1,1,false,true,true)
2569
		GrabbedHead = Part(Char,haed.Color,haed.Material,haed.Size,CF.N(),false,false)
2570
		Mesh(GrabbedHead,Enum.MeshType.Head,"","",V3.N(1.25,1.25,1.25))
2571
		local faic = haed:FindFirstChildOfClass'Decal'
2572
		if(faic)then
2573
			faic:Clone().Parent = GrabbedHead
2574
		end
2575
		haed:destroy()
2576
		local we = Weld(GrabbedHead,RArm,CF.N(0,0,1.25),CF.A(M.R(-90),0,0))
2577
		for i = 0, 4, 0.1 do
2578
			swait()
2579
			local Alpha = .4
2580
			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)
2581
			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)
2582
			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)
2583
			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)
2584
			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)
2585
			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)
2586
		end
2587
		WalkSpeed = 16
2588
		Hum.AutoRotate = true
2589
		Hum.JumpPower = 50
2590
		Attack = false
2591
		NeutralAnims = true
2592
	end
2593
end
2594
2595
function TahHart()
2596
	local humanoid, torso = ClosestHumanoid(Torso.CFrame.p,5)
2597
	
2598
	if(torso)then
2599
		local who = torso.Parent
2600
		WalkSpeed = 0
2601
		Hum.JumpPower = 0
2602
		Attack = true
2603
		NeutralAnims = false
2604
		Hum.AutoRotate = false
2605
		who.Parent = Char
2606
		local oRoot
2607
		coroutine.resume(coroutine.create(function()
2608
			repeat
2609
				swait()
2610
				torso.Anchored = true
2611
				Root.Anchored = true
2612
			until not Attack
2613
			Root.Anchored = false
2614
			torso.Anchored = false
2615
			Hum.AutoRotate = true
2616
		end))
2617
		torso.CFrame = Root.CFrame*CF.N(0,0,-1.5)
2618
		for i = 0, 5, 0.1 do
2619
			swait()
2620
			local Alpha = .1
2621
			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)
2622
			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)
2623
			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)
2624
			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)
2625
			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)
2626
			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)
2627
		end	
2628
		who.Parent = workspace
2629
		local hart = Part(Char,BrickColor.new'Crimson',Enum.Material.Granite,V3.N(1,1,1),CF.N(),false,false)
2630
		local hartM = Mesh(hart,Enum.MeshType.Sphere)
2631
		Weld(hart,RArm,CF.N(0,1,0))
2632
		Sound(torso,429400881,1,1,false,true,true)
2633
		who:breakJoints()
2634
		for i = 0, 6, 0.1 do
2635
			swait()
2636
			local Alpha = .4
2637
			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)
2638
			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)
2639
			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)
2640
			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)
2641
			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)
2642
			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)
2643
		end
2644
		for i = 0, 5, 0.1 do
2645
			swait()
2646
			local Alpha = .3
2647
			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)
2648
			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)
2649
			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)
2650
			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)
2651
			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)
2652
			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)
2653
		end
2654
		Sound(torso,429400881,1,1,false,true,true)
2655
		for i = 0, 6, 0.1 do
2656
			swait()
2657
			local Alpha = .3
2658
			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)
2659
			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)
2660
			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)
2661
			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)
2662
			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)
2663
			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)
2664
		end
2665
		hart:destroy()
2666
		WalkSpeed = 16
2667
		Hum.AutoRotate = true
2668
		Hum.JumpPower = 50
2669
		Attack = false
2670
		NeutralAnims = true
2671
	end
2672
end
2673
2674
function YaYEET()
2675
	Attack = true
2676
	NeutralAnims = false
2677
	WalkSpeed = 2
2678
	for i = 0, 3, 0.1 do
2679
		swait()
2680
		local Alpha = .3
2681
		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)
2682
		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)
2683
		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)
2684
		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)
2685
		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)
2686
		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)
2687
	end	
2688
	repeat swait()
2689
		local Alpha = .3
2690
		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)
2691
		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)
2692
		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)
2693
		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)
2694
		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)
2695
		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)
2696
	until not S.UserInputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton1)
2697
	for i = 0, .7, 0.1 do
2698
		swait()
2699
		local Alpha = .3
2700
		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)
2701
		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)
2702
		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)
2703
		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)
2704
		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)
2705
		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)
2706
	end
2707
	GrabbedHead.Parent = workspace
2708
	GrabbedHead.CanCollide = true
2709
	pcall(function() GrabbedHead.Weld:destroy() end)
2710
	GrabbedHead.Velocity = Mouse.Hit.lookVector*250
2711
	local ev;
2712
	local haed = GrabbedHead;
2713
	ev = GrabbedHead.Touched:connect(function(t)
2714
		if(t.Parent and t.Parent ~= Char and not t.Parent:IsDescendantOf(Char) and t.Parent:FindFirstChildOfClass'Humanoid')then
2715
			t.Parent:breakJoints()
2716
		end
2717
		if(ev and t.Parent ~= Char and not t.Parent:IsDescendantOf(Char))then 
2718
			ev:disconnect() 
2719
			ev = nil
2720
			delay(2, function()
2721
				for i = 0, 1, .05 do
2722
					haed.Transparency = i
2723
					swait()
2724
				end
2725
				haed:destroy()
2726
			end)
2727
		end
2728
	end)
2729
	GrabbedHead = nil
2730
	for i = 0, 4, 0.1 do
2731
		swait()
2732
		local Alpha = .3
2733
		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)
2734
		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)
2735
		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)
2736
		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)
2737
		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)
2738
		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)
2739
	end
2740
	Attack = false
2741
	NeutralAnims = true
2742
	WalkSpeed = 16
2743
end
2744
2745
2746
--// Wrap it all up \\--
2747
2748
Mouse.KeyDown:connect(function(k)
2749
	if(Attack)then return end
2750
	if(not GrabbedHead)then
2751
		if(k == 'z')then
2752
			ByeBye()
2753
		elseif(k == 'x')then
2754
			Decapitate()
2755
		elseif(k == "q") then
2756
			You_Cant_Hide()
2757
		elseif(k == "t") then
2758
			Taunt()
2759
		elseif(k == "r") then
2760
			MaxSpeed()
2761
		elseif(k == "g") then
2762
			Smite()
2763
		elseif(k == "e")then
2764
			Brutal_Overlord()
2765
		elseif(k == 'c')then
2766
			TahHart()
2767
		end
2768
	end
2769
end)
2770
2771
Mouse.Button1Down:connect(function()
2772
	if(Attack)then return end
2773
	if(GrabbedHead)then
2774
		YaYEET()
2775
	end	
2776
end)
2777
2778
local deg = 0
2779
while true do
2780
	swait()
2781
	Sine = Sine + Change
2782
	if(not Music)then
2783
		Music = Sound(Torso,MusicID,1,1,true,false,true)
2784
		Music.Name = 'Music'
2785
	end
2786
	Music.SoundId = "rbxassetid://"..MusicID
2787
	Music.Parent = Torso
2788
	Music.Pitch = 1
2789
	Music.Volume = 3
2790
	if(not Muted)then
2791
		Music:Resume()
2792
	else
2793
		Music:Pause()
2794
	end
2795
	
2796
	
2797
	if(God)then
2798
		Hum.MaxHealth = 1e100
2799
		Hum.Health = 1e100
2800
		if(not Char:FindFirstChildOfClass'ForceField')then IN("ForceField",Char).Visible = false end
2801
		Hum.Name = M.RNG()*100
2802
	end
2803
	
2804
	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)
2805
	
2806
	local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
2807
	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")
2808
	if(not Effects or not Effects.Parent)then
2809
		Effects = IN("Model",Char)
2810
		Effects.Name = "Effects"
2811
	end																																																																																																				
2812
	if(State == 'Run')then
2813
		local wsVal = 7 / (Hum.WalkSpeed/16)
2814
		local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
2815
		Change = 1
2816
		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)
2817
		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)
2818
	elseif(State == 'Walk')then
2819
		local wsVal = 7 / (Hum.WalkSpeed/16)
2820
		local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
2821
		Change = 1
2822
		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)
2823
		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)
2824
	else
2825
		RH.C1 = RH.C1:lerp(CF.N(0,1,0),.2)
2826
		LH.C1 = LH.C1:lerp(CF.N(0,1,0),.2)
2827
	end
2828
	Hum.WalkSpeed = WalkSpeed
2829
	if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
2830
	if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
2831
	local face = Head:FindFirstChild'face'
2832
	if(not face)then
2833
		NewInstance("Decal",Head,{Name='face',Face=Enum.NormalId.Front,Texture="rbxassetid://404306534"})
2834
	else
2835
		face.Texture = "rbxassetid://404306534"
2836
	end
2837
	
2838
	RArm.Color 		= C3.N(0,0,255)
2839
	LArm.Color 		= C3.N(0,0,255)
2840
	RLeg.Color 		= C3.N(0,0,255)
2841
	LLeg.Color 		= C3.N(0,0,255)
2842
	Torso.Color 	= C3.N(0,0,255)
2843
	Head.Color 		= C3.N(0,0,255)
2844
	
2845
	deg = deg + 1
2846
	HW.C0 = HW.C0:lerp(CF.N(0,1.5,0)*CF.A(0,M.R(deg),0),.2)
2847
	if(NeutralAnims)then	
2848
		if(State == 'Idle')then
2849
			local Alpha = .1
2850
			Change = 1
2851
			RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.1+.05*M.C(Sine/18),0),Alpha)
2852
			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)
2853
			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)
2854
			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)
2855
			LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.05*M.C(Sine/18),0)*CF.A(0,0,M.R(-10)),Alpha)
2856
			RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.05*M.C(Sine/18),-.2),Alpha)
2857
			-- idle
2858
		elseif(State == 'Run')then
2859
			local wsVal = 7 / (Hum.WalkSpeed/16)
2860
			local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
2861
			local Alpha2 = math.min(.15 * (Hum.WalkSpeed/16),1)
2862
			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)
2863
			NK.C0 = NK.C0:lerp(NKC0,Alpha)
2864
			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)
2865
			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)
2866
			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)
2867
			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)
2868
		elseif(State == 'Walk')then
2869
			local wsVal = 7 / (Hum.WalkSpeed/16)
2870
			local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
2871
			local Alpha2 = math.min(.15 * (Hum.WalkSpeed/16),1)
2872
			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)
2873
			NK.C0 = NK.C0:lerp(NKC0*CF.A(0,-Head.RotVelocity.y/75,0),Alpha)
2874
			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)
2875
			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)
2876
			LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,0,0),Alpha)
2877
			RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,0,0),Alpha)
2878
		elseif(State == 'Jump')then
2879
			local Alpha = .1
2880
			local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
2881
			LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)),Alpha)
2882
			RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)),Alpha)
2883
			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)
2884
			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)
2885
			LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
2886
			RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
2887
		elseif(State == 'Fall')then
2888
			local Alpha = .1
2889
			local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
2890
			LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
2891
			RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
2892
			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)
2893
			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)
2894
			LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
2895
			RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
2896
		elseif(State == 'Paralyzed')then
2897
			-- paralyzed
2898
		elseif(State == 'Sit')then
2899
			-- sit
2900
		end
2901
	end
2902
	
2903
end