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