View difference between Paste ID: rdSN9nZe and i15JT4xX
SHOW: | | - or go back to the newest paste.
1-
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
1+
2-
local Player,game,owner = owner,game
2+
3-
local RealPlayer = Player
3+
4-
do
4+
5-
	print("FE Compatibility code by Mokiros")
5+
6-
	local rp = RealPlayer
6+
7-
	script.Parent = rp.Character
7+
8
	Character = Player.Character
9-
	--RemoteEvent for communicating
9+
10-
	local Event = Instance.new("RemoteEvent")
10+
11-
	Event.Name = "UserInput_Event"
11+
12
	txt.Size = UDim2.new(2, 0, 1.2, 0)
13-
	--Fake event to make stuff like Mouse.KeyDown work
13+
14-
	local function fakeEvent()
14+
15-
		local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
15+
16-
		t.connect = t.Connect
16+
17-
		return t
17+
18
	text.TextTransparency = 0
19
	text.BackgroundTransparency = 1 
20-
	--Creating fake input objects with fake variables
20+
21-
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
21+
22-
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
22+
23-
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
23+
24-
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
24+
25-
	end}
25+
26-
	--Merged 2 functions into one by checking amount of arguments
26+
27-
	CAS.UnbindAction = CAS.BindAction
27+
28
	wait()
29-
	--This function will trigger the events that have been :Connect()'ed
29+
30-
	local function te(self,ev,...)
30+
31-
		local t = m[ev]
31+
32-
		if t and t._fakeEvent then
32+
33-
			for _,f in pairs(t.Functions) do
33+
34-
				f(...)
34+
	Color1 = ColorSequence.new(BrickColor.new("Really blue").Color),
35
	Color2 = ColorSequence.new(BrickColor.new("Really black").Color),
36
	AllBody = true,
37
	UpperBodyOnly = false,
38-
	m.TrigEvent = te
38+
39-
	UIS.TrigEvent = te
39+
40
	Extras = true,
41-
	Event.OnServerEvent:Connect(function(plr,io)
41+
42-
	    if plr~=rp then return end
42+
43-
		m.Target = io.Target
43+
44-
		m.Hit = io.Hit
44+
45-
		if not io.isMouse then
45+
46-
			local b = io.UserInputState == Enum.UserInputState.Begin
46+
47-
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
47+
48-
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
48+
49
		A2 = Instance.new("Attachment", Character["Right Arm"])
50-
			for _,t in pairs(CAS.Actions) do
50+
51-
				for _,k in pairs(t.Keys) do
51+
52-
					if k==io.KeyCode then
52+
53-
						t.Function(t.Name,io.UserInputState,io)
53+
54
		Trail.Texture = TrailSettings.Texture
55
		Trail.Color = TrailSettings.Color1
56
		Trail.Lifetime = TrailSettings.Lifetime
57-
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
57+
58-
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
58+
59
		Trail2.Attachment1 = A2
60
		local Trail3 = Trail:Clone()
61-
	Event.Parent = NLS([==[
61+
62-
	local Player = game:GetService("Players").LocalPlayer
62+
63-
	local Event = script:WaitForChild("UserInput_Event")
63+
64
		Trail6.Parent = Character
65-
	local Mouse = Player:GetMouse()
65+
66-
	local UIS = game:GetService("UserInputService")
66+
67-
	local input = function(io,a)
67+
68-
		if a then return end
68+
69-
		--Since InputObject is a client-side instance, we create and pass table instead
69+
70-
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
70+
71
	else
72-
	UIS.InputBegan:Connect(input)
72+
73-
	UIS.InputEnded:Connect(input)
73+
74
		A1 = Instance.new("Attachment", Character.Head)
75-
	local h,t
75+
76-
	--Give the server mouse data 30 times every second, but only if the values changed
76+
77-
	--If player is not moving their mouse, client won't fire events
77+
78-
	while wait(1/30) do
78+
79-
		if h~=Mouse.Hit or t~=Mouse.Target then
79+
80-
			h,t=Mouse.Hit,Mouse.Target
80+
81-
			Event:FireServer({isMouse=true,Target=t,Hit=h})
81+
82
		Trail.Texture = TrailSettings.Texture
83-
	end]==],Player.Character)
83+
84
		Trail.Lifetime = TrailSettings.Lifetime
85-
	----Sandboxed game object that allows the usage of client-side methods and services
85+
86-
	--Real game object
86+
87-
	local _rg = game
87+
88
		local Trail3 = Trail:Clone()
89-
	--Metatable for fake service
89+
90-
	local fsmt = {
90+
91-
		__index = function(self,k)
91+
92-
			local s = rawget(self,"_RealService")
92+
93-
			if s then return s[k] end
93+
94-
		end,
94+
95-
		__newindex = function(self,k,v)
95+
96-
			local s = rawget(self,"_RealService")
96+
97-
			if s then s[k]=v end
97+
98-
		end,
98+
99-
		__call = function(self,...)
99+
100-
			local s = rawget(self,"_RealService")
100+
101-
			if s then return s(...) end
101+
102
		local Trail2R = Trail:Clone()
103
		Trail2R.Parent = Character
104-
	local function FakeService(t,RealService)
104+
105-
		t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
105+
106-
		return setmetatable(t,fsmt)
106+
107
		Trail6.Attachment0 = A1
108
		Trail6.Attachment1 = A2R
109-
	--Fake game object
109+
110-
	local g = {
110+
111-
		GetService = function(self,s)
111+
112-
			return self[s]
112+
113-
		end,
113+
114-
		Players = FakeService({
114+
115-
			LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
115+
116-
		},"Players"),
116+
117-
		UserInputService = FakeService(UIS,"UserInputService"),
117+
118-
		ContextActionService = FakeService(CAS,"ContextActionService"),
118+
119
		local Trail4 = Trail:Clone()
120-
	rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
120+
121-
	g.service = g.GetService
121+
122
		local Trail5 = Trail:Clone()
123-
	g.RunService = FakeService({
123+
124-
		RenderStepped = _rg:GetService("RunService").Heartbeat,
124+
125-
		BindToRenderStep = function(self,name,_,fun)
125+
126-
			self._btrs[name] = self.Heartbeat:Connect(fun)
126+
127-
		end,
127+
128-
		UnbindFromRenderStep = function(self,name)
128+
129-
			self._btrs[name]:Disconnect()
129+
130-
		end,
130+
131-
	},"RunService")
131+
132
		Trail9.Attachment0 = A3
133-
	setmetatable(g,{
133+
134-
		__index=function(self,s)
134+
135-
			return _rg:GetService(s) or typeof(_rg[s])=="function"
135+
136-
			and function(_,...)return _rg[s](_rg,...)end or _rg[s]
136+
137-
		end,
137+
138-
		__newindex = fsmt.__newindex,
138+
139-
		__call = fsmt.__call
139+
140-
	})
140+
141-
	--Changing owner to fake player object to support owner:GetMouse()
141+
142-
	game,owner = g,g.Players.LocalPlayer
142+
143
		A5 = Instance.new("Attachment", Character.LeftLowerLeg)
144
		A5R = Instance.new("Attachment", Character.LeftUpperLeg)
145
		local Trail4 = Trail:Clone()
146
		Trail4.Parent = Character
147
		Trail4.Attachment1 = A4
148
		local Trail5 = Trail:Clone()
149
		Trail5.Parent = Character
150
		Trail5.Attachment1 = A5
151
		local Trail8 = Trail:Clone()
152
		Trail8.Parent = Character
153
		Trail8.Attachment0 = A2
154
		Trail8.Attachment1 = A4
155
		Trail8.Color = TrailSettings.Color2
156
		local Trail9 = Trail:Clone()
157
		Trail9.Parent = Character
158
		Trail9.Attachment0 = A3
159
		Trail9.Attachment1 = A5
160
		Trail9.Color = TrailSettings.Color2
161
		local FT = Trail:Clone()
162
		FT.Parent = Character
163
		FT.Attachment0 = A4
164
		FT.Attachment1 = A5
165
		FT.Color = TrailSettings.Color2
166
		local Trail3R = Trail:Clone()
167
		Trail3R.Parent = Character
168
		Trail3R.Attachment1 = A4R
169
		local Trail4R = Trail:Clone()
170
		Trail4R.Parent = Character
171
		Trail4R.Attachment1 = A5R
172
		local Trail8 = Trail:Clone()
173
		Trail8.Parent = Character
174
		Trail8.Attachment0 = A2R
175
		Trail8.Attachment1 = A4R
176
		Trail8.Color = TrailSettings.Color2
177-
	Color1 = ColorSequence.new(BrickColor.new("Really black").Color),
177+
178-
	Color2 = ColorSequence.new(BrickColor.new("White").Color),
178+
179
		Trail9.Attachment0 = A3R
180
		Trail9.Attachment1 = A5R
181
		Trail9.Color = TrailSettings.Color2
182
		local FT2R = Trail:Clone()
183
		FT2R.Parent = Character
184
		FT2R.Attachment0 = A4R
185
		FT2R.Attachment1 = A5R
186
		FT2R.Color = TrailSettings.Color2
187
	end
188
end
189
function AllBody()
190
	UpperBody()
191
	LowerBody()
192
end
193
if TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
194
	TrailSettings.UpperBodyOnly = false
195
	TrailSettings.LowerBodyOnly = false
196
elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == false and TrailSettings.LowerBodyOnly == true then
197
	TrailSettings.UpperBodyOnly = false
198
	TrailSettings.LowerBodyOnly = false
199
elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == false then
200
	TrailSettings.UpperBodyOnly = false
201
	TrailSettings.LowerBodyOnly = false
202
elseif TrailSettings.AllBody == false and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
203
	TrailSettings.AllBody = true
204
	TrailSettings.UpperBodyOnly = false
205
	TrailSettings.LowerBodyOnly = false
206
end
207
if TrailSettings.UpperBodyOnly == true then
208
	UpperBody()
209
	print("Called Upper Body Trail")
210
elseif TrailSettings.LowerBodyOnly == true then
211
	LowerBody()
212
	print("Called Lower Body Trail")
213
elseif TrailSettings.AllBody == true then
214
	AllBody()
215
	print("Called Full Body Trail")
216
end
217
if TrailSettings.Accessories == true then
218
	for Index, Item in pairs(Character:GetChildren()) do
219
		if Item:IsA("Accessory") then
220
			local AA = Instance.new("Attachment", Item.Handle)
221
			local ATrail = Trail:Clone()
222
			ATrail.Parent = Character
223
			ATrail.Attachment1 = AA
224
		end
225
	end
226
end
227
if TrailSettings.Extras == true then
228
	spawn(function()
229
		repeat
230
			wait()
231
		until Trail
232
		local AB = Instance.new("Attachment", a)
233
		local ABT = Trail:Clone()
234
		ABT.Parent = Character
235
		ABT.Attachment0 = A4
236
		ABT.Attachment1 = AB
237
		ABT.Color = TrailSettings.Color2
238
		local ABT2 = Trail:Clone()
239
		ABT2.Parent = Character
240
		ABT2.Attachment0 = A5
241
		ABT2.Attachment1 = AB
242
		ABT2.Color = TrailSettings.Color2
243
	end)
244
end
245
wait(0.1)
246
247
script:ClearAllChildren()
248
wait(0.2)
249
250
Player = game:GetService("Players").LocalPlayer
251
PlayerGui = Player.PlayerGui
252
Cam = workspace.CurrentCamera
253
Backpack = Player.Backpack
254
Character = Player.Character
255
Humanoid = Character.Humanoid
256
Mouse = Player:GetMouse()
257
RootPart = Character["HumanoidRootPart"]
258
Torso = Character["Torso"]
259
Head = Character["Head"]
260
RightArm = Character["Right Arm"]
261
LeftArm = Character["Left Arm"]
262
RightLeg = Character["Right Leg"]
263
LeftLeg = Character["Left Leg"]
264
RootJoint = RootPart["RootJoint"]
265
Neck = Torso["Neck"]
266
RightShoulder = Torso["Right Shoulder"]
267
LeftShoulder = Torso["Left Shoulder"]
268
RightHip = Torso["Right Hip"]
269
LeftHip = Torso["Left Hip"]
270
local TIME = 0
271
local sick = Instance.new("Sound",Torso)
272
273
IT = Instance.new
274
CF = CFrame.new
275
VT = Vector3.new
276
RAD = math.rad
277
C3 = Color3.new
278
UD2 = UDim2.new
279
BRICKC = BrickColor.new
280
ANGLES = CFrame.Angles
281
EULER = CFrame.fromEulerAnglesXYZ
282
COS = math.cos
283
ACOS = math.acos
284
SIN = math.sin
285
ASIN = math.asin
286
ABS = math.abs
287
MRANDOM = math.random
288
FLOOR = math.floor
289
290
warn ("Message from Needybao123456789......")
291
warn ("If you leak this i going to kill you and rise the demon cursed you")
292
293
--//=================================\\
294
--|| 	      USEFUL VALUES
295
--\\=================================//
296
297
Animation_Speed = 2
298
local FORCERESET = false
299
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
300
local Speed = 50
301
Player_Size = 1 --Size of the player.
302
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
303
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
304
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
305
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
306
local DAMAGEMULTIPLIER = 1
307
local ANIM = "Idle"
308
local ATTACK = false
309
local EQUIPPED = false
310
local HOLD = false
311
local COMBO = 1
312
local Rooted = false
313
local SINE = 0
314
local KEYHOLD = false
315
local CHANGE = 2 / Animation_Speed
316
local WALKINGANIM = false
317
local VALUE1 = false
318
local VALUE2 = false
319
local ROBLOXIDLEANIMATION = IT("Animation")
320
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
321
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
322
--ROBLOXIDLEANIMATION.Parent = Humanoid
323
local WEAPONGUI = IT("ScreenGui", PlayerGui)
324
WEAPONGUI.Name = "BanishV3Gui"
325
local Weapon = IT("Model")
326
Weapon.Name = "Adds"
327
local Effects = IT("Folder", Weapon)
328
Effects.Name = "Effects"
329
local ANIMATOR = Humanoid.Animator
330
local ANIMATE = Character:FindFirstChild("Animate")
331
local UNANCHOR = true
332
local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
333
local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
334
local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
335
local HITBLOCKSOUNDS = {"199148933", "199148947"}
336
local TOBANISH = {}
337
script.Parent = PlayerGui
338
Player_Size = 1 --Size of the player.
339
local EXTRATRANS = 0
340
local Effects2 = {}
341
local UNANCHOR = true
342
local CHOICE = MRANDOM(1,4)
343
local LAUGHS = {907329893,907329532,907333294,907332856}
344
local ATTACKEDTAUNTS = {
345
	"907332040",
346
	"907332525",
347
	"907330011"
348
}
349
local ATTACKTAUNTS = {
350
	"907329893",
351
	"907329532",
352
	"907333294",
353
	"907332856"
354
}
355
local ULTTAUNTS = {
356
	"907332997",
357
	"907332670",
358
	"907330103"
359
}
360
local TOBANISH = {}
361
script.Parent = PlayerGui
362
local CLOCKLOOP = 0
363
local CLOCKTARGET = nil
364
local CLOCKSPEED = 25
365
local SIZE = 1
366
local RING = {}
367
local EXTRATRANS = 0
368
local SKILLTEXTCOLOR = C3(0,0,0)
369
local SKILLTEXTCOLOR2 = C3(1,0,0)
370
--//=================================\\
371
--\\=================================//
372
373
374
--//=================================\\
375
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
376
--\\=================================//
377
378
ArtificialHB = Instance.new("BindableEvent", script)
379
ArtificialHB.Name = "ArtificialHB"
380
381
script:WaitForChild("ArtificialHB")
382
383
frame = Frame_Speed
384
tf = 0
385
allowframeloss = false
386
tossremainder = false
387
lastframe = tick()
388
script.ArtificialHB:Fire()
389
390
game:GetService("RunService").Heartbeat:connect(function(s, p)
391
	tf = tf + s
392
	if tf >= frame then
393
		if allowframeloss then
394
			script.ArtificialHB:Fire()
395
			lastframe = tick()
396
		else
397
			for i = 1, math.floor(tf / frame) do
398
				script.ArtificialHB:Fire()
399
			end
400
		lastframe = tick()
401
		end
402
		if tossremainder then
403
			tf = 0
404
		else
405
			tf = tf - frame * math.floor(tf / frame)
406
		end
407
	end
408
end)
409
410
--//=================================\\
411
--\\=================================//
412
413
--//=================================\\
414
--|| 	      SOME FUNCTIONS
415
--\\=================================//
416
417
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
418
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
419
end
420
421
function PositiveAngle(NUMBER)
422
	if NUMBER >= 0 then
423
		NUMBER = 0
424
	end
425
	return NUMBER
426
end
427
428
function AddChildrenToTable(FROM, PARENT, DIST, TABLE)
429
	for _, c in pairs(PARENT:GetChildren()) do
430
		if c.ClassName == "Model" then
431
			if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then
432
				local HUMANOID = c:FindFirstChildOfClass("Humanoid")
433
				local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")
434
				if DIST > (TORSO.Position - FROM).Magnitude then
435
					table.insert(TABLE, c)
436
				end
437
				AddChildrenToTable(FROM, c, DIST, TABLE)
438
			elseif c.ClassName == "Folder" then
439
				AddChildrenToTable(FROM, c, DIST, TABLE)
440
			end
441
		end
442
	end
443
end
444
445
function CreateWave(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
446
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
447
	local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
448
	wave.CFrame = CFRAME
449
	coroutine.resume(coroutine.create(function(PART)
450
		for i = 1, WAIT do
451
			Swait()
452
			mesh.Scale = mesh.Scale + GROW
453
			mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
454
			if DOESROT == true then
455
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
456
			end
457
			wave.Transparency = wave.Transparency + 0.5 / WAIT
458
			if wave.Transparency > 0.99 then
459
				wave:remove()
460
			end
461
		end
462
	end))
463
end
464
function CreateRing(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW)
465
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
466
	local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0, 0, 0))
467
	wave.CFrame = CFRAME
468
	coroutine.resume(coroutine.create(function(PART)
469
		for i = 1, WAIT do
470
			Swait()
471
			mesh.Scale = mesh.Scale + GROW
472
			if DOESROT == true then
473
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
474
			end
475
			wave.Transparency = wave.Transparency + 0.5 / WAIT
476
			if wave.Transparency > 0.99 then
477
				wave:remove()
478
			end
479
		end
480
	end))
481
end
482
function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW)
483
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
484
	local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0, 0, 0))
485
	wave.CFrame = CFRAME
486
	coroutine.resume(coroutine.create(function(PART)
487
		for i = 1, WAIT do
488
			Swait()
489
			mesh.Scale = mesh.Scale + GROW
490
			wave.Transparency = wave.Transparency + 1 / WAIT
491
			if wave.Transparency > 0.99 then
492
				wave:remove()
493
			end
494
		end
495
	end))
496
end
497
function Slice(KIND, SIZE, WAIT, CFRAME, COLOR, GROW)
498
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
499
	local mesh
500
	if KIND == "Base" then
501
		mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0))
502
	elseif KIND == "Thin" then
503
		mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
504
	elseif KIND == "Round" then
505
		mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
506
	end
507
	wave.CFrame = CFRAME
508
	coroutine.resume(coroutine.create(function(PART)
509
		for i = 1, WAIT do
510
			Swait()
511
			mesh.Scale = mesh.Scale + GROW / 10
512
			wave.Transparency = wave.Transparency + 0.5 / WAIT
513
			if wave.Transparency > 0.99 then
514
				wave:remove()
515
			end
516
		end
517
	end))
518
end
519
520
function FireArc(Part, ToLocation, AmountOfTime, Height, DoesCourontine)
521
	if DoesCourontine == false then
522
		local Direction = CF(Part.Position, ToLocation)
523
		local Distance = (Part.Position - ToLocation).magnitude
524
		for i = 1, AmountOfTime do
525
			Swait()
526
			Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime)
527
			Direction = Part.CFrame
528
		end
529
		Part:remove()
530
	elseif DoesCourontine == true then
531
		coroutine.resume(coroutine.create(function()
532
			local Direction = CF(Part.Position, ToLocation)
533
			local Distance = (Part.Position - ToLocation).magnitude
534
			for i = 1, AmountOfTime do
535
				Swait()
536
				Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime)
537
				Direction = Part.CFrame
538
			end
539
			Part:remove()
540
		end))
541
	end
542
end
543
544
function NegativeAngle(NUMBER)
545
	if NUMBER <= 0 then
546
		NUMBER = 0
547
	end
548
	return NUMBER
549
end
550
551
function Swait(NUMBER)
552
	if NUMBER == 0 or NUMBER == nil then
553
		ArtificialHB.Event:wait()
554
	else
555
		for i = 1, NUMBER do
556
			ArtificialHB.Event:wait()
557
		end
558
	end
559
end
560
561
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
562
	local NEWMESH = IT(MESH)
563
	if MESH == "SpecialMesh" then
564
		NEWMESH.MeshType = MESHTYPE
565
		if MESHID ~= "nil" and MESHID ~= "" then
566
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
567
		end
568
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
569
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
570
		end
571
	end
572
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
573
	NEWMESH.Scale = SCALE
574
	NEWMESH.Parent = PARENT
575
	return NEWMESH
576
end
577
578
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
579
	local NEWPART = IT("Part")
580
	NEWPART.formFactor = FORMFACTOR
581
	NEWPART.Reflectance = REFLECTANCE
582
	NEWPART.Transparency = TRANSPARENCY
583
	NEWPART.CanCollide = false
584
	NEWPART.Locked = true
585
	NEWPART.Anchored = true
586
	if ANCHOR == false then
587
		NEWPART.Anchored = false
588
	end
589
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
590
	NEWPART.Name = NAME
591
	NEWPART.Size = SIZE
592
	NEWPART.Position = Torso.Position
593
	NEWPART.Material = MATERIAL
594
	NEWPART:BreakJoints()
595
	NEWPART.Parent = PARENT
596
	return NEWPART
597
end
598
599
	local function weldBetween(a, b)
600
	    local weldd = Instance.new("ManualWeld")
601
	    weldd.Part0 = a
602
	    weldd.Part1 = b
603
	    weldd.C0 = CFrame.new()
604
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
605
	    weldd.Parent = a
606
	    return weldd
607
	end
608
609
610
function QuaternionFromCFrame(cf)
611
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
612
	local trace = m00 + m11 + m22
613
	if trace > 0 then 
614
		local s = math.sqrt(1 + trace)
615
		local recip = 0.5 / s
616
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
617
	else
618
		local i = 0
619
		if m11 > m00 then
620
			i = 1
621
		end
622
		if m22 > (i == 0 and m00 or m11) then
623
			i = 2
624
		end
625
		if i == 0 then
626
			local s = math.sqrt(m00 - m11 - m22 + 1)
627
			local recip = 0.5 / s
628
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
629
		elseif i == 1 then
630
			local s = math.sqrt(m11 - m22 - m00 + 1)
631
			local recip = 0.5 / s
632
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
633
		elseif i == 2 then
634
			local s = math.sqrt(m22 - m00 - m11 + 1)
635
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
636
		end
637
	end
638
end
639
 
640
function QuaternionToCFrame(px, py, pz, x, y, z, w)
641
	local xs, ys, zs = x + x, y + y, z + z
642
	local wx, wy, wz = w * xs, w * ys, w * zs
643
	local xx = x * xs
644
	local xy = x * ys
645
	local xz = x * zs
646
	local yy = y * ys
647
	local yz = y * zs
648
	local zz = z * zs
649
	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))
650
end
651
 
652
function QuaternionSlerp(a, b, t)
653
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
654
	local startInterp, finishInterp;
655
	if cosTheta >= 0.0001 then
656
		if (1 - cosTheta) > 0.0001 then
657
			local theta = ACOS(cosTheta)
658
			local invSinTheta = 1 / SIN(theta)
659
			startInterp = SIN((1 - t) * theta) * invSinTheta
660
			finishInterp = SIN(t * theta) * invSinTheta
661
		else
662
			startInterp = 1 - t
663
			finishInterp = t
664
		end
665
	else
666
		if (1 + cosTheta) > 0.0001 then
667
			local theta = ACOS(-cosTheta)
668
			local invSinTheta = 1 / SIN(theta)
669
			startInterp = SIN((t - 1) * theta) * invSinTheta
670
			finishInterp = SIN(t * theta) * invSinTheta
671
		else
672
			startInterp = t - 1
673
			finishInterp = t
674
		end
675
	end
676
	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
677
end
678
679
function Clerp(a, b, t)
680
	local qa = {QuaternionFromCFrame(a)}
681
	local qb = {QuaternionFromCFrame(b)}
682
	local ax, ay, az = a.x, a.y, a.z
683
	local bx, by, bz = b.x, b.y, b.z
684
	local _t = 1 - t
685
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
686
end
687
688
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
689
	local frame = IT("Frame")
690
	frame.BackgroundTransparency = TRANSPARENCY
691
	frame.BorderSizePixel = BORDERSIZEPIXEL
692
	frame.Position = POSITION
693
	frame.Size = SIZE
694
	frame.BackgroundColor3 = COLOR
695
	frame.BorderColor3 = BORDERCOLOR
696
	frame.Name = NAME
697
	frame.Parent = PARENT
698
	return frame
699
end
700
701
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
702
	local label = IT("TextLabel")
703
	label.BackgroundTransparency = 1
704
	label.Size = UD2(1, 0, 1, 0)
705
	label.Position = UD2(0, 0, 0, 0)
706
	label.TextColor3 = TEXTCOLOR
707
	label.TextStrokeTransparency = STROKETRANSPARENCY
708
	label.TextTransparency = TRANSPARENCY
709
	label.FontSize = TEXTFONTSIZE
710
	label.Font = TEXTFONT
711
	label.BorderSizePixel = BORDERSIZEPIXEL
712
	label.TextScaled = false
713
	label.Text = TEXT
714
	label.Name = NAME
715
	label.Parent = PARENT
716
	return label
717
end
718
719
function NoOutlines(PART)
720
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
721
end
722
723
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
724
	local NEWWELD = IT(TYPE)
725
	NEWWELD.Part0 = PART0
726
	NEWWELD.Part1 = PART1
727
	NEWWELD.C0 = C0
728
	NEWWELD.C1 = C1
729
	NEWWELD.Parent = PARENT
730
	return NEWWELD
731
end
732
733
local S = IT("Sound")
734
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
735
	local NEWSOUND = nil
736
	coroutine.resume(coroutine.create(function()
737
		NEWSOUND = S:Clone()
738
		NEWSOUND.Parent = PARENT
739
		NEWSOUND.Volume = VOLUME
740
		NEWSOUND.Pitch = PITCH
741
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
742
		NEWSOUND:play()
743
		if DOESLOOP == true then
744
			NEWSOUND.Looped = true
745
		else
746
			repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
747
			NEWSOUND:remove()
748
		end
749
	end))
750
	return NEWSOUND
751
end
752
753
function CFrameFromTopBack(at, top, back)
754
	local right = top:Cross(back)
755
	return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
756
end
757
758
--Lightning({Material = "Neon", FadeIn = false, Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false, FadeTime = 15, Thicken = false})
759
function Lightning(Table)
760
	local Color = Table.Color or C3(1,1,1)
761
	local StartPos = Table.Start or Torso.Position
762
	local EndPos = Table.End or Mouse.Hit.p
763
	local SegmentLength = Table.SegmentL or 2
764
	local Thickness = Table.Thickness or 0.1
765
	local Dissapear = Table.DoesFade or false
766
	local Parent = Table.Ignore or Character
767
	local MaxDist = Table.MaxDist or 400
768
	local Branches = Table.Branches or false
769
	local Thicken = Table.Thicken or false
770
	local FadeTime = Table.FadeTime or 15
771
	local FadeIn = Table.FadeIn or false
772
	local Material = Table.Material or "Neon"
773
	local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
774
	local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/((SegmentLength/SegmentLength)/1.5))
775
	local LIGHTNINGMODEL = IT("Model",Effects)
776
	LIGHTNINGMODEL.Name = "Lightning"
777
	local LastBolt = nil
778
	for E = 1, DISTANCE do
779
		local ExtraSize = 0
780
		if Thicken == true then
781
			ExtraSize = (DISTANCE-E)/15
782
		end
783
		local TRANSPARENCY = 0
784
		if FadeIn == true then
785
			TRANSPARENCY = 1-(E/(DISTANCE/1.5))
786
			if TRANSPARENCY < 0 then
787
				TRANSPARENCY = 0
788
			end
789
		end
790
		local PART = CreatePart(3, LIGHTNINGMODEL, Material, 0, TRANSPARENCY, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
791
		PART.Color = Color
792
		MakeForm(PART,"Cyl")
793
		if LastBolt == nil then
794
			PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
795
		else
796
			PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,DISTANCE-E).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
797
		end
798
		LastBolt = PART
799
		if Branches == true and E < (DISTANCE-5) then
800
			local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
801
			if CHOICE == 1 then
802
				local LASTBRANCH = nil
803
				for i = 1, MRANDOM(2,5) do
804
					local ExtraSize2 = 0
805
					if Thicken == true then
806
						ExtraSize = ((DISTANCE-E)/25)/i
807
					end
808
					local PART = CreatePart(3, LIGHTNINGMODEL, Material, 0, TRANSPARENCY, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
809
					PART.Color = Color
810
					MakeForm(PART,"Cyl")
811
					if LASTBRANCH == nil then
812
						PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
813
					else
814
						PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
815
					end
816
					LASTBRANCH = PART
817
				end
818
			end
819
		end
820
	end
821
	if Dissapear == true then
822
		coroutine.resume(coroutine.create(function()
823
			for i = 1, FadeTime do
824
				Swait()
825
				for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
826
					if c.ClassName == "Part" then
827
						c.Transparency = c.Transparency + (i/FadeTime)/10
828
					end
829
				end
830
			end
831
			LIGHTNINGMODEL:remove()
832
		end))
833
	elseif Dissapear == false then
834
		Debris:AddItem(LIGHTNINGMODEL,0.1)
835
	end
836
	return {Hit = HIT,Pos = HITPOS,End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
837
end
838
839
--WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
840
function WACKYEFFECT(Table)
841
	local TYPE = (Table.EffectType or "Sphere")
842
	local SIZE = (Table.Size or VT(1,1,1))
843
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
844
	local TRANSPARENCY = (Table.Transparency or 0)
845
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
846
	local CFRAME = (Table.CFrame or Torso.CFrame)
847
	local MOVEDIRECTION = (Table.MoveToPos or nil)
848
	local ROTATION1 = (Table.RotationX or 0)
849
	local ROTATION2 = (Table.RotationY or 0)
850
	local ROTATION3 = (Table.RotationZ or 0)
851
	local MATERIAL = (Table.Material or "Neon")
852
	local COLOR = (Table.Color or C3(1,1,1))
853
	local TIME = (Table.Time or 45)
854
	local SOUNDID = (Table.SoundID or nil)
855
	local SOUNDPITCH = (Table.SoundPitch or nil)
856
	local SOUNDVOLUME = (Table.SoundVolume or nil)
857
	coroutine.resume(coroutine.create(function()
858
		local PLAYSSOUND = false
859
		local SOUND = nil
860
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
861
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
862
			PLAYSSOUND = true
863
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
864
		end
865
		EFFECT.Color = COLOR
866
		local MSH = nil
867
		if TYPE == "Sphere" then
868
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
869
		elseif TYPE == "Block" then
870
			MSH = IT("BlockMesh",EFFECT)
871
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
872
		elseif TYPE == "Wave" then
873
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
874
		elseif TYPE == "Ring" then
875
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
876
		elseif TYPE == "Slash" then
877
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
878
		elseif TYPE == "Round Slash" then
879
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
880
		elseif TYPE == "Swirl" then
881
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
882
		elseif TYPE == "Skull" then
883
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
884
		elseif TYPE == "Crystal" then
885
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
886
		end
887
		if MSH ~= nil then
888
			local MOVESPEED = nil
889
			if MOVEDIRECTION ~= nil then
890
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
891
			end
892
			local GROWTH = SIZE - ENDSIZE
893
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
894
			if TYPE == "Block" then
895
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
896
			else
897
				EFFECT.CFrame = CFRAME
898
			end
899
			for LOOP = 1, TIME+1 do
900
				Swait()
901
				MSH.Scale = MSH.Scale - GROWTH/TIME
902
				if TYPE == "Wave" then
903
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
904
				end
905
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
906
				if TYPE == "Block" then
907
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
908
				else
909
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
910
				end
911
				if MOVEDIRECTION ~= nil then
912
					local ORI = EFFECT.Orientation
913
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
914
					EFFECT.Orientation = ORI
915
				end
916
			end
917
			if PLAYSSOUND == false then
918
				EFFECT:remove()
919
			else
920
				SOUND.Stopped:Connect(function()
921
					EFFECT:remove()
922
				end)
923
			end
924
		else
925
			if PLAYSSOUND == false then
926
				EFFECT:remove()
927
			else
928
				repeat Swait() until SOUND.Playing == false
929
				EFFECT:remove()
930
			end
931
		end
932
	end))
933
end
934
935
function MakeForm(PART,TYPE)
936
	if TYPE == "Cyl" then
937
		local MSH = IT("CylinderMesh",PART)
938
	elseif TYPE == "Ball" then
939
		local MSH = IT("SpecialMesh",PART)
940
		MSH.MeshType = "Sphere"
941
	elseif TYPE == "Wedge" then
942
		local MSH = IT("SpecialMesh",PART)
943
		MSH.MeshType = "Wedge"
944
	end
945
end
946
947
function SpawnTrail(FROM,TO,BIG)
948
	local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "really black", "Trail", VT(0,0,0))
949
	MakeForm(TRAIL,"Cyl")
950
	local DIST = (FROM - TO).Magnitude
951
	if BIG == true then
952
		TRAIL.Size = VT(0.5,DIST,0.5)
953
	else
954
		TRAIL.Size = VT(0.25,DIST,0.25)
955
	end
956
	TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
957
	coroutine.resume(coroutine.create(function()
958
		for i = 1, 5 do
959
			Swait()
960
			TRAIL.Transparency = TRAIL.Transparency + 0.1
961
		end
962
		TRAIL:remove()
963
	end))
964
end
965
966
Debris = game:GetService("Debris")
967
968
function CastProperRay(StartPos, EndPos, Distance, Ignore)
969
	local DIRECTION = CF(StartPos,EndPos).lookVector
970
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
971
end
972
973
function turnto(position)
974
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
975
end
976
977
local PLAYMAINANIM = true
978
local HATWELD = nil
979
function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
980
	PLAYMAINANIM = false
981
	if WhichPose == "Cast1" then
982
		for i=0, Time, 0.1 / Animation_Speed do
983
			Swait()
984
			if Magic == true then
985
				WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
986
			end
987
			if Gyro ~= nil and Gyro ~= false then
988
				Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
989
			end
990
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed)
991
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed)
992
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
993
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
994
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
995
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
996
		end
997
	elseif WhichPose == "Cast2" then
998
		for i=0, Time, 0.1 / Animation_Speed do
999
			Swait()
1000
			if Magic == true then
1001
				WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1002
				WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1003
			end
1004
			if Gyro ~= nil and Gyro ~= false then
1005
				Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
1006
			end
1007
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
1008
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
1009
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
1010
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
1011
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
1012
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
1013
		end
1014
	elseif WhichPose == "RightArmUp" then
1015
		for i=0, Time, 0.1 / Animation_Speed do
1016
			Swait()
1017
			if Magic == true then
1018
				WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1019
			end
1020
			if Gyro ~= nil and Gyro ~= false then
1021
				Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
1022
			end
1023
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed)
1024
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed)
1025
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
1026
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
1027
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
1028
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
1029
		end
1030
	elseif WhichPose == "Taunt" then
1031
		for i=0, Time, 0.1 / Animation_Speed do
1032
			Swait()
1033
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
1034
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
1035
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
1036
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
1037
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
1038
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
1039
		end
1040
		HATWELD.Part0 = RightArm
1041
		HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
1042
		CreateSound(221057812,Torso,10,1,false)
1043
		for i=0, Time*2, 0.1 / Animation_Speed do
1044
			Swait()
1045
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
1046
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
1047
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
1048
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
1049
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
1050
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
1051
		end
1052
		for i=0, Time, 0.1 / Animation_Speed do
1053
			Swait()
1054
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
1055
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
1056
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
1057
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
1058
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
1059
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
1060
			HATWELD.C0 = Clerp(HATWELD.C0, CF(-0.5,-1.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(35), RAD(0), RAD(35)), Speed / Animation_Speed)
1061
		end
1062
		HATWELD.Part0 = Head
1063
		HATWELD.C0 = CF(0,0.35,0)
1064
	elseif WhichPose == "Prepare key" then
1065
		for i=0, Time, 0.1 / Animation_Speed do
1066
			Swait()
1067
			if Gyro ~= nil and Gyro ~= false then
1068
				Gyro.cframe = CF(RootPart.Position,Tors.Position)
1069
			end
1070
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed)
1071
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed)
1072
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
1073
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
1074
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
1075
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
1076
		end
1077
	elseif WhichPose == "Turn key" then
1078
		for i=0, Time, 0.1 / Animation_Speed do
1079
			Swait()
1080
			if Gyro ~= nil and Gyro ~= false then
1081
				Gyro.cframe = CF(RootPart.Position,Tors.Position)
1082
			end
1083
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed)
1084
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed)
1085
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
1086
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
1087
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
1088
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
1089
		end
1090
	end
1091
	PLAYMAINANIM = true
1092
end
1093
--//=================================\\
1094
--||	     WEAPON CREATION
1095
--\\=================================//
1096
1097
local FIST = CreatePart(3, Weapon, "Neon", 0, 0, "Navy blue", "Neon Gauntlet Part", VT(1.01*Player_Size,1.4*Player_Size,1.01*Player_Size),false)
1098
local weld = CreateWeldOrSnapOrMotor("Weld", FIST, LeftArm, FIST, CF(0 * Player_Size, -0.25 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1099
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Navy blue", "Gauntlet Part", VT(1.2*Player_Size,0.3*Player_Size,1.2*Player_Size),false)
1100
local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.6 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1101
1102
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Navy blue", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
1103
local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1104
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Navy blue", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
1105
local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.2 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1106
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Navy blue", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
1107
local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1108
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Navy blue", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
1109
local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1110
1111
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Navy blue", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1.1*Player_Size),false)
1112
local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, -0.35 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1113
local part = CreatePart(3, Weapon, "Neon", 0, 0, "Navy blue", "Neon Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1*Player_Size),false)
1114
local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.05 * Player_Size, -0.375 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1115
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Navy blue", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
1116
local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1117
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Navy blue", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
1118
local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, 0.33 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1119
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Navy blue", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
1120
local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, -0.33 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1121
1122
RightArm.Transparency = 1
1123
local BasePart = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(1,2,1),false)
1124
CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1125
local Sphere = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(1.4,1.4,1.4),false)
1126
MakeForm(Sphere,"Ball")
1127
CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Sphere, CF(0.2,0.8,0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1128
local LaserPart = CreatePart(3, Weapon, "Neon", 0, 0, "Navy blue", "Part", VT(0.3,0.3,0.1),false)
1129
MakeForm(LaserPart,"Ball")
1130
CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, LaserPart, CF(0,0,-0.65) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1131
local Bump = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.3,0.2),false)
1132
MakeForm(Bump,"Ball")
1133
CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Bump, CF(0,0,0.65) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1134
local BottomLaser = CreatePart(3, Weapon, "Neon", 0, 0, "Navy blue", "Part", VT(0.4,0,0.4),false)
1135
MakeForm(BottomLaser,"Cyl")
1136
CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, BottomLaser, CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1137
local Part1 = CreatePart(3, Weapon, "Neon", 0, 0, "Navy blue", "Part", VT(0,0.5,0.5),false)
1138
CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part1, CF(0,-0.76,-0.26) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1139
local Part2 = CreatePart(3, Weapon, "Neon", 0, 0, "Navy blue", "Part", VT(0,0.5,0.5),false)
1140
CreateWeldOrSnapOrMotor("Weld", BasePart, Part1, Part2, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, -0.25, 0))
1141
local Part3 = CreatePart(3, Weapon, "Neon", 0, 0, "Navy blue", "Part", VT(0,0.5,0.5),false)
1142
CreateWeldOrSnapOrMotor("Weld", BasePart, Part1, Part3, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0, -0.26, 0))
1143
local Part4 = CreatePart(3, Weapon, "Neon", 0, 0, "Navy blue", "Part", VT(0,0.56,0.5),false)
1144
CreateWeldOrSnapOrMotor("Weld", BasePart, Part2, Part4, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, -0.26, 0))
1145
local Part5 = CreatePart(3, Weapon, "Neon", 0, 0, "Navy blue", "Part", VT(0,0.56,0.5),false)
1146
CreateWeldOrSnapOrMotor("Weld", BasePart, Part4, Part5, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-125)), CF(0, -0.26, 0))
1147
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Navy blue", "Part", VT(0,0.25,0.5),false)
1148
CreateWeldOrSnapOrMotor("Weld", BasePart, Part4, Part, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, -0.26/2, 0))
1149
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Navy blue", "Part", VT(0,0.3,0.5),false)
1150
CreateWeldOrSnapOrMotor("Weld", BasePart, Part2, Part, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-65)), CF(0, -0.31/2, 0))
1151
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Navy blue", "Part", VT(1.4,0,1.4),false)
1152
MakeForm(Part,"Cyl")
1153
CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Part, CF(0.035,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1154
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Navy blue", "Part", VT(1.4,0,1.4),false)
1155
MakeForm(Part,"Cyl")
1156
CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Part, CF(0,-0.035,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
1157
local Sphere = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.3,1.6,0.7),false)
1158
MakeForm(Sphere,"Ball")
1159
CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Sphere, CF(0.45,0.5,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1160
1161
    local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Bright blue", "Metal", VT(1,1,1.2),false)
1162
    CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1163
    local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Bright blue", "Metal", VT(0.3,1.7,1.15),false)
1164
    CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), CF(0, 0, 0))
1165
    local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Bright blue", "Metal", VT(0.3,1.7,1.15),false)
1166
    CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), CF(0, 0, 0))
1167
    local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Bright blue", "Metal", VT(0.8,0.8,1.225),false)
1168
    CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1169
    local Eon = CreatePart(3, Weapon, "Neon", 0, 0, "Navy blue", "Eon", VT(0.5,0.5,1.25),false)
1170
    CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Eon, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1171
1172
New = function(Object, Parent, Name, Data)
1173
	local Object = Instance.new(Object)
1174
	for Index, Value in pairs(Data or {}) do
1175
		Object[Index] = Value
1176
	end
1177
	Object.Parent = Parent
1178
	Object.Name = Name
1179
	return Object
1180
end
1181
1182
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Bright blue"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000252, 0.660000384, 0.0500000007),CFrame = CFrame.new(-67.6787415, 1.33912802, 93.9772263, 0, 0, -1, 0, 1, 0, 1, 0, 0),})
1183
mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = LeftLeg,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.0127105713, 0.339127064, 0.487541199, 0, 0, 1, 0, 1, 0, -1, 0, 0),})
1184
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Bright blue"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000252, 0.660000384, 0.0500000007),CFrame = CFrame.new(-66.6787415, 1.33912802, 93.9772263, 0, 0, -1, 0, 1, 0, 1, 0, 0),})
1185
mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = LeftLeg,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.0127105713, 0.339127064, -0.512458801, 0, 0, 1, 0, 1, 0, -1, 0, 0),})
1186
1187
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Bright blue"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.140000015, 0.0500000007),CFrame = CFrame.new(-67.6787415, 3.12643075, 92.6921463, -9.31322575e-10, -1.86264515e-09, -0.999999285, 0.777135551, 0.629333496, 9.31322575e-10, 0.6293329, -0.777134895, 0),})
1188
mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, -1, 0, 0),C1 = CFrame.new(-0.766067505, 0.138611317, 0.515716553, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
1189
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Bright blue"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.12999988, 1.12000012, 0.0500000007),CFrame = CFrame.new(-67.6951752, 3.43133378, 93.991272, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
1190
mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.533157349, 0.443484068, 0.50994873, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
1191
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Bright blue"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.450000018, 0.590000272, 0.0500000007),CFrame = CFrame.new(-67.6951752, 2.60608268, 94.3512573, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
1192
mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.893096924, -0.381786108, 0.509513855, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
1193
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Bright blue"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000013, 0.590000272, 0.0500000007),CFrame = CFrame.new(-66.6951752, 2.60608268, 94.2912598, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
1194
mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.817497253, -0.388065577, -0.489402771, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
1195
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Bright blue"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.220000237, 0.660000384, 0.0500000007),CFrame = CFrame.new(-66.6787338, 2.57395577, 93.9222183, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
1196
mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.448242188, -0.420258999, -0.49987793, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
1197
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Bright blue"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.07999992, 1.12000012, 0.0500000007),CFrame = CFrame.new(-66.6951752, 3.43133354, 93.9662704, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
1198
mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.492546082, 0.437201023, -0.489517212, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
1199
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Bright blue"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.340000302, 0.0500000007),CFrame = CFrame.new(-66.6787415, 3.2281816, 93.1287689, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
1200
mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(-0.345108032, 0.234031916, -0.491600037, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
1201
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Bright blue"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.0999999, 0.0500000007, 1.00999975),CFrame = CFrame.new(-67.1759109, 3.99574399, 93.9762726, 0, -0.0260759834, -0.999659359, 0, 0.999660075, -0.0260760002, 0.999999225, -2.91038305e-11, -9.31322575e-10),})
1202
mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, -0.0260760002, 0.999660015, 0, -0.999660015, -0.0260760002, 0),C1 = CFrame.new(0.510047913, 1.00462079, -0.0125579834, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
1203
1204
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Bright blue"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.419999987, 0.870000064),CFrame = CFrame.new(-67.0815201, 2.81366396, 91.9528885, 0, 0, -1, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, 0),})
1205
mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = LeftArm,C0 = CFrame.new(0, 0, 0, 0, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, -1, 0, 0),C1 = CFrame.new(-0.00936126709, -0.184385061, -0.0693511963, 0, 0, 1, 0, 1, 0, -1, 0, 0),})
1206
local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15)*SIZE,false)
1207
PRT.Color = C3(0,0,0)
1208
local MSH = IT("BlockMesh",PRT)
1209
MSH.Scale = VT(0.4,1,1)
1210
local WATCH1 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.075*SIZE))
1211
local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15/1.5)*SIZE,false)
1212
PRT.Color = C3(0,0,0)
1213
local MSH = IT("BlockMesh",PRT)
1214
MSH.Scale = VT(0.4,1,1)
1215
local WATCH2 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -(0.075/1.5)*SIZE))
1216
coroutine.resume(coroutine.create(function()
1217
	while true do
1218
		Swait()
1219
		CLOCKLOOP = CLOCKLOOP - 1*CLOCKSPEED
1220
		WATCH1.C0 = Clerp(WATCH1.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5), RAD(0)), 1 / Animation_Speed)
1221
		WATCH2.C0 = Clerp(WATCH2.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5/2), RAD(0)), 1 / Animation_Speed)
1222
		if CLOCKLOOP <= -150 then
1223
			if VALUE1 == false then
1224
				CLOCKLOOP = 0
1225
				WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = RING.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1, 1, 1)})
1226
				local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
1227
				ApplyClock(HITPOS,10,15,45,75,false)
1228
				WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.25,0.11,0.25)*SIZE, Size2 = VT(10,1,15), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1, 1, 1), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
1229
				WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.25,0.11,0.25)*SIZE, Size2 = VT(10,2,10), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(1, 1, 1), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
1230
				if CLOCKTARGET ~= nil then
1231
					CLOCKTARGET.Health = CLOCKTARGET.Health - 20
1232
					if CLOCKTARGET.Torso ~= nil then
1233
						CLOCKTARGET.Torso.CFrame = CLOCKTARGET.Torso.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
1234
					end
1235
					if CLOCKTARGET.Health == 0 then
1236
						CLOCKTARGET = nil
1237
					end
1238
				end
1239
			end
1240-
local FIST = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Neon Gauntlet Part", VT(1.01*Player_Size,1.4*Player_Size,1.01*Player_Size),false)
1240+
1241
	end
1242-
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.2*Player_Size,0.3*Player_Size,1.2*Player_Size),false)
1242+
1243
1244
Character["Body Colors"].HeadColor = BrickColor.new("Really black")
1245-
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
1245+
1246
Character["Body Colors"].LeftArmColor = BrickColor.new("Really black")
1247-
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
1247+
1248
Character["Body Colors"].LeftLegColor = BrickColor.new("Really black")
1249-
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
1249+
1250
1251-
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
1251+
1252
PRT.Color = C3(0,0,0)
1253
local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0))
1254-
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1.1*Player_Size),false)
1254+
1255
local PRT = CreatePart(3, Character, "Fabric", 0, 0, "White", "Scarf", VT(1,1,1),false)
1256-
local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Neon Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1*Player_Size),false)
1256+
1257
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0))
1258-
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
1258+
1259
for i = 1, 16 do
1260-
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
1260+
1261
	FACE.Color = C3(0,0,0)
1262-
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
1262+
1263
	CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.45-(i-1)/25,0), CF(0, 0, 0))
1264
end
1265
local EYE = CreatePart(3, Character, "Neon", 0, 0, "White", "Eyeball", VT(0.15,0.15,0.15),false)
1266
MakeForm(EYE,"Ball")
1267
CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.26,-0.55), CF(0, 0, 0))
1268
local EYE2 = CreatePart(3, Character, "Neon", 0, 0, "White", "Eyeball", VT(0.15,0.15,0.15),false)
1269
MakeForm(EYE2,"Ball")
1270
CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE2, CF(-0.15,0.26,-0.55), CF(0, 0, 0))
1271-
local LaserPart = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0.3,0.3,0.1),false)
1271+
1272
for i = 1, 20 do
1273
	local MATH = (1-(i/25))
1274
	if LASTPART == Head then
1275
		local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "White", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
1276
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0))
1277-
local BottomLaser = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0.4,0,0.4),false)
1277+
1278
		Horn.Color = C3((i*3-3)/255,0,0)
1279
	else
1280-
local Part1 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false)
1280+
1281
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0))
1282-
local Part2 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false)
1282+
1283
		Horn.Color = C3((i*3-3)/255,0,0)
1284-
local Part3 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false)
1284+
1285
end
1286-
local Part4 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.56,0.5),false)
1286+
1287
for i = 1, 20 do
1288-
local Part5 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.56,0.5),false)
1288+
1289
	if LASTPART == Head then
1290-
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.25,0.5),false)
1290+
1291
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0))
1292-
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.3,0.5),false)
1292+
1293
		Horn.Color = C3((i*3-3)/255,0,0)
1294-
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(1.4,0,1.4),false)
1294+
1295
		local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "White", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
1296
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0))
1297-
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(1.4,0,1.4),false)
1297+
1298
		Horn.Color = C3((i*3-3)/255,0,0)
1299
	end
1300
end
1301
local HAT1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2,0.2,2),false)
1302
MakeForm(HAT1,"Cyl")
1303
HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.35,0), CF(0, 0, 0))
1304-
    local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Maroon", "Metal", VT(1,1,1.2),false)
1304+
1305
BELT.Color = C3(15/255,15/255,15/255)
1306-
    local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Maroon", "Metal", VT(0.3,1.7,1.15),false)
1306+
1307
CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0,0), CF(0, 0, 0))
1308-
    local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Maroon", "Metal", VT(0.3,1.7,1.15),false)
1308+
1309
MakeForm(HAT2,"Cyl")
1310-
    local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Maroon", "Metal", VT(0.8,0.8,1.225),false)
1310+
1311
local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.2,1.31),false)
1312-
    local Eon = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eon", VT(0.5,0.5,1.25),false)
1312+
1313
MakeForm(BELT,"Cyl")
1314
CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0,0), CF(0, 0, 0))
1315
local GEM = CreatePart(3, Character, "Neon", 0, 0, "really black", "Gem", VT(0.25,0.25,0.1),false)
1316
MakeForm(GEM,"Ball")
1317
CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0))
1318
local GEM = CreatePart(3, Character, "Neon", 0, 0, "really black", "Gem", VT(0.25,0.25,0.1),false)
1319
MakeForm(GEM,"Ball")
1320
CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0))
1321
local GEM = CreatePart(3, Character, "Neon", 0, 0, "really black", "Gem", VT(0.1,0.25,0.25),false)
1322
MakeForm(GEM,"Ball")
1323
CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0))
1324
local GEM = CreatePart(3, Character, "Neon", 0, 0, "really black", "Gem", VT(0.1,0.25,0.25),false)
1325-
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000252, 0.660000384, 0.0500000007),CFrame = CFrame.new(-67.6787415, 1.33912802, 93.9772263, 0, 0, -1, 0, 1, 0, 1, 0, 0),})
1325+
1326
CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0))
1327-
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000252, 0.660000384, 0.0500000007),CFrame = CFrame.new(-66.6787415, 1.33912802, 93.9772263, 0, 0, -1, 0, 1, 0, 1, 0, 0),})
1327+
1328
BELT.Color = C3(15/255,15/255,15/255)
1329
MakeForm(BELT,"Cyl")
1330-
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.140000015, 0.0500000007),CFrame = CFrame.new(-67.6787415, 3.12643075, 92.6921463, -9.31322575e-10, -1.86264515e-09, -0.999999285, 0.777135551, 0.629333496, 9.31322575e-10, 0.6293329, -0.777134895, 0),})
1330+
1331
local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
1332-
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.12999988, 1.12000012, 0.0500000007),CFrame = CFrame.new(-67.6951752, 3.43133378, 93.991272, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
1332+
1333
MakeForm(BELT,"Cyl")
1334-
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.450000018, 0.590000272, 0.0500000007),CFrame = CFrame.new(-67.6951752, 2.60608268, 94.3512573, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
1334+
1335
local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
1336-
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000013, 0.590000272, 0.0500000007),CFrame = CFrame.new(-66.6951752, 2.60608268, 94.2912598, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
1336+
1337
MakeForm(BELT,"Cyl")
1338-
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.220000237, 0.660000384, 0.0500000007),CFrame = CFrame.new(-66.6787338, 2.57395577, 93.9222183, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
1338+
1339
local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
1340-
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.07999992, 1.12000012, 0.0500000007),CFrame = CFrame.new(-66.6951752, 3.43133354, 93.9662704, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
1340+
1341
MakeForm(BELT,"Cyl")
1342-
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.340000302, 0.0500000007),CFrame = CFrame.new(-66.6787415, 3.2281816, 93.1287689, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
1342+
1343
local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,0.5,1.3),false)
1344-
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.0999999, 0.0500000007, 1.00999975),CFrame = CFrame.new(-67.1759109, 3.99574399, 93.9762726, 0, -0.0260759834, -0.999659359, 0, 0.999660075, -0.0260760002, 0.999999225, -2.91038305e-11, -9.31322575e-10),})
1344+
1345
CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,HAT2.Size.Y/2,0), CF(0, 0, 0))
1346
local Particle = IT("ParticleEmitter",nil)
1347-
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.419999987, 0.870000064),CFrame = CFrame.new(-67.0815201, 2.81366396, 91.9528885, 0, 0, -1, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, 0),})
1347+
1348
Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
1349
Particle.LightEmission = 0.5
1350
Particle.Rate = 150
1351
Particle.ZOffset = 0.2
1352
Particle.Rotation = NumberRange.new(-180, 180)
1353
Particle.RotSpeed = NumberRange.new(-180, 180)
1354
Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
1355
Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
1356
1357
--ParticleEmitter({Speed = 500, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
1358
function ParticleEmitter(Table)
1359
	local PRTCL = Particle:Clone()
1360
	local Speed = Table.Speed or 5
1361
	local Drag = Table.Drag or 0
1362
	local Size1 = Table.Size1 or 1
1363
	local Size2 = Table.Size2 or 5
1364
	local Lifetime1 = Table.Lifetime1 or 1
1365
	local Lifetime2 = Table.Lifetime2 or 1.5
1366
	local Parent = Table.Parent or Torso
1367
	local Emit = Table.Emit or 100
1368
	local Offset = Table.Offset or 360
1369
	local Acel = Table.Acel or VT(0,0,0)
1370
	local Enabled = Table.Enabled or false
1371
	PRTCL.Parent = Parent
1372
	PRTCL.Size = NumberSequence.new(Size1,Size2)
1373
	PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
1374
	PRTCL.Speed = NumberRange.new(Speed)
1375
	PRTCL.VelocitySpread = Offset
1376
	PRTCL.Drag = Drag
1377
	PRTCL.Acceleration = Acel
1378
	if Enabled == false then
1379
		PRTCL:Emit(Emit)
1380
		Debris:AddItem(PRTCL,Lifetime2)
1381
	else
1382
		PRTCL.Enabled = true
1383
	end
1384
	return PRTCL
1385
end
1386
1387
local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
1388
local LeftArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
1389
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
1390
MakeForm(Part,"Wedge")
1391
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
1392
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
1393
MakeForm(Part,"Wedge")
1394
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
1395
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
1396
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1397
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
1398
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1399
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
1400
MakeForm(Part,"Cyl")
1401
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1402
for i = 1, 8 do
1403
	local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
1404
	CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
1405
end
1406
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
1407
MakeForm(Part,"Cyl")
1408
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1409
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
1410
MakeForm(Part,"Ball")
1411
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1412
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
1413
MakeForm(Part,"Wedge")
1414
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
1415
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
1416
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1417
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
1418
MakeForm(Part,"Cyl")
1419
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1420
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
1421
MakeForm(Part,"Cyl")
1422
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1423
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
1424
MakeForm(Part,"Cyl")
1425
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1426
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
1427
MakeForm(Part,"Wedge")
1428
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
1429
local LASTPART = Handle
1430
for i = 1, 10 do
1431
	if LASTPART == Handle then
1432
		local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
1433
		LASTPART = Part
1434
		CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1435
	else
1436
		local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
1437
		CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
1438
		LASTPART = Part
1439
	end
1440
end
1441
1442
local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
1443
MakeForm(Barrel,"Cyl")
1444
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1445
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
1446
MakeForm(Part,"Cyl")
1447
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
1448
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
1449
MakeForm(Part,"Wedge")
1450
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
1451
local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
1452
MakeForm(Hole,"Cyl")
1453
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
1454
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
1455
local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
1456
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
1457
local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
1458
local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
1459
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
1460
coroutine.resume(coroutine.create(function()
1461
	while wait() do
1462
		GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
1463
		GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
1464
	end
1465
end))
1466
1467
local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
1468
local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
1469
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
1470
MakeForm(Part,"Wedge")
1471
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
1472
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
1473
MakeForm(Part,"Wedge")
1474
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
1475
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
1476
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1477
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
1478
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1479
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
1480
MakeForm(Part,"Cyl")
1481
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1482
for i = 1, 8 do
1483
	local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
1484
	CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
1485
end
1486
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
1487
MakeForm(Part,"Cyl")
1488
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1489
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
1490
MakeForm(Part,"Ball")
1491
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1492
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
1493
MakeForm(Part,"Wedge")
1494
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
1495
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
1496
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1497
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
1498
MakeForm(Part,"Cyl")
1499
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1500
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
1501
MakeForm(Part,"Cyl")
1502
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1503
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
1504
MakeForm(Part,"Cyl")
1505
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1506
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
1507
MakeForm(Part,"Wedge")
1508
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
1509
local LASTPART = Handle
1510
for i = 1, 10 do
1511
	if LASTPART == Handle then
1512
		local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
1513
		LASTPART = Part
1514
		CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1515
	else
1516
		local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
1517
		CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
1518
		LASTPART = Part
1519
	end
1520
end
1521
1522
local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
1523
MakeForm(Barrel,"Cyl")
1524
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1525
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
1526
MakeForm(Part,"Cyl")
1527
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
1528
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
1529
MakeForm(Part,"Wedge")
1530
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
1531
local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
1532
MakeForm(Hole,"Cyl")
1533
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
1534
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
1535
local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
1536
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
1537
local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
1538
local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
1539
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
1540
coroutine.resume(coroutine.create(function()
1541
	while wait() do
1542
		GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
1543
		GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
1544
	end
1545
end))
1546
1547
ParticleEmitter({Speed = 200, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
1548
--ParticleEmitter({Speed = 500, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
1549
1550
for _, c in pairs(Weapon:GetDescendants()) do
1551
	if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
1552
		c.Material = "Glass"
1553
		c.Color = C3(0,0,0)
1554
	elseif c.ClassName == "Part" and c.Name == "Eye" then
1555
		c.Color = C3(1,0,0)
1556
		c.Material = "Neon"
1557
	end
1558
end
1559
1560
Weapon.Parent = Character
1561
for _, c in pairs(Weapon:GetChildren()) do
1562
	if c.ClassName == "Part" then
1563
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1564
	end
1565
end
1566
1567
local SKILLTEXTCOLOR = C3(1,0,0)
1568
local SKILLFONT = "Antique"
1569
local SKILLTEXTSIZE = 7
1570
1571
Humanoid.Died:connect(function()
1572
	ATTACK = true
1573
end)
1574
1575
local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
1576
--[[local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
1577
local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
1578
local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
1579
local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
1580
]]
1581
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 242, 243, 243, "Text 1")
1582
--[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 242, 243, 243, "Text 2")
1583
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 242, 243, 243, "Text 3")
1584
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 242, 243, 243, "Text 4")
1585
local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 242, 243, 243, "Text 5")
1586
]]
1587
function printbye(Name)
1588
	local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
1589
	warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")	
1590
end
1591
1592
workspace.ChildAdded:connect(function(instance)
1593
    for BANISH = 1, #TOBANISH do
1594
		if TOBANISH[BANISH] ~= nil then
1595
			if instance.Name == TOBANISH[BANISH] then
1596
				coroutine.resume(coroutine.create(function()
1597
					printbye(instance.Name)
1598
					instance:ClearAllChildren()
1599
					Debris:AddItem(instance,0.0005)
1600
				end))
1601
			end
1602
		end
1603
	end
1604
end)
1605
--//=================================\\
1606
--||			DAMAGING
1607
--\\=================================//
1608
1609
function ApplyDamage(Humanoid,Damage,TorsoPart)
1610
	local defence = Instance.new("BoolValue",Humanoid.Parent)
1611
	defence.Name = ("HitBy"..Player.Name)
1612
	game:GetService("Debris"):AddItem(defence, 0.001)
1613
	Damage = Damage * DAMAGEMULTIPLIER
1614
	if Humanoid.Health ~= 0 then
1615
		local CritChance = MRANDOM(1,100)
1616
		if Damage > Humanoid.Health then
1617
			Damage = math.ceil(Humanoid.Health)
1618
			if Damage == 0 then
1619
				Damage = 0.1
1620
			end
1621
		end
1622
		Humanoid.Health = Humanoid.Health - Damage*100
1623
	end
1624
end
1625
1626
1627
function KillChildren(v)
1628
	v:BreakJoints()
1629
	for _, c in pairs(v:GetChildren()) do
1630
				if c:IsA("BasePart") then
1631
					c.Anchored = true
1632
				end
1633
			end 
1634
	for _, c in pairs(v:GetChildren()) do
1635
		if c:IsA("BasePart") then
1636
			if c.Transparency < 1 then
1637
				if c:FindFirstChildOfClass("Decal") then
1638
					c:FindFirstChildOfClass("Decal"):remove()
1639
				end
1640
				particles(c)
1641
				c.PE.Enabled = true
1642
				c.Parent = Effects
1643
				c.CanCollide = false
1644
				c.Material = "Neon"
1645
				c.Color = C3(1,1,1)
1646
				c.Transparency = 1
1647
				local grav = Instance.new("BodyPosition",c)
1648
				grav.P = 20000
1649
				grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1650
				grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))
1651
				grav.Name = "GravityForce"
1652
				coroutine.resume(coroutine.create(function()
1653
					for i = 1, 20 do
1654
						Swait()
1655
						c.Transparency = c.Transparency + 1/20
1656
					end
1657
					c.PE.Enabled = false
1658
					Debris:AddItem(c,2)
1659
				end))
1660
			end
1661
		end
1662
	end
1663
end
1664
1665
function killnearest(position, range, maxstrength)
1666
	  for i,v in ipairs(workspace:GetChildren()) do
1667
    local body = v:GetChildren()
1668
        for part = 1, #body do
1669
            if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
1670
                if(body[part].Position - position).Magnitude < range then
1671
                    if v.ClassName == "Model" then
1672
                        --v:BreakJoints()
1673
                    end
1674
                    local POS = position
1675
                    coroutine.resume(coroutine.create(function()
1676
                        body[part].Anchored = true
1677
                        body[part].Parent = Effects
1678
                        body[part].CanCollide = true
1679
                        local SIZE = body[part].Size
1680
                        body[part].Material = "Glass"
1681
                        CreateSound("878000314", body[part], 1, MRANDOM(1, 1) / 1)
1682
                        for i = 1, 75 do
1683
                            Swait()
1684
                            
1685
                            body[part].Size = VT(SIZE.X+MRANDOM(-0.5,0.5),SIZE.Y+MRANDOM(-0.5,0.5),SIZE.Z+MRANDOM(-0.5,0.5))
1686
                        end
1687
                        coroutine.resume(coroutine.create(function()
1688
                            while true do
1689
                                Swait()
1690
                               
1691
                                body[part].Size = VT(SIZE.X+MRANDOM(-0.5,0.5),SIZE.Y+MRANDOM(-0.5,0.5),SIZE.Z+MRANDOM(-0.5,0.5))
1692
                            end
1693
                        end))
1694
                        body[part].Anchored = true
1695
                        
1696
                    end))
1697
                end
1698
            end
1699
        end
1700
        if v.ClassName == "Part" then
1701
            if v.Anchored == false and (v.Position - position).Magnitude < range then
1702
                local POS = position
1703
                coroutine.resume(coroutine.create(function()
1704
                    v.Anchored = true
1705
                    v.Parent = Effects
1706
                    v.CanCollide = true
1707
                    local SIZE = v.Size
1708
                    v.Material = "Glass"
1709
                    CreateSound("878000314", v, 2, MRANDOM(1, 1) / 1)
1710
                    for i = 1, 75 do
1711
                        Swait()
1712
                        
1713
                        v.Size = VT(SIZE.X+MRANDOM(-0.5,0.5),SIZE.Y+MRANDOM(-0.5,0.5),SIZE.Z+MRANDOM(-0.5,0.5))
1714
                    end
1715
                    coroutine.resume(coroutine.create(function()
1716
                        while true do
1717
                            Swait()
1718
                            
1719
                            v.Size = VT(SIZE.X+MRANDOM(-0.5,0.5),SIZE.Y+MRANDOM(-0.5,0.5),SIZE.Z+MRANDOM(-0.5,0.5))
1720
                        end
1721
                    end))
1722
                    v.Anchored = true
1723
                    
1724
                end))
1725
            end
1726
        end
1727
    end
1728
end
1729
1730
function Kill(Char)
1731
	local NewCharacter = IT("Model",Effects)
1732
	NewCharacter.Name = "Ow im ded ;-;"
1733
	for _, c in pairs(Char:GetDescendants()) do
1734
		if c:IsA("BasePart") and c.Transparency == 0 then
1735
			if c.Parent == Char then
1736
			c:BreakJoints()
1737
			c.Material = "Glass"
1738
			c.Color = C3(1,1,1)
1739
			c.CanCollide = true
1740
			c.Transparency = 0.3
1741
			if c:FindFirstChildOfClass("SpecialMesh") then
1742
				c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
1743
			end
1744
			if c.Name == "Head" then
1745
				c:ClearAllChildren()
1746
				c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
1747
			end
1748
			if c.ClassName == "MeshPart" then
1749
				c.TextureID = ""
1750
			end
1751
			if c:FindFirstChildOfClass("BodyPosition") then
1752
				c:FindFirstChildOfClass("BodyPosition"):remove()
1753
			end
1754
			if c:FindFirstChildOfClass("ParticleEmitter") then
1755
				c:FindFirstChildOfClass("ParticleEmitter"):remove()
1756
			end
1757
			c.Parent = NewCharacter
1758
			c.Name = "DeadPart"
1759
			c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
1760
			c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
1761
		end
1762
	end
1763
	Char:remove()
1764
	Debris:AddItem(NewCharacter,5)
1765
end
1766
end
1767
1768
function Death(INSTAKILL,POSITION,RANGE)
1769
	local CHILDREN = workspace:GetDescendants()
1770
	for index, CHILD in pairs(CHILDREN) do
1771
		if CHILD.ClassName == "Model" and CHILD ~= Character then
1772
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1773
			if HUM then
1774
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1775
				if TORSO then
1776
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
1777
						if INSTAKILL == true then
1778
							CHILD:BreakJoints()
1779
							for _, c in pairs(CHILD:GetChildren()) do
1780
				if c:IsA("BasePart") then
1781
					c.Anchored = true
1782
					CHILD:BreakJoints()
1783
					local FIRES = {}
1784
			for _, e in pairs(CHILD:GetDescendants()) do
1785
				if e:IsA("BasePart") and e.Name ~= "HumanoidRootPart" and e.Parent.ClassName ~= "Folder" then
1786
					e.Transparency = 1
1787
					e:ClearAllChildren()
1788
					local FIRE = script.HellFire:Clone()
1789
					FIRE.Parent = e
1790
					FIRE.Enabled = true
1791
					table.insert(FIRES,FIRE)
1792
				elseif e.ClassName == "Decal" then
1793
					e:remove()
1794
				end	
1795
			end
1796
			for i = 1, 50 do
1797
				CHILD:BreakJoints()
1798
				wait()
1799
			end
1800
			for i = 1, #FIRES do
1801
				FIRES[i].Enabled = false
1802
			end
1803
			wait(1.1)
1804
			CHILD:remove()
1805
		end
1806
	end
1807
end
1808
				end
1809
			end
1810
	 
1811
								end
1812
							end
1813
						end
1814
					end
1815
1816
1817
function Banish(Foe)
1818
	if Foe then
1819
		coroutine.resume(coroutine.create(function()
1820
			--if game.Players:FindFirstChild(Foe.Name) then
1821
				table.insert(TOBANISH,Foe.Name)
1822
				printbye(Foe.Name)
1823
			--end
1824
			Foe.Archivable = true
1825
			local CLONE = Foe:Clone()
1826
			Foe:Destroy()
1827
			CLONE.Parent = Effects
1828
			CLONE:BreakJoints()
1829
			local MATERIALS = {"Glass","Neon"}
1830
			for _, c in pairs(CLONE:GetDescendants()) do
1831
				if c:IsA("BasePart") then
1832
					if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
1833
 						CreateSound(340722848, c, 10, 1, false)
1834
					end
1835
					c.Anchored = true
1836
					c.Transparency = c.Transparency + 0.2
1837
					c.Material = MATERIALS[MRANDOM(1,2)]
1838
					c.Color = C3(1,1,1)
1839
					if c.ClassName == "MeshPart" then
1840
						c.TextureID = ""
1841
					end
1842
					if c:FindFirstChildOfClass("SpecialMesh") then
1843
						c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
1844
					end
1845
					if c:FindFirstChildOfClass("Decal") then
1846
						c:FindFirstChildOfClass("Decal"):remove()
1847
					end
1848
					c.Name = "Banished"
1849
					c.CanCollide = false
1850
				else
1851
					c:remove()
1852
				end
1853
			end
1854
			local A = false
1855
			for i = 1, 35 do
1856
				if A == false then
1857
					A = true
1858
				elseif A == true then
1859
					A = false
1860
				end
1861
				for _, c in pairs(CLONE:GetDescendants()) do
1862
					if c:IsA("BasePart") then
1863
						c.Anchored = true
1864
						c.Material = MATERIALS[MRANDOM(1,2)]
1865
						c.Transparency = c.Transparency + 0.8/35
1866
						if A == false then
1867
							c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
1868
						elseif A == true then
1869
							c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)						
1870
						end
1871
					end
1872
				end
1873
				Swait()
1874
			end
1875
			CLONE:remove()
1876
		end))
1877
	end
1878
end
1879
1880
function ApplyClock(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
1881
	local CHILDREN = workspace:GetDescendants()
1882
	for index, CHILD in pairs(CHILDREN) do
1883
		if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
1884
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1885
			if HUM then
1886
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1887
				if TORSO then
1888
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
1889
						if INSTAKILL == true then
1890
							CHILD:BreakJoints()
1891
						else
1892
							local DMG = MRANDOM(MINDMG,MAXDMG)
1893
							ApplyDamage(HUM,DMG,TORSO)
1894
						end
1895
						if FLING > 0 then
1896
							for _, c in pairs(CHILD:GetChildren()) do
1897
								if c:IsA("BasePart") then
1898
									local bv = Instance.new("BodyVelocity") 
1899
									bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1900
									bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
1901
									bv.Parent = c
1902
									Debris:AddItem(bv,0.05)
1903
								end
1904
							end
1905
						end
1906
					end
1907
				end
1908
			end
1909
		end
1910
	end
1911
end
1912
1913
function ApplyAoE(POSITION,RANGE,BRUTAL)
1914
	local CHILDREN = workspace:GetDescendants()
1915
	for index, CHILD in pairs(CHILDREN) do
1916
		if CHILD.ClassName == "Model" and CHILD ~= Character then
1917
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1918
			if HUM then
1919
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1920
				if TORSO then
1921
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
1922
						if BRUTAL == true then
1923
							Kill(CHILD)
1924
						else
1925
							CHILD:BreakJoints()
1926
						end
1927
					end
1928
				end
1929
			end
1930
		end
1931
	end
1932
end
1933
1934
function Shatter(Part)
1935
	if Part.Transparency == 0 then
1936
		local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, Part.BrickColor, "OOF", VT(0,0,0))
1937
		Debris:AddItem(SOUNDPART,5)
1938
		CreateSound("84005018", SOUNDPART, 3, MRANDOM(8,12)/10, false)
1939
		local SIZE = Part.Size.X + Part.Size.Y + Part.Size.Z
1940
		local SIZESET = SIZE/4
1941
		local XOffset = Part.Size.X*1.5/SIZESET
1942
		local YOffset = Part.Size.Y*1.5/SIZESET
1943
		local ZOffset = Part.Size.Z*1.5/SIZESET
1944
		for x = 1, math.ceil(XOffset) do
1945
			for y = 1, math.ceil(YOffset) do
1946
				for z = 1, math.ceil(ZOffset) do
1947
					local SHARD = CreatePart(3, Effects, "Neon", 0, 0, Part.BrickColor, "Shard", VT(SIZE,SIZE,SIZE)/10, false)
1948
					SHARD.CanCollide = true
1949
					SHARD.CFrame = Part.CFrame*CF((Part.Size.X/2-x/4),(Part.Size.Y/2-y/4),(Part.Size.Z/2-z/4))
1950
					SHARD.Velocity = VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))*3
1951
					Debris:AddItem(SHARD,MRANDOM(10,25)/3)
1952
				end
1953
			end
1954
		end
1955
	end
1956
	Part:remove()
1957
end
1958
1959
function ApplyKill(POSITION,RANGE,BRUTAL)
1960
	local CHILDREN = workspace:GetDescendants()
1961
	for index, CHILD in pairs(CHILDREN) do
1962
		if CHILD.ClassName == "Model" and CHILD ~= Character then
1963
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1964
			if HUM then
1965
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1966
				if TORSO then
1967
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
1968
						if BRUTAL == true then
1969
							Banish(CHILD)
1970
						else
1971
							CHILD:BreakJoints()
1972
						end
1973
					end
1974
				end
1975
			end
1976
		end
1977
	end
1978
end
1979
1980
function ApplyAoE(POSITION,RANGE,ISBANISH)
1981
	local CHILDREN = workspace:GetDescendants()
1982
	for index, CHILD in pairs(CHILDREN) do
1983
		if CHILD.ClassName == "Model" and CHILD ~= Character then
1984
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1985
			if HUM then
1986
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1987
				if TORSO then
1988
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
1989
						if ISBANISH == true then
1990
							Banish(CHILD)
1991
						else
1992
							if ISBANISH == "Gravity" then
1993
								HUM.PlatformStand = true
1994
								if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
1995
									local grav = Instance.new("BodyPosition",TORSO)
1996
									grav.D = 15
1997
									grav.P = 20000
1998
									grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1999
									grav.position = TORSO.Position
2000
									grav.Name = "V3BanishForce"..Player.Name
2001
								else
2002
									TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
2003
									TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
2004
								end
2005
							else
2006
								HUM.PlatformStand = false
2007
							end
2008
						end
2009
					elseif ISBANISH == "Gravity" then
2010
						if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
2011
							TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
2012
							HUM.PlatformStand = false
2013
						end
2014
					end
2015
				end
2016
			end
2017
		end
2018
	end
2019
end
2020
2021
function killnearest(position,range,EFFECT,v)
2022
	for i,v in ipairs(workspace:GetChildren()) do
2023
	local body = v:GetChildren()
2024
		for part = 1, #body do
2025
			if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
2026
				local SIZE = body[part].Size.Magnitude
2027
				if(body[part].Position - position).Magnitude < range + SIZE/2 then
2028
					if v.ClassName == "Model" then
2029
						if v:FindFirstChildOfClass("Humanoid") ~= nil then
2030
							if v:FindFirstChildOfClass("Humanoid").Health > 0 then
2031
								v:BreakJoints()
2032
								for _, c in pairs(v:GetChildren()) do
2033
				if c:IsA("BasePart") then
2034
					c.Anchored = true
2035
				end
2036
			end
2037
								if EFFECT == "Glitch" then
2038
									coroutine.resume(coroutine.create(function()
2039
										local ORIGINPOS = body[part].CFrame
2040
										local SIZE = body[part].Size
2041
										for i = 1, 100 do
2042
											Swait()
2043
											local PART = body[part]
2044
											PART.Anchored = true
2045
											PART.Size = SIZE*MRANDOM(5,15)/10
2046
											PART.CFrame = ORIGINPOS*CF(MRANDOM(-15,15)/15,MRANDOM(-15,15)/15,MRANDOM(-15,15)/15)
2047
										end
2048
										body[part]:remove()
2049
									end))
2050
								elseif EFFECT == "Shatter" then
2051
									for _, c in pairs(v:GetChildren()) do
2052
										if c.ClassName == "Part" or c.ClassName == "MeshPart" then
2053
											Shatter(c)
2054
										end
2055
									end
2056
								end
2057
							end
2058
						end
2059
					end
2060
				end
2061
			end
2062
		end
2063
	end
2064
end
2065
function Ragdoll(Character2, CharTorso, Headless, Velocity)
2066
	local svch = Character2
2067
	Character2:BreakJoints()
2068
	local hum = Character2:findFirstChild("Humanoid")
2069
	local q = Character2:GetChildren()
2070
	local CLONE = IT("Model", Effects)
2071
	for i = 1, #q do
2072
		if q[i].ClassName == "Accessory" and Headless == true then
2073
			q[i]:remove()
2074
		elseif q[i].ClassName ~= "Humanoid" and q[i].ClassName ~= "LocalScript" and q[i].ClassName ~= "Script" and q[i].ClassName ~= "Gear" then
2075
			q[i].Parent = CLONE
2076
		elseif q[i].ClassName ~= "Humanoid" then
2077
			q[i]:remove()
2078
		end
2079
	end
2080
	local chrclone = CLONE
2081
	local ch = chrclone:GetChildren()
2082
	local i
2083
	for i = 1, #ch do
2084
		if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
2085
			ch[i]:remove()
2086
		end
2087
	end
2088
	local function Scan(ch)
2089
		local e
2090
		for e = 1, #ch do
2091
			Scan(ch[e]:GetChildren())
2092
			if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
2093
				ch[e]:remove()
2094
			end
2095
		end
2096
	end
2097
	Character2:remove()
2098
	local NEWHUM = IT("Humanoid")
2099
	NEWHUM.Name = "Corpse"
2100
	NEWHUM.Health = 0
2101
	NEWHUM.MaxHealth = 0
2102
	NEWHUM.PlatformStand = true
2103
	NEWHUM.Parent = CLONE
2104
	NEWHUM.DisplayDistanceType = "None"
2105
	Scan(chrclone:GetChildren())
2106
	local ch = Character2:GetChildren()
2107
	local i
2108
	for i = 1, #ch do
2109
		if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
2110
			ch[i]:remove()
2111
		end
2112
	end
2113
	local ch = Character2:GetChildren()
2114
	local i
2115
	for i = 1, #ch do
2116
		if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
2117
			ch[i]:remove()
2118
		end
2119
	end
2120
	Character2 = chrclone
2121
	local Torso2 = Character2.Torso
2122
	local movevector = Vector3.new()
2123
	if Torso2 then
2124
		movevector = CFrame.new(CharTorso.Position, Torso2.Position).lookVector
2125
		local Head = Character2:FindFirstChild("Head")
2126
		if Head then
2127
			local Neck = Instance.new("Weld")
2128
			Neck.Name = "Neck"
2129
			Neck.Part0 = Torso2
2130
			Neck.Part1 = Head
2131
			Neck.C0 = CFrame.new(0, 1.5, 0)
2132
			Neck.C1 = CFrame.new()
2133
			Neck.Parent = Torso2
2134
			if Headless == true then
2135
				Head.Transparency = 1
2136
				Head:ClearAllChildren()
2137
			end
2138
		end
2139
		local Limb = Character2:FindFirstChild("Right Arm")
2140
		if Limb then
2141
			Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
2142
			local Joint = Instance.new("Glue")
2143
			Joint.Name = "RightShoulder"
2144
			Joint.Part0 = Torso2
2145
			Joint.Part1 = Limb
2146
			Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
2147
			Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
2148
			Joint.Parent = Torso2
2149
			local B = Instance.new("Part")
2150
			B.TopSurface = 0
2151
			B.BottomSurface = 0
2152
			B.formFactor = "Symmetric"
2153
			B.Size = Vector3.new(1, 1, 1)
2154
			B.Transparency = 1
2155
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
2156
			B.Parent = Character2
2157
			local W = Instance.new("Weld")
2158
			W.Part0 = Limb
2159
			W.Part1 = B
2160
			W.C0 = CFrame.new(0, -0.5, 0)
2161
			W.Parent = Limb
2162
		end
2163
		local Limb = Character2:FindFirstChild("Left Arm")
2164
		if Limb then
2165
			Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
2166
			local Joint = Instance.new("Glue")
2167
			Joint.Name = "LeftShoulder"
2168
			Joint.Part0 = Torso2
2169
			Joint.Part1 = Limb
2170
			Joint.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
2171
			Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
2172
			Joint.Parent = Torso2
2173
			local B = Instance.new("Part")
2174
			B.TopSurface = 0
2175
			B.BottomSurface = 0
2176
			B.formFactor = "Symmetric"
2177
			B.Size = Vector3.new(1, 1, 1)
2178
			B.Transparency = 1
2179
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
2180
			B.Parent = Character2
2181
			local W = Instance.new("Weld")
2182
			W.Part0 = Limb
2183
			W.Part1 = B
2184
			W.C0 = CFrame.new(0, -0.5, 0)
2185
			W.Parent = Limb
2186
		end
2187
		local Limb = Character2:FindFirstChild("Right Leg")
2188
		if Limb then
2189
			Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
2190
			local Joint = Instance.new("Glue")
2191
			Joint.Name = "RightHip"
2192
			Joint.Part0 = Torso2
2193
			Joint.Part1 = Limb
2194
			Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
2195
			Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
2196
			Joint.Parent = Torso2
2197
			local B = Instance.new("Part")
2198
			B.TopSurface = 0
2199
			B.BottomSurface = 0
2200
			B.formFactor = "Symmetric"
2201
			B.Size = Vector3.new(1, 1, 1)
2202
			B.Transparency = 1
2203
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
2204
			B.Parent = Character2
2205
			local W = Instance.new("Weld")
2206
			W.Part0 = Limb
2207
			W.Part1 = B
2208
			W.C0 = CFrame.new(0, -0.5, 0)
2209
			W.Parent = Limb
2210
		end
2211
		local Limb = Character2:FindFirstChild("Left Leg")
2212
		if Limb then
2213
			Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
2214
			local Joint = Instance.new("Glue")
2215
			Joint.Name = "LeftHip"
2216
			Joint.Part0 = Torso2
2217
			Joint.Part1 = Limb
2218
			Joint.C0 = CFrame.new(-0.5, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
2219
			Joint.C1 = CFrame.new(0, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
2220
			Joint.Parent = Torso2
2221
			local B = Instance.new("Part")
2222
			B.TopSurface = 0
2223
			B.BottomSurface = 0
2224
			B.formFactor = "Symmetric"
2225
			B.Size = Vector3.new(1, 1, 1)
2226
			B.Transparency = 1
2227
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
2228
			B.Parent = Character2
2229
			local W = Instance.new("Weld")
2230
			W.Part0 = Limb
2231
			W.Part1 = B
2232
			W.C0 = CFrame.new(0, -0.5, 0)
2233
			W.Parent = Limb
2234
		end
2235
		local Bar = Instance.new("Part")
2236
		Bar.TopSurface = 0
2237
		Bar.BottomSurface = 0
2238
		Bar.formFactor = "Symmetric"
2239
		Bar.Size = Vector3.new(1, 1, 1)
2240
		Bar.Transparency = 1
2241
		Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
2242
		Bar.Parent = Character2
2243
		local Weld = Instance.new("Weld")
2244
		Weld.Part0 = Torso2
2245
		Weld.Part1 = Bar
2246
		Weld.C0 = CFrame.new(0, 0.5, 0)
2247
		Weld.Parent = Torso2
2248
	end
2249
	Character2.Parent = Weapon
2250
	if movevector ~= Vector3.new() then
2251
		for i = 1, 10 do
2252
			Torso2.Velocity = movevector * Velocity
2253
		end
2254
	end
2255
	Character2.Name = "Corpse"
2256
	return Character2, Torso2
2257
end
2258
function PuddleOfBlood(Position, MaxDrop, Model, MaxSize)
2259
	local HITFLOOR, HITPOS, NORMAL = Raycast(Position, CF(Position, Position + VT(0, -1, 0)).lookVector, MaxDrop, Model)
2260
	if HITFLOOR ~= nil and HITFLOOR.Parent ~= Weapon and HITFLOOR.Parent ~= Character then
2261
		if HITFLOOR.Name == "BloodPuddle" then
2262
			local DIST = (Position - HITFLOOR.Position).Magnitude
2263
			if HITFLOOR.Size.Z <= 5 and MaxSize > HITFLOOR.Size.Z or HITFLOOR.Size.Z > 5 and MaxSize > HITFLOOR.Size.Z and DIST < HITFLOOR.Size.Z / 3 then
2264
				HITFLOOR.Size = HITFLOOR.Size + VT(0.1, 0, 0.1)
2265
			end
2266
		elseif HITFLOOR.Anchored == true then
2267
			do
2268
				local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Bright blue", "BloodPuddle", VT(2, 0, 2))
2269
				BLOOD.CFrame = CF(HITPOS, HITPOS + NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0))
2270
				MakeForm(BLOOD, "Cyl")
2271
				coroutine.resume(coroutine.create(function()
2272
					Swait(75)
2273
					while true do
2274
						Swait()
2275
						BLOOD.Size = BLOOD.Size - VT(0.02, 0, 0.02)
2276
						if BLOOD.Size.Z < 0.051 then
2277
							BLOOD:remove()
2278
							break
2279
						end
2280
					end
2281
				end))
2282
			end
2283
		end
2284
	end
2285
end
2286
function SprayBlood(POSITION, DIRECTION, BloodSize)
2287
	local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Bright blue", "BloodPuddle", VT(1, 1, 1), false)
2288
	BLOOD.CFrame = CF(POSITION)
2289
	MakeForm(BLOOD, "Ball")
2290
	local bv = Instance.new("BodyVelocity", BLOOD)
2291
	bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
2292
	bv.velocity = CF(POSITION, DIRECTION + VT(MRANDOM(-3, 3) / 30, MRANDOM(-3, 3) / 30, MRANDOM(-3, 3) / 30)).lookVector * 25
2293
	bv.Name = "MOVE"
2294
	Debris:AddItem(bv, 0.05)
2295
	coroutine.resume(coroutine.create(function()
2296
		local HASTOUCHEDGROUND = false
2297
		local HIT = BLOOD.Touched:Connect(function(hit)
2298
			if hit.Anchored == true then
2299
				HASTOUCHEDGROUND = true
2300
				PuddleOfBlood(BLOOD.Position + VT(0, 1, 0), 2, BLOOD, BloodSize)
2301
			end
2302
		end)
2303
		wait(5)
2304
		if HASTOUCHEDGROUND == false then
2305
			BLOOD:remove()
2306
		end
2307
	end))
2308
end
2309
function ApplyDamage(Humanoid, Damage, TorsoPart)
2310
	local defence = Instance.new("BoolValue", Humanoid.Parent)
2311
	defence.Name = "HitBy" .. Player.Name
2312
	game:GetService("Debris"):AddItem(defence, 0.001)
2313
	Damage = Damage * DAMAGEMULTIPLIER
2314
	if Humanoid.Health ~= 0 then
2315
		local CritChance = MRANDOM(1, 100)
2316
		if Damage > Humanoid.Health then
2317
			Damage = math.ceil(Humanoid.Health)
2318
			if Damage == 0 then
2319
				Damage = 0.1
2320
			end
2321
		end
2322
		Humanoid.Health = Humanoid.Health - Damage
2323
		StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0))
2324
	end
2325
end
2326
function ApplyAoE(POSITION, RANGE, MINDMG, MAXDMG, FLING, INSTAKILL)
2327
	local CHILDREN = workspace:GetDescendants()
2328
	for index, CHILD in pairs(CHILDREN) do
2329
		if CHILD.ClassName == "Model" and CHILD ~= Character then
2330
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2331
			if HUM then
2332
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2333
				if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
2334
					if INSTAKILL == true then
2335
						Petrify(CHILD)
2336
					else
2337
						local DMG = MRANDOM(MINDMG, MAXDMG)
2338
						ApplyDamage(HUM, DMG, TORSO)
2339
					end
2340
					if FLING > 0 then
2341
						for _, c in pairs(CHILD:GetChildren()) do
2342
							if c:IsA("BasePart") then
2343
								local bv = Instance.new("BodyVelocity")
2344
								bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
2345
								bv.velocity = CF(POSITION, TORSO.Position).lookVector * FLING
2346
								bv.Parent = c
2347
								Debris:AddItem(bv, 0.05)
2348
							end
2349
						end
2350
					end
2351
				end
2352
			end
2353
		end
2354
	end
2355
end
2356
function Petrify(Foe)
2357
	local STONEMODEL = IT("Model", Effects)
2358
	local CHILDREN = Foe:GetDescendants()
2359
	for index, CHILD in pairs(CHILDREN) do
2360
		if CHILD:IsA("BasePart") and CHILD.Parent.ClassName ~= "Folder" then
2361
			CHILD.Parent = STONEMODEL
2362
			CHILD.Material = "Slate"
2363
			CHILD.Color = C3(0.5, 0.5, 0.5)
2364
			if CHILD:FindFirstChildOfClass("SpecialMesh") then
2365
				local mesh = CHILD:FindFirstChildOfClass("SpecialMesh")
2366
				mesh.TextureId = ""
2367
			end
2368
			if CHILD:FindFirstChildOfClass("Decal") then
2369
				local mesh = CHILD:FindFirstChildOfClass("Decal")
2370
				mesh:remove()
2371
			end
2372
			if CHILD.ClassName == "MeshPart" then
2373
				CHILD.TextureID = ""
2374
			end
2375
			if CHILD.ClassName == "UnionOperation" then
2376
				CHILD.UsePartColor = true
2377
			end
2378
			CHILD.CanCollide = true
2379
		end
2380
	end
2381
	Debris:AddItem(STONEMODEL, 5)
2382
end
2383
--//=================================\\
2384
--||	ATTACK FUNCTIONS AND STUFF
2385
--\\=================================//
2386
2387
Circle = nil
2388
CircleParts = {}
2389
Equipped = false
2390
2391
function RayCast(Position, Direction, MaxDistance, IgnoreList)
2392
	return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) 
2393
end
2394
	Equipped = true
2395
	Circle = Instance.new("Model")
2396
	Circle.Name = "Circle"
2397
	Angle = 0
2398
	for i = 1, 1 do
2399
		local CirclePart = Instance.new("Part")
2400
		CirclePart.Name = "CirclePart"
2401
		CirclePart.Transparency = 1
2402
		CirclePart.BrickColor = BrickColor.new("Really black")
2403
		CirclePart.Material = Enum.Material.Plastic
2404
		CirclePart.Shape = Enum.PartType.Block
2405
		CirclePart.FormFactor = Enum.FormFactor.Custom
2406
		CirclePart.TopSurface = Enum.SurfaceType.Smooth
2407
		CirclePart.BottomSurface = Enum.SurfaceType.Smooth
2408
		CirclePart.Anchored = true
2409
		CirclePart.CanCollide = false
2410
		CirclePart.Locked = true
2411-
				local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(2, 0, 2))
2411+
2412
		local Aura = Instance.new('ParticleEmitter')
2413
Aura.Name = "Aura"
2414
Aura.Texture = "rbxassetid://268043891"
2415
Aura.Parent = CirclePart
2416
Aura.LightEmission = 0
2417
Aura.Transparency = NumberSequence.new(0.2,0.4,1)
2418
Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 0/255),Color3.new(255/200, 200/200, 200/200))
2419
Aura.Size = NumberSequence.new(0.9,0.5,0.3)
2420
Aura.LockedToPart = false
2421
Aura.Lifetime = NumberRange.new(1)
2422
Aura.Rate = 50
2423
Aura.Speed = NumberRange.new(2.5)
2424
Aura.SpreadAngle = Vector2.new(80,80)
2425
		local BlockMesh = Instance.new("BlockMesh")
2426
		BlockMesh.Scale = Vector3.new(1, (1 + (0.005 * i)), 1)
2427
		BlockMesh.Parent = CirclePart
2428
		CirclePart.Parent = Circle
2429
		local Star = Instance.new("Decal", CirclePart)
2430-
	local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(1, 1, 1), false)
2430+
2431
		Star.Face = "Top"
2432
		local Light = Instance.new("PointLight", CirclePart)
2433
		Light.Color = Color3.new(.20,0,0)
2434
		Light.Brightness = 100
2435
		Light.Range = 15
2436
		table.insert(CircleParts, CirclePart)
2437
	end
2438
	Spawn(function()
2439
		while Equipped and Humanoid.Parent and Torso.Parent do
2440
			if Angle == 360 then
2441
				Angle = 0
2442
			end
2443
			Angle = Angle + 0.05
2444
			local Hit, EndPosition = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 6.5), {Character})
2445
			if Hit then
2446
				if not Circle.Parent then
2447
					Circle.Parent = Character
2448
				end
2449
				for i, v in pairs(CircleParts) do
2450
					v.CFrame = CFrame.new(Torso.Position.X, EndPosition.Y, Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0)
2451
				end
2452
			else
2453
				Circle.Parent = nil
2454
			end
2455
			wait()
2456
		end
2457
	end)
2458
2459
function Shot()
2460
	ATTACK = true
2461
	Rooted = false
2462
	for i=0, 0.4, 0.1 / Animation_Speed do
2463
		Swait()
2464
		turnto(Mouse.Hit.p)
2465
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
2466
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
2467
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2468
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2469
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2470
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2471
	end
2472
	repeat
2473
		for i=0, 0.2, 0.1 / Animation_Speed do
2474
			Swait()
2475
			turnto(Mouse.Hit.p)
2476
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
2477
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
2478
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2479
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2480
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2481
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2482
		end
2483
		local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
2484
		SpawnTrail(Hole.Position,POS)
2485
		if HIT ~= nil then
2486
			if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
2487
				BAN (HIT.Parent)
2488
			end
2489
		end
2490
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(50,5,5), Size2 = VT(50,5,50), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2491
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(50,5,50), Size2 = VT(50,5,50), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2492
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(50,5,50), Size2 = VT(50,5,50), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2493
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(50,5,503), Size2 = VT(50,5,50), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2494
		for i=0, 0.3, 0.1 / Animation_Speed do
2495
			Swait()
2496
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
2497
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
2498
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2499
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2500
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2501
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2502
		end
2503
	until KEYHOLD == false
2504
	ATTACK = false
2505
	Rooted = false
2506
end
2507
2508
function BAN(CHARACTER)
2509
	local BANFOLDER = IT("Folder",Effects)
2510
	local naeeym2 = Instance.new("BillboardGui",BANFOLDER)
2511
	naeeym2.AlwaysOnTop = false
2512
	naeeym2.Size = UDim2.new(5,35,2,35)
2513
	naeeym2.StudsOffset = Vector3.new(0,1,0)
2514
	naeeym2.Name = "AAAA"
2515
	local tecks2 = Instance.new("TextLabel",naeeym2)
2516
	tecks2.BackgroundTransparency = 1
2517
	tecks2.TextScaled = true
2518
	tecks2.BorderSizePixel = 0
2519
	tecks2.Text = "Get rekt"
2520
	tecks2.Font = "Cartoon"
2521
	tecks2.TextSize = 30
2522
	tecks2.TextStrokeTransparency = 1
2523
	tecks2.TextColor3 = Color3.new(242, 243, 243)
2524
	tecks2.TextStrokeColor3 = Color3.new(0,0,0)
2525
	tecks2.Size = UDim2.new(1,0,0.5,0)
2526
	tecks2.Parent = naeeym2
2527
	for i,v in ipairs(CHARACTER:GetChildren()) do
2528
		if v.ClassName == "Part" or v.ClassName == "MeshPart" then
2529
			if v.Name ~= "HumanoidRootPart" then
2530
				local BOD = v:Clone()
2531
				BOD.CanCollide = false
2532
				BOD.Anchored = true
2533
				BOD.CFrame = v.CFrame
2534
				BOD.Parent = BANFOLDER
2535
				BOD.Material = "Neon"
2536
				BOD.Color = C3(242, 243, 243)
2537
				if BOD:FindFirstChildOfClass("Decal") then
2538
					BOD:FindFirstChildOfClass("Decal"):remove()
2539
				end
2540
				if BOD.Name == "Head" then
2541
					naeeym2.Adornee = BOD
2542
				end
2543
				if BOD.ClassName == "MeshPart" then
2544
					BOD.TextureID = ""
2545
				end
2546
			end
2547
		end
2548
	end
2549
	CHARACTER:remove()
2550
	coroutine.resume(coroutine.create(function()
2551
		for i = 1, 50 do
2552
			Swait()
2553
			for i,v in ipairs(BANFOLDER:GetChildren()) do
2554
				if v.ClassName == "Part" or v.ClassName == "MeshPart" then
2555
					v.Transparency = 1
2556
				end
2557
				naeeym2.Enabled = false
2558
			end
2559
			Swait()
2560
			for i,v in ipairs(BANFOLDER:GetChildren()) do
2561
				if v.ClassName == "Part" or v.ClassName == "MeshPart" then
2562
					v.Transparency = 0
2563
				end
2564
				naeeym2.Enabled = true
2565
			end
2566
		end
2567
		BANFOLDER:remove()
2568
	end))
2569
end
2570
2571
function AttackTemplate()
2572
	ATTACK = true
2573
	Rooted = false
2574
	for i=0, 1, 0.1 / Animation_Speed do
2575
		Swait()
2576
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2577
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2578
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2579
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
2580
		RightHip.C0 = Clerp(RightHip.C0, CF(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)
2581
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-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)
2582
	end
2583
	ATTACK = false
2584
	Rooted = false
2585
end
2586
2587
function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
2588
	if FLOOR ~= nil then
2589
		coroutine.resume(coroutine.create(function()
2590
			local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
2591
			PART.CFrame = CF(POSITION)
2592
			for i = 1, 45 do
2593
				local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
2594
				RingPiece.Material = FLOOR.Material
2595
				RingPiece.Color = FLOOR.Color
2596
				RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
2597
				Debris:AddItem(RingPiece,SWAIT/100)
2598
			end
2599
			PART:remove()
2600
		end))
2601
	end
2602
end
2603
2604
function SpawnSmite(POS)
2605
	local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character)
2606
	local EMITPOS = HITPOS
2607
	if HITFLOOR ~= nil then
2608
		if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
2609
			HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent)
2610
			EMITPOS = HITPOS
2611
		elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
2612
			HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent)
2613
			EMITPOS = HITPOS
2614
		end
2615
	end
2616
	if HITFLOOR ~= nil then
2617
		ApplyAoE(EMITPOS,10)
2618
		WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
2619
		WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
2620
		WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
2621
		for i = 1, 5 do
2622
			local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12)
2623
			WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
2624
		end
2625
	end
2626
end
2627
2628
function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS)
2629
	coroutine.resume(coroutine.create(function()
2630
		local METEOR = IT("Model",Effects)
2631
		METEOR.Name = "Meteorite"
2632
		local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
2633
		METEOR.PrimaryPart = CENTER
2634
		local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
2635
		PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
2636
		for i = 1, 15 do
2637
			local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "White", "Fire", VT(5.1,1,5.1)*SIZE)
2638
			FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
2639
		end
2640
		if ISDEBREE ~= true then
2641
			METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
2642
		else
2643
			METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
2644
		end
2645
		local IMPACT = false
2646
		CreateSound(463593339, CENTER, 10, 0.6)
2647
		if SIZE >= 3.5 then
2648
			for i = 1, MRANDOM(3,7) do
2649
				SpawnMeteor(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(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)))*CF(0,0,SIZE*15).p)
2650
			end
2651
		end
2652
		for i = 1, 200 do
2653
			Swait()
2654
			local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character)
2655
			if HITFLOOR == nil then
2656
				local ORI = CENTER.Orientation
2657
				METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
2658
			else
2659
				if HITFLOOR.Anchored == true then
2660
					CreateDebreeRing1(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5)
2661
					CreateFlyingDebree1(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175)
2662
				end
2663
				IMPACT = true
2664
				break
2665
			end
2666
		end
2667
		if IMPACT == true then
2668
			WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
2669
			WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5})
2670
			WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
2671
			ApplyAoE(CENTER.Position,30*SIZE)
2672
		end
2673
		METEOR:remove()
2674
	end))
2675
end
2676
2677
function Oblivion_of_Doom()
2678
	ATTACK = true
2679
	Rooted = false
2680
	CreateSound(1368573150, RightArm, 3, 1.5)
2681
	for i=0, 0.6, 0.1 / Animation_Speed do
2682
		Swait()
2683
		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*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
2684
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2685
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(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)
2686
	end
2687
	local POWER = 0
2688
	repeat 
2689
		Swait() 
2690
		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 = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
2691
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2692
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(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)
2693
		POWER = POWER + 0.5 
2694
		if POWER >= 85 then
2695
			POWER = 85
2696
		end
2697
	until KEYHOLD == false
2698
	if POWER < 0.6 then
2699
		SpawnSmite(Mouse.Hit.p)
2700
	else
2701
		if POWER < 15 then
2702
			POWER = 15
2703
		end
2704
		SpawnMeteor(Mouse.Hit.p,POWER/15)
2705
	end
2706
	ATTACK = false
2707
	Rooted = false
2708
end
2709
2710
function Pure_Night()
2711
	ATTACK = true
2712
	Rooted = true
2713
	local AIMPOS = Mouse.Hit.p
2714
	local AIM,AIMPOS = CastProperRay(AIMPOS+VT(0,1,0),AIMPOS,10000,Character)
2715
	coroutine.resume(coroutine.create(function()
2716
		local RAYS = {}
2717
		for i = 1, 4 do
2718
			local RAY = CreatePart(3, Effects, "Neon", 0, 1, "Really black", "Ray", VT(50,2000,50))
2719
			MakeForm(RAY,"Cyl")
2720
			RAY.Mesh.Scale = VT(1,1.1,1)
2721
			table.insert(RAYS,RAY)
2722
		end
2723
		CreateSound(348663022, Effects, 2, 1.2, false)
2724
		for i = 1, 100 do
2725
			Swait()
2726
			for e = 1, #RAYS do
2727
				if RAYS[e] ~= nil then
2728
					local RAY = RAYS[e]
2729
					RAY.CFrame = CF(AIMPOS+VT(0,1000,0))*ANGLES(RAD(0),RAD(90*e),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(50-(i/2)))*CF(0,-1000,0)
2730
					RAY.Transparency = RAY.Transparency - 0.01
2731
				end
2732
			end
2733
		end
2734
		for i = 1, 20 do
2735
			Swait()
2736
			for e = 1, #RAYS do
2737
				if RAYS[e] ~= nil then
2738
					local RAY = RAYS[e]
2739
					RAY.Mesh.Scale = RAY.Mesh.Scale - VT(1/20,0,1/20)
2740
				end
2741
			end
2742
		end
2743
		wait(0.3)
2744
		for i = 1, 16 do
2745
			local POS = CF(AIMPOS)*ANGLES(RAD(0),RAD(0,360),RAD(0))*CF(0,0,MRANDOM(0,5)).p
2746
			SpawnTrail(POS+VT(0,200,0),POS)
2747
		end
2748
		for i = 1, 4 do
2749
			CreateDebreeRing2(AIM,AIMPOS-VT(0,3,0),5*i,VT(5,5,5)*i,5)
2750
		end
2751
2752
		CreateFlyingDebree2(AIM,CF(AIMPOS),7,VT(3,3,3),5,185,false)
2753
		CreateFlyingDebree2(AIM,CF(AIMPOS),7,VT(6,6,6),5,285,false)
2754
		CreateSound(130972023, Effects, 2, 1, false)
2755
		local POS = Mouse.Hit.p
2756
		local RAY = CreatePart(3, Effects, "Neon", 0, 0, "White", "Strike", VT(0,0,0))
2757
		MakeForm(RAY,"Cyl")
2758
		local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "White", "Strike", VT(130,130,130))
2759
		MakeForm(SPHERE,"Ball")
2760
		local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Strike", VT(120,120,120))
2761
		MakeForm(SHIELD,"Ball")
2762
		SHIELD.CFrame = CF(AIMPOS)
2763
		RAY.CFrame = CF(AIMPOS)
2764
		SPHERE.CFrame = CF(AIMPOS)
2765
		local CFRAME = CF(SPHERE.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
2766
		CreateSound(415700134, SPHERE, 10, 0.8, false)
2767
		for i = 1, 200 do
2768
			Swait()
2769
		WACKYEFFECT({EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(10,10,10), Transparency = 0, Transparency2 = 1, CFrame = CF(SPHERE.Position+VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))), MoveToPos = CF(RAY.Position), RotationX = MRANDOM(-15,15), RotationY = MRANDOM(-15,15), RotationZ = MRANDOM(-15,15), Material = "Neon", Color = C3(1,1,1), SoundID = "444667859", SoundPitch = 2, SoundVolume = nil})
2770
	MagicSphere(VT(0,0,0),45,SPHERE.CFrame,"Really black",VT(5,20,5))
2771
			RAY.Size = RAY.Size + VT(0,0,0)
2772
			SPHERE.Size = SPHERE.Size + VT(0.05,0.05,0.05)
2773
			SHIELD.Size = SPHERE.Size + VT(0.05,0.05,0.05)
2774
			ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true)
2775
		end	
2776
		for i = 1, 45 do
2777
			Swait()
2778
			RAY.Transparency = RAY.Transparency + 1/45
2779
			SPHERE.Transparency = RAY.Transparency 
2780
			SHIELD.Transparency = SPHERE.Transparency + 1/45
2781
		end
2782
		RAY:remove()
2783
		SHIELD:remove()
2784
		SPHERE:remove()
2785
	end))
2786
	ATTACK = false
2787
	Rooted = false
2788
end
2789
2790
function Nightfall()
2791
	ATTACK = true
2792
	Rooted = true
2793
	CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 0.64, false)
2794
	for i=0, 1, 0.1 / Animation_Speed do
2795
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2796
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2797
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2798
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2799
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2800
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2801
	end	
2802
	coroutine.resume(coroutine.create(function()
2803
		local POS = Mouse.Hit.p
2804
		local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Black", "Strike", VT(0,2000,0))
2805
		MakeForm(RAY,"Cyl")
2806
		local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "White", "Strike", VT(0,0,0))
2807
		MakeForm(SPHERE,"Ball")
2808
		local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Black", "Strike", VT(0,0,0))
2809
		MakeForm(SHIELD,"Ball")
2810
		SHIELD.CFrame = CF(POS)
2811
		RAY.CFrame = CF(POS)
2812
		SPHERE.CFrame = CF(POS)
2813
		CreateSound(440145570, SPHERE, 10, 0.8, false)
2814
		CreateSound(415700134, SPHERE, 10, 0.8, false)
2815
		for i = 1, 200 do
2816
			Swait()
2817
			WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2818
			RAY.Size = RAY.Size + VT(0.05,0,0.05)
2819
			SPHERE.Size = SPHERE.Size + VT(2,2,2)
2820
			SHIELD.Size = SPHERE.Size + VT(3,3,3)
2821
			ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true)
2822
		end	
2823
		for i = 1, 45 do
2824
			Swait()
2825
			RAY.Transparency = RAY.Transparency + 1/45
2826
			SPHERE.Transparency = RAY.Transparency 
2827
			SHIELD.Transparency = SPHERE.Transparency + 1/45
2828
		end
2829
		RAY:remove()
2830
		SHIELD:remove()
2831
		SPHERE:remove()
2832
	end))
2833
	for i=0, 1, 0.1 / Animation_Speed do
2834
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
2835
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2836
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2837
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2838
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2839
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2840
	end
2841
	ATTACK = false
2842
	Rooted = false
2843
end
2844
function Ground_Star()
2845
	local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
2846
		if HITFLOOR then
2847
		ATTACK = true
2848
		Rooted = true
2849
		FULL = true
2850
		local GYRO = IT("BodyGyro",RootPart)
2851
		GYRO.D = 25
2852
		GYRO.P = 20000
2853
		GYRO.MaxTorque = VT(0,math.huge,0)
2854
		for i=0, 0.3, 0.1 / Animation_Speed do
2855
			GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
2856
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(-15)), 1 / Animation_Speed)
2857
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2858
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2859
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-25), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2860
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-35)), 1 / Animation_Speed)
2861
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(5)), 1 / Animation_Speed)
2862
		end
2863
		GYRO:remove()
2864
		CreateSound(12222200, RightArm, 10, 1)
2865
		for i=0, 0.4, 0.1 / Animation_Speed do
2866
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, -0.75) * ANGLES(RAD(40), RAD(0), RAD(35)), 1.5 / Animation_Speed)
2867
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2868
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, -1.45) * ANGLES(RAD(75), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
2869
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-25), RAD(-12)) * ANGLES(RAD(-35), RAD(55), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
2870
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.5) * ANGLES(RAD(0), RAD(55), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(65)), 1 / Animation_Speed)
2871
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.6, -0.2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-15)), 1 / Animation_Speed)
2872
		end
2873
		CreateSound(289842971, RightArm, 10, 1)
2874
		coroutine.resume(coroutine.create(function()
2875
			local HIT,POS = Raycast(Mouse.Hit.p+VT(0,1,0), (CF(Mouse.Hit.p+VT(0,1,0), Mouse.Hit.p-VT(0,1,0))).lookVector, 45, Character)
2876
			local ECHO = POS
2877
			if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
2878
				HIT,POS = Raycast(ECHO+VT(0,1,0), (CF(ECHO, ECHO + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent)
2879
				ECHO = POS
2880
			elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
2881
				HIT,POS = Raycast(ECHO+VT(0,1,0), (CF(ECHO, ECHO + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent)
2882
				ECHO = POS
2883
			end
2884
			if ECHO.Y == HITPOS.Y then
2885
				local DISTANCE = (HITPOS - ECHO).Magnitude/3
2886
				local CFRAME = CF(HITPOS,ECHO)
2887
				local RANGE = math.ceil(DISTANCE)
2888
				for i = 1, RANGE-1 do
2889
					Swait(3)
2890
					local A = CFRAME*CF(0,0,-i*3)
2891
					ApplyAoE(A.p,4)
2892
					CreateFlyingDebree1(HITFLOOR,A,2,VT(2,2,2),2,65)
2893
				end
2894
				local SIZE = 3
2895
				local POS = CFRAME*CF(0,0,-RANGE*3).p
2896
				WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(55,0,55)*SIZE, Size2 = VT(55,15,55)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 130972023, SoundPitch = 0.8, SoundVolume = 10})
2897
				WACKYEFFECT({EffectType = "Sphere", Size = VT(10,250,10)*SIZE, Size2 = VT(20,1000,20)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 178452241, SoundPitch = 1, SoundVolume = 10})
2898
				WACKYEFFECT({EffectType = "Sphere", Size = VT(30,150,30)*SIZE, Size2 = VT(50,300,50)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 178452241, SoundPitch = 1, SoundVolume = 10})
2899
				for i = 1, 9 do
2900
					WACKYEFFECT({TIME = 65, EffectType = "Sphere", Size = VT(5,5,0)*SIZE, Size2 = VT(0,0,35)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS+VT(0,15*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-25*SIZE), MoveToPos = CF(POS+VT(0,15*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-55*SIZE).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = 0.8, SoundVolume = 5})
2901
				end
2902
				for i = 1, 9 do
2903
					WACKYEFFECT({TIME = 65, EffectType = "Sphere", Size = VT(5,5,0)*SIZE, Size2 = VT(0,0,35)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS+VT(0,5*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-25*SIZE), MoveToPos = CF(POS+VT(0,5*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-55*SIZE).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.8, SoundVolume = 5})
2904
				end
2905
				ApplyAoE(POS,30*SIZE)
2906
				CreateDebreeRing1(HITFLOOR,POS,30*SIZE,VT(8,8,8)*SIZE,5)
2907
				CreateDebreeRing1(HITFLOOR,POS,50*SIZE,VT(2,2,2)*SIZE,5)
2908
			end
2909
		end))
2910
		for i=0, 0.6, 0.1 / Animation_Speed do
2911
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, -0.75) * ANGLES(RAD(40), RAD(0), RAD(35)), 1.5 / Animation_Speed)
2912
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2913
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, -1.45) * ANGLES(RAD(75), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
2914
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-25), RAD(-12)) * ANGLES(RAD(-35), RAD(55), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
2915
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.5) * ANGLES(RAD(0), RAD(55), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(65)), 1 / Animation_Speed)
2916
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.6, -0.2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-15)), 1 / Animation_Speed)
2917
		end
2918
		FULL = false
2919
		ATTACK = false
2920
		Rooted = false
2921
	end
2922
end
2923
2924
2925
2926
function MagicMissiles()
2927
	ATTACK = true
2928
	Rooted = false
2929
	local SELECTING = true
2930
	local SPOTS = {}
2931
	coroutine.resume(coroutine.create(function()
2932
		local LOOP = 0
2933
		repeat
2934
			LOOP = LOOP + 1
2935
			Swait()
2936
			if LOOP >= 15 then
2937
				LOOP = 0
2938
				for i = 1, #SPOTS do
2939
					if SPOTS[i] ~= nil then
2940
						WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255, 255, 0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
2941
						WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255, 255, 0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
2942
					end
2943
				end
2944
			end
2945
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2946
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2947
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(115), RAD(45), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2948
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
2949
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
2950
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
2951
		until SELECTING == false
2952
		Rooted = false
2953
		repeat
2954
			LOOP = LOOP + 1
2955
			Swait()
2956
			if LOOP >= 15 then
2957
				LOOP = 0
2958
				for i = 1, #SPOTS do
2959
					if SPOTS[i] ~= nil then
2960
						WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
2961
						WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
2962
					end
2963
				end
2964
			end
2965
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2966
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 4 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed)
2967
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2968
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
2969
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
2970
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
2971
		until ATTACK == false
2972
	end))
2973
	repeat
2974
		repeat Swait() until HOLD == true
2975
			local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude
2976
			if DIST > 9999 then
2977
				DIST = 9999
2978
			end
2979
			local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace)	
2980
			local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character)	
2981
			if HITFLOOR ~= nil then
2982
				table.insert(SPOTS,CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0)))
2983
				WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,2,6), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = 90655239, SoundPitch = 1, SoundVolume = 6})
2984
				WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(4,3,4), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
2985
			end
2986
		repeat Swait() until HOLD == false
2987
	until #SPOTS == 5
2988
	SELECTING = false
2989
	for i = 1, #SPOTS do
2990
		if SPOTS[i] ~= nil then
2991
			local POS = SPOTS[i]
2992
			coroutine.resume(coroutine.create(function()
2993
				local MISSILE = IT("Model",Effects)
2994
				MISSILE.Name = "Missile"
2995
				local BASEPART = CreatePart(3, MISSILE, "Neon", 0, 1, "Lime green", "Part", VT(2,2,2))
2996
				MakeForm(BASEPART,"Cyl")
2997
				MISSILE.PrimaryPart = BASEPART
2998
				BASEPART.CFrame = POS*CF(0,-30*3,0)
2999
				local HEAD = CreatePart(3, MISSILE, "Neon", 0, 1, "Lime green", "Part", VT(2,4,2))
3000
				MakeForm(HEAD,"Ball")
3001
				HEAD.CFrame = BASEPART.CFrame*CF(0,1,0)
3002
				local TAIL = CreatePart(3, MISSILE, "Neon", 0, 1, "Lime green", "Part", VT(2.5,0.1,2.5))
3003
				MakeForm(TAIL,"Cyl")
3004
				TAIL.CFrame = BASEPART.CFrame*CF(0,-1,0)
3005
				for i = 1, 15 do
3006
					Swait()
3007
					for _, c in pairs(MISSILE:GetChildren()) do
3008
						if c.ClassName == "Part" then
3009
							c.Transparency = c.Transparency - 1/10
3010
						end
3011
					end
3012
				end
3013
				for i = 1, 15*1.5 do
3014
					Swait()
3015
					MISSILE:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,1.35*3,0))
3016
				end
3017
				ApplyAoE(BASEPART.CFrame.p,200,350,450,750,true)
3018
				WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(750,350,750), Transparency = 0.5, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0/255, 255/255, 0/255), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
3019
				WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(350,350,350), Transparency = 0, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0/255, 255/255, 0/255), SoundID = 165970126, SoundPitch = MRANDOM(13,15)/10, SoundVolume = 4})
3020
				WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(220,2,220), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
3021
				WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(200,3,200), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
3022
				MISSILE:remove()
3023
			end))
3024
		end
3025
	end
3026
	wait(0.6)
3027
	ATTACK = false
3028
	Rooted = false
3029
end
3030
function ApplyDamage(Humanoid,Damage,TorsoPart)
3031
	local defence = Instance.new("BoolValue",Humanoid.Parent)
3032
	defence.Name = ("HitBy"..Player.Name)
3033
	game:GetService("Debris"):AddItem(defence, 0.001)
3034
	Damage = Damage * DAMAGEMULTIPLIER
3035
	if Humanoid.Health ~= 0 then
3036
		local CritChance = MRANDOM(1,100)
3037
		if Damage > Humanoid.Health then
3038
			Damage = math.ceil(Humanoid.Health)
3039
			if Damage == 0 then
3040
				Damage = 0.1
3041
			end
3042
		end
3043
		Humanoid.Health = Humanoid.Health - Damage
3044
	end
3045
end
3046
3047
function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
3048
	local CHILDREN = workspace:GetDescendants()
3049
	for index, CHILD in pairs(CHILDREN) do
3050
		if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
3051
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
3052
			if HUM then
3053
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
3054
				if TORSO then
3055
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
3056
						if INSTAKILL == false then
3057
							CHILD:BreakJoints()
3058
						else
3059
							local DMG = MRANDOM(MINDMG,MAXDMG)
3060
							ApplyDamage(HUM,DMG,TORSO)
3061
						end
3062
						if FLING > 0 then
3063
							for _, c in pairs(CHILD:GetChildren()) do
3064
								if c:IsA("BasePart") then
3065
									local bv = Instance.new("BodyVelocity") 
3066
									bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
3067
									bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
3068
									bv.Parent = c
3069
									Debris:AddItem(bv,0.05)
3070
								end
3071
							end
3072
						end
3073
					end
3074
				end
3075
			end
3076
		end
3077
	end
3078
end
3079
function WACKYEFFECT(Table)
3080
	local TYPE = (Table.EffectType or "Sphere")
3081
	local SIZE = (Table.Size or VT(1,1,1))
3082
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
3083
	local TRANSPARENCY = (Table.Transparency or 0)
3084
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
3085
	local CFRAME = (Table.CFrame or Torso.CFrame)
3086
	local MOVEDIRECTION = (Table.MoveToPos or nil)
3087
	local ROTATION1 = (Table.RotationX or 0)
3088
	local ROTATION2 = (Table.RotationY or 0)
3089
	local ROTATION3 = (Table.RotationZ or 0)
3090
	local MATERIAL = (Table.Material or "Neon")
3091
	local COLOR = (Table.Color or C3(66/255, 0/255, 127/2551))
3092
	local TIME = (Table.Time or 45)
3093
	local SOUNDID = (Table.SoundID or nil)
3094
	local SOUNDPITCH = (Table.SoundPitch or nil)
3095
	local SOUNDVOLUME = (Table.SoundVolume or nil)
3096
	coroutine.resume(coroutine.create(function()
3097
		local PLAYSSOUND = false
3098
		local SOUND = nil
3099
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Dark indigo"), "Effect", VT(1,1,1), true)
3100
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
3101
			PLAYSSOUND = true
3102
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
3103
		end
3104
		EFFECT.Color = COLOR
3105
		local MSH = nil
3106
		if TYPE == "Sphere" then
3107
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
3108
		elseif TYPE == "Block" then
3109
			MSH = IT("BlockMesh",EFFECT)
3110
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
3111
		elseif TYPE == "Wave" then
3112
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
3113
		elseif TYPE == "Ring" then
3114
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
3115
		elseif TYPE == "Slash" then
3116
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
3117
		elseif TYPE == "Round Slash" then
3118
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
3119
		elseif TYPE == "Swirl" then
3120
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
3121
		elseif TYPE == "Skull" then
3122
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
3123
		elseif TYPE == "Crystal" then
3124
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
3125
		end
3126
		if MSH ~= nil then
3127
			local MOVESPEED = nil
3128
			if MOVEDIRECTION ~= nil then
3129
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
3130
			end
3131
			local GROWTH = SIZE - ENDSIZE
3132
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
3133
			if TYPE == "Block" then
3134
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
3135
			else
3136
				EFFECT.CFrame = CFRAME
3137
			end
3138
			for LOOP = 1, TIME+1 do
3139
				Swait()
3140
				MSH.Scale = MSH.Scale - GROWTH/TIME
3141
				if TYPE == "Wave" then
3142
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
3143
				end
3144
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
3145
				if TYPE == "Block" then
3146
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
3147
				else
3148
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
3149
				end
3150
				if MOVEDIRECTION ~= nil then
3151
					local ORI = EFFECT.Orientation
3152
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
3153
					EFFECT.Orientation = ORI
3154
				end
3155
			end
3156
			if PLAYSSOUND == false then
3157
				EFFECT:remove()
3158
			else
3159
				repeat Swait() until SOUND.Playing == false
3160
				EFFECT:remove()
3161
			end
3162
		else
3163
			if PLAYSSOUND == false then
3164
				EFFECT:remove()
3165
			else
3166
				repeat Swait() until SOUND.Playing == false
3167
				EFFECT:remove()
3168
			end
3169
		end
3170
	end))
3171
end
3172
3173
function MakeForm(PART,TYPE)
3174
	if TYPE == "Cyl" then
3175
		local MSH = IT("CylinderMesh",PART)
3176
	elseif TYPE == "Ball" then
3177
		local MSH = IT("SpecialMesh",PART)
3178
		MSH.MeshType = "Sphere"
3179
	elseif TYPE == "Wedge" then
3180
		local MSH = IT("SpecialMesh",PART)
3181
		MSH.MeshType = "Wedge"
3182
	end
3183
end
3184
3185
Debris = game:GetService("Debris")
3186
3187
function CastProperRay(StartPos, EndPos, Distance, Ignore)
3188
	local DIRECTION = CF(StartPos,EndPos).lookVector
3189
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
3190
end
3191
3192
function turnto(position)
3193
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
3194
end
3195
function TimesUp()
3196
	CLOCKTARGET = nil
3197
	if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
3198
		local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
3199
		local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
3200
		if TORSO then
3201
			ATTACK = true
3202
			Rooted = false
3203
			coroutine.resume(coroutine.create(function()
3204
				repeat
3205
					Swait()
3206
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
3207
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3208
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.5*SIZE, -0.2*SIZE) * ANGLES(RAD(75), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3209
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
3210
					RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
3211
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
3212
				until ATTACK == false
3213
			end))
3214
			if Effects:FindFirstChild("NeonDoll") then
3215
				repeat Swait() until Effects:FindFirstChild("NeonDoll") == nil
3216
			end
3217
			wait(0.5)
3218
			local FAKECHARACTER = IT("Model",Effects)
3219
			FAKECHARACTER.Name = "NeonDoll"
3220
			local TORS = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Cool yellow", "Part", VT(0.3,0.3,0.15),false)
3221
			CreateWeldOrSnapOrMotor("Weld", RING, RING, TORS, CF(0,0.6,0), CF(0,0,0))
3222
			local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Cool yellow", "Part", VT(0.15,0.3,0.15),false)
3223
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0,0.15,0))
3224
			local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Cool yellow", "Part", VT(0.15,0.3,0.15),false)
3225
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(-0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0,0.15,0))
3226
			local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Cool yellow", "Part", VT(0.15,0.3,0.15),false)
3227
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0,0.15,0))
3228
			local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Cool yellow", "Part", VT(0.15,0.3,0.15),false)
3229
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(-0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0,0.15,0))
3230
			local HEAD = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Cool yellow", "Part", VT(0.15,0.15,0.15),false)
3231
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, HEAD, CF(0,0.225,0), CF(0,0,0))
3232
			CreateSound(201858045, TORS, 5, 0.4, false)
3233
			for i = 1, 50 do
3234
				Swait()
3235
				CLOCKSPEED = 2.5
3236
				for _, c in pairs(FAKECHARACTER:GetChildren()) do
3237
					if c.ClassName == "Part" then
3238
						c.Transparency = c.Transparency - 0.5/150
3239
					end
3240
				end
3241
			end
3242
			CLOCKTARGET = HUM
3243
			coroutine.resume(coroutine.create(function()
3244
				repeat Swait() CLOCKSPEED = 2 until CLOCKTARGET == nil
3245
				for i = 1, 25 do
3246
					Swait()
3247
					for _, c in pairs(FAKECHARACTER:GetChildren()) do
3248
						if c.ClassName == "Part" then
3249
							c.Transparency = c.Transparency + 0.5/25
3250
						end
3251
					end
3252
				end
3253
				CLOCKSPEED = 400
3254
				FAKECHARACTER:remove()
3255
			end))
3256
			wait(0.5)
3257
			ATTACK = false
3258
			Rooted = false
3259
		end
3260
	end
3261
end
3262
3263
function ChainPunch()
3264
	ATTACK = true
3265
	Rooted = false
3266
	local GYRO = IT("BodyGyro",RootPart)
3267
	GYRO.D = 25
3268
	GYRO.P = 2000
3269
	GYRO.MaxTorque = VT(0,40000,0)
3270
	GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
3271
	repeat
3272
		Swait()
3273
		GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
3274
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
3275
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 4 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed)
3276
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3277
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
3278
		RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
3279
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
3280
	until HOLD == true
3281
	local POS = Mouse.Hit.p
3282
	local CHAINS = false
3283
	local CHAINLINKS = {}
3284
	local A = IT("Attachment",RightArm)
3285
	A.Position = VT(1,-1,0)*SIZE
3286
	A.Orientation = VT(-90, -89.982, 0)
3287
	local B = IT("Attachment",RightArm)
3288
	B.Position = VT(-1,-1,0)*SIZE
3289
	B.Orientation = VT(-90, 89.988, 0)
3290
	local C = IT("Attachment",RightArm)
3291
	C.Position = VT(0.5,-1.3,0)*SIZE
3292
	C.Orientation = VT(-90, -89.982, 0)
3293
	local D = IT("Attachment",RightArm)
3294
	D.Position = VT(-0.5,-1.3,0)*SIZE
3295
	D.Orientation = VT(-90, 89.988, 0)
3296
	local LIGHT = IT("Attachment",RightArm)
3297
	LIGHT.Position = VT(0,-1,0)*SIZE
3298
	local LIGHT2 = IT("PointLight",LIGHT)
3299
	LIGHT2.Range = 7
3300
	LIGHT2.Brightness = 5
3301
	LIGHT2.Color = SKILLTEXTCOLOR
3302
	chatfunc("Falcon...")
3303
	for i = 1, 2 do
3304
		local TWIST = -2
3305
		local START = A
3306
		local END = B
3307
		if i == 1 then
3308
			START = B
3309
			END = A
3310
		end
3311
		local ChainLink = IT("Beam",Torso)
3312
		ChainLink.Texture = "rbxassetid://73042633"
3313
		ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR)
3314
		ChainLink.TextureSpeed = 1
3315
		ChainLink.Width0 = 1
3316
		ChainLink.Width1 = 1
3317
		ChainLink.TextureLength = 2.5
3318
		ChainLink.Attachment0 = START
3319
		ChainLink.Attachment1 = END
3320
		ChainLink.CurveSize0 = TWIST
3321
		ChainLink.CurveSize1 = TWIST
3322
		--ChainLink.FaceCamera = true
3323
		ChainLink.Segments = 45
3324
		ChainLink.Transparency = NumberSequence.new(1)
3325
		table.insert(CHAINLINKS,ChainLink)
3326
	end
3327
	for i = 1, 2 do
3328
		local TWIST = -1
3329
		local START = C
3330
		local END = D
3331
		if i == 1 then
3332
			START = D
3333
			END = C
3334
		end
3335
		local ChainLink = IT("Beam",Torso)
3336
		ChainLink.Texture = "rbxassetid://73042633"
3337
		ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR)
3338
		ChainLink.TextureSpeed = 1
3339
		ChainLink.Width0 = 1
3340
		ChainLink.Width1 = 1
3341
		ChainLink.TextureLength = 5
3342
		ChainLink.Attachment0 = START
3343
		ChainLink.Attachment1 = END
3344
		ChainLink.CurveSize0 = TWIST
3345
		ChainLink.CurveSize1 = TWIST
3346
		--ChainLink.FaceCamera = true
3347
		ChainLink.Segments = 25
3348
		ChainLink.LightEmission = 0.5
3349
		ChainLink.Transparency = NumberSequence.new(1)
3350
		table.insert(CHAINLINKS,ChainLink)
3351
	end
3352
	coroutine.resume(coroutine.create(function()
3353
		repeat
3354
			Swait()
3355
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
3356
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed)
3357
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0.2*SIZE) * ANGLES(RAD(60), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3358
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
3359
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
3360
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
3361
		until CHAINS == true
3362
		repeat
3363
			Swait()
3364
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
3365
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 1 / Animation_Speed)
3366
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, -0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3367
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
3368
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
3369
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
3370
		until ATTACK == false
3371
		for e = 1, 15 do
3372
			Swait()
3373
			chatfunc("PUNCH!!!")
3374
			for i = 1, #CHAINLINKS do
3375
				CHAINLINKS[i].Transparency = NumberSequence.new((e/15))
3376
			end
3377
		end
3378
		A:remove()
3379
		B:remove()
3380
		C:remove()
3381
		D:remove()
3382
	end))
3383
	CreateSound(233856115, RightArm, 5, 1.2, false)
3384
	for e = 1, 15 do
3385
		Swait()
3386
		for i = 1, #CHAINLINKS do
3387
			CHAINLINKS[i].Transparency = NumberSequence.new(1-(e/15))
3388
		end
3389
	end
3390
	CHAINS = true
3391
	Rooted = true
3392
	wait(0.25)
3393
	local FIST = CreatePart(3, Effects, "Neon", 0, 0.5, "New Yeller", "Part", VT(2,2,2))
3394
	FIST.Color = C3(1, 215/255, 1)
3395
	FIST.CFrame = CF(RightArm.CFrame*CF(0,-1.3*SIZE,0).p,POS) * ANGLES(RAD(90), RAD(0), RAD(0)) 
3396
	local LIGHT3 = IT("PointLight",FIST)
3397
	LIGHT3.Range = 7
3398
	LIGHT3.Brightness = 5
3399
	LIGHT3.Color = SKILLTEXTCOLOR
3400
	CreateMesh("SpecialMesh", FIST, "FileMesh", "90718752", "", VT(10,10,10), VT(0,0,0))
3401
	local FISTA = IT("Attachment",FIST)
3402
	FISTA.Position = VT(0.062, 0.977, 0)
3403
	local ChainLink = IT("Beam",Torso)
3404
	ChainLink.Texture = "rbxassetid://73042633"
3405
	ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR)
3406
	ChainLink.TextureSpeed = 2
3407
	ChainLink.Width0 = 3
3408
	ChainLink.Width1 = 3
3409
	ChainLink.TextureLength = 12
3410
	ChainLink.Attachment0 = LIGHT
3411
	ChainLink.Attachment1 = FISTA
3412
	ChainLink.FaceCamera = true
3413
	ChainLink.Segments = 45
3414
	ChainLink.LightEmission = 0.5
3415
	ChainLink.Transparency = NumberSequence.new(0.25)
3416
	local FISTSOUND = CreateSound(288641686, FIST, 5, 1.2, false)
3417
	for i = 1, 85 do
3418
		Swait()
3419
		FIST.CFrame = FIST.CFrame*CF(0,-2,0)
3420
		ChainLink.TextureLength = 12+(i*2)
3421
		ApplyAoE(FIST.Position,10,15,25,100,true)
3422
		WACKYEFFECT({Time = 5, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(15,1,15), Transparency = 0.5, Transparency2 = 1, CFrame = FIST.CFrame*CF(0,-1,0) * ANGLES(RAD(0), RAD(i*15), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
3423
		local HITFLOOR = Raycast(FIST.Position, (CF(FIST.Position, FIST.CFrame*CF(0,-1,0).p)).lookVector, 2.1, Character)
3424
		if HITFLOOR ~= nil then
3425
			HITFLOOR:BreakJoints()
3426
			coroutine.resume(coroutine.create(function()
3427
				for i = 1, 15 do
3428
					Swait()
3429
					FISTSOUND.Volume = FISTSOUND.Volume - 0.15
3430
					ApplyAoE(FIST.Position,10+(i*2),5,15,5,true)
3431
					WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35), Transparency = 0.5, Transparency2 = 1, CFrame = FIST.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
3432
				end
3433
			end))
3434
			break
3435
		end
3436
	end
3437
	coroutine.resume(coroutine.create(function()
3438
		for i = 1, 50 do
3439
			Swait()
3440
			FIST.Transparency = FIST.Transparency + 0.5/50
3441
			LIGHT3.Range = LIGHT3.Range - 7/50
3442
		end
3443
		FIST:remove()
3444
	end))
3445
	LIGHT:remove()
3446
	GYRO:remove()
3447
	ATTACK = false
3448
	Rooted = false
3449
end
3450
3451
function ApplyDamage(Humanoid,Damage,TorsoPart)
3452
	local defence = Instance.new("BoolValue",Humanoid.Parent)
3453
	defence.Name = ("HitBy"..Player.Name)
3454
	game:GetService("Debris"):AddItem(defence, 0.001)
3455
	Damage = Damage * DAMAGEMULTIPLIER
3456
	if Humanoid.Health ~= 0 then
3457
		local CritChance = MRANDOM(1,100)
3458
		if Damage > Humanoid.Health then
3459
			Damage = math.ceil(Humanoid.Health)
3460
			if Damage == 0 then
3461
				Damage = 0.1
3462
			end
3463
		end
3464
		Humanoid.Health = Humanoid.Health - Damage
3465
	end
3466
end
3467
3468
function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
3469
	local CHILDREN = workspace:GetDescendants()
3470
	for index, CHILD in pairs(CHILDREN) do
3471
		if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
3472
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
3473
			if HUM then
3474
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
3475
				if TORSO then
3476
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
3477
						if INSTAKILL == false then
3478
							CHILD:BreakJoints()
3479
						else
3480
							local DMG = MRANDOM(MINDMG,MAXDMG)
3481
							ApplyDamage(HUM,DMG,TORSO)
3482
						end
3483
						if FLING > 0 then
3484
							for _, c in pairs(CHILD:GetChildren()) do
3485
								if c:IsA("BasePart") then
3486
									local bv = Instance.new("BodyVelocity") 
3487
									bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
3488
									bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
3489
									bv.Parent = c
3490
									Debris:AddItem(bv,0.05)
3491
								end
3492
							end
3493
						end
3494
					end
3495
				end
3496
			end
3497
		end
3498
	end
3499
end
3500
function Bullet()
3501
	ATTACK = true
3502
	Rooted = false
3503
	for i=1, 2, 3 / Animation_Speed do
3504
		Swait()
3505
		turnto(Mouse.Hit.p)
3506
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
3507
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
3508
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
3509
	end
3510
	repeat
3511
		for i=1, 2, 3 / Animation_Speed do
3512
			Swait()
3513
			turnto(Mouse.Hit.p)
3514
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
3515
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
3516
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
3517
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
3518
		end
3519
		local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
3520
		SpawnTrail(Hole.Position,POS)
3521
		if HIT ~= nil then
3522
			if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
3523
				Kill(HIT.Parent)
3524
			end
3525
		end
3526
		WACKYEFFECT({Time = 1, EffectType = "Wave", Size = VT(1,10,1), Size2 = VT(2,3,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(3,0,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
3527
		WACKYEFFECT({Time = 1, EffectType = "Wave", Size = VT(1,10,1), Size2 = VT(4,3,4), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
3528
		WACKYEFFECT({Time = 1, EffectType = "Wave", Size = VT(1,10,1), Size2 = VT(4,3,4), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
3529
		WACKYEFFECT({Time = 1, EffectType = "Wave", Size = VT(1,10,1), Size2 = VT(4,3,4), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
3530
		for i=1, 2, 3 / Animation_Speed do
3531
			Swait()
3532
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
3533
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
3534
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
3535
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
3536
		end
3537
	until KEYHOLD == false
3538
	ATTACK = false
3539
	Rooted = false
3540
end
3541
3542
function Execute()
3543
	ATTACK = true
3544
	Rooted = false
3545
	local Part = CreatePart(3, Character, "Neon", 0, 0, "Mid gray", "Part", VT(0,1,4),false)
3546
	Part.Color = C3(0,0,0)
3547
	MakeForm(Part,"Wedge")
3548
	Part.CanCollide = true
3549
	CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(135)) *CF(0, 0.5, 0), CF(0, 0, 0))
3550
	for i=0, 1, 0.1 / Animation_Speed do
3551
		Swait()
3552
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed)
3553
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed)
3554
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3555
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
3556
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3557
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3558
	end
3559
	Trail.Enabled = true
3560
	CreateSound(541909867, Barrel, 7, 1, false)
3561
	local TOCH = Part.Touched:Connect(function(hit)
3562
		if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent ~= Character then
3563
			Kill(hit.Parent)
3564
		end
3565
	end)
3566
	for i=0, 0.35, 0.1 / Animation_Speed do
3567
		Swait()
3568
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed)
3569
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 1 / Animation_Speed)
3570
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.25, -0.3) * ANGLES(RAD(50), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3571
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
3572
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3573
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3574
	end
3575
	TOCH:disconnect()
3576
	Trail.Enabled = false
3577
	for i=0, 0.35, 0.1 / Animation_Speed do
3578
		Swait()
3579
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(60)), 1 / Animation_Speed)
3580
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-55)), 1 / Animation_Speed)
3581
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.25, -0.3) * ANGLES(RAD(50), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3582
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
3583
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3584
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3585
	end
3586
	Part:remove()
3587
	ATTACK = false
3588
	Rooted = false
3589
end
3590
3591
function Lift()
3592
	if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
3593
		local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
3594
		local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
3595
		if TORSO and HUM.Health > 0 then
3596
			ATTACK = true
3597
			Rooted = false
3598
			local GYRO = IT("BodyGyro",RootPart)
3599
			GYRO.D = 275
3600
			GYRO.P = 20000
3601
			GYRO.MaxTorque = VT(0,40000,0)
3602
			for i=0, 0.8, 0.1 / Animation_Speed do
3603
				Swait()
3604
				GYRO.cframe = CF(RootPart.Position,TORSO.Position)
3605
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
3606
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3607
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3608
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
3609
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3610
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3611
			end			
3612
			local MAGIC = ParticleEmitter({Speed = 5, Drag = 3, Size1 = 1.7, Size2 = 0, Lifetime1 = 1, Lifetime2 = 3, Parent = TORSO, Emit = 100, Offset = 360, Enabled = true})
3613
			MAGIC.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
3614
			local grav = Instance.new("BodyPosition",TORSO)
3615
			grav.D = 1500
3616
			grav.P = 20000
3617
			grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
3618
			grav.position = TORSO.Position+VT(0,15,0)
3619
			Debris:AddItem(grav,10)
3620
			Debris:AddItem(MAGIC,10)
3621
			CreateSound(429459101, Torso, 7, 1, false)
3622
			CreateSound(429459101, TORSO, 7, 1, false)
3623
			for i=0, 1, 0.1 / Animation_Speed do
3624
				Swait()
3625
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
3626
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3627
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(-45), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3628
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(125), RAD(45), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
3629
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3630
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3631
			end
3632
			GYRO:remove()
3633
			ATTACK = false
3634
			Rooted = false
3635
		end
3636
	end
3637
end
3638
3639
function Banisher_Bullet()
3640
	ATTACK = true
3641
	Rooted = false
3642
	for i=0, 0.4, 0.1 / Animation_Speed do
3643
		Swait()
3644
		turnto(Mouse.Hit.p)
3645
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
3646
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
3647
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
3648
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
3649
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
3650
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
3651
	end
3652
	repeat
3653
		for i=0, 0.2, 0.1 / Animation_Speed do
3654
			Swait()
3655
			turnto(Mouse.Hit.p)
3656
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
3657
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
3658
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
3659
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
3660
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
3661
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
3662
		end
3663
		local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
3664
		SpawnTrail(Hole.Position,POS)
3665
		if HIT ~= nil then
3666
			if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
3667
				Banish(HIT.Parent)
3668
			end
3669
		end
3670
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
3671
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
3672
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
3673
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
3674
		for i=0, 0.3, 0.1 / Animation_Speed do
3675
			Swait()
3676
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
3677
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
3678
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
3679
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
3680
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
3681
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
3682
		end
3683
	until KEYHOLD == false
3684
	ATTACK = false
3685
	Rooted = false
3686
end
3687
3688
function AttackTemplate()
3689
	ATTACK = true
3690
	Rooted = false
3691
	for i=0, 1, 0.1 / Animation_Speed do
3692
		Swait()
3693
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
3694
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
3695
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
3696
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
3697
		RightHip.C0 = Clerp(RightHip.C0, CF(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)
3698
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-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)
3699
	end
3700
	ATTACK = false
3701
	Rooted = false
3702
end
3703
3704
function CyberSmash()
3705
	ATTACK = true
3706
	Rooted = false
3707
	local GYRO = IT("BodyGyro",RootPart)
3708
	GYRO.D = 100
3709
	GYRO.P = 2000
3710
	GYRO.MaxTorque = VT(0,4000000,0)
3711
	GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
3712
	local SMASH = CreatePart(3, Effects, "Neon", 0, 1, "White", "Block", VT(25,25,25))
3713
	SMASH.CanCollide = true
3714
	SMASH.Color = C3(0,0,0)
3715
	local EF = Instance.new("SelectionBox",SMASH)
3716
	EF.Adornee = SMASH
3717
	EF.Color = BrickColor.new("White")
3718
	EF.LineThickness = 0.3
3719
	EF.Transparency = 1
3720
	coroutine.resume(coroutine.create(function()
3721
		for i = 1, 20 do
3722
			Swait()
3723
			SMASH.Transparency = SMASH.Transparency - 0.05
3724
			EF.Transparency = SMASH.Transparency
3725
		end
3726
	end))
3727
	repeat
3728
		SMASH.CFrame = CF(Mouse.Hit.p)*CF(0,35,0)
3729
		Swait()
3730
		GYRO.cframe = CF(RootPart.Position,SMASH.Position)
3731
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
3732
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
3733
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(130), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3734
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
3735
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3736
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3737
	until HOLD == true and SMASH.Transparency < 0.99
3738
	for i = 1, 25 do
3739
		Swait()
3740
		SMASH.CFrame = SMASH.CFrame*CF(0,15/25,0)
3741
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
3742
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
3743
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(160), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3744
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
3745
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3746
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3747
	end
3748
	local TOCH = SMASH.Touched:Connect(function(hit)
3749
		if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then
3750
			Shatter(hit)
3751
		end
3752
	end)
3753
	local n0 = nil
3754
	local HITFLOOR,HITPOS = Raycast(SMASH.Position, (CF(SMASH.Position, SMASH.Position + VT(0, -1, 0))).lookVector, 25000, Character)
3755
	if HITFLOOR ~= nil then
3756
		if HITFLOOR.Anchored == false and HITFLOOR.Parent ~= workspace then
3757
			if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") or HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
3758
				if HITFLOOR.Parent.ClassName == "Model" then
3759
					HITFLOOR.Parent:BreakJoints()
3760
				elseif HITFLOOR.Parent.Parent.ClassName == "Model" then
3761
					HITFLOOR.Parent.Parent:BreakJoints()
3762
				end
3763
			end
3764
			local POS = HITPOS
3765
			n0,HITPOS = Raycast(POS, (CF(POS, POS + VT(0, -1, 0))).lookVector, 25000, HITFLOOR.Parent)
3766
		end
3767
	end
3768
	killnearest(HITPOS,SMASH.Size.X/1.3,"Shatter")
3769
	SMASH.CFrame = CF(HITPOS+VT(0,SMASH.Size.Y/2,0))
3770
	WACKYEFFECT({Time = 25, EffectType = "Box", Size = VT(24,0,24), Size2 = VT(75,2,75), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 130972023, SoundPitch = 1, SoundVolume = 10})
3771
	for i = 1, 25 do
3772
		Swait()
3773
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
3774
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
3775
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(30), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3776
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
3777
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3778
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3779
	end
3780
	coroutine.resume(coroutine.create(function()
3781
		wait(0.2)
3782
		TOCH:disconnect()
3783
		wait(1.8)
3784
		for i = 1, 100 do
3785
			Swait()
3786
			SMASH.Transparency = i/100
3787
		end
3788
		for i = 1, 10 do
3789
			Swait()
3790
			EF.Transparency = EF.Transparency + 0.1
3791
		end
3792
		SMASH:remove()
3793
	end))
3794
	GYRO:remove()
3795
	ATTACK = false
3796
	Rooted = false
3797
end
3798
3799
function Teleport()
3800
	ATTACK = true
3801
	Rooted = false
3802
	for i=0, 0.5, 0.1 / Animation_Speed do
3803
		Swait()
3804
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3805
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
3806
	end
3807
	for e = 1, #BODY do
3808
		if BODY[e] ~= nil then
3809
			local STUFF = BODY[e]
3810
			local PART = STUFF[1]
3811
			if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then
3812
				local PRT = PART:Clone()
3813
				PRT.Anchored = true
3814
				PRT.CanCollide = false
3815
				PRT.Material = "Neon"
3816
				PRT.Color = C3(1,1,1)
3817
				PRT.Name = "WarpEffect"
3818
				PRT.Parent = Effects
3819
				PRT.CFrame = PART.CFrame
3820
				PRT:BreakJoints()
3821
				if PRT:FindFirstChildOfClass("Sound") then
3822
					PRT:FindFirstChildOfClass("Sound"):remove()
3823
				end
3824
				if PRT:FindFirstChildOfClass("Decal") then
3825
					PRT:FindFirstChildOfClass("Decal"):remove()
3826
				end
3827
				coroutine.resume(coroutine.create(function()
3828
					for i = 1, 100 do
3829
						Swait()
3830
						PRT.Transparency = PRT.Transparency + 1/100
3831
					end
3832
					PRT:remove()
3833
				end))
3834
			end
3835
		end
3836
	end
3837
	CreateSound(217767125, Torso, 10, 1)
3838
	local POS = RootPart.Orientation
3839
	RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0))
3840
	RootPart.Orientation = POS
3841
	RootJoint.Parent = RootPart
3842
	for i=0, 0.5, 0.1 / Animation_Speed do
3843
		Swait()
3844
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3845
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-15), RAD(12)) * ANGLES(RAD(175 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
3846
	end
3847
	for i=0, 0.1, 0.1 / Animation_Speed do
3848
		Swait()
3849
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
3850
	end
3851
	ATTACK = false
3852
	Rooted = false
3853
end
3854
3855
3856
local LAUGHS = {834001699,834001752,834001797,834001828}
3857
function Morning_Star()
3858
	ATTACK = true
3859
	Rooted = true
3860
	CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 1, false)
3861
	for i=0, 1, 0.1 / Animation_Speed do
3862
		Swait()
3863
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
3864
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3865
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3866
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
3867
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3868
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3869
	end	
3870
	coroutine.resume(coroutine.create(function()
3871
		local POS = Mouse.Hit.p
3872
		local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,2000,0))
3873
		MakeForm(RAY,"Cyl")
3874
		local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "White", "Strike", VT(0,0,0))
3875
		MakeForm(SPHERE,"Ball")
3876
		local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Strike", VT(0,0,0))
3877
		MakeForm(SHIELD,"Ball")
3878
		SHIELD.CFrame = CF(POS)
3879
		RAY.CFrame = CF(POS)
3880
		SPHERE.CFrame = CF(POS)
3881
		CreateSound(144699494, SPHERE, 10, 0.8, false)
3882
		CreateSound(1146688617, SPHERE, 10, 0.8, false)
3883
		for i = 1, 200 do
3884
			Swait()
3885
			WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(58,125,21), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
3886
			RAY.Size = RAY.Size + VT(0.05,0,0.05)
3887
			SPHERE.Size = SPHERE.Size + VT(20,20,20)
3888
			SHIELD.Size = SPHERE.Size + VT(30,30,30)
3889
			ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true)
3890
		end	
3891
		for i = 1, 45 do
3892
			Swait()
3893
			RAY.Transparency = RAY.Transparency + 1/45
3894
			SPHERE.Transparency = RAY.Transparency 
3895
			SHIELD.Transparency = SPHERE.Transparency + 1/45
3896
		end
3897
		RAY:remove()
3898
		SHIELD:remove()
3899
		SPHERE:remove()
3900
	end))
3901
	for i=0, 1, 0.1 / Animation_Speed do
3902
		Swait()
3903
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
3904
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3905
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3906
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
3907
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3908
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3909
	end
3910
	ATTACK = false
3911
	Rooted = false
3912
end
3913
3914
function FireArc(Part,ToLocation,AmountOfTime,Height,DoesCourontine)
3915
	if DoesCourontine == false then
3916
		local Direction = CF(Part.Position,ToLocation)
3917
		local Distance = (Part.Position - ToLocation).magnitude
3918
		for i = 1, AmountOfTime do
3919
			Swait()
3920
			Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime)
3921
			Direction = Part.CFrame
3922
		end
3923
	elseif DoesCourontine == true then
3924
		coroutine.resume(coroutine.create(function()
3925
			local Direction = CF(Part.Position,ToLocation)
3926
			local Distance = (Part.Position - ToLocation).magnitude
3927
			for i = 1, AmountOfTime do
3928
				Swait()
3929
				Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime)
3930
				Direction = Part.CFrame
3931
			end
3932
		end))
3933
	end
3934
end
3935
3936
function impale(chain,hit)
3937
	if hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass("Humanoid") then
3938
		local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
3939
		if humanoid.Health ~= 0 then
3940
			hit.Parent:BreakJoints()
3941
			getbloody(hit,15)
3942
			local prtcl = asd:Clone()
3943
			prtcl.Parent = chain
3944
			prtcl.Enabled = true
3945
			prtcl.Speed = NumberRange.new(0)
3946
			prtcl.Size = NumberSequence.new(0.2)
3947
		end
3948
	end
3949
end
3950
3951
function CreateMagicCircle()
3952
	local sinkhole = IT("Part")
3953
	sinkhole.Size = VT(0,0,0)
3954
	sinkhole.Parent = Effects
3955
	sinkhole.Material = "Neon"
3956
	sinkhole.Color = C3(0,0,0)
3957
	sinkhole.Anchored = true
3958
	sinkhole.CanCollide = false
3959
	sinkhole.Transparency = 1
3960
	local decal = IT("Decal",sinkhole)
3961
	decal.Face = "Top"
3962
	decal.Texture = "http://www.roblox.com/asset/?id=1260793696"
3963
	local decal2 = IT("Decal",sinkhole)
3964
	decal2.Face = "Bottom"
3965
	decal2.Texture = "http://www.roblox.com/asset/?id=1260793696"
3966
	return sinkhole
3967
end
3968
3969
function Deathbound()
3970
	ATTACK = true
3971
	Rooted = true
3972
	for i=0, 1, 0.1 / Animation_Speed do
3973
		Swait()
3974
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
3975
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3976
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3977
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
3978
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3979
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3980
	end
3981
	local DONE = false
3982
	local GATE = nil
3983
	local GATESPIN = true
3984
	coroutine.resume(coroutine.create(function()
3985
		repeat
3986
			Swait()
3987
			if GATE ~= nil then
3988
				GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0))
3989
			end
3990
		until GATESPIN == false
3991
	end))
3992
	coroutine.resume(coroutine.create(function()
3993
		repeat
3994
			Swait()
3995
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.2 - 0.25 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
3996
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3997
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3998
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
3999
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
4000
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
4001
		until DONE == true
4002
		Swait(50)
4003
		for i = 1, 35 do
4004
			Swait(4)
4005
			local FIRED = false
4006
			local CHILDREN = workspace:GetDescendants()
4007
			for index, CHILD in pairs(CHILDREN) do
4008
				if CHILD.ClassName == "Model" and CHILD ~= Character then
4009
					local HUM = CHILD:FindFirstChildOfClass("Humanoid")
4010
					if HUM then
4011
						local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
4012
						if TORSO then
4013
							if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/50 + TORSO.Size.Magnitude/25 then
4014
								local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
4015
								local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
4016
								WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(50,5,50), Size2 = VT(10,15,10), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 145080998, SoundPitch = 1.5, SoundVolume = 6})
4017
								WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(50,5,50), Size2 = VT(20,2.5,20), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
4018
								SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)		
4019
								Kill(CHILD)
4020
								FIRED = true
4021
								break
4022
							end
4023
						end
4024
					end
4025
				end
4026
			end
4027
			if FIRED == false then
4028
				local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
4029
				WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(50,5,50), Size2 = VT(10,15,10), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 145080998, SoundPitch = 1.5, SoundVolume = 6})
4030
				WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(50,5,50), Size2 = VT(20,2.5,20), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
4031
				SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
4032
				local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
4033
				if HITBOD ~= nil then
4034
					if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
4035
						killnearest(HITBOD.Parent)
4036
					end
4037
				end
4038
			end
4039
		end
4040
		for i = 1, 45 do
4041
			Swait()
4042
			GATE.Size = GATE.Size - VT(3,0,3)
4043
		end
4044
		GATESPIN = false
4045
		GATE:remove()
4046
	end))
4047
	Swait(15)
4048
	local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character)
4049
	GATE = CreatePart(3, Effects, "Neon", 0, 1, "White", "Gate", VT(0,0,0))
4050
	local DECAL = IT("Decal",GATE)
4051
	DECAL.Texture = "http://www.roblox.com/asset/?id=20797265"
4052
	DECAL.Face = "Top"
4053
	GATE.CFrame = CF(HITPOS)
4054
	CreateSound(160772554, GATE, 7, 1.3, false)
4055
	for i = 1, 45 do
4056
		Swait()
4057
		GATE.Size = GATE.Size + VT(3,0,3)
4058
	end
4059
	CreateSound(145080998, Hole, 7, 1, false)
4060
	CreateSound(145080998, Hole, 7, 1, false)
4061
	WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(3,30,3), Size2 = VT(2,20,02), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
4062
	WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(3,0,3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
4063
	ATTACK = false
4064
	Rooted = false
4065
	DONE = true
4066
end
4067
4068
function HI()
4069
	ATTACK = true
4070
	Rooted = false
4071
	local LOOP = 0
4072
	for i=0, 0.1, 0.1 / Animation_Speed do
4073
		Swait()
4074
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
4075
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
4076
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
4077
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(5-3 * COS(SINE / 6)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
4078
	end
4079
	for i=0, 3, 0.1 / Animation_Speed do
4080
		Swait()
4081
		LOOP = LOOP + 1
4082
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
4083
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
4084
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
4085
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.8, 0.4) * ANGLES(RAD(170), RAD(0), RAD(-25 - 25 * SIN(LOOP / 5))) * ANGLES(RAD(0), RAD(-45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
4086
	end
4087
	for i=0, 0.1, 0.1 / Animation_Speed do
4088
		Swait()
4089
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
4090
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
4091
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
4092
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(5-3 * COS(SINE / 6)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
4093
	end
4094
	ATTACK = false
4095
	Rooted = false
4096
end
4097
4098
function Morning_Star()
4099
	ATTACK = true
4100
	Rooted = true
4101
	for i=0, 1, 0.1 / Animation_Speed do
4102
		Swait()
4103
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
4104
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
4105
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
4106
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
4107
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
4108
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
4109
	end	
4110
	coroutine.resume(coroutine.create(function()
4111
		local POS = Mouse.Hit.p
4112
		local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,2000,0))
4113
		MakeForm(RAY,"Cyl")
4114
		local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,0,0))
4115
		MakeForm(SPHERE,"Ball")
4116
		local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Strike", VT(0,0,0))
4117
		MakeForm(SHIELD,"Ball")
4118
		SHIELD.CFrame = CF(POS)
4119
		RAY.CFrame = CF(POS)
4120
		SPHERE.CFrame = CF(POS)
4121
		CreateSound(440145570, SPHERE, 10, 0.8, false)
4122
		CreateSound(415700134, SPHERE, 10, 0.8, false)
4123
		for i = 1, 200 do
4124
			Swait()
4125
			WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
4126
			RAY.Size = RAY.Size + VT(0.05,0,0.05)
4127
			SPHERE.Size = SPHERE.Size + VT(4,4,4)
4128
			SHIELD.Size = SPHERE.Size + VT(6,6,6)
4129
			ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true)
4130
		end	
4131
		for i = 1, 45 do
4132
			Swait()
4133
			RAY.Transparency = RAY.Transparency + 1/45
4134
			SPHERE.Transparency = RAY.Transparency 
4135
			SHIELD.Transparency = SPHERE.Transparency + 1/45
4136
		end
4137
		RAY:remove()
4138
		SHIELD:remove()
4139
		SPHERE:remove()
4140
	end))
4141
	for i=0, 1, 0.1 / Animation_Speed do
4142
		Swait()
4143
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
4144
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
4145
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
4146
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
4147
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
4148
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
4149
	end
4150
	ATTACK = false
4151
	Rooted = false
4152
end
4153
4154
function WACKYEFFECT(Table)
4155
	local TYPE = (Table.EffectType or "Sphere")
4156
	local SIZE = (Table.Size or VT(1,1,1))
4157
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
4158
	local TRANSPARENCY = (Table.Transparency or 0)
4159
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
4160
	local CFRAME = (Table.CFrame or Torso.CFrame)
4161
	local MOVEDIRECTION = (Table.MoveToPos or nil)
4162
	local ROTATION1 = (Table.RotationX or 0)
4163
	local ROTATION2 = (Table.RotationY or 0)
4164
	local ROTATION3 = (Table.RotationZ or 0)
4165
	local MATERIAL = (Table.Material or "Neon")
4166
	local COLOR = (Table.Color or C3(1,1,1))
4167
	local TIME = (Table.Time or 45)
4168
	local SOUNDID = (Table.SoundID or nil)
4169
	local SOUNDPITCH = (Table.SoundPitch or nil)
4170
	local SOUNDVOLUME = (Table.SoundVolume or nil)
4171
	coroutine.resume(coroutine.create(function()
4172
		local PLAYSSOUND = false
4173
		local SOUND = nil
4174
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
4175
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
4176
			PLAYSSOUND = true
4177
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
4178
		end
4179
		EFFECT.Color = COLOR
4180
		local MSH = nil
4181
		if TYPE == "Sphere" then
4182
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
4183
		elseif TYPE == "Block" then
4184
			MSH = IT("BlockMesh",EFFECT)
4185
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
4186
		elseif TYPE == "Wave" then
4187
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
4188
		elseif TYPE == "Ring" then
4189
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
4190
		elseif TYPE == "Slash" then
4191
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
4192
		elseif TYPE == "Round Slash" then
4193
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
4194
		elseif TYPE == "Swirl" then
4195
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
4196
		elseif TYPE == "Skull" then
4197
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
4198
		elseif TYPE == "Crystal" then
4199
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
4200
		end
4201
		if MSH ~= nil then
4202
			local MOVESPEED = nil
4203
			if MOVEDIRECTION ~= nil then
4204
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
4205
			end
4206
			local GROWTH = SIZE - ENDSIZE
4207
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
4208
			if TYPE == "Block" then
4209
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
4210
			else
4211
				EFFECT.CFrame = CFRAME
4212
			end
4213
			for LOOP = 1, TIME+1 do
4214
				Swait()
4215
				MSH.Scale = MSH.Scale - GROWTH/TIME
4216
				if TYPE == "Wave" then
4217
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
4218
				end
4219
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
4220
				if TYPE == "Block" then
4221
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
4222
				else
4223
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
4224
				end
4225
				if MOVEDIRECTION ~= nil then
4226
					local ORI = EFFECT.Orientation
4227
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
4228
					EFFECT.Orientation = ORI
4229
				end
4230
			end
4231
			if PLAYSSOUND == false then
4232
				EFFECT:remove()
4233
			else
4234
				SOUND.Stopped:Connect(function()
4235
					EFFECT:remove()
4236
				end)
4237
			end
4238
		else
4239
			if PLAYSSOUND == false then
4240
				EFFECT:remove()
4241
			else
4242
				repeat Swait() until SOUND.Playing == false
4243
				EFFECT:remove()
4244
			end
4245
		end
4246
	end))
4247
end
4248
4249
function ApplyAoE(POSITION,RANGE,BRUTAL)
4250
	local CHILDREN = workspace:GetDescendants()
4251
	for index, CHILD in pairs(CHILDREN) do
4252
		if CHILD.ClassName == "Model" and CHILD ~= Character then
4253
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
4254
			if HUM then
4255
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
4256
				if TORSO then
4257
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
4258
						if BRUTAL == true then
4259
							Kill(CHILD)
4260
						else
4261
							CHILD:BreakJoints()
4262
						end
4263
					end
4264
				end
4265
			end
4266
		end
4267
	end
4268
end
4269
4270
local asd = Instance.new("ParticleEmitter")
4271
asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
4272
asd.LightEmission = .1
4273
asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
4274
aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
4275
bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
4276
asd.Transparency = bbb
4277
asd.Size = aaa
4278
asd.ZOffset = .9
4279
asd.Acceleration = Vector3.new(0, -15, 0)
4280
asd.LockedToPart = false
4281
asd.EmissionDirection = "Back"
4282
asd.Lifetime = NumberRange.new(1, 2)
4283
asd.Rotation = NumberRange.new(-100, 100)
4284
asd.RotSpeed = NumberRange.new(-100, 100)
4285
asd.Speed = NumberRange.new(10)
4286
asd.Enabled = false
4287
asd.VelocitySpread = 999
4288
4289
function getbloody(victim,amount)
4290
	local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
4291
	PART.CFrame = victim.CFrame
4292
	local HITPLAYERSOUNDS = {"356551938","264486467"}
4293
	Debris:AddItem(PART,5)
4294
	CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
4295
	CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
4296
	CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
4297
	local prtcl = asd:Clone()
4298
	prtcl.Parent = PART
4299
	prtcl:Emit(amount*10)
4300
end
4301
4302
function Kill(Char)
4303
	local NewCharacter = IT("Model",Effects)
4304
	NewCharacter.Name = "Ow im ded ;-;"
4305
	for _, c in pairs(Char:GetDescendants()) do
4306
		if c:IsA("BasePart") and c.Transparency == 0 then
4307
			if c.Parent == Char then
4308
				getbloody(c,5)
4309
			end
4310
			c:BreakJoints()
4311
			c.Material = "Glass"
4312
			c.Color = C3(0.5,0,0)
4313
			c.CanCollide = true
4314
			c.Transparency = 0.3
4315
			if c:FindFirstChildOfClass("SpecialMesh") then
4316
				c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
4317
			end
4318
			if c.Name == "Head" then
4319
				c:ClearAllChildren()
4320
				c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
4321
			end
4322
			if c.ClassName == "MeshPart" then
4323
				c.TextureID = ""
4324
			end
4325
			if c:FindFirstChildOfClass("BodyPosition") then
4326
				c:FindFirstChildOfClass("BodyPosition"):remove()
4327
			end
4328
			if c:FindFirstChildOfClass("ParticleEmitter") then
4329
				c:FindFirstChildOfClass("ParticleEmitter"):remove()
4330
			end
4331
			c.Parent = NewCharacter
4332
			c.Name = "DeadPart"
4333
			c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
4334
			c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
4335
		end
4336
	end
4337
	Char:remove()
4338
	Debris:AddItem(NewCharacter,5)
4339
end
4340
4341
function Prison_Key()
4342
	if Mouse.Target ~= nil then
4343
		if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
4344
			local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
4345
			local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
4346
			local GYRO = IT("BodyGyro",RootPart)
4347
			GYRO.D = 750
4348
			GYRO.P = 20000
4349
			GYRO.MaxTorque = VT(0,40000000,0)
4350
			local grav = Instance.new("BodyPosition",TORSO)
4351
			grav.D = 15
4352
			grav.P = 20000
4353
			grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
4354
			grav.position = TORSO.Position
4355
			local GYRO2 = IT("BodyGyro",TORSO)
4356
			GYRO2.D = 750
4357
			GYRO2.P = 20000
4358
			GYRO2.MaxTorque = VT(0,40000000,0)
4359
			GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
4360
			grav.Name = "Jail"
4361
			local LOCKPARTS = {}
4362
			ATTACK = true
4363
			Rooted = false
4364
			local LOCK = IT("Model",Effects)
4365
			LOCK.Name = "Lock"
4366
			local LOCK2 = IT("Model",LOCK)
4367
			LOCK2.Name = "Metal"
4368
			--CREATE LOCK--
4369
				local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1))
4370
				LOCK.PrimaryPart = BASE
4371
				BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
4372
				local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3))
4373
				PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
4374
				MakeForm(PRT,"Cyl")
4375
				local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1))
4376
				PRT.Color = C3(0,0,0)
4377
				PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
4378
				MakeForm(PRT,"Cyl")
4379
				local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Really black", "Hole", VT(0.5, 1, 1))
4380
				PRT.Color = C3(0,0,0)
4381
				PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
4382
				for i = 1, 45 do
4383
					local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
4384
					PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
4385
				end
4386
				local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
4387
				PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
4388
				LOCK2.PrimaryPart = PRT
4389
			---------------
4390
			local CHILDREN = LOCK:GetDescendants()
4391
			for index, CHILD in pairs(CHILDREN) do
4392
				if CHILD:IsA("BasePart") then
4393
					CHILD.Transparency = 1
4394
				end
4395
			end
4396
			for i = 1, 75 do
4397
				LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
4398
				Swait()
4399
				GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
4400
				GYRO.cframe = CF(RootPart.Position,TORSO.Position)
4401
				local CHILDREN = LOCK:GetDescendants()
4402
				for index, CHILD in pairs(CHILDREN) do
4403
					if CHILD:IsA("BasePart") then
4404
						CHILD.Transparency = CHILD.Transparency - 1/75
4405
					end
4406
				end
4407
			end
4408
			HUM.DisplayDistanceType = "None"
4409
			local KEY = IT("Model",Effects)
4410
			KEY.Name = "Key"
4411
			--CREATE KEY--
4412
				local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Reallt black", "KeyBase", VT(0.1, 1, 0.1),false)
4413
				KEY.PrimaryPart = KBASE
4414
				KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
4415
				local WLD = weldBetween(RightArm,KBASE)
4416
				for i = 1, 45 do
4417
					local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really black", "Key", VT(0.1, 0.1, 0.1),false)
4418
					PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
4419
					weldBetween(KBASE,PRT)
4420
				end
4421
				local PRT = CreatePart(3, KEY, "Neon", 0, 0, "White", "Key", VT(0.3, 0.1, 0.1),false)
4422
				PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
4423
				weldBetween(KBASE,PRT)
4424
				local PRT = CreatePart(3, KEY, "Neon", 0, 0, "White", "Key", VT(0.3, 0.1, 0.1),false)
4425
				PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
4426
				weldBetween(KBASE,PRT)
4427
			--------------
4428
			Rooted = true
4429
			Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
4430
			coroutine.resume(coroutine.create(function()
4431
				for i = 1, 10 do
4432
					Swait()
4433
					GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
4434
					GYRO.cframe = CF(RootPart.Position,TORSO.Position)
4435
				end
4436
				CreateSound(1149318312,BASE,5,1,false)
4437
				CreateSound(160772554,BASE,3,1,false)
4438
				LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
4439
				for i = 1, 4 do
4440
					WACKYEFFECT({Time = 35, EffectType = "Crystal", Size = VT(1,1,1), Size2 = VT(0,15,0), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(1,1.45,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
4441
				end
4442
				WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1)*25, Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
4443
				wait(1)
4444
				TORSO.Parent.Parent = LOCK
4445
				for i = 1, 75 do
4446
					Swait()
4447
					local CHILDREN = KEY:GetDescendants()
4448
					for index, CHILD in pairs(CHILDREN) do
4449
						if CHILD:IsA("BasePart") then
4450
							CHILD.Transparency = i/25
4451
						end
4452
					end
4453
					local CHILDREN = LOCK:GetDescendants()
4454
					for index, CHILD in pairs(CHILDREN) do
4455
						if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
4456
							CHILD.Transparency = CHILD.Transparency + 1/75
4457
						elseif CHILD.ClassName == "Decal" then
4458
							CHILD.Transparency = CHILD.Transparency + 1/75
4459
						end
4460
					end
4461
				end
4462
				TORSO.Parent:ClearAllChildren()
4463
				KEY:remove()
4464
				LOCK:remove()
4465
			end))
4466
			Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
4467
			GYRO:remove()
4468
			ATTACK = false
4469
			Rooted = false
4470
		end
4471
	end
4472
end
4473
4474
function Jupiter()
4475
	ATTACK = true
4476
	Rooted = true
4477
	local POSITION = IT("BodyPosition",RootPart)
4478
	POSITION.Position = RootPart.Position+VT(0,0.2,0)
4479
	POSITION.D = 450
4480
	POSITION.P = 40000
4481
	POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge)
4482
	coroutine.resume(coroutine.create(function()
4483
		repeat
4484
			Swait()
4485
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(-5), RAD(-15)), 2 / Animation_Speed)
4486
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.5 / Animation_Speed)
4487
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.55 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
4488
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
4489
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.35, -0.25) * ANGLES(RAD(35), RAD(35), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed)
4490
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, -0.4) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(90)), 2 / Animation_Speed)
4491
		until ATTACK == false
4492
	end))
4493
	wait(0.5)
4494
	repeat wait() until KEYHOLD == false
4495
	WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(35,4,35), Transparency = 0.3, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Shamrock".Color, SoundID = 431105970, SoundPitch = 1, SoundVolume = 10})
4496
	POSITION:remove()
4497
	RootPart.Velocity = VT(0,150,0)
4498
	ATTACK = false
4499
	Rooted = false
4500
end
4501
4502
function chatfunc(text)
4503
	local chat = coroutine.wrap(function()
4504
	if Character:FindFirstChild("TalkingBillBoard")~= nil then
4505
		Character:FindFirstChild("TalkingBillBoard"):destroy()
4506
	end
4507
	local Bill = Instance.new("BillboardGui",Character)
4508
	Bill.Size = UDim2.new(0,100,0,40)
4509
	Bill.StudsOffset = Vector3.new(0,3,0)
4510
	Bill.Adornee = Character.Head
4511
	Bill.Name = "TalkingBillBoard"
4512
	local Hehe = Instance.new("TextLabel",Bill)
4513
	Hehe.BackgroundTransparency = 1
4514
	Hehe.BorderSizePixel = 0
4515
	Hehe.Text = ""
4516
	Hehe.Font = "Antique"
4517
	Hehe.TextSize = 40
4518
	Hehe.TextStrokeTransparency = 0
4519
	Hehe.Size = UDim2.new(1,0,0.5,0)
4520
	coroutine.resume(coroutine.create(function()
4521
		while Hehe ~= nil do
4522
			Swait()	
4523
			Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))	
4524
			Hehe.Rotation = math.random(-5,5)
4525
			Hehe.TextColor3 = Color3.new(61,21,133)
4526
			Hehe.TextStrokeColor3 = Color3.new(0,0,0)
4527
		end
4528
	end))
4529
	for i = 1,string.len(text),1 do
4530
		Swait()
4531
		Hehe.Text = string.sub(text,1,i)
4532
	end
4533
	Swait(90)--Re[math.random(1, 93)]
4534
	for i = 0, 1, .025 do
4535
		Swait()
4536
		Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
4537
		Hehe.TextStrokeTransparency = i
4538
		Hehe.TextTransparency = i
4539
	end
4540
	Bill:Destroy()
4541
	end)
4542
chat()
4543
end
4544
4545
function onChatted(msg)
4546
	chatfunc(msg)
4547
end
4548
4549
local SIZE = 1
4550
4551
function WarpMeteor()
4552
	local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude
4553
	if DIST > 180 then
4554
		DIST = 180
4555
	end
4556
	local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace)	
4557
	local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,45,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 75*SIZE, Character)
4558
	if HITFLOOR then
4559
		local POS = HITPOS	
4560
		ATTACK = true
4561
		Rooted = true
4562
		local WARPED = false
4563
		local SMASHED = false
4564
		local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
4565
		coroutine.resume(coroutine.create(function()
4566
			repeat
4567
				Swait()
4568
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
4569
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
4570
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(-55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
4571
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
4572
				RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
4573
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
4574
			until WARPED == true
4575
			repeat
4576
				Swait()
4577
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
4578
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
4579
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(-55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
4580
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
4581
				RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.5*SIZE + 0.06 * SIN(SINE / 24) - 0.1*SIZE * COS(SINE / 12), -0.5*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
4582
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.1*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
4583
			until SMASHED == true
4584
			repeat
4585
				Swait()
4586
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)), 1 / Animation_Speed)
4587
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-40), RAD(0), RAD(0)), 1 / Animation_Speed)
4588
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(-15), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
4589
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(15), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed)
4590
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed)
4591
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
4592
			until ATTACK == false
4593
		end))
4594
		VALUE1 = true
4595
		CreateSound(233856115, Torso, 5, 1.6, false)
4596
		chatfunc("This hurt more than you think")
4597
		for i = 1, 25 do
4598
			Swait()
4599
			for _, c in pairs(Character:GetChildren()) do
4600
				if c.ClassName == "Part" then
4601
					c.Transparency = c.Transparency + 1/25
4602
				end
4603
			end
4604
			for _, c in pairs(Weapon:GetChildren()) do
4605
				if c.ClassName == "Part" then
4606
					c.Transparency = c.Transparency + 1/25
4607
				end
4608
			end
4609
		end
4610
		UNANCHOR = false
4611
		RootPart.Anchored = true
4612
		RootPart.Velocity = VT(0,0,0)
4613
		local ROOTPOS = RootPart.Position
4614
		RootPart.CFrame = CF(POS+VT(0,300,0),VT(ROOTPOS.X,POS.Y+300,ROOTPOS.Z))
4615
		WARPED = true
4616
		for i = 1, 25 do
4617
			Swait()
4618
			for _, c in pairs(Character:GetChildren()) do
4619
				if c.ClassName == "Part" then
4620
					c.Transparency = c.Transparency - 1/25
4621
				end
4622
			end
4623
			for _, c in pairs(Weapon:GetChildren()) do
4624
				if c.ClassName == "Part" then
4625
					c.Transparency = c.Transparency - 1/25
4626
				end
4627
			end
4628
		end
4629
		local SHELL = CreatePart(3, Effects, "Neon", 0, 1, "Really black", "Part", VT(0,0,0))
4630
		SHELL.CFrame = RootPart.CFrame
4631
		MakeForm(SHELL,"Ball")
4632
		CreateSound(402981977, SHELL, 5, 1.6, false)
4633
		for i = 1, 10 do
4634
			Swait()
4635
			SHELL.Transparency = SHELL.Transparency - 1/10
4636
			SHELL.Size = SHELL.Size + VT(0.6,0.6,0.6)*1.8
4637
		end
4638
		for i = 1, math.ceil(75/2) do
4639
			Swait()
4640
			RootPart.CFrame = RootPart.CFrame*CF(0,-3.5*2,0)
4641
			SHELL.CFrame = CF(RootPart.Position)
4642
			WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(5,3,5), Transparency = 0.5, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = SHELL.Position+VT(0,15,0), RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
4643
		end
4644
		RootPart.CFrame = CF(POS+VT(0,1,0),VT(ROOTPOS.X,HITPOS.Y+1,ROOTPOS.Z))
4645
		SHELL.CFrame = CF(RootPart.Position)
4646
		WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(35,35,35)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6})
4647
		WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(45,3,45)*3.8, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
4648
		WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(45,3,45)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
4649
		for i = 1, 5 do
4650
			WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35)*4, Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(61/255, 21/255, 133/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
4651
		end
4652
		SHELL:remove()
4653
		ApplyAoE(RootPart.Position,75,35,75,175,false)
4654
		SMASHED = true
4655
		wait(1)
4656
		VALUE1 = false
4657
		UNANCHOR = true
4658
		ATTACK = false
4659
		Rooted = false
4660
	end
4661
end
4662
4663
function PandorasBox()
4664
	local HITFLOOR,HITPOS = Raycast(RootPart.CFrame*CF(0,0,-6.5).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
4665
	if HITFLOOR ~= nil then
4666
		ATTACK = false
4667
		Rooted = false
4668
		local RINGSPIN = true
4669
		local CONSTRUCTING = true
4670
		local RING = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Ring", VT(0,0,0))
4671
		RING.Color = C3(0,0,0)
4672
		MakeForm(RING,"Cyl")
4673
		RING.CFrame = CF(HITPOS)
4674
		CreateSound(402981977, RING, 5, 1.2, false)
4675
		coroutine.resume(coroutine.create(function()
4676
			repeat
4677
				Swait()
4678
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
4679
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
4680
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
4681
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(115), RAD(45), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
4682
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
4683
				RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
4684
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
4685
			until CONSTRUCTING == false
4686
			repeat 
4687
				Swait() 
4688
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
4689
			until RINGSPIN == false
4690
			for i = 1, 25 do
4691
				Swait()
4692
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
4693
				RING.Size = RING.Size - VT(0.15,0,0.15)
4694
				--DECAL.Transparency = DECAL.Transparency + 1/25
4695
				RING.Transparency = RING.Transparency + 1/25
4696
			end
4697
			RING:remove()
4698
		end))
4699
		for i = 1, 15 do
4700
			Swait()
4701
			RING.Size = RING.Size + VT(0.75,0,0.75)
4702
			RING.Transparency = RING.Transparency - 1/15
4703
		end
4704
		chatfunc("let's see your prize...")
4705
		local BOXSPIN = true
4706
		local PANDORASBOX = IT("Model",Effects)
4707
		PANDORASBOX.Name = "Pandora's Box"
4708
		local BOX = IT("Model",PANDORASBOX)
4709
		BOX.Name = "Body"
4710
		local LID = IT("Model",PANDORASBOX)
4711
		LID.Name = "Lid"
4712
		--BUILDING THE BOX--
4713
			local BASE = CreatePart(3, BOX, "Neon", 0, 0, "New Yeller", "Black", VT(2,1.8,2))
4714
			BASE.Color = C3(0,0,0)
4715
			PANDORASBOX.PrimaryPart = BASE
4716
			BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z))
4717
			local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
4718
			WOOD.CFrame = BASE.CFrame*CF(1,0,1)
4719
			local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
4720
			WOOD.CFrame = BASE.CFrame*CF(1,0,-1)
4721
			local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
4722
			WOOD.CFrame = BASE.CFrame*CF(-1,0,1)
4723
			local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
4724
			WOOD.CFrame = BASE.CFrame*CF(-1,0,-1)
4725
			local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
4726
			WOOD.CFrame = BASE.CFrame*CF(0,0.9,1)
4727
			local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
4728
			WOOD.CFrame = BASE.CFrame*CF(0,0.9,-1)
4729
			local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
4730
			WOOD.CFrame = BASE.CFrame*CF(1,0.9,0)
4731
			local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
4732
			WOOD.CFrame = BASE.CFrame*CF(-1,0.9,0)
4733
			local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
4734
			WOOD.CFrame = BASE.CFrame*CF(0,-0.9,1)
4735
			local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
4736
			WOOD.CFrame = BASE.CFrame*CF(0,-0.9,-1)
4737
			local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
4738
			WOOD.CFrame = BASE.CFrame*CF(1,-0.9,0)
4739
			local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
4740
			WOOD.CFrame = BASE.CFrame*CF(-1,-0.9,0)
4741
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(2.1,1.9,0.1))
4742
			WOOD.CFrame = BASE.CFrame*CF(0,0,1)
4743
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(2.1,1.9,0.1))
4744
			WOOD.CFrame = BASE.CFrame*CF(0,0,-1)
4745
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(0.1,1.9,2.1))
4746
			WOOD.CFrame = BASE.CFrame*CF(1,0,0)
4747
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(0.1,1.9,2.1))
4748
			WOOD.CFrame = BASE.CFrame*CF(-1,0,0)
4749
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(2.1,0.1,2.1))
4750
			WOOD.CFrame = BASE.CFrame*CF(0,-0.9,0)
4751
			-------------
4752
			local LIDPART = CreatePart(3, LID, "Marble", 0, 0, "Really black", "Marble", VT(2.1,0.1,2.1))
4753
			LIDPART.CFrame = BASE.CFrame*CF(0,1,0)
4754
			LID.PrimaryPart = LIDPART
4755
			local WOOD = CreatePart(3, LID, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
4756
			WOOD.CFrame = LIDPART.CFrame*CF(0,0,-1)
4757
			local WOOD = CreatePart(3, LID, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
4758
			WOOD.CFrame = LIDPART.CFrame*CF(0,0,1)
4759
			local WOOD = CreatePart(3, LID, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
4760
			WOOD.CFrame = LIDPART.CFrame*CF(1,0,0)
4761
			local WOOD = CreatePart(3, LID, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
4762
			WOOD.CFrame = LIDPART.CFrame*CF(-1,0,0)
4763
			local DECAL = IT("Decal",LIDPART)
4764
			DECAL.Face = "Top"
4765
			DECAL.Texture = "http://www.roblox.com/asset/?id=1501226061"
4766
			DECAL.Color3 = C3(0,0,0)
4767
		--BUILDING THE BOX--
4768
		coroutine.resume(coroutine.create(function()
4769
			repeat
4770
				Swait()
4771
				PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * ANGLES(RAD(0), RAD(2.45), RAD(0)))
4772
			until BOXSPIN == false
4773
		end))
4774
		for i = 1, 25 do
4775
			Swait()
4776
			PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,1.5-(i/12.5),0))
4777
		end
4778
		wait(0.5)
4779
		BOXSPIN = false
4780
		CONSTRUCTING = false	
4781
		coroutine.resume(coroutine.create(function()
4782
			WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = LIDPART.Size, Size2 = VT(3,0,3)*4, Transparency = 0, Transparency2 = 1, CFrame = LIDPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 168586586, SoundPitch = 1.3, SoundVolume = 6})
4783
			--[[for i = 1, 45 do
4784
				Swait()
4785
				LID:SetPrimaryPartCFrame(LIDPART.CFrame * CF(0,1.5-(i/12.5),0.5) * ANGLES(RAD(0.7), RAD(0), RAD(0)))
4786
			end-
4787
			LID:remove()]]--
4788
			for _, c in pairs(LID:GetChildren()) do
4789
				if c.ClassName == "Part" then
4790
					c.Anchored = false
4791
					c.CanCollide = true
4792
					if c ~= LIDPART then
4793
						weldBetween(LIDPART,c)
4794
					end
4795
				end
4796
			end
4797
			LIDPART.Velocity = CF(LIDPART.Position,LIDPART.CFrame*CF(15,25,0).p).lookVector*65
4798
			Debris:AddItem(LID,15)
4799
			wait(0.5)
4800
			local RANDOMEFFECT = MRANDOM(1,4)
4801
			if RANDOMEFFECT == 1 then
4802
				for i = 1, 45 do
4803
					wait((2-(i/15))/15)
4804
					WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(0,MRANDOM(12,15),0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,MRANDOM(1,5)), MoveToPos = BASE.Position, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.8, SoundVolume = 6})
4805
				end	
4806
				wait(1)
4807
				WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(35,35,35)*12, Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6})
4808
				WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(45,3,45)*10, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 469345336, SoundPitch = 0.75, SoundVolume = 6})
4809
				WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(45,3,45)*9, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
4810
				for i = 1, 5 do
4811
					WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35)*12, Transparency = 0.5, Transparency2 = 1, CFrame = BASE.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
4812
				end
4813
				ApplyAoE(BASE.Position,50,1,200,375,true)
4814
				ApplyAoE(BASE.Position,250,35,75,175,true)
4815
			elseif RANDOMEFFECT == 2 then
4816
				local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "New Yeller", "Field", VT(0.3,0.3,0.3))
4817
				FIELD.CFrame = BASE.CFrame
4818
				MakeForm(FIELD,"Ball")
4819
				for i = 1, 50 do
4820
					Swait()
4821
					FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01)
4822
					FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
4823
				end
4824
				wait(0.2)
4825
				local LOOP = CreateSound(1393698948, FIELD, 0, 1.2, true)
4826
				coroutine.resume(coroutine.create(function()
4827
					for i = 1, 75 do
4828
						Swait()
4829
						LOOP.Volume = LOOP.Volume + 10/75
4830
						LOOP.Parent = FIELD
4831
						local CHILDREN = workspace:GetDescendants()
4832
						for index, CHILD in pairs(CHILDREN) do
4833
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
4834
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
4835
								if HUM then
4836
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
4837
									if TORSO then
4838
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
4839
											HUM.Health = HUM.Health - 1.5
4840
											TORSO.Velocity = VT(0,5,0)
4841
											HUM.PlatformStand = true
4842
											if TORSO.RotVelocity.Magnitude < 15 then
4843
										 		TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
4844
											end
4845
										end
4846
									end
4847
								end
4848
							end
4849
						end
4850
						FIELD.Size = FIELD.Size + VT(9,9,9)
4851
						FIELD.Transparency = FIELD.Transparency + 0.8/75
4852
					end
4853
					for i = 1, 500 do
4854
						Swait()
4855
						LOOP.Parent = FIELD
4856
						local CHILDREN = workspace:GetDescendants()
4857
						for index, CHILD in pairs(CHILDREN) do
4858
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
4859
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
4860
								if HUM then
4861
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
4862
									if TORSO then
4863
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
4864
											TORSO.Velocity = VT(0,5,0)
4865
											HUM.Health = HUM.Health - 1.5
4866
											HUM.PlatformStand = true
4867
											if TORSO.RotVelocity.Magnitude < 15 then
4868
										 		TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
4869
											end
4870
										end
4871
									end
4872
								end
4873
							end
4874
						end
4875
					end
4876
					for i = 1, 25 do
4877
						Swait()
4878
						LOOP.Volume = LOOP.Volume + 10/25
4879
						LOOP.Parent = FIELD
4880
						local CHILDREN = workspace:GetDescendants()
4881
						for index, CHILD in pairs(CHILDREN) do
4882
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
4883
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
4884
								if HUM then
4885
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
4886
									if TORSO then
4887
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then
4888
											TORSO.Velocity = VT(0,5,0)
4889
											HUM.Health = HUM.Health - 1.5
4890
											HUM.PlatformStand = false
4891
											if TORSO.RotVelocity.Magnitude < 15 then
4892
										 		TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
4893
											end
4894
										end
4895
									end
4896
								end
4897
							end
4898
						end
4899
						FIELD.Size = FIELD.Size - VT(3,3,3)
4900
						FIELD.Transparency = FIELD.Transparency + 0.2/25
4901
					end	
4902
					FIELD:remove()
4903
				end))
4904
			elseif RANDOMEFFECT == 3 then
4905
				for i = 1, 10 do
4906
					wait(0.15)
4907
					WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(3,8,3), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(0,0.3,0), MoveToPos = BASE.Position+VT(0,6,0), RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 90655239, SoundPitch = 0.8, SoundVolume = 6})
4908
					coroutine.resume(coroutine.create(function()
4909
						local MINION = CLONE:Clone()
4910
						MINION.Parent = Effects
4911
						MINION.Name = "Shadow"
4912
						MINION.HumanoidRootPart.CFrame = BASE.CFrame*CF(0,5,0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))
4913
						MINION.HumanoidRootPart.Velocity = CF(MINION.HumanoidRootPart.Position,MINION.HumanoidRootPart.CFrame*CF(0,8,-15).p).lookVector*MRANDOM(55,100)
4914
						for _, c in pairs(MINION:GetChildren()) do
4915
							if c.ClassName == "Part" then
4916
								c.Material = "Neon"
4917
								c.Color = C3(0,0,0)
4918
								c.Transparency = 0.25
4919
								if c.Name == "Head" then
4920
									c:ClearAllChildren()
4921
									local MSH = IT("BlockMesh",c)
4922
									MSH.Scale = VT(0.5,1,1)
4923
								end
4924
							end
4925
						end
4926
						local TORSO = MINION.Torso
4927
						local HUMAN = MINION.Humanoid
4928
						HUMAN.WalkSpeed = 20
4929
						HUMAN.MaxHealth = math.huge
4930
						HUMAN.Health = math.huge
4931
						HUMAN.DisplayDistanceType = "None"
4932
						HUMAN.Died:connect(function()
4933
							MINION:remove()
4934
							--CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false)
4935
						end)
4936
						wait(1)
4937
						local findNearestTorso = function(POS)
4938
							local list = game.Workspace:GetDescendants()
4939
							local torso = nil
4940
							local dist = 500
4941
							local temp = nil
4942
							local human = nil
4943
							local temp2 = nil
4944
							for x = 1, #list do
4945
								temp2 = list[x]
4946
								if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then
4947
									temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
4948
									human = temp2:findFirstChildOfClass("Humanoid")
4949
									if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
4950
										if (temp.Position - POS).magnitude < dist then
4951
											torso = temp
4952
											dist = (temp.Position - POS).magnitude
4953
										end
4954
									end
4955
								end
4956
							end
4957
							return torso, dist
4958
						end
4959
						for i = 1, 40 do
4960
							if HUMAN.Health == 0 then
4961
								break
4962
							end
4963
							wait(0.3)
4964
							local target,dist= findNearestTorso(TORSO.Position)
4965
							if target then
4966
								HUMAN:MoveTo(target.Position)
4967
								if dist < 25 then
4968
									CreateSound(348663022, TORSO, 10, 1, true)
4969
									wait(2)
4970
									--local ANIM = HUMAN:LoadAnimation(ATANIM)
4971
									--ANIM:Play()
4972
									--CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false)
4973
									ApplyAoE(TORSO.Position,10,0,0,85,true)
4974
									WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(25,25,25), Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 201858087, SoundPitch = 0.8, SoundVolume = 10})
4975
									for i = 1, 5 do
4976
										WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(15,1,15), Transparency = 0.5, Transparency2 = 1, CFrame = TORSO.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-15,15)/7.5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
4977
									end
4978
									break
4979
								end
4980
							end
4981
						end
4982
						MINION:remove()
4983
					end))
4984
				end
4985
			elseif RANDOMEFFECT == 4 then
4986
				local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "New Yeller", "Field", VT(0.3,0.3,0.3))
4987
				FIELD.Color = C3(0,0,0)
4988
				FIELD.CFrame = BASE.CFrame
4989
				MakeForm(FIELD,"Ball")
4990
				FIELD.CanCollide = true
4991
				for i = 1, 50 do
4992
					Swait()
4993
					FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01)
4994
					FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
4995
				end
4996
				wait(0.2)
4997
				local LOOP = CreateSound(487214658, FIELD, 0, 1, true)
4998
				coroutine.resume(coroutine.create(function()
4999
					local E = 0
5000
					for i = 1, 75 do
5001
						E = E + 1
5002
						Swait()
5003
						if E >= 35 then
5004
							E = 0
5005
							WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6})
5006
						end
5007
						LOOP.Volume = LOOP.Volume + 10/75
5008
						LOOP.Parent = FIELD
5009
						local CHILDREN = workspace:GetDescendants()
5010
						for index, CHILD in pairs(CHILDREN) do
5011
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
5012
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
5013
								if HUM then
5014
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
5015
									if TORSO then
5016
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then
5017
											for _, c in pairs(CHILD:GetChildren()) do
5018
												if c:IsA("BasePart") then
5019
													local bv = Instance.new("BodyVelocity") 
5020
													bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
5021
													bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50
5022
													bv.Parent = c
5023
													Debris:AddItem(bv,0.05)
5024
												end
5025
											end
5026
											HUM.Health = HUM.Health - 0.3
5027
										end
5028
									end
5029
								end
5030
							end
5031
						end
5032
						FIELD.Size = FIELD.Size + VT(0.3,0.3,0.3)/5
5033
					end
5034
					for i = 1, 180 do
5035
						E = E + 1
5036
						Swait()
5037
						if E >= 35 then
5038
							E = 0
5039
							WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6})
5040
						end
5041
						LOOP.Parent = FIELD
5042
						local CHILDREN = workspace:GetDescendants()
5043
						for index, CHILD in pairs(CHILDREN) do
5044
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
5045
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
5046
								if HUM then
5047
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
5048
									if TORSO then
5049
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then
5050
											for _, c in pairs(CHILD:GetChildren()) do
5051
												if c:IsA("BasePart") then
5052
													local bv = Instance.new("BodyVelocity") 
5053
													bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
5054
													bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50
5055
													bv.Parent = c
5056
													Debris:AddItem(bv,0.05)
5057
												end
5058
											end
5059
											HUM.Health = HUM.Health - 0.3
5060
										end
5061
									end
5062
								end
5063
							end
5064
						end
5065
					end
5066
					ApplyAoE(FIELD.Position,40,15,20,375,true)
5067
					WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = FIELD.Size, Size2 = VT(35,35,35), Transparency = 0, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 231917744, SoundPitch = 1, SoundVolume = 6})
5068
					for i = 1, 5 do
5069
						WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35), Transparency = 0.5, Transparency2 = 1, CFrame = FIELD.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
5070
					end
5071
					FIELD:remove()
5072
				end))
5073
			elseif RANDOMEFFECT == 5 then
5074
			end
5075
			wait(0.5)
5076
			for i = 1, 25 do
5077
				Swait()
5078
				PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,-0.3,0))
5079
			end
5080
			PANDORASBOX:remove()
5081
			RINGSPIN = false
5082
		end))
5083
		ATTACK = false
5084
		Rooted = false
5085
	end
5086
end
5087
5088
function TimeStop ()
5089
	local HITFLOOR,HITPOS = Raycast(RootPart.CFrame*CF(0,0,-6.5).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
5090
	CHOICE = 6
5091
	CreateSound(1193182658, Character, 5, 1, false)
5092
	chatfunc ("Za warudo...")
5093
     back = CreateSound(1841228386, Character, 9999, 1, false)
5094
	local killsky = Instance.new('Sky', game:GetService'Lighting')
5095
killsky.SkyboxBk = "rbxassetid://1013852"
5096
killsky.SkyboxDn = "rbxassetid://1013853"
5097
killsky.SkyboxFt = "rbxassetid://1013850"
5098
killsky.SkyboxLf = "rbxassetid://1013851"
5099
killsky.SkyboxRt = "rbxassetid://1013849"
5100
killsky.SkyboxUp = "rbxassetid://1013854"
5101
killsky.StarCount = 0
5102
killsky.SunAngularSize = 0
5103
killsky.MoonAngularSize = 0
5104
killsky.MoonTextureId = ""
5105
killsky.CelestialBodiesShown = false
5106
game.Lighting.FogColor = Color3.new(1,1,0)
5107
game.Lighting.FogEnd = 1400
5108
	if HITFLOOR ~= nil then
5109
		ATTACK = false
5110
		Rooted = false
5111
		local RINGSPIN = true
5112
		local CONSTRUCTING = true
5113
		local RING = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Ring", VT(0,0,0))
5114
		RING.Color = C3(0,0,0)
5115
		MakeForm(RING,"Cyl")
5116
		RING.CFrame = CF(HITPOS)
5117
		coroutine.resume(coroutine.create(function()
5118
			repeat
5119
				Swait()
5120
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
5121
			until CONSTRUCTING == false
5122
			repeat 
5123
				Swait() 
5124
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
5125
			until RINGSPIN == false
5126
			for i = 1, 25 do
5127
				Swait()
5128
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
5129
				RING.Size = RING.Size - VT(0.15,0,0.15)
5130
				--DECAL.Transparency = DECAL.Transparency + 1/25
5131
				RING.Transparency = RING.Transparency + 1/25
5132
			end
5133
			RING:remove()
5134
		end))
5135
		for i = 1, 15 do
5136
			Swait()
5137
			RING.Size = RING.Size + VT(0,0,0)
5138
			RING.Transparency = RING.Transparency - 1/15
5139
		end
5140
		end
5141
	local RANDOMEFFECT = MRANDOM(1)
5142
	local BASE = CreatePart(3, Character, "Neon", 0, 0, "New Yeller", "Black", VT(2,1.8,2))
5143
			BASE.Color = C3(0,0,0)
5144
			BASE.Transparency = 1
5145
			BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z))
5146
	if RANDOMEFFECT == 1 then
5147
				local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "New Yeller", "Field", VT(0.3,0.3,0.3))
5148
				FIELD.CFrame = BASE.CFrame
5149
				MakeForm(FIELD,"Ball")
5150
				for i = 1, 50 do
5151
					Swait()
5152
					FIELD.Size = VT(0,0,0)
5153
					FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
5154
				end
5155
				end
5156
				wait(0.2)
5157
				local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "New Yeller", "Field", VT(0.3,0.3,0.3))
5158
				FIELD.CFrame = BASE.CFrame
5159
				local LOOP = CreateSound(1393698948, Character, 0, 1, true)
5160
				coroutine.resume(coroutine.create(function()
5161
					for i = 1, 75 do
5162
						Swait()
5163
						LOOP.Volume = LOOP.Volume + 10/75
5164
						LOOP.Parent = FIELD
5165
						local CHILDREN = workspace:GetDescendants()
5166
						for index, CHILD in pairs(CHILDREN) do
5167
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
5168
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
5169
								if HUM then
5170
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
5171
									if TORSO then
5172
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
5173
											HUM.Health = HUM.Health - 0
5174
											TORSO.Velocity = VT(0,5,0)
5175
											HUM.PlatformStand = true
5176
											if TORSO.RotVelocity.Magnitude < 15 then
5177
										 		TORSO.Anchored = true
5178
											end
5179
										end
5180
									end
5181
								end
5182
							end
5183
						end
5184
						FIELD.Size = FIELD.Size + VT(90,90,90)
5185
						FIELD.Transparency = FIELD.Transparency + 0.8/75
5186
					end
5187
				for i = 1, 500 do
5188
						Swait()
5189
						LOOP.Parent = FIELD
5190
						local CHILDREN = workspace:GetDescendants()
5191
						for index, CHILD in pairs(CHILDREN) do
5192
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
5193
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
5194
								if HUM then
5195
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
5196
									if TORSO then
5197
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
5198
											TORSO.Velocity = VT(0,5,0)
5199
											HUM.Health = HUM.Health - 0
5200
											HUM.PlatformStand = true
5201
											if TORSO.RotVelocity.Magnitude < 15 then
5202
										 		TORSO.Anchored = true
5203
											end
5204
										end
5205
									end
5206
								end
5207
							end
5208
						end
5209
					end
5210
 wait (20)
5211
back:Remove()
5212
		CreateSound(1538466750, Character, 99999, 1, false)
5213
		chatfunc ("the time rusume")
5214
		killsky:Remove()
5215
		game.Lighting.FogEnd = 90000000
5216
		wait (5)
5217
		CHOICE = MRANDOM (1,5)
5218
					for i = 1, 25 do
5219
						Swait()
5220
						LOOP.Volume = LOOP.Volume + 10/25
5221
						LOOP.Parent = FIELD
5222
						local CHILDREN = workspace:GetDescendants()
5223
						for index, CHILD in pairs(CHILDREN) do
5224
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
5225
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
5226
								if HUM then
5227
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
5228
									if TORSO then
5229
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then
5230
											TORSO.Velocity = VT(0,5,0)
5231
											HUM.Health = HUM.Health - 0
5232
											HUM.PlatformStand = false
5233
											if TORSO.RotVelocity.Magnitude < 15 then
5234
										 		TORSO.Anchored = false
5235
										end
5236
									end
5237
								end
5238
							end
5239
						end
5240
						FIELD.Size = FIELD.Size - VT(3,3,3)
5241
						FIELD.Transparency = FIELD.Transparency + 0.2/25
5242
						     end
5243
						end
5244
				end))	
5245
				FIELD:Remove()
5246
           ATTACK = false
5247
		Rooted = false
5248
end
5249
function RivalingOverthrower2()
5250
	if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
5251
		local HITBODY = Mouse.Target.Parent
5252
		local TORS = HITBODY:FindFirstChild("Torso") or HITBODY:FindFirstChild("UpperTorso")
5253
		local HUMAN = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
5254
		if TORS ~= nil and HUMAN ~= nil then
5255
			ATTACK = true
5256
			Rooted = false
5257
			VanishPlayer()
5258
			TORS.Anchored = true
5259
			RootPart.CFrame = TORS.CFrame*CF(0,5,0)
5260
			CreateSound("260411131", RootPart, 3, 1)
5261
			for i = 1, 75 do
5262
				Swait()
5263
				CreateRing(VT(0,0,0),false,0,25,TORS.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Navy blue",VT(POWERLEVEL/3,POWERLEVEL/3,0))
5264
				CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], TORS, 10, 1)
5265
				local CFRAME = CF(TORS.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
5266
				MagicSphere(VT(0,0,0),15,CFRAME,"Really black",VT(0.1,0.1,POWERLEVEL*5))
5267
				MagicSphere(VT(0.1,0.1,0.1),15,CFRAME,"Institutional white",VT(0.1,0.1,POWERLEVEL*5))
5268
				TORS.CFrame = TORS.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
5269
			end
5270
			RootPart.CFrame = CF(TORS.Position)*CF(MRANDOM(-45,45),45,MRANDOM(-45,45))
5271
			Reappear()
5272
			CreateSound("1368583274", RightArm, 10, 1)
5273
			local ORB = CreatePart(3, Effects, "Neon", 0, 0, "Navy blue", "Neon", VT(0,0,0))
5274
			MakeForm(ORB,"Ball")
5275
			ORB.Color = C3(0,0,0)
5276
			ORB.CFrame = RightArm.CFrame * CF(0,-2,0)
5277
			for i=0, 4, 0.1 / Animation_Speed do
5278
				Swait()
5279
				ORB.CFrame = RightArm.CFrame * CF(0,-2-(ORB.Size.Z/2),0)
5280
				ORB.Size = ORB.Size + VT(0.03,0.03,0.03)
5281
				CreateRing(VT(25,25,0),false,0,25,ORB.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Navy blue",VT(-1,-1,0))
5282
				RootPart.CFrame = CF(RootPart.Position,TORS.Position)
5283
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 2 / Animation_Speed)
5284
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-90)), 2 / Animation_Speed)
5285
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
5286
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
5287
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
5288
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
5289
			end
5290
			for i = 1, 5 do
5291
				Swait()
5292
				RootPart.CFrame = CF(RootPart.Position,TORS.Position)
5293
				ORB.Size = ORB.Size * 0.8
5294
			end
5295
			local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Neon", VT(0,25,0))
5296
			MakeForm(BEAM,"Ball")
5297
			local BEAM2 = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Neon", VT(0,1000,0))
5298
			MakeForm(BEAM2,"Cyl")
5299
			BEAM.CFrame = ORB.CFrame * CF(0,0,10)
5300
			ORB.Color = BRICKC("Navy blue").Color
5301
			for i = 1, 5 do
5302
				Swait()
5303
				CreateRing(VT(0,0,0.1),false,0,10,RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(90),RAD(0),RAD(0)),"Navy blue",VT(2,2,0))
5304
				BEAM.CFrame = ORB.CFrame * CF(0,-12.5,0)
5305
				BEAM.Size = BEAM.Size + VT(2,0,2)
5306
				BEAM2.CFrame = ORB.CFrame * CF(0,-512.5,0)
5307
				BEAM2.Size = BEAM2.Size + VT(2,0,2)
5308
				RootPart.CFrame = CF(RootPart.Position,TORS.Position)
5309
				ORB.Size = ORB.Size * 1.3
5310
			end
5311
			CreateSound("1368605755", Effects, 10, 1)
5312
			HITBODY:BreakJoints()
5313
			TORS.Anchored = false
5314
			local POS = TORS.Position
5315
			for i = 1, 25 do
5316
				CreateRing(VT(0,0,0),false,0,25,TORS.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Navy blue",VT(POWERLEVEL/3,POWERLEVEL/3,0))
5317
				CreateRing(VT(0,0,0),false,0,25,TORS.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Navy blue",VT(POWERLEVEL/4,POWERLEVEL/4,0))
5318
			end
5319
			for i=0, 2, 0.1 / Animation_Speed do
5320
				Swait()
5321
				killnearest(POS,15,700)
5322
				CreateRing(VT(0,0,0.1),false,0,10,RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(90),RAD(0),RAD(0)),"Navy blue",VT(2,2,0))
5323
				BEAM.CFrame = ORB.CFrame * CF(0,-12.5,0)
5324
				BEAM2.CFrame = ORB.CFrame * CF(0,-512.5,0)
5325
				ORB.CFrame = RightArm.CFrame * CF(0,-2-(ORB.Size.Z/2),0)
5326
				RootPart.CFrame = CF(RootPart.Position,POS)
5327
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 2 / Animation_Speed)
5328
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-90)), 2 / Animation_Speed)
5329
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
5330
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
5331
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
5332
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
5333
			end
5334
			for i = 1, 5 do
5335
				Swait()
5336
				BEAM.CFrame = ORB.CFrame * CF(0,-12.5,0)
5337
				BEAM.Size = BEAM.Size - VT(2,0,2)
5338
				BEAM2.CFrame = ORB.CFrame * CF(0,-512.5,0)
5339
				BEAM2.Size = BEAM2.Size - VT(2,0,2)
5340
				RootPart.CFrame = CF(RootPart.Position,TORS.Position)
5341
				ORB.Size = ORB.Size * 0.8
5342
			end
5343
			turnto(POS)
5344
			ORB:remove()
5345
			BEAM:remove()
5346
			BEAM2:remove()
5347
			ATTACK = false
5348
			Rooted = false
5349
		end
5350
	end
5351
end
5352
function killnearest(position,range,maxstrength)
5353
	for i,v in ipairs(workspace:GetChildren()) do
5354
	if v.ClassName == "Model" then
5355
		local body = v:GetChildren()
5356
			for part = 1, #body do
5357
				if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
5358
					if(body[part].Position - position).Magnitude < range then
5359
						if v.ClassName == "Model" then
5360
							v:BreakJoints()
5361
						end
5362
						--table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
5363
						body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
5364
					end
5365
				end
5366
			end
5367
		end
5368
	end
5369
end
5370
function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
5371
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
5372
	local mesh = IT("SpecialMesh",wave)
5373
	mesh.MeshType = "FileMesh"
5374
	mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
5375
	mesh.Scale = SIZE
5376
	mesh.Offset = VT(0,0,-SIZE.X/8)
5377
	wave.CFrame = CFRAME
5378
	coroutine.resume(coroutine.create(function(PART)
5379
		for i = 1, WAIT do
5380
			Swait()
5381
			mesh.Scale = mesh.Scale + GROW
5382
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
5383
			if DOESROT == true then
5384
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
5385
			end
5386
			wave.Transparency = wave.Transparency + (0.5/WAIT)
5387
			if wave.Transparency > 0.99 then
5388
				wave:remove()
5389
			end
5390
		end
5391
	end))
5392
end
5393
5394
function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
5395
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
5396
	local mesh = IT("SpecialMesh",wave)
5397
	mesh.MeshType = "FileMesh"
5398
	mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
5399
	mesh.Scale = SIZE
5400
	mesh.Offset = VT(0,0,0)
5401
	wave.CFrame = CFRAME
5402
	coroutine.resume(coroutine.create(function(PART)
5403
		for i = 1, WAIT do
5404
			Swait()
5405
			mesh.Scale = mesh.Scale + GROW
5406-
				CreateRing(VT(0,0,0),false,0,25,TORS.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(POWERLEVEL/3,POWERLEVEL/3,0))
5406+
5407
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
5408
			end
5409
			wave.Transparency = wave.Transparency + (0.5/WAIT)
5410
			if wave.Transparency > 0.99 then
5411
				wave:remove()
5412
			end
5413
		end
5414
	end))
5415
end
5416-
			local ORB = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Neon", VT(0,0,0))
5416+
5417
function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
5418
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
5419
	local mesh = IT("SpecialMesh",wave)
5420
	mesh.MeshType = "Sphere"
5421
	mesh.Scale = SIZE
5422
	mesh.Offset = VT(0,0,0)
5423
	wave.CFrame = CFRAME
5424-
				CreateRing(VT(25,25,0),false,0,25,ORB.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(-1,-1,0))
5424+
5425
		for i = 1, WAIT do
5426
			Swait()
5427
			mesh.Scale = mesh.Scale + GROW
5428
			wave.Transparency = wave.Transparency + (1/WAIT)
5429
			if wave.Transparency > 0.99 then
5430
				wave:remove()
5431
			end
5432
		end
5433
	end))
5434
end
5435
5436
function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
5437
	if FLOOR ~= nil then
5438
		coroutine.resume(coroutine.create(function()
5439
			local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Navy blue", "DebreeCenter", VT(0,0,0))
5440
			PART.CFrame = CF(POSITION)
5441
			for i = 1, 45 do
5442
				local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "", "DebreePart", BLOCKSIZE)
5443-
			ORB.Color = BRICKC("Really red").Color
5443+
5444
				RingPiece.Color = FLOOR.Color
5445
				RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
5446-
				CreateRing(VT(0,0,0.1),false,0,10,RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(90),RAD(0),RAD(0)),"Really red",VT(2,2,0))
5446+
5447
			end
5448
			PART:remove()
5449
		end))
5450
	end
5451
end
5452
5453
function Slice(SIZE,WAIT,CFRAME,COLOR,GROW)
5454
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
5455
	local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
5456
	wave.CFrame = CFRAME
5457
	coroutine.resume(coroutine.create(function(PART)
5458
		for i = 1, WAIT do
5459-
				CreateRing(VT(0,0,0),false,0,25,TORS.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(POWERLEVEL/3,POWERLEVEL/3,0))
5459+
5460-
				CreateRing(VT(0,0,0),false,0,25,TORS.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(POWERLEVEL/4,POWERLEVEL/4,0))
5460+
5461
			wave.Transparency = wave.Transparency + (0.5/WAIT)
5462
			if wave.Transparency > 0.99 then
5463
				wave:remove()
5464
			end
5465-
				CreateRing(VT(0,0,0.1),false,0,10,RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(90),RAD(0),RAD(0)),"Really red",VT(2,2,0))
5465+
5466
	end))
5467
end
5468
5469
function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
5470
	if FLOOR ~= nil then
5471
		for i = 1, AMOUNT do
5472
			local DEBREE = CreatePart(3, Effects, "Neon", 0, 0, "Navy blue", "Debree", BLOCKSIZE, false)
5473
			DEBREE.Material = FLOOR.Material
5474
			DEBREE.Color = FLOOR.Color
5475
			DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
5476
			DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),STRENGTH,MRANDOM(-STRENGTH,STRENGTH))
5477
			coroutine.resume(coroutine.create(function()
5478
				Swait(15)
5479
				DEBREE.Parent = workspace
5480
				DEBREE.CanCollide = true
5481
				Debris:AddItem(DEBREE,SWAIT)
5482
			end))
5483
		end
5484
	end
5485
end
5486
5487
function MakeForm(PART,TYPE)
5488
	if TYPE == "Cyl" then
5489
		local MSH = IT("CylinderMesh",PART)
5490
	elseif TYPE == "Ball" then
5491
		local MSH = IT("SpecialMesh",PART)
5492
		MSH.MeshType = "Sphere"
5493
	elseif TYPE == "Wedge" then
5494
		local MSH = IT("SpecialMesh",PART)
5495
		MSH.MeshType = "Wedge"
5496
	end
5497
end
5498
5499
function CheckTableForString(Table, String)
5500
	for i, v in pairs(Table) do
5501
		if string.find(string.lower(String), string.lower(v)) then
5502
			return true
5503
		end
5504
	end
5505
	return false
5506
end
5507
5508
function CheckIntangible(Hit)
5509
	local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
5510
	if Hit and Hit.Parent then
5511
		if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
5512
			return true
5513
		end
5514
	end
5515
	return false
5516
end
5517
5518
Debris = game:GetService("Debris")
5519
5520
function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
5521
	local Direction = CFrame.new(StartPos, Vec).lookVector
5522
	local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
5523
	local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
5524
	if RayHit and CheckIntangible(RayHit) then
5525
		if DelayIfHit then
5526
			wait()
5527
		end
5528
		RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
5529
	end
5530
	return RayHit, RayPos, RayNormal
5531
end
5532
5533
function turnto(position)
5534
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
5535
end
5536
function Boost()
5537
	ATTACK = true
5538
	Rooted = true
5539
	CreateSound("466493476", Torso, 10, MRANDOM(7, 12) / 10)
5540
	for i = 1, 50 do
5541
		Swait()
5542
		CreateRing(VT(0,0,0),false,0,5,RootPart.CFrame*ANGLES(RAD(0),RAD(90),RAD(0)),"Navy blue",VT(i/5,i/5,0))
5543
		CreateRing(VT(0,0,0),false,0,5,RootPart.CFrame*ANGLES(RAD(0),RAD(0),RAD(0)),"Navy blue",VT(i/5,i/5,0))
5544
		CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Institutional white",VT(i/3,i/3,0))
5545
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.3 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0 - 2.5 * SIN(SINE / 12))), 3 / Animation_Speed)
5546
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0 + 2.5 * SIN(SINE / 12))), 3 / Animation_Speed)
5547
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0, -0.5) * ANGLES(RAD(140 + 2.5 * SIN(SINE / 12)), RAD(15), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
5548
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0, -0.5) * ANGLES(RAD(140 + 2.5 * SIN(SINE / 12)), RAD(-15), RAD(0)) * LEFTSHOULDERC0, 3 / Animation_Speed)
5549
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-25 - 2.5 * SIN(SINE / 12))), 3 / Animation_Speed)
5550
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-45 - 2.5 * SIN(SINE / 12))), 3 / Animation_Speed)
5551
	end
5552
	POWERLEVEL = POWERLEVEL + 1
5553
	ATTACK = false
5554
	Rooted = false
5555
end
5556
function Perfect_Command()
5557
ATTACK = true
5558
Rooted = true
5559
        chatfunc("Weaklings...")
5560
        CreateRing2(VT(0,0,0),false,0,45,RootPart.CFrame*ANGLES(RAD(90),RAD(0),RAD(0)),"Really black",VT(100,100,100))
5561
	    CreateSound("1368605755", Effects, 10, 1)
5562
	    MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Maroon",VT(500,500,500))
5563
		ApplyAoE(Torso.Position, 9999, 0, 0, 0, true)
5564
ATTACK = false
5565
Rooted = false
5566
end
5567
5568
function killnearest2(position,range,maxstrength)
5569
	for i,v in ipairs(workspace:GetChildren()) do
5570
	if v.ClassName == "Model" then
5571
		local body = v:GetChildren()
5572
			for part = 1, #body do
5573
				if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
5574
					if(body[part].Position - position).Magnitude < range then
5575
						if v.ClassName == "Model" then
5576
							v:BreakJoints()
5577
						end
5578
						--table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
5579
						body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
5580
					end
5581
				end
5582-
			local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Really red", "DebreeCenter", VT(0,0,0))
5582+
5583
		end
5584
	end
5585-
				local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Really red", "DebreePart", BLOCKSIZE)
5585+
5586
5587
function killnearest(position,range,maxstrength,direction)
5588
	for i,v in ipairs(workspace:GetChildren()) do
5589
	local body = v:GetChildren()
5590
		for part = 1, #body do
5591
			if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
5592
				if(body[part].Position - position).Magnitude < range then
5593
					if v.ClassName == "Model" then
5594
						--v:BreakJoints()
5595
					end
5596
					local POS = position
5597
					coroutine.resume(coroutine.create(function()
5598
						body[part].Anchored = true
5599
						body[part].Parent = Effects
5600
						body[part].CanCollide = true
5601
						local SIZE = body[part].Size
5602
						body[part].Material = "Neon"
5603
						CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10)
5604
						for i = 1, 75 do
5605
							Swait()
5606
							body[part].Color = Color3.fromRGB(cR,cG,cB)
5607
							body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
5608
						end
5609
						coroutine.resume(coroutine.create(function()
5610
							while true do
5611
								Swait()
5612
								body[part].Color = Color3.fromRGB(cR,cG,cB)
5613
								body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
5614
							end
5615-
			local DEBREE = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Debree", BLOCKSIZE, false)
5615+
5616
						body[part].Anchored = false
5617
						body[part].Velocity = direction.lookVector*maxstrength
5618
					end))
5619
				end
5620
			end
5621
		end
5622
		if v.ClassName == "Part" then
5623
			if v.Anchored == false and (v.Position - position).Magnitude < range then
5624
				local POS = position
5625
				coroutine.resume(coroutine.create(function()
5626
					v.Anchored = true
5627
					v.Parent = Effects
5628
					local SIZE = v.Size
5629
					v.Material = "Neon"
5630
					CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10)
5631
					for i = 1, 75 do
5632
						Swait()
5633
						v.Color = Color3.fromRGB(cR,cG,cB)
5634
						v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
5635
					end
5636
					coroutine.resume(coroutine.create(function()
5637
						while true do
5638
							Swait()
5639
							v.Color = Color3.fromRGB(cR,cG,cB)
5640
							v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
5641
						end
5642
					end))
5643
					v.Anchored = false
5644
					v.Velocity = direction.lookVector*maxstrength
5645
				end))
5646
			end
5647
		end
5648
	end
5649
end
5650
function WACKYEFFECT(Table)
5651
	local TYPE = Table.EffectType or "Sphere"
5652
	local SIZE = Table.Size or VT(1, 1, 1)
5653
	local ENDSIZE = Table.Size2 or VT(0, 0, 0)
5654
	local TRANSPARENCY = Table.Transparency or 0
5655
	local ENDTRANSPARENCY = Table.Transparency2 or 1
5656
	local CFRAME = Table.CFrame or Torso.CFrame
5657
	local MOVEDIRECTION = Table.MoveToPos or nil
5658
	local ROTATION1 = Table.RotationX or 0
5659
	local ROTATION2 = Table.RotationY or 0
5660
	local ROTATION3 = Table.RotationZ or 0
5661
	local MATERIAL = Table.Material or "Neon"
5662
	local COLOR = Table.Color or C3(1, 1, 1)
5663
	local TIME = Table.Time or 45
5664
	local SOUNDID = Table.SoundID or nil
5665
	local SOUNDPITCH = Table.SoundPitch or nil
5666
	local SOUNDVOLUME = Table.SoundVolume or nil
5667
	coroutine.resume(coroutine.create(function()
5668
		local PLAYSSOUND = false
5669
		local SOUND
5670
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1, 1, 1), true)
5671
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
5672
			PLAYSSOUND = true
5673
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
5674
		end
5675
		EFFECT.Color = COLOR
5676
		local MSH
5677
		if TYPE == "Sphere" then
5678
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0, 0, 0))
5679
		elseif TYPE == "Block" then
5680
			MSH = IT("BlockMesh", EFFECT)
5681
			MSH.Scale = VT(SIZE.X, SIZE.X, SIZE.X)
5682
		elseif TYPE == "Wave" then
5683
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
5684
		elseif TYPE == "Ring" then
5685-
		CreateRing(VT(0,0,0),false,0,5,RootPart.CFrame*ANGLES(RAD(0),RAD(90),RAD(0)),"Really red",VT(i/5,i/5,0))
5685+
5686-
		CreateRing(VT(0,0,0),false,0,5,RootPart.CFrame*ANGLES(RAD(0),RAD(0),RAD(0)),"Really red",VT(i/5,i/5,0))
5686+
5687
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
5688
		elseif TYPE == "Round Slash" then
5689
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
5690
		elseif TYPE == "Swirl" then
5691
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0, 0, 0))
5692
		elseif TYPE == "Skull" then
5693
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0, 0, 0))
5694
		elseif TYPE == "Crystal" then
5695
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0, 0, 0))
5696
		end
5697
		if MSH ~= nil then
5698
			local MOVESPEED
5699
			if MOVEDIRECTION ~= nil then
5700
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude / TIME
5701
			end
5702
			local GROWTH = SIZE - ENDSIZE
5703
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
5704
			if TYPE == "Block" then
5705
				EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
5706
			else
5707
				EFFECT.CFrame = CFRAME
5708
			end
5709
			for LOOP = 1, TIME do
5710
				Swait()
5711
				MSH.Scale = MSH.Scale - GROWTH / TIME
5712
				if TYPE == "Wave" then
5713
					MSH.Offset = VT(0, 0, -MSH.Scale.X / 8)
5714
				end
5715
				EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME
5716
				if TYPE == "Block" then
5717
					EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
5718
				else
5719
					EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3))
5720
				end
5721
				if MOVEDIRECTION ~= nil then
5722
					local ORI = EFFECT.Orientation
5723
					EFFECT.CFrame = CF(EFFECT.Position, MOVEDIRECTION) * CF(0, 0, -MOVESPEED)
5724
					EFFECT.Orientation = ORI
5725
				end
5726
			end
5727
			if PLAYSSOUND == false then
5728
				EFFECT:remove()
5729
			else
5730
				repeat
5731
					Swait()
5732
				until SOUND.Playing == false
5733
				EFFECT:remove()
5734
			end
5735
		elseif PLAYSSOUND == false then
5736
			EFFECT:remove()
5737
		else
5738
			repeat
5739
				Swait()
5740
			until SOUND.Playing == false
5741
			EFFECT:remove()
5742
		end
5743
	end))
5744
end
5745
function CreateDebreeRing(FLOOR, POSITION, SIZE, BLOCKSIZE, SWAIT)
5746
	if FLOOR ~= nil then
5747
		coroutine.resume(coroutine.create(function()
5748
			local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0, 0, 0))
5749
			PART.CFrame = CF(POSITION)
5750
			for i = 1, 45 do
5751
				local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
5752
				RingPiece.Material = FLOOR.Material
5753
				RingPiece.Color = FLOOR.Color
5754
				RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i * 8), RAD(0)) * CF(SIZE * 4, 0, 0) * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)))
5755
				Debris:AddItem(RingPiece, SWAIT)
5756
			end
5757
			PART:remove()
5758
		end))
5759
	end
5760
end
5761
function CreateFlyingDebree(FLOOR, POSITION, AMOUNT, BLOCKSIZE, SWAIT, STRENGTH)
5762
	if FLOOR ~= nil then
5763
		for i = 1, AMOUNT do
5764
			do
5765
				local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, 0, "Peal", "Debree", BLOCKSIZE, false)
5766
				DEBREE.Material = FLOOR.Material
5767
				DEBREE.Color = FLOOR.Color
5768
				DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)))
5769
				DEBREE.Velocity = VT(MRANDOM(-STRENGTH, STRENGTH), STRENGTH, MRANDOM(-STRENGTH, STRENGTH))
5770
				coroutine.resume(coroutine.create(function()
5771
					Swait(15)
5772
					DEBREE.Parent = workspace
5773
					DEBREE.CanCollide = true
5774
					Debris:AddItem(DEBREE, SWAIT)
5775
				end))
5776
			end
5777
		end
5778
	end
5779
end
5780
5781
function AddChildrenToTable(FROM, PARENT, DIST, TABLE)
5782
	for _, c in pairs(PARENT:GetChildren()) do
5783
		if c.ClassName == "Model" then
5784
			if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then
5785
				local HUMANOID = c:FindFirstChildOfClass("Humanoid")
5786
				local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")
5787
				if DIST > (TORSO.Position - FROM).Magnitude then
5788
					table.insert(TABLE, c)
5789
				end
5790
				AddChildrenToTable(FROM, c, DIST, TABLE)
5791
			elseif c.ClassName == "Folder" then
5792
				AddChildrenToTable(FROM, c, DIST, TABLE)
5793
			end
5794
		end
5795
	end
5796
end
5797
5798
function MakeForm(PART, TYPE)
5799
	if TYPE == "Cyl" then
5800
		local MSH = IT("CylinderMesh", PART)
5801
	elseif TYPE == "Ball" then
5802
		local MSH = IT("SpecialMesh", PART)
5803
		MSH.MeshType = "Sphere"
5804
	elseif TYPE == "Wedge" then
5805
		local MSH = IT("SpecialMesh", PART)
5806
		MSH.MeshType = "Wedge"
5807
	end
5808
end
5809
5810
function FireArc(Part, ToLocation, AmountOfTime, Height, DoesCourontine)
5811
	if DoesCourontine == false then
5812
		local Direction = CF(Part.Position, ToLocation)
5813
		local Distance = (Part.Position - ToLocation).magnitude
5814
		for i = 1, AmountOfTime do
5815
			Swait()
5816
			Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime)
5817
			Direction = Part.CFrame
5818
		end
5819
		Part:remove()
5820
	elseif DoesCourontine == true then
5821
		coroutine.resume(coroutine.create(function()
5822
			local Direction = CF(Part.Position, ToLocation)
5823
			local Distance = (Part.Position - ToLocation).magnitude
5824
			for i = 1, AmountOfTime do
5825
				Swait()
5826
				Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime)
5827
				Direction = Part.CFrame
5828
			end
5829
			Part:remove()
5830
		end))
5831
	end
5832
end
5833
5834
function CheckTableForString(Table, String)
5835
	for i, v in pairs(Table) do
5836
		if string.find(string.lower(String), string.lower(v)) then
5837
			return true
5838
		end
5839
	end
5840
	return false
5841
end
5842
function CheckIntangible(Hit)
5843
	local ProjectileNames = {
5844
		"Water",
5845
		"Arrow",
5846
		"Projectile",
5847
		"Effect",
5848
		"Rail",
5849
		"Lightning",
5850
		"Bullet"
5851
	}
5852
	if Hit and Hit.Parent and (not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid") then
5853
		return true
5854
	end
5855
	return false
5856
end
5857
Debris = game:GetService("Debris")
5858
function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
5859
	local Ignore = type(Ignore) == "table" and Ignore or {Ignore}
5860
	local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Vec * Length), Ignore)
5861
	if RayHit and CheckIntangible(RayHit) then
5862
		if DelayIfHit then
5863
			wait()
5864
		end
5865
		RayHit, RayPos, RayNormal = CastZapRay(RayPos + Vec * 0.01, Vec, Length - (StartPos - RayPos).magnitude, Ignore, DelayIfHit)
5866
	end
5867
	return RayHit, RayPos, RayNormal
5868
end
5869
5870
NewInstance = function(instance,parent,properties)
5871
	local inst = Instance.new(instance,parent)
5872
	if(properties)then
5873
		for i,v in next, properties do
5874
			pcall(function() inst[i] = v end)
5875
		end
5876
	end
5877
	return inst;
5878
end
5879
5880
function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
5881
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
5882
	local mesh = IT("SpecialMesh",wave)
5883
	mesh.MeshType = "Sphere"
5884
	mesh.Scale = SIZE
5885
	mesh.Offset = VT(0,0,0)
5886
	wave.CFrame = CFRAME
5887
	coroutine.resume(coroutine.create(function(PART)
5888
		for i = 1, WAIT do
5889
			Swait()
5890
			mesh.Scale = mesh.Scale + GROW
5891
			wave.Transparency = wave.Transparency + (1/WAIT)
5892
			if wave.Transparency > 0.99 then
5893
				wave:remove()
5894
			end
5895
		end
5896
	end))
5897
end
5898
5899
function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
5900
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
5901
	local mesh = IT("SpecialMesh",wave)
5902
	mesh.MeshType = "FileMesh"
5903
	mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
5904
	mesh.Scale = SIZE
5905
	mesh.Offset = VT(0,0,0)
5906
	wave.CFrame = CFRAME
5907
	coroutine.resume(coroutine.create(function(PART)
5908
		for i = 1, WAIT do
5909
			Swait()
5910
			mesh.Scale = mesh.Scale + GROW
5911
			if DOESROT == true then
5912
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
5913
			end
5914
			wave.Transparency = wave.Transparency + (0.5/WAIT)
5915
			if wave.Transparency > 0.99 then
5916
				wave:remove()
5917
			end
5918
		end
5919
	end))
5920
end
5921
5922
function CreateRing2(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
5923
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
5924
	local mesh = IT("SpecialMesh",wave)
5925
	mesh.MeshType = "FileMesh"
5926
	mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
5927
	mesh.Scale = SIZE
5928
	mesh.Offset = VT(0,0,0)
5929
	wave.CFrame = CFRAME
5930
	coroutine.resume(coroutine.create(function(PART)
5931
		for i = 1, WAIT do
5932
			Swait()
5933
			mesh.Scale = mesh.Scale + GROW
5934
			if DOESROT == true then
5935
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
5936
			end
5937
			wave.Transparency = wave.Transparency + (0.5/WAIT)
5938
			if wave.Transparency > 0.99 then
5939
				wave:remove()
5940
			end
5941
		end
5942
	end))
5943
end
5944
5945
function MagicSphere3(SIZE,WAIT,CFRAME,COLOR,GROW)
5946
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
5947
	local mesh = IT("SpecialMesh",wave)
5948
	mesh.MeshType = "Sphere"
5949
	mesh.Scale = SIZE
5950
	mesh.Offset = VT(0,0,0)
5951
	wave.CFrame = CFRAME
5952
	coroutine.resume(coroutine.create(function(PART)
5953
		for i = 1, WAIT do
5954
			Swait()
5955
			mesh.Scale = mesh.Scale + GROW
5956
			wave.Transparency = wave.Transparency + (1/WAIT)
5957
			if wave.Transparency > 0.99 then
5958
				wave:remove()
5959
			end
5960
		end
5961
	end))
5962
end
5963
5964
function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
5965
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, "Navy blue", "Effect", VT(0,0,0))
5966
	local mesh = IT("SpecialMesh",wave)
5967
	mesh.MeshType = "FileMesh"
5968
	mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
5969
	mesh.Scale = SIZE
5970
	mesh.Offset = VT(0,0,-SIZE.X/8)
5971
	wave.CFrame = CFRAME
5972
	coroutine.resume(coroutine.create(function(PART)
5973
		for i = 1, WAIT do
5974
			Swait()
5975
			mesh.Scale = mesh.Scale + GROW
5976
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
5977
			if DOESROT == true then
5978
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
5979
			end
5980
			wave.Transparency = wave.Transparency + (0.5/WAIT)
5981
			if wave.Transparency > 0.99 then
5982
				wave:remove()
5983
			end
5984
		end
5985
	end))
5986
end
5987
5988
function CreateWave2(inair,size,doesrotate,rotatedirection,waitt,part,offset)
5989
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, "Bright blue", "Effect", VT(0,0,0))
5990
	local mesh = IT("SpecialMesh",wave)
5991
	mesh.MeshType = "FileMesh"
5992
	mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
5993
	mesh.Scale = VT(size,size,size)
5994
	mesh.Offset = VT(0,0,-size/8)
5995
	wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
5996
	coroutine.resume(coroutine.create(function(PART)
5997
		for i = 1, waitt do
5998
			Swait()
5999
			mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
6000
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
6001
			if doesrotate == true then
6002
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
6003
			end
6004
			wave.Transparency = wave.Transparency + (0.5/waitt)
6005
			if wave.Transparency > 0.99 then
6006
				wave:remove()
6007
			end
6008
		end
6009
	end))
6010
end
6011
6012
function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
6013
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, "Navy blue", "Effect", VT(0,0,0))
6014
	local mesh = IT("SpecialMesh",wave)
6015
	mesh.MeshType = "FileMesh"
6016
	mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
6017
	mesh.Scale = SIZE
6018
	wave.CFrame = CFRAME
6019
	coroutine.resume(coroutine.create(function(PART)
6020
		for i = 1, WAIT do
6021
			Swait()
6022
			mesh.Scale = mesh.Scale + GROW
6023
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
6024
			if DOESROT == true then
6025
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
6026
			end
6027
			wave.Transparency = wave.Transparency + (0.5/WAIT)
6028
			if wave.Transparency > 0.99 then
6029
				wave:remove()
6030
			end
6031
		end
6032
	end))
6033
end
6034
6035
function Imperfect_Command()
6036
	ATTACK = true
6037
	Rooted = true
6038
	if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
6039
		local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
6040
		local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
6041
		if TORSO then
6042
			local GYRO = IT("BodyGyro", RootPart)
6043
			GYRO.D = 750
6044
			GYRO.P = 2000
6045
			GYRO.MaxTorque = VT(0, 40000, 0)
6046
			CreateSound("907330103", Torso, 10, 1)
6047
			for i = 0, 1.6, 0.1 / Animation_Speed do
6048
				Swait()
6049
				WACKYEFFECT({
6050
					Time = 5,
6051
					EffectType = "Round Slash",
6052
					Size = VT(0, 0, 0),
6053
					Size2 = VT(0.01, 0, 0.01),
6054
					Transparency = 0.5,
6055
					Transparency2 = 1,
6056
					CFrame = CF(EYE.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
6057
					MoveToPos = nil,
6058
					RotationX = MRANDOM(-50, 50) / 10,
6059
					RotationY = MRANDOM(-50, 50) / 10,
6060
					RotationZ = MRANDOM(-50, 50) / 10,
6061
					Material = "Neon",
6062
					Color = C3(1, 0, 0),
6063
					SoundID = nil,
6064
					SoundPitch = nil,
6065
					SoundVolume = nil
6066
				})
6067
				GYRO.cframe = CF(RootPart.Position, TORSO.Position)
6068
				RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.2 / Animation_Speed)
6069
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.2 / Animation_Speed)
6070
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(120), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-45)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
6071
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
6072
				if ANIM == "Idle" then
6073
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
6074
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
6075
				elseif ANIM == "Walk" then
6076
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
6077
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
6078
				elseif ANIM == "Jump" or ANIM == "Fall" then
6079
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
6080
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
6081
				end
6082
			end
6083
			GYRO:remove()
6084
			for i = 1, 15 do
6085
				WACKYEFFECT({
6086
					Time = MRANDOM(15, 85),
6087
					EffectType = "Round Slash",
6088
					Size = VT(0, 0, 0),
6089
					Size2 = VT(0.3, 0, 0.3),
6090
					Transparency = 0.5,
6091
					Transparency2 = 1,
6092
					CFrame = CF(TORSO.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
6093
					MoveToPos = nil,
6094
					RotationX = MRANDOM(-50, 50) / 10,
6095
					RotationY = MRANDOM(-50, 50) / 10,
6096
					RotationZ = MRANDOM(-50, 50) / 10,
6097
					Material = "Neon",
6098
					Color = C3(1, 0, 0),
6099
					SoundID = nil,
6100
					SoundPitch = nil,
6101
					SoundVolume = nil
6102
				})
6103
			end
6104
			local bv = Instance.new("BodyVelocity")
6105
			bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
6106
			bv.velocity = CF(Torso.Position, TORSO.Position).lookVector * 5
6107
			bv.Parent = TORSO
6108-
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Effect", VT(0,0,0))
6108+
6109
			CreateSound("1222405264", TORSO, 10, 1)
6110
			Petrify(HUM.Parent)
6111
			for i = 0, 0.5, 0.1 / Animation_Speed do
6112
				Swait()
6113
				WACKYEFFECT({
6114
					Time = 5,
6115
					EffectType = "Round Slash",
6116
					Size = VT(0, 0, 0),
6117
					Size2 = VT(0.01, 0, 0.01),
6118
					Transparency = 0.5,
6119
					Transparency2 = 1,
6120
					CFrame = CF(EYE.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
6121
					MoveToPos = nil,
6122
					RotationX = MRANDOM(-50, 50) / 10,
6123
					RotationY = MRANDOM(-50, 50) / 10,
6124
					RotationZ = MRANDOM(-50, 50) / 10,
6125
					Material = "Neon",
6126
					Color = C3(1, 0, 0),
6127
					SoundID = nil,
6128
					SoundPitch = nil,
6129
					SoundVolume = nil
6130
				})
6131
				GYRO.cframe = CF(RootPart.Position, TORSO.Position)
6132-
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, "Bright orange", "Effect", VT(0,0,0))
6132+
6133
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 2 / Animation_Speed)
6134
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 22), 0) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
6135
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
6136
				if ANIM == "Idle" then
6137
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
6138
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
6139
				elseif ANIM == "Walk" then
6140
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
6141
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
6142
				elseif ANIM == "Jump" or ANIM == "Fall" then
6143
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
6144
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
6145
				end
6146
			end
6147
		end
6148
	end
6149
	ATTACK = false
6150
	Rooted = false
6151
end
6152
6153
function Rainbow()
6154
	local HITFLOOR,HITPOS = Raycast(RootPart.CFrame*CF(0,0,-6.5).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
6155
	CHOICE = 6
6156-
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Effect", VT(0,0,0))
6156+
6157
	chatfunc("RainBow made me fly.")
6158
	for i = 0, 12, .1 do
6159
		swait(0.35)
6160
	end
6161
	
6162
	chatfunc("Its time to  p e r i s h.")
6163
	for i = 0, 16, .1 do
6164
end
6165
swait(0.15)
6166
	CreateRing2(VT(0,0,0),false,0,45,RootPart.CFrame*ANGLES(RAD(90),RAD(0),RAD(0)),"Maroon",VT(1000,1000,1000))
6167
	CreateRing2(VT(0,0,0),false,0,45,RootPart.CFrame*ANGLES(RAD(90),RAD(0),RAD(0)),"Maroon",VT(75,75,75))
6168
	MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Maroon",VT(25,25,25))
6169
	MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Maroon",VT(25,25,25))
6170
	CreateSound("1368605755", Effects, 10, 1)
6171
	CreateSound("265201042", Effects, 10, 0.5)
6172
6173
back = CreateSound(1192655599, Character, 9999, 1, true)
6174
DemonForm = true
6175
local sillsky = Instance.new('Sky', game:GetService'Lighting')
6176
sillsky.SkyboxBk = "rbxassetid://157712259"
6177
sillsky.SkyboxDn = "rbxassetid://157712247"
6178
sillsky.SkyboxFt = "rbxassetid://157712266"
6179
sillsky.SkyboxLf = "rbxassetid://157712240"
6180
sillsky.SkyboxRt = "rbxassetid://157712254"
6181
sillsky.SkyboxUp = "rbxassetid://157712276"
6182
sillsky.StarCount = 0
6183
sillsky.SunAngularSize = 0
6184
sillsky.MoonAngularSize = 0
6185
sillsky.MoonTextureId = ""
6186
sillsky.CelestialBodiesShown = false
6187
game.Lighting.FogColor = Color3.new(1,0,0)
6188
game.Lighting.FogEnd = 1400
6189
end
6190
6191
function Needle()
6192
	ATTACK = true
6193
	Rooted = true
6194
	local GYRO = IT("BodyGyro",RootPart)
6195
	GYRO.D = 2
6196
	GYRO.P = 2000
6197
	GYRO.MaxTorque = VT(0,4000000,0)
6198
	local NEEDGYRO = true
6199
	coroutine.resume(coroutine.create(function()
6200
		repeat
6201
			Swait()
6202
			GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
6203
		until NEEDGYRO == false
6204
		GYRO:Remove()
6205
	end))
6206
	for i=0, 0.3, 0.1 / Animation_Speed do
6207
		Swait()
6208
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
6209
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
6210
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
6211
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
6212
		RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
6213
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, 0) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
6214
	end
6215
	for i=0, 1, 0.1 / Animation_Speed do
6216
		Swait()
6217
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
6218
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(15), RAD(-45)), 1 / Animation_Speed)
6219
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
6220
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
6221
		RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
6222
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, 0) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
6223
	end
6224
	local HIT,POS = CastProperRay(RightArm.CFrame*CF(0,-1,0).p,Mouse.Hit.p,300,Character)
6225
	WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(5,1,5), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 90655239, SoundPitch = 1, SoundVolume = 2})
6226
	NEEDGYRO = false
6227
	if HIT then
6228
		local NEEDLE = IT("Model",Effects)
6229
		local BASE = CreatePart(3, NEEDLE, "Glass", 0, 0.5, "Pearl", "Part", VT(0.3,0.6,0.3), false)
6230
		MakeForm(BASE,"Cyl")
6231
		BASE.CFrame = CF(POS,RightArm.CFrame*CF(0,-1,0).p) * ANGLES(RAD(90), RAD(0), RAD(0))*CF(0,-0.35,0)
6232
		weldBetween(BASE,HIT)
6233
		local FLUID = CreatePart(3, NEEDLE, "Neon", 0, 0, "Lime green", "Part", VT(0.28,0.58,0.28), false)
6234
		MakeForm(FLUID,"Cyl")
6235
		FLUID.CFrame = BASE.CFrame
6236
		weldBetween(BASE,FLUID)
6237
		local PART = CreatePart(3, NEEDLE, "Metal", 0, 0, "Pearl", "Part", VT(0,0.2,0), false)
6238
		PART.CFrame = BASE.CFrame*CF(0,0.4,0)
6239
		weldBetween(BASE,PART)
6240
		local PART = CreatePart(3, NEEDLE, "Metal", 0, 0, "Pearl", "Part", VT(0.1,0.1,0.1), false)
6241
		PART.CFrame = BASE.CFrame*CF(0,-0.35,0)
6242
		weldBetween(BASE,PART)
6243
		local PART = CreatePart(3, NEEDLE, "Metal", 0, 0, "Pearl", "Part", VT(0.2,0.1,0.2), false)
6244
		PART.CFrame = BASE.CFrame*CF(0,-0.4,0)
6245
		weldBetween(BASE,PART)
6246
		Debris:AddItem(NEEDLE,7)
6247
		if HIT.Parent:FindFirstChildOfClass("Humanoid") then
6248
			local HUMAN = HIT.Parent:FindFirstChildOfClass("Humanoid")
6249
			coroutine.resume(coroutine.create(function()
6250
				for i = 1, 500 do
6251
					HUMAN.Health = HUMAN.Health - MRANDOM(1,6)/5
6252
					if HUMAN.Health == 0 then
6253
						break
6254
					end
6255
					Swait(2)
6256
				end
6257
				if HUMAN.Health == 0 then
6258
					local CHILD = HUMAN.Parent
6259
					if CHILD:FindFirstChild("Torso") then
6260
						CHILD:FindFirstChild("Torso").CFrame = CHILD:FindFirstChild("Torso").CFrame * ANGLES(RAD(2), RAD(0), RAD(0))
6261
						Ragdoll(CHILD,Torso,true)
6262
					elseif CHILD:FindFirstChild("UpperTorso") then
6263
						R15Ragdoll(CHILD,true)
6264
					end
6265
				end
6266
			end))
6267
		end
6268
	end
6269
	for i=0, 1, 0.1 / Animation_Speed do
6270
		Swait()
6271
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
6272
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(15), RAD(-45)), 1 / Animation_Speed)
6273
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
6274
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
6275
		RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
6276
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, 0) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
6277
	end
6278
	ATTACK = false
6279
	Rooted = false
6280
end
6281
function R15Ragdoll(character,KeepArms)
6282
	character:BreakJoints()
6283
	coroutine.resume(coroutine.create(function()
6284
		recurse(character, function(_,v)
6285
			if v:IsA("Attachment") then
6286
				v.Axis = Vector3.new(0, 1, 0)
6287
				v.SecondaryAxis = Vector3.new(0, 0, 1)
6288
				v.Rotation = Vector3.new(0, 0, 0)
6289
			end
6290
		end)
6291
		for _,child in next,character:GetChildren() do
6292
			if child:IsA("Accoutrement") then
6293
				for _,part in next,child:GetChildren() do
6294
					if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
6295
						local attachment1 = part:FindFirstChildOfClass("Attachment")
6296
						local attachment0 = getAttachment0(character,attachment1.Name)
6297
						if attachment0 and attachment1 then
6298
							local constraint = Instance.new("HingeConstraint")
6299
							constraint.Attachment0 = attachment0
6300
							constraint.Attachment1 = attachment1
6301
							constraint.LimitsEnabled = true
6302
							constraint.UpperAngle = 0
6303
							constraint.LowerAngle = 0
6304
							constraint.Parent = character
6305
						end
6306
						ArtificialHitbox(part)
6307
					elseif part.Name == "HumanoidRootPart" then
6308
						part:remove()
6309
					end
6310
				end
6311
			end
6312
		end
6313
		
6314
		ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
6315
			{"LimitsEnabled",true};
6316
			{"UpperAngle",5};
6317
		})
6318
		if character:FindFirstChild("Head") then
6319
			ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
6320
				{"LimitsEnabled",true};
6321
				{"UpperAngle",15};
6322
			})
6323
		end
6324
		
6325
		local handProperties = {
6326
			{"LimitsEnabled", true};
6327
			{"UpperAngle",0};
6328
			{"LowerAngle",0};
6329
		}
6330
		ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
6331
		ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
6332
		
6333
		local shinProperties = {
6334
			{"LimitsEnabled", true};
6335
			{"UpperAngle", 0};
6336
			{"LowerAngle", -75};
6337
		}
6338
		ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
6339
		ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
6340
		
6341
		local footProperties = {
6342
			{"LimitsEnabled", true};
6343
			{"UpperAngle", 15};
6344
			{"LowerAngle", -45};
6345
		}
6346
		ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
6347
		ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
6348
		if KeepArms == true then
6349
			ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
6350
			ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
6351
			ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
6352
			ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
6353
		end
6354
		ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
6355
		ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
6356
		Debris:AddItem(character,5)
6357
	end))
6358
end
6359
function ragdollJoint(character, part0, part1, attachmentName, className, properties)
6360
	attachmentName = attachmentName.."RigAttachment"
6361
	local constraint = Instance.new(className.."Constraint")
6362
	constraint.Attachment0 = part0:FindFirstChild(attachmentName)
6363
	constraint.Attachment1 = part1:FindFirstChild(attachmentName)
6364
	constraint.Name = "RagdollConstraint"..part1.Name
6365
	
6366
	for _,propertyData in next,properties or {} do
6367
		constraint[propertyData[1]] = propertyData[2]
6368
	end
6369
	
6370
	constraint.Parent = character
6371
end
6372
function ArtificialHitbox(Part)
6373
	local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false)
6374
	HITBOX.CanCollide = true
6375
	HITBOX.CFrame = Part.CFrame
6376
	weldBetween(Part,HITBOX)
6377
end
6378
function getAttachment0(character, attachmentName)
6379
	for _,child in next,character:GetChildren() do
6380
		local attachment = child:FindFirstChild(attachmentName)
6381
		if attachment then
6382
			return attachment
6383
		end
6384
	end
6385
end
6386
function Mercy()
6387
	ATTACK = true
6388
	Rooted = true
6389
	local SPOTS = {}
6390
		for i = 1, 15 do
6391
			Swait()
6392
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
6393
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-25 - 2.5 * SIN(SINE / 12))), 0.1 / Animation_Speed)
6394
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed)
6395
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
6396
		end
6397
		WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(15,15,15), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.6, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Maroon".Color, SoundID = nil, SoundPitch = 1, SoundVolume = 7})
6398
		for i=0, 0.5, 0.1 / Animation_Speed do
6399
			Swait()
6400
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(65 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
6401
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-65 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
6402
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
6403
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
6404
		end
6405
		local HITFLOOR,HITPOS = Raycast(Mouse.Hit.p+VT(0,1,0), (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 150, Character)
6406
		table.insert(SPOTS,HITPOS)
6407
		CreateSound(145080998, Hole, 2, 1, false)
6408
		Lightning({Material = "Neon", FadeIn = false, Color = C3(1,0,0), Start = Hole.CFrame*CF(0, 1, 0.045).p, End = Hole.CFrame*CF(0, 1000, 0.045).p, SegmentL = 1, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 400, Branches = false, FadeTime = 22, Thicken = false})
6409
	coroutine.resume(coroutine.create(function()
6410
		local POS = Mouse.Hit.p
6411
		local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,0,0))
6412
		MakeForm(RAY,"Cyl")
6413
		local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,0,0))
6414
		MakeForm(SPHERE,"Ball")
6415
		local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Strike", VT(0,0,0))
6416
		MakeForm(SHIELD,"Ball")
6417
		SHIELD.CFrame = CF(POS)
6418
		RAY.CFrame = CF(POS)
6419
		SPHERE.CFrame = CF(POS)
6420
		CreateSound(440145570, SPHERE, 10, 0.8, false)
6421
		CreateSound(415700134, SPHERE, 10, 0.8, false)
6422
		for i = 1, 200 do
6423
			Swait()
6424
			WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
6425
						WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hole.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Glass", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
6426
						WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*2,5+(i),SPHERE.Size.X*2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Glass", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
6427
			RAY.Size = RAY.Size + VT(0.05,0,0.05)
6428
			SPHERE.Size = SPHERE.Size + VT(3,3,3)
6429
			SHIELD.Size = SPHERE.Size + VT(4,4,4)
6430
			ApplyKill(SPHERE.Position,SPHERE.Size.X/2,true)
6431
		end	
6432
		for i = 1, 45 do
6433
			Swait()
6434
			RAY.Transparency = RAY.Transparency + 1/45
6435
			SPHERE.Transparency = RAY.Transparency 
6436
			SHIELD.Transparency = SPHERE.Transparency + 1/45
6437
		end
6438
		RAY:remove()
6439
		SHIELD:remove()
6440
		SPHERE:remove()
6441
	end))
6442
	ATTACK = false
6443
	Rooted = false
6444
end
6445
--//=================================\\
6446
--||	  ASSIGN THINGS TO KEYS
6447
--\\=================================//
6448
6449
function MouseDown(Mouse)
6450
	HOLD = true
6451
	if ATTACK == false then
6452
	end
6453
end
6454
6455
function MouseUp(Mouse)
6456
HOLD = false
6457
end
6458
6459
function KeyDown(Key)
6460
	KEYHOLD = true
6461
	if Key == "z" and ATTACK == false then
6462
		Shot()
6463
	end
6464
	
6465
	if Key == "y" and ATTACK == false then
6466
		Rainbow()
6467
	end
6468
6469
	if Key == "v" and ATTACK == false then
6470
		Execute()
6471
	end
6472
	
6473
	if Key == "l" and ATTACK == false then
6474
		Imperfect_Command()
6475
	end
6476
	
6477
	if Key == "k" and ATTACK == false then
6478
		Perfect_Command()
6479
	end
6480
6481
	if Key == "c" and ATTACK == false then
6482
		Bullet()
6483
	end
6484
	
6485
	if Key == "n" and ATTACK == false then
6486
		
6487
	end
6488
	
6489
	if Key == "u" and ATTACK == false then
6490
		Needle()
6491
	end
6492
6493
	if Key == "r" and ATTACK == false then
6494
		CyberSmash()
6495
	end
6496
6497
6498
	if Key == "x" and ATTACK == false then
6499
		Deathbound()
6500
	end
6501
	
6502
	if Key == "g" and ATTACK == false then
6503
		Jupiter()
6504
		wait(1)
6505
	  WarpMeteor()
6506
	end
6507
	
6508
	if Key == "b" and ATTACK == false then
6509
		Lift()
6510
	end
6511
	
6512
	if Key == "]" and ATTACK == false then
6513
			if POWERLEVEL < 5 then
6514
				Boost()
6515
			end
6516
		end
6517
	
6518
	if Key == "h" and ATTACK == false then
6519
		Mercy()
6520
	end
6521
	
6522
	if Key == "j" and ATTACK == false then
6523
		TimeStop ()
6524
	end
6525
	
6526
	if Key == "t" and ATTACK == false then
6527
		HI()
6528
	end
6529
	
6530
	if Key == "e" and ATTACK == false then
6531
		Morning_Star()
6532
	end
6533
	
6534
	if Key == "f" and ATTACK == false then
6535
		Prison_Key()
6536
	end
6537
	
6538
	if Key == "q" and ATTACK == false then
6539
		MagicMissiles()
6540
	end
6541
	
6542
	 if Key == "p" and ATTACK == false then
6543
         
6544
        end
6545
end
6546
function KeyUp(Key)
6547
	KEYHOLD = false
6548
end
6549
6550
	Mouse.Button1Down:connect(function(NEWKEY)
6551
		MouseDown(NEWKEY)
6552
	end)
6553
	Mouse.Button1Up:connect(function(NEWKEY)
6554
		MouseUp(NEWKEY)
6555
	end)
6556
	Mouse.KeyDown:connect(function(NEWKEY)
6557
		KeyDown(NEWKEY)
6558
	end)
6559
	Mouse.KeyUp:connect(function(NEWKEY)
6560
		KeyUp(NEWKEY)
6561
	end)
6562
6563
--//=================================\\
6564
--\\=================================//
6565
6566
6567
function unanchor()
6568
	if UNANCHOR == true then
6569
		g = Character:GetChildren()
6570
		for i = 1, #g do
6571
			if g[i].ClassName == "Part" then
6572
				g[i].Anchored = false
6573
			end
6574
		end
6575
	end
6576
end
6577
6578
6579
6580
--//=================================\\
6581
--||	WRAP THE WHOLE SCRIPT UP
6582
--\\=================================//
6583
6584
Humanoid.Changed:connect(function(Jump)
6585
	if Jump == "Jump" and (Disable_Jump == true) then
6586
		Humanoid.Jump = false
6587
	end
6588
end)
6589
6590
local CONNECT = nil
6591
6592
while true do
6593
	Swait()
6594
	ANIMATE.Parent = nil
6595
	if Character:FindFirstChildOfClass("Humanoid") == nil then
6596
		Humanoid = IT("Humanoid",Character)
6597
	end
6598
	for _,v in next, Humanoid:GetPlayingAnimationTracks() do
6599
	    v:Stop();
6600
	end
6601
	SINE = SINE + CHANGE
6602
	Humanoid.HipHeight = 1.5
6603
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
6604
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
6605
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
6606
	local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
6607
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
6608
		elseif TORSOVELOCITY > 1 then
6609
                 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed*3)
6610
                Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
6611
                RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
6612
                LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
6613
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
6614
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
6615
	end
6616
	if TORSOVERTICALVELOCITY > 1 then
6617
		ANIM = "Jump"
6618
		if ATTACK == false then
6619
               RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
6620
                Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
6621
                RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
6622
                LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
6623
                RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
6624
                LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
6625
	    end
6626
	elseif TORSOVERTICALVELOCITY < -1 then
6627
		ANIM = "Fall"
6628
		if ATTACK == false then
6629
                RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
6630
                Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
6631
                RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
6632
                LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
6633
                RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
6634
                LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
6635
		end
6636
	elseif TORSOVELOCITY < 1 then
6637
		ANIM = "Idle"
6638
		if ATTACK == false then
6639
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
6640
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
6641
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
6642
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
6643
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
6644
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
6645
		end
6646
	elseif TORSOVELOCITY > 1 then
6647
		ANIM = "Walk"
6648
		if ATTACK == false then
6649
                  RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed*3)
6650
                Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
6651
                RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
6652
                LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
6653
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
6654
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
6655
		end
6656
	end
6657
	unanchor()
6658
	Humanoid.MaxHealth = "inf"
6659
	Humanoid.Health = "inf"
6660
	if Rooted == false then
6661
		Disable_Jump = false
6662
		Humanoid.WalkSpeed = Speed
6663
	elseif Rooted == true then
6664
		Disable_Jump = true
6665
		Humanoid.WalkSpeed = 0
6666
	end
6667
	sick.Parent = Torso
6668
	sick:resume()
6669
	sick.Volume = 5
6670
	sick.Pitch = 1
6671
	sick.SoundId = "rbxassetid://722553316"
6672
	sick.Name = "Darkness"
6673
end
6674
6675
--//=================================\\
6676
--\\=================================//
6677
6678
6679
6680
6681
6682
--//====================================================\\--
6683
--||			  		 END OF SCRIPT
6684
--\\====================================================//--