View difference between Paste ID: 7cfwvjKi and rg4G9tLw
SHOW: | | - or go back to the newest paste.
1
-- This script has been converted to FE by iPxter
2
3
4
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
5
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
6
do
7
	print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
8
	script.Parent = Player.Character
9
10
	--RemoteEvent for communicating
11
	local Event = Instance.new("RemoteEvent")
12
	Event.Name = "UserInput_Event"
13
14
	--Fake event to make stuff like Mouse.KeyDown work
15
	local function fakeEvent()
16
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
17
		t.connect = t.Connect
18
		return t
19
	end
20
21
	--Creating fake input objects with fake variables
22
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
23
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
24
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
25
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
26
	end}
27
	--Merged 2 functions into one by checking amount of arguments
28
	CAS.UnbindAction = CAS.BindAction
29
30
	--This function will trigger the events that have been :Connect()'ed
31
	local function te(self,ev,...)
32
		local t = m[ev]
33
		if t and t._fakeEvent and t.Function then
34
			t.Function(...)
35
		end
36
	end
37
	m.TrigEvent = te
38
	UIS.TrigEvent = te
39
40
	Event.OnServerEvent:Connect(function(plr,io)
41
	    if plr~=Player then return end
42
		if io.isMouse then
43
			m.Target = io.Target
44
			m.Hit = io.Hit
45
		else
46
			local b = io.UserInputState == Enum.UserInputState.Begin
47
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
			end
50
			for _,t in pairs(CAS.Actions) do
51
				for _,k in pairs(t.Keys) do
52
					if k==io.KeyCode then
53
						t.Function(t.Name,io.UserInputState,io)
54
					end
55
				end
56
			end
57
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
	    end
60
	end)
61
	Event.Parent = NLS([==[
62
	local Player = owner
63
	local Event = script:WaitForChild("UserInput_Event")
64
65
	local UIS = game:GetService("UserInputService")
66
	local input = function(io,a)
67
		if a then return end
68
		--Since InputObject is a client-side instance, we create and pass table instead
69
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
70
	end
71
	UIS.InputBegan:Connect(input)
72
	UIS.InputEnded:Connect(input)
73
74
	local Mouse = Player:GetMouse()
75
	local h,t
76
	--Give the server mouse data 30 times every second, but only if the values changed
77
	--If player is not moving their mouse, client won't fire events
78
	while wait(1/30) do
79
		if h~=Mouse.Hit or t~=Mouse.Target then
80
			h,t=Mouse.Hit,Mouse.Target
81
			Event:FireServer({isMouse=true,Target=t,Hit=h})
82
		end
83
	end]==],Player.Character)
84
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
85
end
86
87
88
89
--Converted with ttyyuu12345's model to script plugin v4
90
function sandbox(var,func)
91
	local env = getfenv(func)
92
	local newenv = setmetatable({},{
93
		__index = function(self,k)
94
			if k=="script" then
95
				return var
96
			else
97
				return env[k]
98
			end
99
		end,
100
	})
101
	setfenv(func,newenv)
102
	return func
103
end
104
cors = {}
105
mas = Instance.new("Model",game:GetService("Lighting"))
106
LocalScript0 = Instance.new("LocalScript")
107
ParticleEmitter1 = Instance.new("ParticleEmitter")
108
ParticleEmitter2 = Instance.new("ParticleEmitter")
109
BillboardGui3 = Instance.new("BillboardGui")
110
TextLabel4 = Instance.new("TextLabel")
111
TextLabel5 = Instance.new("TextLabel")
112
ParticleEmitter6 = Instance.new("ParticleEmitter")
113
LocalScript7 = Instance.new("LocalScript")
114
NumberValue8 = Instance.new("NumberValue")
115
NumberValue9 = Instance.new("NumberValue")
116
BoolValue10 = Instance.new("BoolValue")
117
ParticleEmitter11 = Instance.new("ParticleEmitter")
118
ParticleEmitter12 = Instance.new("ParticleEmitter")
119
ParticleEmitter13 = Instance.new("ParticleEmitter")
120
ParticleEmitter14 = Instance.new("ParticleEmitter")
121
ParticleEmitter15 = Instance.new("ParticleEmitter")
122
ParticleEmitter16 = Instance.new("ParticleEmitter")
123
ParticleEmitter17 = Instance.new("ParticleEmitter")
124
ParticleEmitter18 = Instance.new("ParticleEmitter")
125
ParticleEmitter19 = Instance.new("ParticleEmitter")
126
ParticleEmitter20 = Instance.new("ParticleEmitter")
127
Part21 = Instance.new("Part")
128
SpecialMesh22 = Instance.new("SpecialMesh")
129
Folder23 = Instance.new("Folder")
130
CharacterMesh24 = Instance.new("CharacterMesh")
131
CharacterMesh25 = Instance.new("CharacterMesh")
132
CharacterMesh26 = Instance.new("CharacterMesh")
133
CharacterMesh27 = Instance.new("CharacterMesh")
134
CharacterMesh28 = Instance.new("CharacterMesh")
135
Part29 = Instance.new("Part")
136
SpecialMesh30 = Instance.new("SpecialMesh")
137
LocalScript0.Name = "SearingEmperor"
138
LocalScript0.Parent = mas
139
table.insert(cors,sandbox(LocalScript0,function()
140
--//====================================================\\--
141
--||			   CREATED BY SHACKLUSTER
142
--\\====================================================//--
143
144
wait(1)
145
146
Player = owner
147
PlayerGui = Player.PlayerGui
148
Cam = workspace.CurrentCamera
149
Backpack = Player.Backpack
150
repeat wait() until Player.Character
151
Character = Player.Character
152
repeat wait() until Player.Character:FindFirstChildOfClass("Humanoid")
153
Humanoid = Character:FindFirstChildOfClass("Humanoid")
154
RootPart = Character["HumanoidRootPart"]
155
Torso = Character["Torso"]
156
Head = Character["Head"]
157
RightArm = Character["Right Arm"]
158
LeftArm = Character["Left Arm"]
159
RightLeg = Character["Right Leg"]
160
LeftLeg = Character["Left Leg"]
161
RootJoint = RootPart["RootJoint"]
162
Neck = Torso["Neck"]
163
RightShoulder = Torso["Right Shoulder"]
164
LeftShoulder = Torso["Left Shoulder"]
165
RightHip = Torso["Right Hip"]
166
LeftHip = Torso["Left Hip"]
167
168
IT = Instance.new
169
CF = CFrame.new
170
VT = Vector3.new
171
RAD = math.rad
172
C3 = Color3.new
173
UD2 = UDim2.new
174
BRICKC = BrickColor.new
175
ANGLES = CFrame.Angles
176
EULER = CFrame.fromEulerAnglesXYZ
177
COS = math.cos
178
ACOS = math.acos
179
SIN = math.sin
180
ASIN = math.asin
181
ABS = math.abs
182
MRANDOM = math.random
183
FLOOR = math.floor
184
185
--//=================================\\
186
--|| 	      USEFUL VALUES
187
--\\=================================//
188
189
Animation_Speed = 3
190
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
191
local Speed = 16
192
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
193
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
194
local RIGHTSHOULDERC0 = CF(-0.5, -0.25, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
195
local LEFTSHOULDERC0 = CF(0.5, -0.25, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
196
local DAMAGEMULTIPLIER = 1
197
local ANIM = "Idle"
198
local ATTACK = false
199
local EQUIPPED = false
200
local HOLD = false
201
local COMBO = 1
202
local Rooted = false
203
local SINE = 0
204
local KEYHOLD = false
205
local CHANGE = 2 / Animation_Speed
206
local WALKINGANIM = false
207
local VALUE1 = false
208
local VALUE2 = false
209
local ROBLOXIDLEANIMATION = IT("Animation")
210
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
211
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
212
--ROBLOXIDLEANIMATION.Parent = Humanoid
213
local WEAPONGUI = IT("ScreenGui", PlayerGui)
214
WEAPONGUI.Name = "Weapon GUI"
215
local Effects = IT("Folder", Character)
216
Effects.Name = "Effects"
217
local SpecialEffects = IT("Folder", Character)
218
SpecialEffects.Name = "SpecialEffects"
219
local ANIMATOR = Humanoid.Animator
220
local ANIMATE = Character.Animate
221
local UNANCHOR = true
222
local REGENRATE = 1
223
local FULLREGEN = false
224
local POSEIDON = false
225
local EXPLOSIONSMALLSOUND = 439342426
226
local EXPLOSIONMEDIUMSOUND = 605005842
227
local EXPLOSIONLARGESOUND = 565538688
228
local CHARGE = 278641993
229
local POSEIDONSOUND = 374289727
230
local FIREBALLSOUND = 414517770
231
local BURNSOUND = 565777213
232
local FIREFIELD = false
233
local SEARING = false
234
local BODYPOS = nil
235
local GYRO = nil
236
local DIRECTTURN = false
237
local APPLYGYRO = true
238
local SONGS = {1, 2, 3, 4, 5, 6}
239
local CHOSENSONG = MRANDOM(1,#SONGS)
240
241
--//=================================\\
242
--\\=================================//
243
244
245
--//=================================\\
246
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
247
--\\=================================//
248
249
ArtificialHB = Instance.new("BindableEvent", script)
250
ArtificialHB.Name = "ArtificialHB"
251
252
script:WaitForChild("ArtificialHB")
253
254
frame = Frame_Speed
255
tf = 0
256
allowframeloss = false
257
tossremainder = false
258
lastframe = tick()
259
script.ArtificialHB:Fire()
260
261
game:GetService("RunService").Heartbeat:connect(function(s, p)
262
	tf = tf + s
263
	if tf >= frame then
264
		if allowframeloss then
265
			script.ArtificialHB:Fire()
266
			lastframe = tick()
267
		else
268
			for i = 1, math.floor(tf / frame) do
269
				script.ArtificialHB:Fire()
270
			end
271
		lastframe = tick()
272
		end
273
		if tossremainder then
274
			tf = 0
275
		else
276
			tf = tf - frame * math.floor(tf / frame)
277
		end
278
	end
279
end)
280
281
--//=================================\\
282
--\\=================================//
283
284
--//=================================\\
285
--|| 	      SOME FUNCTIONS
286
--\\=================================//
287
288
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
289
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
290
end
291
292
function PositiveAngle(NUMBER)
293
	if NUMBER >= 0 then
294
		NUMBER = 0
295
	end
296
	return NUMBER
297
end
298
299
function NegativeAngle(NUMBER)
300
	if NUMBER <= 0 then
301
		NUMBER = 0
302
	end
303
	return NUMBER
304
end
305
306
function Swait(NUMBER)
307
	if NUMBER == 0 or NUMBER == nil then
308
		ArtificialHB.Event:wait()
309
	else
310
		for i = 1, NUMBER do
311
			ArtificialHB.Event:wait()
312
		end
313
	end
314
end
315
316
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
317
	local NEWMESH = IT(MESH)
318
	if MESH == "SpecialMesh" then
319
		NEWMESH.MeshType = MESHTYPE
320
		if MESHID ~= "nil" and MESHID ~= "" then
321
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
322
		end
323
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
324
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
325
		end
326
	end
327
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
328
	NEWMESH.Scale = SCALE
329
	NEWMESH.Parent = PARENT
330
	return NEWMESH
331
end
332
333
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
334
	local NEWPART = IT("Part")
335
	NEWPART.formFactor = FORMFACTOR
336
	NEWPART.Reflectance = REFLECTANCE
337
	NEWPART.Transparency = TRANSPARENCY
338
	NEWPART.CanCollide = false
339
	NEWPART.Locked = true
340
	NEWPART.Anchored = true
341
	if ANCHOR == false then
342
		NEWPART.Anchored = false
343
	end
344
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
345
	NEWPART.Name = NAME
346
	NEWPART.Size = SIZE
347
	NEWPART.Position = Torso.Position
348
	NEWPART.Material = MATERIAL
349
	NEWPART:BreakJoints()
350
	NEWPART.Parent = PARENT
351
	return NEWPART
352
end
353
354
	local function weldBetween(a, b)
355
	    local weldd = Instance.new("ManualWeld")
356
	    weldd.Part0 = a
357
	    weldd.Part1 = b
358
	    weldd.C0 = CFrame.new()
359
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
360
	    weldd.Parent = a
361
	    return weldd
362
	end
363
364
365
function QuaternionFromCFrame(cf)
366
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
367
	local trace = m00 + m11 + m22
368
	if trace > 0 then 
369
		local s = math.sqrt(1 + trace)
370
		local recip = 0.5 / s
371
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
372
	else
373
		local i = 0
374
		if m11 > m00 then
375
			i = 1
376
		end
377
		if m22 > (i == 0 and m00 or m11) then
378
			i = 2
379
		end
380
		if i == 0 then
381
			local s = math.sqrt(m00 - m11 - m22 + 1)
382
			local recip = 0.5 / s
383
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
384
		elseif i == 1 then
385
			local s = math.sqrt(m11 - m22 - m00 + 1)
386
			local recip = 0.5 / s
387
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
388
		elseif i == 2 then
389
			local s = math.sqrt(m22 - m00 - m11 + 1)
390
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
391
		end
392
	end
393
end
394
 
395
function QuaternionToCFrame(px, py, pz, x, y, z, w)
396
	local xs, ys, zs = x + x, y + y, z + z
397
	local wx, wy, wz = w * xs, w * ys, w * zs
398
	local xx = x * xs
399
	local xy = x * ys
400
	local xz = x * zs
401
	local yy = y * ys
402
	local yz = y * zs
403
	local zz = z * zs
404
	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))
405
end
406
 
407
function QuaternionSlerp(a, b, t)
408
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
409
	local startInterp, finishInterp;
410
	if cosTheta >= 0.0001 then
411
		if (1 - cosTheta) > 0.0001 then
412
			local theta = ACOS(cosTheta)
413
			local invSinTheta = 1 / SIN(theta)
414
			startInterp = SIN((1 - t) * theta) * invSinTheta
415
			finishInterp = SIN(t * theta) * invSinTheta
416
		else
417
			startInterp = 1 - t
418
			finishInterp = t
419
		end
420
	else
421
		if (1 + cosTheta) > 0.0001 then
422
			local theta = ACOS(-cosTheta)
423
			local invSinTheta = 1 / SIN(theta)
424
			startInterp = SIN((t - 1) * theta) * invSinTheta
425
			finishInterp = SIN(t * theta) * invSinTheta
426
		else
427
			startInterp = t - 1
428
			finishInterp = t
429
		end
430
	end
431
	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
432
end
433
434
function Clerp(a, b, t)
435
	local qa = {QuaternionFromCFrame(a)}
436
	local qb = {QuaternionFromCFrame(b)}
437
	local ax, ay, az = a.x, a.y, a.z
438
	local bx, by, bz = b.x, b.y, b.z
439
	local _t = 1 - t
440
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
441
end
442
443
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
444
	local frame = IT("Frame")
445
	frame.BackgroundTransparency = TRANSPARENCY
446
	frame.BorderSizePixel = BORDERSIZEPIXEL
447
	frame.Position = POSITION
448
	frame.Size = SIZE
449
	frame.BackgroundColor3 = COLOR
450
	frame.BorderColor3 = BORDERCOLOR
451
	frame.Name = NAME
452
	frame.Parent = PARENT
453
	return frame
454
end
455
456
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
457
	local label = IT("TextLabel")
458
	label.BackgroundTransparency = 1
459
	label.Size = UD2(1, 0, 1, 0)
460
	label.Position = UD2(0, 0, 0, 0)
461
	label.TextColor3 = TEXTCOLOR
462
	label.TextStrokeTransparency = STROKETRANSPARENCY
463
	label.TextTransparency = TRANSPARENCY
464
	label.FontSize = TEXTFONTSIZE
465
	label.Font = TEXTFONT
466
	label.BorderSizePixel = BORDERSIZEPIXEL
467
	label.TextScaled = false
468
	label.Text = TEXT
469
	label.Name = NAME
470
	label.Parent = PARENT
471
	return label
472
end
473
474
function NoOutlines(PART)
475
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
476
end
477
478
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
479
	local NEWWELD = IT(TYPE)
480
	NEWWELD.Part0 = PART0
481
	NEWWELD.Part1 = PART1
482
	NEWWELD.C0 = C0
483
	NEWWELD.C1 = C1
484
	NEWWELD.Parent = PARENT
485
	return NEWWELD
486
end
487
488
local S = IT("Sound")
489
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
490
	local NEWSOUND = nil
491
	coroutine.resume(coroutine.create(function()
492
		NEWSOUND = S:Clone()
493
		NEWSOUND.Parent = PARENT
494
		NEWSOUND.Volume = VOLUME
495
		NEWSOUND.Pitch = PITCH
496
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
497
		NEWSOUND:play()
498
		if DOESLOOP == true then
499
			NEWSOUND.Looped = true
500
		else
501
			repeat wait(1) until NEWSOUND.Playing == false
502
			NEWSOUND:remove()
503
		end
504
	end))
505
	return NEWSOUND
506
end
507
508
function CFrameFromTopBack(at, top, back)
509
	local right = top:Cross(back)
510
	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)
511
end
512
513
--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})
514
function WACKYEFFECT(Table)
515
	local TYPE = (Table.EffectType or "Sphere")
516
	local SIZE = (Table.Size or VT(1,1,1))
517
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
518
	local TRANSPARENCY = (Table.Transparency or 0)
519
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
520
	local CFRAME = (Table.CFrame or Torso.CFrame)
521
	local MOVEDIRECTION = (Table.MoveToPos or nil)
522
	local ROTATION1 = (Table.RotationX or 0)
523
	local ROTATION2 = (Table.RotationY or 0)
524
	local ROTATION3 = (Table.RotationZ or 0)
525
	local MATERIAL = (Table.Material or "Neon")
526
	local COLOR = (Table.Color or C3(1,1,1))
527
	local TIME = (Table.Time or 45)
528
	local SOUNDID = (Table.SoundID or nil)
529
	local SOUNDPITCH = (Table.SoundPitch or nil)
530
	local SOUNDVOLUME = (Table.SoundVolume or nil)
531
	coroutine.resume(coroutine.create(function()
532
		local PLAYSSOUND = false
533
		local SOUND = nil
534
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
535
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
536
			PLAYSSOUND = true
537
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
538
		end
539
		EFFECT.Color = COLOR
540
		local MSH = nil
541
		if TYPE == "Sphere" then
542
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
543
		elseif TYPE == "Block" then
544
			MSH = IT("BlockMesh",EFFECT)
545
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
546
		elseif TYPE == "Wave" then
547
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
548
		elseif TYPE == "Ring" then
549
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
550
		elseif TYPE == "Slash" then
551
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
552
		elseif TYPE == "Round Slash" then
553
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
554
		elseif TYPE == "Swirl" then
555
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
556
		elseif TYPE == "Skull" then
557
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
558
		elseif TYPE == "Crystal" then
559
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
560
		end
561
		if MSH ~= nil then
562
			local MOVESPEED = nil
563
			if MOVEDIRECTION ~= nil then
564
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
565
			end
566
			local GROWTH = SIZE - ENDSIZE
567
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
568
			if TYPE == "Block" then
569
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
570
			else
571
				EFFECT.CFrame = CFRAME
572
			end
573
			for LOOP = 1, TIME+1 do
574
				Swait()
575
				MSH.Scale = MSH.Scale - GROWTH/TIME
576
				if TYPE == "Wave" then
577
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
578
				end
579
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
580
				if TYPE == "Block" then
581
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
582
				else
583
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
584
				end
585
				if MOVEDIRECTION ~= nil then
586
					local ORI = EFFECT.Orientation
587
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
588
					EFFECT.Orientation = ORI
589
				end
590
			end
591
			if PLAYSSOUND == false then
592
				EFFECT:remove()
593
			else
594
				repeat Swait() until SOUND.Playing == false
595
				EFFECT:remove()
596
			end
597
		else
598
			if PLAYSSOUND == false then
599
				EFFECT:remove()
600
			else
601
				repeat Swait() until SOUND.Playing == false
602
				EFFECT:remove()
603
			end
604
		end
605
	end))
606
end
607
608
function MakeForm(PART,TYPE)
609
	if TYPE == "Cyl" then
610
		local MSH = IT("CylinderMesh",PART)
611
	elseif TYPE == "Ball" then
612
		local MSH = IT("SpecialMesh",PART)
613
		MSH.MeshType = "Sphere"
614
	elseif TYPE == "Wedge" then
615
		local MSH = IT("SpecialMesh",PART)
616
		MSH.MeshType = "Wedge"
617
	end
618
end
619
620
Debris = game:GetService("Debris")
621
622
function CastProperRay(StartPos, EndPos, Distance, Ignore)
623
	local DIRECTION = CF(StartPos,EndPos).lookVector
624
	return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, DIRECTION * Distance), Ignore)
625
end
626
627
function Particles(Which,Parent,Enabled)
628
	if script:FindFirstChild(Which) then
629
		local PARTICLES = script:FindFirstChild(Which):Clone()
630
		PARTICLES.Parent = Parent
631
		PARTICLES.Name = "CurseParticles"
632
		if Enabled ~= true then	
633
			PARTICLES:Emit(Enabled)
634
			Debris:AddItem(PARTICLES,10)
635
		else
636
			PARTICLES.Enabled = true
637
			return PARTICLES
638
		end
639
	end
640
end
641
642
--//=================================\\
643
--||	     WEAPON CREATION
644
--\\=================================//
645
646
local GUI = script.NameGui
647
GUI.Parent = RootPart
648
GUI.PlayerToHideFrom = Player
649
Humanoid.DisplayDistanceType = "None"
650
GUI.Enabled = true
651
local Pauldrons = script.Pauldrons
652
Pauldrons.Parent = Character
653
Pauldrons.CFrame = Torso.CFrame
654
local WELD = weldBetween(Torso,Pauldrons)
655
Pauldrons.Anchored = false
656
Pauldrons.Transparency = 0
657
local FLINTLOCK = script.Flintlock
658
FLINTLOCK.Parent = Character
659
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, FLINTLOCK, CF(1,-1.5,0) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
660
661
local REGENSOUND = 487215897
662
for _, c in pairs(Character:GetDescendants()) do
663
	if c and c.Parent then
664
		if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then
665
			local ACCESSORY = c.Parent
666
			c.Parent = Character
667
			if c then
668
				if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then
669
					weldBetween(Head,c)
670
				else
671
					weldBetween(Torso,c)
672
				end
673
			end
674
			ACCESSORY:remove()
675
		end
676
	end
677
end
678
wait()
679
local BODY = {}
680
for _, c in pairs(Character:GetDescendants()) do
681
	if c:IsA("BasePart") then
682
		if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
683
		end
684
		local REGENVALUE = IT("BoolValue",c)
685
		REGENVALUE.Name = "IsRegening"
686
		table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name,REGENVALUE})
687
	elseif c:IsA("JointInstance") and c.Name ~= "AccessoryWeld" then
688
		table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil,nil})
689
	end
690
end
691
function FullBodyRegen()
692
	if FULLREGEN == false then
693
		FULLREGEN = true
694
		Character.Parent = workspace
695
		GUI.Enabled = false
696
		CreateSound(FIREBALLSOUND,Torso,3,MRANDOM(10,12)/10,false)
697
		UNANCHOR = false
698
		for e = 1, #BODY do
699
			if BODY[e] ~= nil then
700
				local STUFF = BODY[e]
701
				local PART = STUFF[1]
702
				local PARENT = STUFF[2]
703
				local MATERIAL = STUFF[3]
704
				local COLOR = STUFF[4]
705
				local TRANSPARENCY = STUFF[5]
706
				--local SIZE = STUFF[6]
707
				local NAME = STUFF[7]
708
				local VALUE = STUFF[8]
709
				PART.Parent = PARENT
710
				Humanoid.MaxHealth = 5000
711
				Humanoid.Health = 5000
712
				Humanoid.Parent = nil
713
				Humanoid = IT("Humanoid",Character)
714
				Humanoid.Died:Connect(FullBodyRegen)
715
				PART.Parent = PARENT
716
				if PART:IsA("BasePart") and VALUE.Value == false and PART ~= RootPart then
717
				VALUE.Value = true
718
				coroutine.resume(coroutine.create(function()
719
					PART.Transparency = 1
720
					CreateSound(REGENSOUND,PART,3,MRANDOM(8,12)/15,false)
721
					local REGEN = script.Regen:Clone()
722
					REGEN.Parent = PART
723
					REGEN.Speed = NumberRange.new(30)
724
					REGEN:Emit(100)
725
					local REGENING = script.Regen2:Clone()
726
					REGENING.Parent = PART
727
					REGENING.Enabled = true
728
					REGENING.Speed = NumberRange.new(35)
729
					wait()
730
					local RANGE = 35
731
					for i = 1, math.ceil(REGENRATE*25) do
732
						wait()
733
						ApplyAoE(PART.Position,6,1,1,0,false)
734
						REGENING.Speed = NumberRange.new(RANGE)
735
						RANGE = RANGE - (35/(math.ceil(REGENRATE*20)))
736
					end
737
					REGEN.Speed = NumberRange.new(6)
738
					REGEN:Emit(60)
739
					wait(REGENRATE/3)
740
					RootPart.Velocity = VT(0,0,0)
741
					UNANCHOR = true
742
					GUI.Enabled = true
743
					PART.Transparency = 0
744
					REGEN.Rate = 50
745
					REGEN.Enabled = true
746
					REGENING.Enabled = false
747
					wait(REGENRATE/1.5)
748
					VALUE.Value = false
749
					Debris:AddItem(REGENING,5)
750
					FULLREGEN = false
751
					REGEN.Enabled = false
752
					Debris:AddItem(REGEN,5)
753
				end))
754
				end
755
			end
756
		end
757
	end
758
end
759
function Regen()
760
	Character.Parent = workspace
761
	for e = 1, #BODY do
762
		if BODY[e] ~= nil then
763
			local STUFF = BODY[e]
764
			local PART = STUFF[1]
765
			local PARENT = STUFF[2]
766
			local MATERIAL = STUFF[3]
767
			local COLOR = STUFF[4]
768
			local TRANSPARENCY = STUFF[5]
769
			--local SIZE = STUFF[6]
770
			local NAME = STUFF[7]
771
			local VALUE = STUFF[8]
772
			if PART.ClassName == "Part" and PART ~= RootPart then
773
				PART.Material = MATERIAL
774
				PART.Name = NAME
775
			end
776
			if PART.Parent ~= PARENT then
777
				PART.Parent = PARENT
778
				if PART:IsA("BasePart") and PART ~= RootPart and FULLREGEN == false then
779
					if VALUE.Value == false then
780
						VALUE.Value = true
781
						coroutine.resume(coroutine.create(function()
782
							PART.Transparency = 1
783
							wait(REGENRATE)
784
							CreateSound(REGENSOUND,PART,3,MRANDOM(8,12)/10,false)
785
							local REGENING = script.Regen:Clone()
786
							REGENING.Parent = PART
787
							REGENING.Enabled = true
788
							for i = 1, math.ceil(REGENRATE*10) do
789
								wait()
790
								ApplyAoE(PART.Position,6,1,1,0,false)
791
							end
792
							wait(REGENRATE)	
793
							PART.Transparency = 0
794
							wait(REGENRATE/5)	
795
							REGENING.Enabled = false
796
							VALUE.Value = false
797
							Debris:AddItem(REGENING,5)
798
						end))
799
					end
800
				elseif PART:IsA("JointInstance") and PARENT ~= RootPart and FULLREGEN == false then
801
					local VALUE = PARENT.IsRegening	
802
					if VALUE == false then
803
						VALUE.Value = true
804
						local PART = PART.Part1
805
						coroutine.resume(coroutine.create(function()
806
							PART.Transparency = 1
807
							wait(REGENRATE)
808
							CreateSound(REGENSOUND,PART,3,MRANDOM(8,12)/10,false)
809
							local REGENING = script.Regen:Clone()
810
							REGENING.Parent = PART
811
							REGENING.Enabled = true
812
							for i = 1, math.ceil(REGENRATE*10) do
813
								wait()
814
								ApplyAoE(PART.Position,6,1,1,0,false)
815
							end
816
							wait(REGENRATE)		
817
							PART.Transparency = 0
818
							wait(REGENRATE/5)	
819
							REGENING.Enabled = false
820
							VALUE.Value = false
821
						end))	
822
					end
823
				end	
824
			end
825
		end
826
	end
827
end
828
829
for _, c in pairs(script.Package:GetChildren()) do
830
	c.Parent = Character
831
end
832
833
local b = IT("BodyForce",RootPart)
834
b.Name = "LowGrav"
835
b.force = Vector3.new(0,1500,0)
836
837
local SKILLTEXTCOLOR = C3(0,0,0)
838
local SKILLFONT = "Fantasy"
839
local SKILLTEXTSIZE = 7
840
841
local BACKATTACHMENT1 = IT("Attachment",Torso)
842
BACKATTACHMENT1.Position = VT(0.5, 0.5, 0.75)
843
local BACKATTACHMENT2 = IT("Attachment",Torso)
844
BACKATTACHMENT2.Position = VT(-0.5, 0.5, 0.75)
845
846
Humanoid.Died:Connect(FullBodyRegen)
847
848
--//=================================\\
849
--||			DAMAGING
850
--\\=================================//
851
852
function ApplyDamage(Humanoid,Damage)
853
	if Humanoid.Health == math.huge then
854
		Humanoid.Parent:BreakJoints()
855
	else
856
		local MULTIPLY = Humanoid.MaxHealth/100
857
		Damage = Damage * DAMAGEMULTIPLIER
858
		if Humanoid.Health ~= 0 then
859
			Humanoid.Health = Humanoid.Health - Damage*MULTIPLY
860
		end
861
	end
862
end
863
864
function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,CAMSINSTAKILL,INSTAKILL)
865
	local CHILDREN = workspace:GetDescendants()
866
	for index, CHILD in pairs(CHILDREN) do
867
		if CHILD.ClassName == "Model" and CHILD ~= Character then
868
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
869
			if HUM then
870
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
871
				if TORSO then
872
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
873
						if INSTAKILL == true or HUM.MaxHealth == math.huge then
874
							CHILD:BreakJoints()
875
						else
876
							local DMG = MRANDOM(MINDMG,MAXDMG)
877
							ApplyDamage(HUM,DMG)
878
						end
879
						if FLING > 0 then
880
							for _, c in pairs(CHILD:GetChildren()) do
881
								if c:IsA("BasePart") then
882
									local bv = Instance.new("BodyVelocity") 
883
									bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
884
									bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
885
									bv.Parent = c
886
									Debris:AddItem(bv,0.05)
887
								end
888
							end
889
						end
890
					end
891
				end
892
			end
893
		end
894
	end
895
end
896
897
--//=================================\\
898
--||	ATTACK FUNCTIONS AND STUFF
899
--\\=================================//
900
901
function Fireball()
902
	ATTACK = true
903
	Rooted = true
904
	local GYRO = IT("BodyGyro",RootPart)
905
	GYRO.D = 20
906
	GYRO.P = 4000
907
	GYRO.MaxTorque = VT(40000,40000,40000)
908
	local POSITION = IT("BodyPosition",RootPart)
909
	POSITION.Position = RootPart.Position+VT(0,2,0)
910
	POSITION.D = 450
911
	POSITION.P = 40000
912
	POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge)
913
	local FIRE = Particles("FistFire",RightArm,true)
914
	CreateSound(CHARGE,RightArm,6,1,false)
915
	coroutine.resume(coroutine.create(function()
916
		repeat
917
			Swait()
918
			GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
919
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed)
920
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed)
921
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
922
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(-25), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
923
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
924
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
925
		until ATTACK == false
926
		FIRE.LockedToPart = false
927
		FIRE.Enabled = false
928
		Debris:AddItem(FIRE,5)
929
		GYRO:remove()
930
		POSITION:remove()
931
	end))
932
	wait(1)
933
	repeat
934
		Particles("ExplosionFire1",RightArm,70)
935
		coroutine.resume(coroutine.create(function()
936
			local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(10,10,10))
937
			FIREBALL.CFrame = CF(RightArm.CFrame*CF(0,-1,0).p,Mouse.Hit.p)
938
			CreateSound(FIREBALLSOUND,FIREBALL,6,1,false)
939
			local FLAME = Particles("FireballFire1",FIREBALL,true)
940
			local FLAME2 = Particles("FireballFire2",FIREBALL,true)
941
			for i = 1, 250 do
942
				Swait()
943
				local HIT,HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 10, Character)
944
				FIREBALL.CFrame = FIREBALL.CFrame*CF(0,0,-5)
945
				if HIT then
946
					Particles("ExplosionFire1",FIREBALL,600)
947
					ApplyAoE(FIREBALL.Position,200,15,25,35,true,{SHAKE = 2, TIMER = 25, DOESFADE = true})
948
					for i = 1, 3 do
949
						WACKYEFFECT({Time = 70, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(200,300),MRANDOM(200,300),MRANDOM(200,300)), Transparency = 0.5, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
950
					end
951
					for i = 1, 3 do
952
						WACKYEFFECT({Time = 120, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(200,300),MRANDOM(200,300),MRANDOM(200,300)), Transparency = 0.8, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
953
					end
954
					for i = 1, 5 do
955
						WACKYEFFECT({Time = 80+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(40,40,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
956
					end
957
					break
958
				end
959
			end
960
			FLAME.Enabled = false
961
			FLAME2.Enabled = false
962
			Debris:AddItem(FIREBALL,7)
963
		end))
964
		wait(0.1)
965
	until KEYHOLD == false
966
	wait(0.2)
967
	ATTACK = false
968
	Rooted = false
969
end
970
971
function FireField()
972
	ATTACK = true
973
	Rooted = true
974
	local A = false
975
	local POSITION = IT("BodyPosition",RootPart)
976
	POSITION.Position = RootPart.Position+VT(0,2,0)
977
	POSITION.D = 450
978
	POSITION.P = 40000
979
	POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge)
980
	coroutine.resume(coroutine.create(function()
981
		repeat
982
			Swait()
983
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed)
984
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed)
985
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.85, -0.35) * ANGLES(RAD(120), RAD(0), RAD(-70)) * ANGLES(RAD(0), RAD(-15), RAD(5 + 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
986
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.35) * ANGLES(RAD(120), RAD(0), RAD(70)) * ANGLES(RAD(0), RAD(15), RAD(-5 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
987
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(50), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
988
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
989
		until A == true
990
		repeat
991
			Swait()
992
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
993
			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)
994
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.4, -0.3) * ANGLES(RAD(170), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
995
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.4, -0.3) * ANGLES(RAD(170), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
996
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
997
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
998
		until ATTACK == false
999
		POSITION:remove()
1000
	end))
1001
	local RANGE = 75
1002
	local REGENING = script.Regen2:Clone()
1003
	REGENING.Parent = Torso
1004
	REGENING.Enabled = true
1005
	REGENING.Rate = 900
1006
	REGENING.Speed = NumberRange.new(RANGE)
1007
	wait()
1008
	for i = 1, 75 do
1009
		wait()
1010
		ApplyAoE(Torso.Position,6,1,1,0,false)
1011
		REGENING.Speed = NumberRange.new(RANGE)
1012
		RANGE = RANGE - (75/(math.ceil(REGENRATE*75)))
1013
	end
1014
	REGENING.Enabled = false
1015
	wait(0.5)
1016
	for i = 1, 6 do
1017
		WACKYEFFECT({Time = 10+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(40,40,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(Torso.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1018
	end
1019
	CreateSound(EXPLOSIONSMALLSOUND,Torso,10,1,false)
1020
	A = true
1021
	local FLAME = Particles("Field",Torso,true)
1022
	FLAME.Size = NumberSequence.new(0,25)
1023
	FIREFIELD = true
1024
	local SOUND = CreateSound(BURNSOUND,Torso,10,1,true)
1025
	coroutine.resume(coroutine.create(function()
1026
		for i = 1, 20 do
1027
			wait(1)
1028
			SOUND.Parent = Torso
1029
			SOUND.Playing = true
1030
			ApplyAoE(Torso.Position,100,5,10,0,false,{SHAKE = 2, TIMER = 25, DOESFADE = true})
1031
			for i = 1, 2 do
1032
				WACKYEFFECT({Time = 20+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(30,30,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(Torso.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1033
			end
1034
			if SEARING == true then
1035
				break
1036
			end
1037
		end
1038
		FIREFIELD = false
1039
		FLAME.Enabled = false
1040
		Debris:AddItem(FLAME,5)
1041
		SOUND:remove()
1042
	end))
1043
	wait(1)
1044
	ATTACK = false
1045
	Rooted = false
1046
end
1047
1048
function SearingForm()
1049
	ATTACK = true
1050
	Rooted = true
1051
	local POSITION = IT("BodyPosition",RootPart)
1052
	POSITION.Position = RootPart.Position+VT(0,2,0)
1053
	POSITION.D = 450
1054
	POSITION.P = 40000
1055
	POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1056
	coroutine.resume(coroutine.create(function()
1057
		repeat
1058
			Swait()
1059
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed)
1060
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed)
1061
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.8, -0.35) * ANGLES(RAD(120), RAD(0), RAD(-70)) * ANGLES(RAD(0), RAD(-15), RAD(5 + 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1062
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.35) * ANGLES(RAD(120), RAD(0), RAD(70)) * ANGLES(RAD(0), RAD(15), RAD(-5 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1063
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(50), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
1064
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
1065
		until ATTACK == false
1066
	end))
1067
	local FIRES = {}
1068
	local RANGE = 75
1069
	local REGENING = script.Regen2:Clone()
1070
	REGENING.Parent = Torso
1071
	REGENING.Enabled = true
1072
	REGENING.Rate = 900
1073
	REGENING.Speed = NumberRange.new(RANGE)
1074
	wait()
1075
	for i = 1, 75 do
1076
		wait()
1077
		ApplyAoE(Torso.Position,6,1,1,0,false)
1078
		REGENING.Speed = NumberRange.new(RANGE)
1079
		RANGE = RANGE - (75/(math.ceil(REGENRATE*75)))
1080
	end
1081
	REGENING.Enabled = false
1082
	wait(0.5)
1083
	for i = 1, 6 do
1084
		WACKYEFFECT({Time = 10+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(40,40,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(Torso.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1085
	end
1086
	local BUSY = true
1087
	Particles("ExplosionFire1",Torso,100)
1088
	SEARING = true
1089
	local WING1 = Particles("WingFire1",BACKATTACHMENT1,true)
1090
	local WING2 = Particles("WingFire1",BACKATTACHMENT2,true)
1091
	coroutine.resume(coroutine.create(function()
1092
		coroutine.resume(coroutine.create(function()		
1093
			repeat 
1094
				wait(1)
1095
				ApplyAoE(Torso.Position,20,5,10,0,false,{SHAKE = 2, TIMER = 25, DOESFADE = true})
1096
			until SEARING == false
1097
		end))
1098
		repeat 
1099
			Swait()
1100
			local ACCEL1 = VT(10,2-(6*COS(SINE / 24)),-6-(2*COS(SINE / 24)))
1101
			local ACCEL2 = VT(-10,2-(6*COS(SINE / 24)),-6-(2*COS(SINE / 24)))
1102
			WING1.Acceleration = ACCEL1
1103
			WING2.Acceleration = ACCEL2
1104
			local HIT,HITPOS = Raycast(RootPart.Position, RootPart.CFrame.lookVector, 4, Character)
1105
			if HIT then
1106
				ApplyAoE(Torso.Position,200,45,80,35,true,{SHAKE = 2, TIMER = 25, DOESFADE = true})
1107
				CreateSound(EXPLOSIONMEDIUMSOUND,Torso,10,1,false)
1108
				CreateSound(EXPLOSIONMEDIUMSOUND,Torso,10,1,false)
1109
				for i = 1, 3 do
1110
					WACKYEFFECT({Time = 70, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(200,300),MRANDOM(200,300),MRANDOM(200,300)), Transparency = 0.5, Transparency2 = 1, CFrame = CF(Torso.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
1111
				end
1112
				for i = 1, 3 do
1113
					WACKYEFFECT({Time = 120, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(200,300),MRANDOM(200,300),MRANDOM(200,300)), Transparency = 0.8, Transparency2 = 1, CFrame = CF(Torso.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
1114
				end
1115
				Particles("ExplosionFire1",Torso,600)
1116
				BUSY = false
1117
				break
1118
			end
1119
		until SEARING == false
1120
	end))
1121
	for _, c in pairs(Character:GetChildren()) do
1122
		if c:IsA("BasePart") then
1123
			local FLAME = Particles("BodyFire",c,true)
1124
			table.insert(FIRES,FLAME)
1125
		end
1126
	end
1127
	POSITION:remove()
1128
	wait()
1129
	ApplyAoE(Torso.Position,120,45,80,35,true,{SHAKE = 2, TIMER = 25, DOESFADE = true})
1130
	CreateSound(EXPLOSIONSMALLSOUND,Torso,10,1,false)
1131
	ATTACK = false
1132
	Rooted = false
1133
	GYRO = IT("BodyGyro",RootPart)
1134
	GYRO.D = 20
1135
	GYRO.P = 4000
1136
	GYRO.MaxTorque = VT(0,40000,0)
1137
	BODYPOS = IT("BodyPosition",RootPart)
1138
	BODYPOS.Position = RootPart.Position+VT(0,2,0)
1139
	BODYPOS.D = 450
1140
	BODYPOS.P = 40000
1141
	BODYPOS.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1142
	local KEYDOWN = Mouse.KeyDown:connect(function(NEWKEY)
1143
		if NEWKEY == "c" and ATTACK == false then
1144
			BUSY = false
1145
		end
1146
	end)
1147
	local HUM = Humanoid.Died:Connect(function()
1148
		BUSY = false
1149
		ApplyAoE(Torso.Position,200,45,80,35,true,{SHAKE = 2, TIMER = 25, DOESFADE = true})
1150
		CreateSound(EXPLOSIONMEDIUMSOUND,Torso,10,1,false)
1151
		CreateSound(EXPLOSIONMEDIUMSOUND,Torso,10,1,false)
1152
		for i = 1, 3 do
1153
			WACKYEFFECT({Time = 70, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(200,300),MRANDOM(200,300),MRANDOM(200,300)), Transparency = 0.5, Transparency2 = 1, CFrame = CF(Torso.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
1154
		end
1155
		for i = 1, 3 do
1156
			WACKYEFFECT({Time = 120, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(200,300),MRANDOM(200,300),MRANDOM(200,300)), Transparency = 0.8, Transparency2 = 1, CFrame = CF(Torso.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
1157
		end
1158
		Particles("ExplosionFire1",Torso,600)
1159
	end)
1160
	repeat wait() until BUSY == false
1161
	for i = 1, #FIRES do
1162
		FIRES[i].Enabled = false
1163
		Debris:AddItem(FIRES[i],5)
1164
	end
1165
	HUM:disconnect()
1166
	WING1.Enabled = false
1167
	WING2.Enabled = false
1168
	WING1.LockedToPart = false
1169
	WING2.LockedToPart = false
1170
	Debris:AddItem(WING1,5)
1171
	Debris:AddItem(WING2,5)
1172
	KEYDOWN:disconnect()
1173
	SEARING = false
1174
	GYRO:remove()
1175
	BODYPOS:remove()
1176
	FullBodyRegen()
1177
end
1178
1179
function SearingOrb()
1180
	ATTACK = true
1181
	Rooted = true
1182
	local POSITION = IT("BodyPosition",RootPart)
1183
	POSITION.Position = RootPart.Position+VT(0,2,0)
1184
	POSITION.D = 450
1185
	POSITION.P = 40000
1186
	POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1187
	local FIRE = Particles("FistFire",RightArm,true)
1188
	local FIRE2 = Particles("FistFire",LeftArm,true)
1189
	CreateSound(CHARGE,Torso,6,1,false)
1190
	local NEWANIM = false
1191
	coroutine.resume(coroutine.create(function()
1192
		repeat
1193
			Swait()
1194
			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)
1195
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1196
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1197
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1198
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1199
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1200
		until ATTACK == false or NEWANIM == true
1201
		if NEWANIM == true then
1202
			local GYRO = IT("BodyGyro",RootPart)
1203
			GYRO.D = 20
1204
			GYRO.P = 4000
1205
			GYRO.MaxTorque = VT(40000,40000,40000)
1206
			repeat
1207
				Swait()
1208
				GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
1209
				RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed)
1210
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed)
1211
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1212
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(-25), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1213
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1214
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1215
			until ATTACK == false
1216
			GYRO:remove()
1217
		end
1218
		POSITION:remove()
1219
		FIRE.LockedToPart = false
1220
		FIRE.Enabled = false
1221
		Debris:AddItem(FIRE,5)
1222
		FIRE2.LockedToPart = false
1223
		FIRE2.Enabled = false
1224
		Debris:AddItem(FIRE2,5)
1225
	end))
1226
	local ORB = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Alder"), "Orb", VT(0,0,0), true)
1227
	MakeForm(ORB,"Ball")
1228
	ORB.CFrame = CF(RootPart.Position+VT(0,8,0))
1229
	local A = IT("Attachment",ORB)
1230
	local FIRES = Particles("FireballFire1",A,true)
1231
	FIRES.Size = NumberSequence.new(0)
1232
	FIRES.LockedToPart = true
1233
	local LOOP = 0
1234
	for i = 1, 500 do
1235
		Swait()
1236
		LOOP = LOOP + 1
1237
		if LOOP >= 30 then
1238
			LOOP = 0
1239
			WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(ORB.Size.X,ORB.Size.X/5,ORB.Size.X), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1240
		end
1241
		ORB.Size = ORB.Size + VT(0.2,0.2,0.2)
1242
		ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0))
1243
		FIRES.Size = NumberSequence.new(ORB.Size.Y/1.5)
1244
		FIRES.Speed = NumberRange.new(0,ORB.Size.Y/2)
1245
		FIRES.Enabled = true
1246
	end
1247
	wait(1)
1248
	if KEYHOLD == false then
1249
		coroutine.resume(coroutine.create(function()
1250
			ORB.Transparency = 1
1251
			FIRES.Enabled = false
1252
			Debris:AddItem(ORB,10)
1253
			ApplyAoE(ORB.Position,400,75,90,175,true,{SHAKE = 4, TIMER = 65, DOESFADE = true})
1254
			CreateSound(EXPLOSIONLARGESOUND,ORB,10,1,false)
1255
			CreateSound(EXPLOSIONSMALLSOUND,ORB,10,1,false)
1256
			for i = 1, 3 do
1257
				WACKYEFFECT({Time = 40, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(600,700),MRANDOM(600,700),MRANDOM(600,700)), Transparency = 0, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
1258
			end
1259
			for i = 1, 3 do
1260
				WACKYEFFECT({Time = 60, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(600,700),MRANDOM(600,700),MRANDOM(600,700)), Transparency = 0, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
1261
			end
1262
			Particles("ExplosionFire1",ORB,1200)
1263
			for i = 1, 15 do
1264
				WACKYEFFECT({Time = 40+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(70,70,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1265
			end
1266
		end))
1267
	else
1268
		for i = 1, 100 do
1269
			Swait()
1270
			ORB.Size = ORB.Size - VT(0.2,0.2,0.2)*5
1271
			ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0))
1272
			FIRES.Size = NumberSequence.new(ORB.Size.Y/1.5)
1273
			FIRES.Speed = NumberRange.new(0,ORB.Size.Y/2)
1274
		end
1275
		ORB.Transparency = 1
1276
		FIRES.Enabled = false
1277
		Debris:AddItem(ORB,10)
1278
		CreateSound(EXPLOSIONSMALLSOUND,Torso,10,1,false)
1279
		for _, c in pairs(Character:GetChildren()) do
1280
			if c:IsA("BasePart") then
1281
				Particles("ExplosionFire2",c,25)
1282
			end
1283
		end
1284
		NEWANIM = true
1285
		wait(0.5)
1286
		for i = 1, 15 do
1287
			wait(0.1)
1288
			coroutine.resume(coroutine.create(function()
1289
				local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(2,2,2))
1290
				FIREBALL.CFrame = CF(RightArm.CFrame*CF(0,-1,0).p,Mouse.Hit.p)
1291
				CreateSound(FIREBALLSOUND,FIREBALL,6,1,false)
1292
				local FLAME = Particles("FireballFire3",FIREBALL,true)
1293
				for i = 1, 250 do
1294
					Swait()
1295
					local HIT,HITPOS,NORMAL = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 2, Character)
1296
					FIREBALL.CFrame = FIREBALL.CFrame*CF(0,0,-2)
1297
					if HIT then
1298
						CreateSound(EXPLOSIONSMALLSOUND,FIREBALL,10,1,false)
1299
						local FIELD = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Pearl"), "Fire", VT(75,0,75), true)
1300
						local FIELD2 = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Pearl"), "Fire", VT(75,0,75), true)
1301
						FIELD.CFrame = CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0))
1302
						FIELD2.CFrame = CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(45), RAD(0))
1303
						coroutine.resume(coroutine.create(function()
1304
							local FLAMES = Particles("DebrisFire",FIELD,true)
1305
							local FLAMES2 = Particles("DebrisFire",FIELD2,true)
1306
							for i = 1, 15 do
1307
								wait(1)
1308
								ApplyAoE(FIELD.Position,FIELD.Size.X/2,5,15,0,false,{SHAKE = 4, TIMER = 65, DOESFADE = true})
1309
							end
1310
							FLAMES.Enabled = false
1311
							FLAMES2.Enabled = false
1312
							Debris:AddItem(FIELD,5)
1313
							Debris:AddItem(FIELD2,5)
1314
						end))
1315
						Particles("ExplosionFire2",FIREBALL,600)
1316
						break
1317
					end
1318
				end
1319
				FLAME.Enabled = false
1320
				Debris:AddItem(FIREBALL,7)
1321
			end))
1322
		end
1323
	end
1324
	wait(0.3)
1325
	ATTACK = false
1326
	Rooted = false
1327
end
1328
1329
function Shroud()
1330
	if Mouse.Target ~= nil then
1331
		if Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") or Mouse.Target.Parent.Parent:FindFirstChildOfClass("Humanoid") then
1332
			local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") or Mouse.Target.Parent.Parent:FindFirstChildOfClass("Humanoid")
1333
			local TORSO = HUM.Parent:FindFirstChild("HumanoidRootPart") or HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
1334
			if TORSO and HUM.Health > 0 then
1335
				local DISTANCE = (RootPart.Position-TORSO.Position).Magnitude
1336
				if DISTANCE < 100 then
1337
					ATTACK = true
1338
					POSEIDON = false
1339
					Rooted = true
1340
					local GYRO = IT("BodyGyro",RootPart)
1341
					GYRO.D = 20
1342
					GYRO.P = 4000
1343
					GYRO.MaxTorque = VT(40000,40000,40000)
1344
					local POSITION = IT("BodyPosition",RootPart)
1345
					POSITION.Position = RootPart.Position+VT(0,2,0)
1346
					POSITION.D = 450
1347
					POSITION.P = 40000
1348
					POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1349
					local TARGETTING = true
1350
					local HIT = false
1351
					local FIRES = {}
1352
					for _, c in pairs(Character:GetChildren()) do
1353
						if c:IsA("BasePart") then
1354
							local FLAME = Particles("BodyFire",c,true)
1355
							FLAME.Rate = 15
1356
							table.insert(FIRES,FLAME)
1357
						end
1358
					end
1359
					CreateSound(CHARGE,Torso,6,1,false)
1360
					coroutine.resume(coroutine.create(function()
1361
						repeat
1362
							GYRO.CFrame = CF(RootPart.Position,TORSO.Position)
1363
							Swait()
1364
							RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1365
							Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1366
							RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1367
							LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1368
							RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1369
							LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1370
						until TARGETTING == false
1371
						repeat
1372
							GYRO.CFrame = CF(RootPart.Position,TORSO.Position)
1373
							POSITION.Position = CF(RootPart.Position,TORSO.Position)*CF(0,0,-5).p
1374
							DISTANCE = (RootPart.Position-TORSO.Position).Magnitude
1375
							Swait()
1376
							RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1377
							Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1378
							RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1379
							LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1380
							RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1381
							LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1382
						until HIT == true
1383
						POSITION:remove()
1384
						GYRO:remove()
1385
					end))
1386
					wait(0.5)
1387
					repeat wait() until HOLD == true
1388
					for _, c in pairs(Character:GetChildren()) do
1389
						if c:IsA("BasePart") then
1390
							local FLAME = Particles("BodyFire",c,true)
1391
							table.insert(FIRES,FLAME)
1392
						end
1393
					end
1394
					for _, c in pairs(Character:GetChildren()) do
1395
						if c:IsA("BasePart") then
1396
							c.Transparency = 1
1397
						end
1398
					end
1399
					TARGETTING = false
1400
					for i = 1, 100 do
1401
						wait()
1402
						if DISTANCE < 5 or DISTANCE >= 200 then
1403
							break
1404
						end
1405
					end
1406
					HIT = true
1407
					if DISTANCE < 5 then
1408
						for i = 1, #FIRES do
1409
							FIRES[i].Enabled = false
1410
						end
1411
						for _, c in pairs(HUM.Parent:GetChildren()) do
1412
							if c:IsA("BasePart") then
1413
								local FLAME = Particles("BodyFire",c,true)
1414
								table.insert(FIRES,FLAME)
1415
							end
1416
						end
1417
						CreateSound(FIREBALLSOUND,Torso,6,1,false)
1418
						RootPart.CFrame = TORSO.CFrame
1419
						local WELD = weldBetween(RootPart,TORSO)
1420
						repeat wait() until HOLD == true
1421
						CreateSound(416328540,Torso,6,1,false)
1422
						WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(5,15,5), Size2 = VT(30,20,30), Transparency = 0.5, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
1423
						local bv = Instance.new("BodyVelocity") 
1424
						bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1425
						bv.velocity = CF(TORSO.Position,TORSO.Position+VT(0,15,0)).lookVector*125
1426
						bv.Parent = TORSO
1427
						for i = 1, 70 do
1428
							wait(0.1)
1429
							if TORSO.Parent == nil then
1430
								break
1431
							end
1432
							WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(5,15,5), Size2 = VT(30,20,30), Transparency = 0.5, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(180),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
1433
						end
1434
						UNANCHOR = false
1435
						bv:remove()
1436
						wait(1)
1437
						WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(45,1,45), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(180),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1438
						CreateSound(FIREBALLSOUND,Torso,6,1,false)
1439
						UNANCHOR = true
1440
						local bv = Instance.new("BodyVelocity") 
1441
						bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1442
						bv.velocity = CF(TORSO.Position,TORSO.Position-VT(0,15,0)).lookVector*450
1443
						bv.Parent = TORSO
1444
						local LANDED = false
1445
						for i = 1, 500 do
1446
							wait()
1447
							Ignore = {Character,HUM.Parent}
1448
							WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(5,15,5), Size2 = VT(30,20,30), Transparency = 0.5, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
1449
							local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
1450
							local HITFLOOR = CastProperRay(TORSO.Position, TORSO.Position-VT(0,1,0), 10*(TORSO.Size.Y), Ignore)
1451
							if HITFLOOR or FULLREGEN == true then
1452
								LANDED = true
1453
								break
1454
							end
1455
							if TORSO.Parent == nil then
1456
								break
1457
							end
1458
						end
1459
						if TORSO.Parent ~= nil then
1460
							UNANCHOR = false
1461
							bv:remove()
1462
							wait(1)
1463
							WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(45,1,45), Transparency = 0.2, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(180),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1464
							CreateSound(FIREBALLSOUND,Torso,6,1,false)
1465
							UNANCHOR = true
1466
							local bv = Instance.new("BodyVelocity") 
1467
							bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1468
							bv.velocity = CF(TORSO.Position,TORSO.Position-VT(0,15,0)).lookVector*450
1469
							bv.Parent = TORSO
1470
							local LANDED = false
1471
							for i = 1, 500 do
1472
								wait()
1473
								Ignore = {Character,HUM.Parent}
1474
								WACKYEFFECT({Time = 15, EffectType = "Swirl", Size = VT(5,15,5), Size2 = VT(30,20,30), Transparency = 0.9, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
1475
								local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
1476
								local HITFLOOR = CastProperRay(TORSO.Position, TORSO.Position-VT(0,1,0), 10*(TORSO.Size.Y), Ignore)
1477
								if HITFLOOR or FULLREGEN == true then
1478
									LANDED = true
1479
									break
1480
								end
1481
								if TORSO.Parent == nil then
1482
									break
1483
								end
1484
							end
1485
							bv:remove()
1486
							if LANDED == true then
1487
								UNANCHOR = false
1488
								for i = 1, 10 do
1489
									ApplyAoE(TORSO.Position+VT(0,1,0),10+(2*i),15,15,45,true,{SHAKE = 4, TIMER = 65, DOESFADE = true})
1490
								end
1491
								CreateSound(EXPLOSIONLARGESOUND,TORSO,10,1,false)
1492
								CreateSound(EXPLOSIONSMALLSOUND,TORSO,10,1,false)
1493
								Particles("ExplosionFire1",TORSO,120)
1494
								for i = 1, 15 do
1495
									WACKYEFFECT({Time = 40+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(70,70,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1496
								end
1497
								WELD:remove()
1498
								wait(0.3)
1499
								UNANCHOR = true
1500
							else
1501
								WELD:remove()
1502
							end
1503
						end
1504
					end
1505
					for i = 1, #FIRES do
1506
						FIRES[i].Enabled = false
1507
						Debris:AddItem(FIRES[i],5)
1508
					end
1509
					for _, c in pairs(Character:GetChildren()) do
1510
						if c:IsA("BasePart") and c ~= RootPart then
1511
							c.Transparency = 0
1512
						end
1513
					end
1514
					RootPart.Velocity = VT(0,0,0)
1515
					ATTACK = false
1516
					Rooted = false
1517
				end
1518
			end
1519
		end
1520
	end
1521
end
1522
1523
function Spitter()
1524
	ATTACK = true
1525
	Rooted = true
1526
	local GYRO = IT("BodyGyro",RootPart)
1527
	GYRO.D = 20
1528
	GYRO.P = 4000
1529
	GYRO.MaxTorque = VT(40000,40000,40000)
1530
	local POSITION = IT("BodyPosition",RootPart)
1531
	POSITION.Position = RootPart.Position+VT(0,2,0)
1532
	POSITION.D = 450
1533
	POSITION.P = 40000
1534
	POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1535
	local FIRE = Particles("FistFire",RightArm,true)
1536
	CreateSound(CHARGE,RightArm,6,0.8,false)
1537
	coroutine.resume(coroutine.create(function()
1538
		repeat
1539
			Swait()
1540
			GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
1541
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed)
1542
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed)
1543
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1544
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(-25), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1545
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1546
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1547
		until ATTACK == false
1548
		FIRE.LockedToPart = false
1549
		FIRE.Enabled = false
1550
		Debris:AddItem(FIRE,5)
1551
		GYRO:remove()
1552
		POSITION:remove()
1553
	end))
1554
	local FIREBALL = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Alder"), "Orb", VT(0,0,0), true)
1555
	MakeForm(FIREBALL,"Ball")
1556
	FIREBALL.CFrame = RightArm.CFrame*CF(0,-1,0)
1557
	local CORE = IT("Attachment",FIREBALL)
1558
	local FIRES = Particles("FireballFire1",CORE,true)
1559
	FIRES.Size = NumberSequence.new(0)
1560
	FIRES.LockedToPart = true
1561
	local LOOP = 0
1562
	repeat
1563
		Swait()
1564
		LOOP = LOOP + 1
1565
		if LOOP == 20 then
1566
			LOOP = 0
1567
			WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(0,0,0), Size2 = VT(FIREBALL.Size.X,FIREBALL.Size.X/2,FIREBALL.Size.X)*3, Transparency = 0.5, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = FIREBALL.Position-VT(0,FIREBALL.Size.Y/4,0), RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
1568
		end
1569
		if FIREBALL.Size.X < 20 then
1570
			FIREBALL.Size = FIREBALL.Size + VT(0.1,0.1,0.1)
1571
			FIRES.Size = NumberSequence.new(FIREBALL.Size.Y/1.5)
1572
			FIRES.Speed = NumberRange.new(0,FIREBALL.Size.Y/2)
1573
		end
1574
		FIRES.Enabled = true
1575
		FIREBALL.CFrame = RightArm.CFrame*CF(0,-1-FIREBALL.Size.Z/2,0)
1576
	until KEYHOLD == false and FIREBALL.Size.X >= 10
1577
	CreateSound(FIREBALLSOUND,FIREBALL,10,0.8,false)
1578
	coroutine.resume(coroutine.create(function()
1579
		FIREBALL.CFrame = CF(FIREBALL.Position,Mouse.Hit.p)
1580
		local RANGE = 75
1581
		local FLAME = Particles("Field",CORE,true)
1582
		FLAME.Speed = NumberRange.new(0,FIREBALL.Size.X*5)
1583
		FLAME.Size = NumberSequence.new(0,25)
1584
		for i = 1, 600 do
1585
			LOOP = LOOP + 1
1586
			if LOOP == 20 then
1587
				LOOP = 0
1588
				ApplyAoE(FIREBALL.Position,FIREBALL.Size.X*5,5,25,0,false)
1589
				WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(0,0,0), Size2 = VT(FIREBALL.Size.X,FIREBALL.Size.X/2,FIREBALL.Size.X)*3, Transparency = 0.5, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = FIREBALL.Position-VT(0,FIREBALL.Size.Y/4,0), RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
1590
			end
1591
			Swait()
1592
			FIREBALL.CFrame = CF(FIREBALL.Position,FIREBALL.CFrame*CF(0,-0.001,-1).p)*CF(0,0,-0.2)
1593
			local HIT,HITPOS,NORMAL = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, FIREBALL.Size.X/2.5, Character)
1594
			if HIT then
1595
				ApplyAoE(FIREBALL.Position,FIREBALL.Size.X*12,75,90,375,true,{SHAKE = 4, TIMER = 65, DOESFADE = true})
1596
				CreateSound(EXPLOSIONLARGESOUND,FIREBALL,10,1,false)
1597
				CreateSound(EXPLOSIONSMALLSOUND,FIREBALL,10,1,false)
1598
				for i = 1, 3 do
1599
					WACKYEFFECT({Time = 40, EffectType = "Sphere", Size = VT(0,0,0), Size2 = FIREBALL.Size*MRANDOM(18,25), Transparency = 0, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
1600
				end
1601
				for i = 1, 3 do
1602
					WACKYEFFECT({Time = 60, EffectType = "Sphere", Size = VT(0,0,0), Size2 = FIREBALL.Size*MRANDOM(18,25), Transparency = 0, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
1603
				end
1604
				Particles("ExplosionFire1",FIREBALL,1200)
1605
				for i = 1, 15 do
1606
					WACKYEFFECT({Time = 40+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(FIREBALL.Size.X*10,FIREBALL.Size.X*10,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1607
				end
1608
				break
1609
			end
1610
		end
1611
		FLAME.Enabled = false
1612
		FIRES.Enabled = false
1613
		for i = 1, 10 do
1614
			Swait()
1615
			FIREBALL.Mesh.Scale = FIREBALL.Mesh.Scale - VT(0.1,0.1,0.1)
1616
		end
1617
		Debris:AddItem(FIREBALL,5)
1618
	end))
1619
	wait(0.5)
1620
	ATTACK = false
1621
	Rooted = false
1622
end
1623
1624
function Devastor()
1625
	ATTACK = true
1626
	Rooted = true
1627
	local POSITION = IT("BodyPosition",RootPart)
1628
	POSITION.Position = RootPart.Position+VT(0,2,0)
1629
	POSITION.D = 450
1630
	POSITION.P = 40000
1631
	POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1632
	local FIRE = Particles("FistFire",RightArm,true)
1633
	local FIRE2 = Particles("FistFire",LeftArm,true)
1634
	CreateSound(CHARGE,Torso,6,1,false)
1635
	local NEWANIM = false
1636
	coroutine.resume(coroutine.create(function()
1637
		repeat
1638
			Swait()
1639
			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)
1640
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1641
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1642
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1643
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1644
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1645
		until ATTACK == false or NEWANIM == true
1646
		if NEWANIM == true then
1647
			local GYRO = IT("BodyGyro",RootPart)
1648
			GYRO.D = 20
1649
			GYRO.P = 4000
1650
			GYRO.MaxTorque = VT(40000,40000,40000)
1651
			repeat
1652
				Swait()
1653
				GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
1654
				RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed)
1655
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed)
1656
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1657
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(-25), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1658
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1659
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1660
			until ATTACK == false
1661
			GYRO:remove()
1662
		end
1663
		POSITION:remove()
1664
		FIRE.LockedToPart = false
1665
		FIRE.Enabled = false
1666
		Debris:AddItem(FIRE,5)
1667
		FIRE2.LockedToPart = false
1668
		FIRE2.Enabled = false
1669
		Debris:AddItem(FIRE2,5)
1670
	end))
1671
	local FIRETABLE = {}
1672
	local ORB = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Alder"), "Orb", VT(0,0,0), true)
1673
	MakeForm(ORB,"Ball")
1674
	ORB.CFrame = CF(RootPart.Position+VT(0,8,0))
1675
	local A = IT("Attachment",ORB)
1676
	local FIRES = Particles("FireballFire1",A,true)
1677
	FIRES.Size = NumberSequence.new(0)
1678
	FIRES.LockedToPart = true
1679
	local LOOP = 0
1680
	for i = 1, 200 do
1681
		Swait()
1682
		LOOP = LOOP + 1
1683
		if LOOP >= 30 then
1684
			LOOP = 0
1685
			WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(ORB.Size.X,ORB.Size.X/5,ORB.Size.X), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1686
		end
1687
		ORB.Size = ORB.Size + VT(0.2,0.2,0.2)
1688
		ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0))
1689
		FIRES.Size = NumberSequence.new(ORB.Size.Y/1.5)
1690
		FIRES.Speed = NumberRange.new(0,ORB.Size.Y/2)
1691
		FIRES.Enabled = true
1692
	end
1693
	RightArm.Transparency = 1
1694
	LeftArm.Transparency = 1
1695
	FIRE.Enabled = false
1696
	FIRE2.Enabled = false
1697
	for _, c in pairs(Character:GetChildren()) do
1698
		if c:IsA("BasePart") then
1699
			local FLAME = Particles("BodyFire",c,true)
1700
			table.insert(FIRETABLE,FLAME)
1701
		end
1702
	end
1703
	CreateSound(CHARGE,Torso,6,0.5,false)
1704
	for i = 1, 200 do
1705
		Swait()
1706
		LOOP = LOOP + 1
1707
		if LOOP >= 30 then
1708
			LOOP = 0
1709
			WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(ORB.Size.X,ORB.Size.X/5,ORB.Size.X), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1710
		end
1711
		ORB.Size = ORB.Size + VT(0.2,0.2,0.2)
1712
		ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0))
1713
		FIRES.Size = NumberSequence.new(ORB.Size.Y/1.5)
1714
		FIRES.Speed = NumberRange.new(0,ORB.Size.Y/2)
1715
		FIRES.Enabled = true
1716
	end
1717
	for _, c in pairs(Character:GetChildren()) do
1718
		if c:IsA("BasePart") then
1719
			c.Transparency = 1
1720
		end
1721
	end
1722
	for i = 1, #FIRETABLE do
1723
		FIRETABLE[i].Enabled = false
1724
		Debris:AddItem(FIRETABLE[i],5)
1725
	end
1726
	for i = 1, 400 do
1727
		Swait()
1728
		LOOP = LOOP + 1
1729
		if LOOP >= 30 then
1730
			LOOP = 0
1731
			WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(ORB.Size.X,ORB.Size.X/5,ORB.Size.X), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1732
		end
1733
		ORB.Size = ORB.Size + VT(0.2,0.2,0.2)
1734
		ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0))
1735
		FIRES.Size = NumberSequence.new(ORB.Size.Y/1.5)
1736
		FIRES.Speed = NumberRange.new(0,ORB.Size.Y/2)
1737
		FIRES.Enabled = true
1738
	end
1739
	wait(0.5)
1740
	FIRES.Lifetime = NumberRange.new(2,5)
1741
	FIRES.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,ORB.Size.Y/1.5),NumberSequenceKeypoint.new(0.5,ORB.Size.Y/2),NumberSequenceKeypoint.new(1,0)})
1742
	FIRES.LockedToPart = false
1743
	CreateSound(FIREBALLSOUND,Effects,4,1,false)
1744
	coroutine.resume(coroutine.create(function()
1745
		ORB.CFrame = CF(ORB.Position,Mouse.Hit.p)
1746
		for i = 1, 1200 do
1747
			Swait()
1748
			ORB.CFrame = ORB.CFrame*CF(0,0,-1)
1749
			local HIT,HITPOS = Raycast(ORB.Position, ORB.CFrame.lookVector, ORB.Size.X/2.5, Character)
1750
			if HIT then
1751
				break
1752
			end
1753
		end
1754
		for i = 1, 6 do
1755
			ApplyAoE(ORB.Position,ORB.Size.X*10,75,90,375,true,{SHAKE = 4, TIMER = 65, DOESFADE = true})
1756
			CreateSound(EXPLOSIONLARGESOUND,Effects,2,1,false)
1757
			CreateSound(EXPLOSIONSMALLSOUND,Effects,4,1,false)
1758
			for i = 1, 3 do
1759
				WACKYEFFECT({Time = 160, EffectType = "Sphere", Size = VT(0,0,0), Size2 = ORB.Size*MRANDOM(5,20), Transparency = 0.6, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
1760
			end
1761
			for i = 1, 3 do
1762
				WACKYEFFECT({Time = 120, EffectType = "Sphere", Size = VT(0,0,0), Size2 = ORB.Size*MRANDOM(5,20), Transparency = 0.6, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
1763
			end
1764
			for i = 1, 15 do
1765
				WACKYEFFECT({Time = 120+(i*5), EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(ORB.Size.X*30,15,ORB.Size.X*30), Transparency = 0.8, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1766
			end
1767
			wait(1)
1768
		end
1769
		FIRES.Enabled = false
1770
		for i = 1, 10 do
1771
			Swait()
1772
			ORB.Mesh.Scale = ORB.Mesh.Scale - VT(0.1,0.1,0.1)
1773
		end
1774
		Debris:AddItem(ORB,5)
1775
	end))
1776
	wait(1)
1777
	FullBodyRegen()
1778
	ATTACK = false
1779
	Rooted = false
1780
end
1781
1782
--//=================================\\
1783
--||	 	 	MISC
1784
--\\=================================//
1785
1786
function Lock()
1787
	ATTACK = true
1788
	Rooted = true
1789
	local GYRO = IT("BodyGyro",RootPart)
1790
	GYRO.D = 50
1791
	GYRO.P = 4000
1792
	GYRO.MaxTorque = VT(40000,40000,40000)
1793
	local POSITION = IT("BodyPosition",RootPart)
1794
	POSITION.Position = RootPart.Position+VT(0,1,0)
1795
	POSITION.D = 450
1796
	POSITION.P = 40000
1797
	POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1798
	local FLINT = FLINTLOCK:Clone()
1799
	FLINTLOCK.Transparency = 1
1800
	FLINT.Parent = Character
1801
	local SHOT = false
1802
	CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, FLINT, CF(-0.05,-1.65,0) * ANGLES(RAD(180),RAD(0),RAD(0)), CF(0, 0, 0))
1803
	coroutine.resume(coroutine.create(function()
1804
		repeat
1805
			Swait()
1806
			GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
1807
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
1808
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1809
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1810
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1811
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1812
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1813
		until SHOT == true
1814
		CreateSound(213603013,RightArm,4,1,false)
1815
		local FROM = FLINT.CFrame*CF(0,1.043,0.231).p
1816
		local Ignore = Character
1817
		local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
1818
		local TO = Mouse.Hit.p
1819
		local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Ignore)
1820
		if AIMHIT ~= nil then
1821
			if AIMHIT.Parent ~= Character then
1822
				if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
1823
					local HUM = AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid")
1824
					if HUM then
1825
						ApplyDamage(HUM,MRANDOM(70,90))
1826
					end
1827
				end
1828
			end
1829
		end
1830
		local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Pearl", "Arrow", VT(0,0,0))
1831
		MakeForm(TRAIL,"Cyl")
1832
		local DIST = (FLINT.CFrame*CF(0,1.043,0.231).p - AIMPOS).Magnitude
1833
		TRAIL.Size = VT(0.1,DIST,0.1)
1834
		TRAIL.CFrame = CF(FLINT.CFrame*CF(0,1.043,0.231).p, AIMPOS) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
1835
		coroutine.resume(coroutine.create(function()
1836
			for i = 1, 5 do
1837
				Swait()
1838
				TRAIL.Transparency = TRAIL.Transparency + 0.1
1839
			end
1840
			TRAIL:remove()
1841
		end))
1842
		repeat
1843
			Swait()
1844
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
1845
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1846
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1847
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1848
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1849
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1850
		until ATTACK == false
1851
		GYRO:remove()
1852
		POSITION:remove()
1853
		FLINT:remove()
1854
		FLINTLOCK.Transparency = 0
1855
	end))
1856
	wait(0.3)
1857
	SHOT = true
1858
	wait(0.5)
1859
	ATTACK = false
1860
	Rooted = false
1861
end
1862
1863
function Jupiter()
1864
	ATTACK = true
1865
	Rooted = true
1866
	local POSITION = IT("BodyPosition",RootPart)
1867
	POSITION.Position = RootPart.Position+VT(0,0.2,0)
1868
	POSITION.D = 450
1869
	POSITION.P = 40000
1870
	POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1871
	coroutine.resume(coroutine.create(function()
1872
		repeat
1873
			Swait()
1874
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(-5), RAD(-15)), 2 / Animation_Speed)
1875
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.5 / Animation_Speed)
1876
			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)
1877
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1878
			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)
1879
			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)
1880
		until ATTACK == false
1881
	end))
1882
	wait(0.5)
1883
	repeat wait() until KEYHOLD == false
1884
	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})
1885
	POSITION:remove()
1886
	RootPart.Velocity = VT(0,150,0)
1887
	ATTACK = false
1888
	Rooted = false
1889
end
1890
1891
function Taunt()
1892
	ATTACK = true
1893
	Rooted = true
1894
	local TAUNT = CreateSound(159882303,Torso,10,1,false)
1895
	coroutine.resume(coroutine.create(function()
1896
		repeat
1897
			Swait()
1898
			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)
1899
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1900
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.75, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1901
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.25, -0.5) * ANGLES(RAD(90), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1902
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1903
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1904
		until ATTACK == false
1905
	end))
1906
	repeat wait() until TAUNT.Playing == false
1907
	ATTACK = false
1908
	Rooted = false
1909
end
1910
1911
--//=================================\\
1912
--||	  ASSIGN THINGS TO KEYS
1913
--\\=================================//
1914
1915
function MouseDown(Mouse)
1916
	HOLD = true
1917
	if ATTACK == false then
1918
	end
1919
end
1920
1921
function MouseUp(Mouse)
1922
	HOLD = false
1923
end
1924
1925
local MUSIC = CreateSound(285883918,Character,3,1,true)
1926
1927
function KeyDown(Key)
1928
	KEYHOLD = true
1929
	if ATTACK == false and FULLREGEN == false then
1930
		if Key == "z" then
1931
			Fireball()
1932
		end
1933
	
1934
		if Key == "b" and FIREFIELD == false and SEARING == false then
1935
			FireField()
1936
		end
1937
	
1938
		if Key == "c" and SEARING == false then
1939
			SearingForm()
1940
		end
1941
	
1942
		if Key == "v" and SEARING == false then
1943
			SearingOrb()
1944
		end
1945
1946
		if Key == "q" and SEARING == false then
1947
			Shroud()
1948
		end
1949
1950
		if Key == "x" and SEARING == false then
1951
			Jupiter()
1952
			wait(2)
1953
			Devastor()
1954
		end
1955
	
1956
		if Key == "e" then
1957
			Spitter()
1958
		end
1959
1960
		if Key == "g" then
1961
			Lock()
1962
		end
1963
1964
		if Key == "j" then
1965
			Jupiter()
1966
		end
1967
1968
		if Key == "t" and SEARING == false then
1969
			Taunt()
1970
		end
1971
1972
		if Key == "h" then
1973
			if POSEIDON == false then
1974
				POSEIDON = true
1975
				CreateSound(POSEIDONSOUND,Torso,5,MRANDOM(8,12)/10,false)
1976
			else
1977
				POSEIDON = false
1978
			end
1979
		end
1980
	end
1981
1982
	if Key == "w" and ATTACK == false and SEARING == true and VALUE2 == false then
1983
		repeat
1984
			VALUE2 = true
1985
			Swait()
1986
			BODYPOS.Position = RootPart.CFrame*CF(0,0,-5).p
1987
		until KEYHOLD == false
1988
		VALUE2 = false
1989
	end
1990
1991
	if string.byte(Key) == 50 and ATTACK == false then
1992
		if Speed == 16 then
1993
			Speed = 45
1994
		elseif Speed == 45 then
1995
			Speed = 16
1996
		end
1997
	end
1998
1999
	if Key == "1" then
2000
		MUSIC:Play()
2001
		CHOSENSONG = CHOSENSONG + 1
2002
		if CHOSENSONG > #SONGS then
2003
			CHOSENSONG = 1
2004
		end
2005
	end
2006
end
2007
2008
function KeyUp(Key)
2009
	KEYHOLD = false
2010
end
2011
2012
	Mouse.Button1Down:connect(function(NEWKEY)
2013
		MouseDown(NEWKEY)
2014
	end)
2015
	Mouse.Button1Up:connect(function(NEWKEY)
2016
		MouseUp(NEWKEY)
2017
	end)
2018
	Mouse.KeyDown:connect(function(NEWKEY)
2019
		KeyDown(NEWKEY)
2020
	end)
2021
	Mouse.KeyUp:connect(function(NEWKEY)
2022
		KeyUp(NEWKEY)
2023
	end)
2024
2025
--//=================================\\
2026
--\\=================================//
2027
2028
function unanchor()
2029
	if UNANCHOR == true then
2030
		for _, c in pairs(Character:GetChildren()) do
2031
			if c:IsA("BasePart") then
2032
				c.Anchored = false
2033
			end
2034
		end
2035
	else
2036
		for _, c in pairs(Character:GetChildren()) do
2037
			if c:IsA("BasePart") then
2038
				c.Anchored = true
2039
			end
2040
		end
2041
	end
2042
end
2043
2044
--//=================================\\
2045
--||	WRAP THE WHOLE SCRIPT UP
2046
--\\=================================//
2047
2048
Humanoid.Changed:connect(function(Jump)
2049
	if Jump == "Jump" and (Disable_Jump == true) then
2050
		Humanoid.Jump = false
2051
	end
2052
end)
2053
2054
local LOOP = 0
2055
2056
while true do
2057
	Swait()
2058
	if Character:FindFirstChildOfClass("Humanoid") == nil then
2059
		Humanoid = IT("Humanoid",Character)
2060
	end
2061
	Effects.Parent = Character
2062
	script.Parent = WEAPONGUI
2063
	ANIMATE.Parent = nil
2064
	for _,v in next, Humanoid:GetPlayingAnimationTracks() do
2065
	    v:Stop();
2066
	end
2067
	SINE = SINE + CHANGE
2068
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
2069
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
2070
	Ignore = {Torso,RootPart,RightLeg,LeftLeg,RightLeg,Head,RightArm,LeftArm,Effects}
2071
	local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
2072
	local HITFLOOR,HITPOS = CastProperRay(RootPart.Position, RootPart.Position-VT(0,15,0), 4, Ignore)
2073
	local WALKSPEEDVALUE = 5
2074
	if SEARING == false then
2075
		if ANIM == "Walk" and TORSOVELOCITY > 1 and SEARING == false and Rooted == false then
2076
			if Humanoid.WalkSpeed <= 20 then
2077
				RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.05 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * 1 / Animation_Speed)
2078
				Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2079
				RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.05 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2 -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
2080
				LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.05 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2 +0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
2081
			elseif SEARING == false and Humanoid.WalkSpeed > 20 and Rooted == false then
2082
				RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / (2*1.3)))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * 1 / Animation_Speed)
2083
				Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / (2*1.3)))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2084
				RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE*1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE*(2*1.3)), -0.125 * COS(SINE / WALKSPEEDVALUE*1.3) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE*1.3)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(75 * COS(SINE / WALKSPEEDVALUE*1.3))), 0.5 / Animation_Speed)
2085
				LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE*1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE*(2*1.3)), 0.125 * COS(SINE / WALKSPEEDVALUE*1.3) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE*1.3)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(75 * COS(SINE / WALKSPEEDVALUE*1.3))), 0.5 / Animation_Speed)
2086
			end
2087
		elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or SEARING == true or Rooted == true then
2088
			RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2089
			Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2090
			RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2091
			LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2092
		end
2093
		if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
2094
			ANIM = "Jump"
2095
			if ATTACK == false then
2096
				RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2097
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
2098
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-5), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2099
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-5), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2100
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(2), RAD(0), RAD(0)), 1 / Animation_Speed)
2101
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(2), RAD(0), RAD(0)), 1 / Animation_Speed)
2102
		    end
2103
		elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
2104
			ANIM = "Fall"
2105
			if ATTACK == false then
2106
				RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(8*COS(SINE / 6))), 1 / Animation_Speed)
2107
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-8*COS(SINE / 6))), 1 / Animation_Speed)
2108
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.85, 0) * ANGLES(RAD(0), RAD(0), RAD(110)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2109
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.85, 0) * ANGLES(RAD(0), RAD(0), RAD(-110)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2110
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed)
2111
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed)
2112
			end
2113
		elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
2114
			ANIM = "Idle"
2115
			if ATTACK == false then
2116
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed)
2117
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed)
2118
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.70, 0.05) * ANGLES(RAD(-15 - 2 * COS(SINE / 12)), RAD(-25), RAD(-10 - 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2119
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.70, 0.05) * ANGLES(RAD(-15 - 1 * COS(SINE / 12)), RAD(25), RAD(20 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
2120
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(50), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
2121
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
2122
			end
2123
		elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
2124
			ANIM = "Walk"
2125
			if ATTACK == false then
2126
				if Humanoid.WalkSpeed <= 20 then
2127
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2128
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2129
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.70, 0) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.85 / Animation_Speed)
2130
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.70, 0) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.85 / Animation_Speed)
2131
					RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
2132
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
2133
				elseif Humanoid.WalkSpeed > 20 then
2134
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2135
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2136
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.70, 0) * ANGLES(RAD(35), RAD(35), RAD(0)) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE*1.3)), RAD(0), RAD(2)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
2137
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.70, 0) * ANGLES(RAD(35), RAD(-35), RAD(0)) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE*1.3)), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 2 / Animation_Speed)
2138
					RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(6)), 2 / Animation_Speed)
2139
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-6)), 2 / Animation_Speed)
2140
				end
2141
			end
2142
		end
2143
	elseif SEARING == true then
2144
		if APPLYGYRO == true then
2145
			if VALUE2 == false and DIRECTTURN == false then
2146
				if GYRO ~= nil then
2147
					GYRO.MaxTorque = VT(0,40000,0)
2148
					GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
2149
				end
2150
			else
2151
				if GYRO ~= nil then
2152
					GYRO.MaxTorque = VT(80000,40000,80000)
2153
					GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
2154
				end
2155
			end
2156
		end
2157
		if VALUE2 == false and ATTACK == false then
2158
			ANIM = "IdleFlight"
2159
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
2160
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
2161
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(0), RAD(-15), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2162
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2163
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2164
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2165
		elseif VALUE2 == true and ATTACK == false then
2166
			ANIM = "Flight"
2167
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(65), RAD(0), RAD(0)), 1 / Animation_Speed)
2168
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
2169
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0,1 / Animation_Speed)
2170
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2171
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-15), RAD(65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2172
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-15), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2173
		end
2174
	end
2175
	unanchor()
2176
	Humanoid.MaxHealth = 5000
2177
	Humanoid.Health = 5000
2178
	if Rooted == false then
2179
		Disable_Jump = false
2180
		Humanoid.WalkSpeed = Speed
2181
	elseif Rooted == true then
2182
		Disable_Jump = true
2183
		Humanoid.WalkSpeed = 0
2184
	end
2185
	Regen()
2186
	if Head:FindFirstChild("face") then
2187
		Head.face.Texture = "rbxassetid://608798717"
2188
		Head.face.Transparency = Head.Transparency
2189
	end
2190
	for _, c in pairs(Character:GetDescendants()) do
2191
		if c.ClassName == "Attachment" and c ~= BACKATTACHMENT1 and c ~= BACKATTACHMENT2 and c.Parent.Parent ~= Effects then
2192
			c:remove()
2193
		end
2194
		if c.ClassName == "ParticleEmitter" then
2195
			if c.Name ~= "Regen" and c.Name ~= "Regen2" and c.Name ~= "CurseParticles" and c.Parent.Parent == Character then
2196
				c:remove()
2197
			end
2198
		end
2199
		if c and c.Parent then
2200
			if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then
2201
				local ACCESSORY = c.Parent
2202
				c.Parent = Character
2203
				local REGENVALUE = IT("BoolValue",c)
2204
				REGENVALUE.Name = "IsRegening"
2205
				table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name,REGENVALUE})
2206
				if c then
2207
					if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then
2208
						local WELD = weldBetween(Head,c)
2209
						table.insert(BODY,{WELD,c,nil,nil,nil,nil,nil,nil})
2210
					else
2211
						local WELD = weldBetween(Torso,c)
2212
						table.insert(BODY,{WELD,c,nil,nil,nil,nil,nil,nil})
2213
					end
2214
				end
2215
				ACCESSORY:remove()
2216
			end
2217
		end
2218
	end
2219
	for _, c in pairs(Character:GetChildren()) do
2220
		if SEARING == true and c:IsA("BasePart") then
2221
			c.Transparency = 1
2222
		end
2223
	end
2224
	MUSIC.Parent = Character
2225
	MUSIC.SoundId = "rbxassetid://"..SONGS[CHOSENSONG]
2226
	MUSIC.Pitch = 1
2227
	if CHOSENSONG ~= 5 then
2228
		MUSIC.Volume = 2
2229
	else
2230
		MUSIC.Volume = 4
2231
	end 
2232
	MUSIC.Playing = true
2233
	if POSEIDON == true and FULLREGEN == false then
2234
		LOOP = LOOP + 1
2235
		local FLOOR = CreatePart(3, SpecialEffects, "Neon", 0, 1, BRICKC("Pearl"), "Floor", VT(15,0,15), true)
2236
		FLOOR.CFrame = CF(HITPOS-VT(0,0.025,0))
2237
		FLOOR.CanCollide = true
2238
		Debris:AddItem(FLOOR,0.2)
2239
		local FLOOR = CreatePart(3, SpecialEffects, "Neon", 0, 1, BRICKC("Pearl"), "Floor", VT(15,0,15), true)
2240
		FLOOR.CFrame = CF(HITPOS-VT(0,0.025,0))*ANGLES(RAD(0),RAD(45),RAD(0))
2241
		FLOOR.CanCollide = true
2242
		Debris:AddItem(FLOOR,0.2)
2243
		if LOOP >= 5 then
2244
			LOOP = 0
2245
			WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(15,1,15), Transparency = 0.7, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = HITPOS+VT(0,0.45,0), RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Shamrock".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2246
		end
2247
	end
2248
	RootJoint.Parent = RootPart
2249
	Humanoid.DisplayDistanceType = "None"
2250
	Humanoid.Name = "Searing Emperor"
2251
end
2252
2253
--//=================================\\
2254
--\\=================================//
2255
2256
2257
2258
2259
2260
--//====================================================\\--
2261
--||			  		 END OF SCRIPT
2262
--\\====================================================//--
2263
end))
2264
ParticleEmitter1.Name = "Regen"
2265
ParticleEmitter1.Parent = LocalScript0
2266
ParticleEmitter1.Speed = NumberRange.new(1, 1)
2267
ParticleEmitter1.Rotation = NumberRange.new(0, 360)
2268
ParticleEmitter1.Color = ColorSequence.new(Color3.new(0.666667, 0.333333, 1),Color3.new(0.458824, 0.227451, 0.686275),Color3.new(0, 1, 1))
2269
ParticleEmitter1.Enabled = false
2270
ParticleEmitter1.LightEmission = 0.89999997615814
2271
ParticleEmitter1.Texture = "rbxassetid://296874871"
2272
ParticleEmitter1.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
2273
ParticleEmitter1.ZOffset = 1
2274
ParticleEmitter1.Size = NumberSequence.new(0.81250011920929,0.81250011920929,0)
2275
ParticleEmitter1.Acceleration = Vector3.new(0, 3, 0)
2276
ParticleEmitter1.Drag = 3
2277
ParticleEmitter1.EmissionDirection = Enum.NormalId.Right
2278
ParticleEmitter1.Lifetime = NumberRange.new(1, 1)
2279
ParticleEmitter1.Rate = 300
2280
ParticleEmitter1.RotSpeed = NumberRange.new(-56, 56)
2281
ParticleEmitter1.SpreadAngle = Vector2.new(360, 360)
2282
ParticleEmitter1.VelocitySpread = 360
2283
ParticleEmitter2.Name = "Regen2"
2284
ParticleEmitter2.Parent = LocalScript0
2285
ParticleEmitter2.Speed = NumberRange.new(1, 1)
2286
ParticleEmitter2.Rotation = NumberRange.new(0, 360)
2287
ParticleEmitter2.Color = ColorSequence.new(Color3.new(0.666667, 0.333333, 1),Color3.new(0.458824, 0.227451, 0.686275),Color3.new(0, 1, 1))
2288
ParticleEmitter2.Enabled = false
2289
ParticleEmitter2.LightEmission = 0.89999997615814
2290
ParticleEmitter2.Texture = "rbxassetid://296874871"
2291
ParticleEmitter2.Transparency = NumberSequence.new(1,1,0.7704918384552,0.29508197307587,0.24590164422989,0.37704920768738,0.62841534614563,0.90710383653641,1)
2292
ParticleEmitter2.ZOffset = 1
2293
ParticleEmitter2.Size = NumberSequence.new(0,0.81967234611511,0.7103830575943,0.49180328845978,0)
2294
ParticleEmitter2.Drag = 5
2295
ParticleEmitter2.EmissionDirection = Enum.NormalId.Right
2296
ParticleEmitter2.Lifetime = NumberRange.new(1, 1)
2297
ParticleEmitter2.Rate = 70
2298
ParticleEmitter2.RotSpeed = NumberRange.new(-56, 56)
2299
ParticleEmitter2.SpreadAngle = Vector2.new(360, 360)
2300
ParticleEmitter2.VelocitySpread = 360
2301
BillboardGui3.Name = "NameGui"
2302
BillboardGui3.Parent = LocalScript0
2303
BillboardGui3.Enabled = true
2304
BillboardGui3.Size = UDim2.new(7.5, 0, 1.5, 0)
2305
BillboardGui3.AlwaysOnTop = true
2306
BillboardGui3.MaxDistance = 70
2307
BillboardGui3.SizeOffset = Vector2.new(0, 4)
2308
TextLabel4.Name = "PlayerName"
2309
TextLabel4.Parent = BillboardGui3
2310
TextLabel4.Transparency = 0
2311
TextLabel4.Size = UDim2.new(1, 0, 1, 0)
2312
TextLabel4.BackgroundColor = BrickColor.new("Mulberry")
2313
TextLabel4.BackgroundColor3 = Color3.new(1, 1, 1)
2314
TextLabel4.BackgroundTransparency = 1
2315
TextLabel4.BorderColor = BrickColor.new("Black")
2316
TextLabel4.BorderColor3 = Color3.new(1, 1, 1)
2317
TextLabel4.BorderSizePixel = 0
2318
TextLabel4.Font = Enum.Font.Antique
2319
TextLabel4.FontSize = Enum.FontSize.Size14
2320
TextLabel4.Text = "Law"
2321
TextLabel4.TextColor = BrickColor.new("Sand violet metallic")
2322
TextLabel4.TextColor3 = Color3.new(0.580392, 0.580392, 0.580392)
2323
TextLabel4.TextScaled = true
2324
TextLabel4.TextSize = 14
2325
TextLabel4.TextStrokeColor3 = Color3.new(0.337255, 0.337255, 0.337255)
2326
TextLabel4.TextStrokeTransparency = 0
2327
TextLabel4.TextWrap = true
2328
TextLabel4.TextWrapped = true
2329
TextLabel5.Name = "Title"
2330
TextLabel5.Parent = BillboardGui3
2331
TextLabel5.Position = UDim2.new(-0.75, 0, 0.899999976, 0)
2332
TextLabel5.Transparency = 0
2333
TextLabel5.Size = UDim2.new(2.5, 0, 1.5, 0)
2334
TextLabel5.BackgroundColor = BrickColor.new("Mulberry")
2335
TextLabel5.BackgroundColor3 = Color3.new(1, 1, 1)
2336
TextLabel5.BackgroundTransparency = 1
2337
TextLabel5.BorderColor = BrickColor.new("Black")
2338
TextLabel5.BorderColor3 = Color3.new(1, 1, 1)
2339
TextLabel5.BorderSizePixel = 0
2340
TextLabel5.Font = Enum.Font.Antique
2341
TextLabel5.FontSize = Enum.FontSize.Size14
2342
TextLabel5.Text = "The Searing Emperor"
2343
TextLabel5.TextColor = BrickColor.new("Alder")
2344
TextLabel5.TextColor3 = Color3.new(0.666667, 0.333333, 1)
2345
TextLabel5.TextScaled = true
2346
TextLabel5.TextSize = 14
2347
TextLabel5.TextStrokeColor3 = Color3.new(0.666667, 0, 1)
2348
TextLabel5.TextStrokeTransparency = 0
2349
TextLabel5.TextWrap = true
2350
TextLabel5.TextWrapped = true
2351
ParticleEmitter6.Name = "FistFire"
2352
ParticleEmitter6.Parent = LocalScript0
2353
ParticleEmitter6.Speed = NumberRange.new(3, 3)
2354
ParticleEmitter6.Rotation = NumberRange.new(0, 360)
2355
ParticleEmitter6.Color = ColorSequence.new(Color3.new(0.666667, 0.333333, 1),Color3.new(0.458824, 0.227451, 0.686275),Color3.new(0, 1, 1))
2356
ParticleEmitter6.Enabled = false
2357
ParticleEmitter6.LightEmission = 0.89999997615814
2358
ParticleEmitter6.Texture = "rbxassetid://296874871"
2359
ParticleEmitter6.Transparency = NumberSequence.new(0.47540986537933,0.2896174788475,0.25683063268661,0.4426229596138,0.62841534614563,1)
2360
ParticleEmitter6.ZOffset = 1
2361
ParticleEmitter6.Size = NumberSequence.new(0,0,0.7103830575943,0.49180328845978,0)
2362
ParticleEmitter6.Acceleration = Vector3.new(0, 3, 0)
2363
ParticleEmitter6.Drag = 1
2364
ParticleEmitter6.EmissionDirection = Enum.NormalId.Bottom
2365
ParticleEmitter6.Lifetime = NumberRange.new(2, 2)
2366
ParticleEmitter6.LockedToPart = true
2367
ParticleEmitter6.Rate = 300
2368
ParticleEmitter6.RotSpeed = NumberRange.new(-56, 56)
2369
ParticleEmitter6.SpreadAngle = Vector2.new(45, 45)
2370
ParticleEmitter6.VelocitySpread = 45
2371
LocalScript7.Name = "CamShake"
2372
LocalScript7.Parent = LocalScript0
2373
table.insert(cors,sandbox(LocalScript7,function()
2374
wait()
2375
VT = Vector3.new
2376
MRANDOM = math.random
2377
local A = nil
2378
local B = nil
2379
local C = nil
2380
local HUMANOID = script.Parent:FindFirstChildOfClass("Humanoid")
2381
for _, c in pairs(script:GetChildren()) do
2382
	if c.Name == "Timer" then
2383
		A = c.Value
2384
	elseif c.Name == "Shake" then
2385
		B = c.Value*5
2386
	elseif c.Name == "DoesFade" then
2387
		C = c.Value
2388
	end
2389
end
2390
local TIMER = A or 35
2391
local SHAKE = B or 5
2392
local FADE = C or true
2393
if HUMANOID and game.Players:FindFirstChild(script.Parent.Name) then
2394
	if FADE == true then
2395
		local FADER = SHAKE/TIMER
2396
		for i = 1, TIMER do
2397
			wait()
2398
			HUMANOID.CameraOffset = VT(MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10,MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10,MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10)
2399
		end
2400
		HUMANOID.CameraOffset = VT(0,0,0)
2401
	else
2402
		for i = 1, TIMER do
2403
			wait()
2404
			HUMANOID.CameraOffset = VT(MRANDOM(-SHAKE,SHAKE)/10,MRANDOM(-SHAKE,SHAKE)/10,MRANDOM(-SHAKE,SHAKE)/10)
2405
		end
2406
		HUMANOID.CameraOffset = VT(0,0,0)
2407
	end
2408
end
2409
script:remove()
2410
end))
2411
LocalScript7.Disabled = true
2412
NumberValue8.Name = "Timer"
2413
NumberValue8.Parent = LocalScript7
2414
NumberValue8.Value = 35
2415
NumberValue9.Name = "Shake"
2416
NumberValue9.Parent = LocalScript7
2417
NumberValue9.Value = 5
2418
BoolValue10.Name = "DoesFade"
2419
BoolValue10.Parent = LocalScript7
2420
ParticleEmitter11.Name = "FireballFire2"
2421
ParticleEmitter11.Parent = LocalScript0
2422
ParticleEmitter11.Rotation = NumberRange.new(0, 360)
2423
ParticleEmitter11.Color = ColorSequence.new(Color3.new(0.14902, 0.886275, 1),Color3.new(0, 0.666667, 1))
2424
ParticleEmitter11.Enabled = false
2425
ParticleEmitter11.LightEmission = 0.89999997615814
2426
ParticleEmitter11.Texture = "rbxassetid://296874871"
2427
ParticleEmitter11.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
2428
ParticleEmitter11.ZOffset = 2
2429
ParticleEmitter11.Size = NumberSequence.new(5,5,1.8032789230347,0)
2430
ParticleEmitter11.Drag = 1
2431
ParticleEmitter11.EmissionDirection = Enum.NormalId.Right
2432
ParticleEmitter11.Lifetime = NumberRange.new(0, 1.5)
2433
ParticleEmitter11.Rate = 9999
2434
ParticleEmitter11.RotSpeed = NumberRange.new(-56, 56)
2435
ParticleEmitter11.SpreadAngle = Vector2.new(360, 360)
2436
ParticleEmitter11.VelocitySpread = 360
2437
ParticleEmitter12.Name = "ExplosionFire2"
2438
ParticleEmitter12.Parent = LocalScript0
2439
ParticleEmitter12.Speed = NumberRange.new(7, 270)
2440
ParticleEmitter12.Rotation = NumberRange.new(0, 360)
2441
ParticleEmitter12.Color = ColorSequence.new(Color3.new(0.666667, 0.333333, 1),Color3.new(0.458824, 0.227451, 0.686275),Color3.new(0, 1, 1))
2442
ParticleEmitter12.Enabled = false
2443
ParticleEmitter12.LightEmission = 0.89999997615814
2444
ParticleEmitter12.Texture = "rbxassetid://296874871"
2445
ParticleEmitter12.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
2446
ParticleEmitter12.ZOffset = 1
2447
ParticleEmitter12.Size = NumberSequence.new(0,0.98360657691956,1.530054807663,0)
2448
ParticleEmitter12.Drag = 8
2449
ParticleEmitter12.EmissionDirection = Enum.NormalId.Right
2450
ParticleEmitter12.Lifetime = NumberRange.new(2, 4)
2451
ParticleEmitter12.Rate = 300
2452
ParticleEmitter12.RotSpeed = NumberRange.new(-56, 56)
2453
ParticleEmitter12.SpreadAngle = Vector2.new(360, 360)
2454
ParticleEmitter12.VelocitySpread = 360
2455
ParticleEmitter13.Name = "Field"
2456
ParticleEmitter13.Parent = LocalScript0
2457
ParticleEmitter13.Speed = NumberRange.new(20, 50)
2458
ParticleEmitter13.Rotation = NumberRange.new(0, 360)
2459
ParticleEmitter13.Color = ColorSequence.new(Color3.new(0.666667, 0.333333, 1),Color3.new(0.458824, 0.227451, 0.686275),Color3.new(0, 1, 1))
2460
ParticleEmitter13.Enabled = false
2461
ParticleEmitter13.LightEmission = 0.89999997615814
2462
ParticleEmitter13.Texture = "rbxassetid://296874871"
2463
ParticleEmitter13.Transparency = NumberSequence.new(1,0.92349725961685,0.87978142499924,0.92349725961685,1)
2464
ParticleEmitter13.ZOffset = 1
2465
ParticleEmitter13.Size = NumberSequence.new(0,10)
2466
ParticleEmitter13.EmissionDirection = Enum.NormalId.Right
2467
ParticleEmitter13.Lifetime = NumberRange.new(2, 4)
2468
ParticleEmitter13.Rate = 999
2469
ParticleEmitter13.RotSpeed = NumberRange.new(-56, 56)
2470
ParticleEmitter13.SpreadAngle = Vector2.new(360, 360)
2471
ParticleEmitter13.VelocitySpread = 360
2472
ParticleEmitter14.Name = "BodyFire"
2473
ParticleEmitter14.Parent = LocalScript0
2474
ParticleEmitter14.Speed = NumberRange.new(1, 1)
2475
ParticleEmitter14.Rotation = NumberRange.new(0, 360)
2476
ParticleEmitter14.Color = ColorSequence.new(Color3.new(0.666667, 0.333333, 1),Color3.new(0.458824, 0.227451, 0.686275),Color3.new(0, 1, 1))
2477
ParticleEmitter14.Enabled = false
2478
ParticleEmitter14.LightEmission = 0.89999997615814
2479
ParticleEmitter14.Texture = "rbxassetid://296874871"
2480
ParticleEmitter14.Transparency = NumberSequence.new(0,0.14207655191422,0.4426229596138,0.62841534614563,1)
2481
ParticleEmitter14.ZOffset = 1
2482
ParticleEmitter14.Size = NumberSequence.new(0.81250011920929,0.81250011920929,0)
2483
ParticleEmitter14.Acceleration = Vector3.new(0, 3, 0)
2484
ParticleEmitter14.Drag = 3
2485
ParticleEmitter14.EmissionDirection = Enum.NormalId.Right
2486
ParticleEmitter14.Lifetime = NumberRange.new(1, 1)
2487
ParticleEmitter14.Rate = 300
2488
ParticleEmitter14.RotSpeed = NumberRange.new(-56, 56)
2489
ParticleEmitter14.SpreadAngle = Vector2.new(360, 360)
2490
ParticleEmitter14.VelocitySpread = 360
2491
ParticleEmitter15.Name = "WingFire1"
2492
ParticleEmitter15.Parent = LocalScript0
2493
ParticleEmitter15.Speed = NumberRange.new(8, 8)
2494
ParticleEmitter15.Rotation = NumberRange.new(0, 360)
2495
ParticleEmitter15.Color = ColorSequence.new(Color3.new(0.666667, 0.333333, 1),Color3.new(0.458824, 0.227451, 0.686275),Color3.new(0, 1, 1))
2496
ParticleEmitter15.Enabled = false
2497
ParticleEmitter15.LightEmission = 0.89999997615814
2498
ParticleEmitter15.Texture = "rbxassetid://296874871"
2499
ParticleEmitter15.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
2500
ParticleEmitter15.ZOffset = 1
2501
ParticleEmitter15.Size = NumberSequence.new(0,4.0437164306641,5.7377052307129,6.1748638153076)
2502
ParticleEmitter15.Acceleration = Vector3.new(8, 5, -7)
2503
ParticleEmitter15.EmissionDirection = Enum.NormalId.Back
2504
ParticleEmitter15.Lifetime = NumberRange.new(2.5, 2.5)
2505
ParticleEmitter15.LockedToPart = true
2506
ParticleEmitter15.Rate = 300
2507
ParticleEmitter15.RotSpeed = NumberRange.new(-56, 56)
2508
ParticleEmitter15.SpreadAngle = Vector2.new(15, 5)
2509
ParticleEmitter15.VelocitySpread = 15
2510
ParticleEmitter16.Name = "WingFire2"
2511
ParticleEmitter16.Parent = LocalScript0
2512
ParticleEmitter16.Speed = NumberRange.new(8, 8)
2513
ParticleEmitter16.Rotation = NumberRange.new(0, 360)
2514
ParticleEmitter16.Color = ColorSequence.new(Color3.new(0.666667, 0.333333, 1),Color3.new(0.458824, 0.227451, 0.686275),Color3.new(0, 1, 1))
2515
ParticleEmitter16.Enabled = false
2516
ParticleEmitter16.LightEmission = 0.89999997615814
2517
ParticleEmitter16.Texture = "rbxassetid://296874871"
2518
ParticleEmitter16.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
2519
ParticleEmitter16.ZOffset = 1
2520
ParticleEmitter16.Size = NumberSequence.new(0,4.0437164306641,5.7377052307129,6.1748638153076)
2521
ParticleEmitter16.Acceleration = Vector3.new(-8, 5, -7)
2522
ParticleEmitter16.EmissionDirection = Enum.NormalId.Back
2523
ParticleEmitter16.Lifetime = NumberRange.new(2.5, 2.5)
2524
ParticleEmitter16.LockedToPart = true
2525
ParticleEmitter16.Rate = 300
2526
ParticleEmitter16.RotSpeed = NumberRange.new(-56, 56)
2527
ParticleEmitter16.SpreadAngle = Vector2.new(15, 5)
2528
ParticleEmitter16.VelocitySpread = 15
2529
ParticleEmitter17.Name = "ExplosionFire1"
2530
ParticleEmitter17.Parent = LocalScript0
2531
ParticleEmitter17.Speed = NumberRange.new(7, 670)
2532
ParticleEmitter17.Rotation = NumberRange.new(0, 360)
2533
ParticleEmitter17.Color = ColorSequence.new(Color3.new(0.666667, 0.333333, 1),Color3.new(0.458824, 0.227451, 0.686275),Color3.new(0, 1, 1))
2534
ParticleEmitter17.Enabled = false
2535
ParticleEmitter17.LightEmission = 0.89999997615814
2536
ParticleEmitter17.Texture = "rbxassetid://296874871"
2537
ParticleEmitter17.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
2538
ParticleEmitter17.ZOffset = 1
2539
ParticleEmitter17.Size = NumberSequence.new(10,10,7.0491800308228,0)
2540
ParticleEmitter17.Drag = 5
2541
ParticleEmitter17.EmissionDirection = Enum.NormalId.Right
2542
ParticleEmitter17.Lifetime = NumberRange.new(2, 4)
2543
ParticleEmitter17.Rate = 300
2544
ParticleEmitter17.RotSpeed = NumberRange.new(-56, 56)
2545
ParticleEmitter17.SpreadAngle = Vector2.new(360, 360)
2546
ParticleEmitter17.VelocitySpread = 360
2547
ParticleEmitter18.Name = "FireballFire1"
2548
ParticleEmitter18.Parent = LocalScript0
2549
ParticleEmitter18.Rotation = NumberRange.new(0, 360)
2550
ParticleEmitter18.Color = ColorSequence.new(Color3.new(0.666667, 0.333333, 1),Color3.new(0.458824, 0.227451, 0.686275),Color3.new(0, 1, 1))
2551
ParticleEmitter18.Enabled = false
2552
ParticleEmitter18.LightEmission = 0.89999997615814
2553
ParticleEmitter18.Texture = "rbxassetid://296874871"
2554
ParticleEmitter18.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
2555
ParticleEmitter18.ZOffset = 1
2556
ParticleEmitter18.Size = NumberSequence.new(10,10,7.0491800308228,0)
2557
ParticleEmitter18.Drag = 1
2558
ParticleEmitter18.EmissionDirection = Enum.NormalId.Right
2559
ParticleEmitter18.Lifetime = NumberRange.new(0, 1.5)
2560
ParticleEmitter18.Rate = 9999
2561
ParticleEmitter18.RotSpeed = NumberRange.new(-56, 56)
2562
ParticleEmitter18.SpreadAngle = Vector2.new(360, 360)
2563
ParticleEmitter18.VelocitySpread = 360
2564
ParticleEmitter19.Name = "FireballFire3"
2565
ParticleEmitter19.Parent = LocalScript0
2566
ParticleEmitter19.Rotation = NumberRange.new(0, 360)
2567
ParticleEmitter19.Color = ColorSequence.new(Color3.new(0.666667, 0.333333, 1),Color3.new(0.458824, 0.227451, 0.686275),Color3.new(0, 1, 1))
2568
ParticleEmitter19.Enabled = false
2569
ParticleEmitter19.LightEmission = 0.89999997615814
2570
ParticleEmitter19.Texture = "rbxassetid://296874871"
2571
ParticleEmitter19.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
2572
ParticleEmitter19.ZOffset = 1
2573
ParticleEmitter19.Size = NumberSequence.new(2.7868854999542,4.4808745384216,4.5901637077332,0)
2574
ParticleEmitter19.Drag = 1
2575
ParticleEmitter19.EmissionDirection = Enum.NormalId.Right
2576
ParticleEmitter19.Lifetime = NumberRange.new(0, 1.5)
2577
ParticleEmitter19.Rate = 9999
2578
ParticleEmitter19.RotSpeed = NumberRange.new(-56, 56)
2579
ParticleEmitter19.SpreadAngle = Vector2.new(360, 360)
2580
ParticleEmitter19.VelocitySpread = 360
2581
ParticleEmitter20.Name = "DebrisFire"
2582
ParticleEmitter20.Parent = LocalScript0
2583
ParticleEmitter20.Speed = NumberRange.new(2, 2)
2584
ParticleEmitter20.Rotation = NumberRange.new(0, 360)
2585
ParticleEmitter20.Color = ColorSequence.new(Color3.new(0.666667, 0.333333, 1),Color3.new(0.458824, 0.227451, 0.686275),Color3.new(0, 1, 1))
2586
ParticleEmitter20.Enabled = false
2587
ParticleEmitter20.LightEmission = 0.89999997615814
2588
ParticleEmitter20.Texture = "rbxassetid://296874871"
2589
ParticleEmitter20.Transparency = NumberSequence.new(0,0.14207655191422,0.4426229596138,0.62841534614563,1)
2590
ParticleEmitter20.ZOffset = 1
2591
ParticleEmitter20.Size = NumberSequence.new(2.677595615387,3.9890713691711,4.6448087692261,3.8251371383667,0)
2592
ParticleEmitter20.Acceleration = Vector3.new(0, 25, 0)
2593
ParticleEmitter20.Drag = 3
2594
ParticleEmitter20.EmissionDirection = Enum.NormalId.Right
2595
ParticleEmitter20.Lifetime = NumberRange.new(0, 3)
2596
ParticleEmitter20.Rate = 300
2597
ParticleEmitter20.RotSpeed = NumberRange.new(-56, 56)
2598
ParticleEmitter20.SpreadAngle = Vector2.new(360, 360)
2599
ParticleEmitter20.VelocitySpread = 360
2600
Part21.Name = "Pauldrons"
2601
Part21.Parent = LocalScript0
2602
Part21.CFrame = CFrame.new(47.1000023, 21.5235691, 58.9999733, -1, 0, 0, 0, 1, 0, 0, 0, -1)
2603
Part21.Orientation = Vector3.new(0, 180, 0)
2604
Part21.Position = Vector3.new(47.1000023, 21.5235691, 58.9999733)
2605
Part21.Rotation = Vector3.new(-180, 0, -180)
2606
Part21.Transparency = 1
2607
Part21.Size = Vector3.new(3.4000001, 2.20000005, 1)
2608-
Part21.Material = Enum.Material.ForceField
2608+
2609
Part21.Anchored = true
2610
Part21.BottomSurface = Enum.SurfaceType.Smooth
2611
Part21.CanCollide = false
2612
Part21.Locked = true
2613
Part21.TopSurface = Enum.SurfaceType.Smooth
2614
Part21.FormFactor = Enum.FormFactor.Custom
2615
Part21.formFactor = Enum.FormFactor.Custom
2616
SpecialMesh22.Parent = Part21
2617
SpecialMesh22.MeshId = "http://www.roblox.com/asset/?id=204454962 "
2618
SpecialMesh22.TextureId = "rbxassetid://855840122"
2619
SpecialMesh22.MeshType = Enum.MeshType.FileMesh
2620
Folder23.Name = "Package"
2621
Folder23.Parent = LocalScript0
2622
CharacterMesh24.Parent = Folder23
2623
CharacterMesh24.BodyPart = Enum.BodyPart.Torso
2624
CharacterMesh24.MeshId = 27111894
2625
CharacterMesh25.Parent = Folder23
2626
CharacterMesh25.BodyPart = Enum.BodyPart.LeftLeg
2627
CharacterMesh25.MeshId = 27111857
2628
CharacterMesh26.Parent = Folder23
2629
CharacterMesh26.BodyPart = Enum.BodyPart.RightLeg
2630
CharacterMesh26.MeshId = 27111882
2631
CharacterMesh27.Name = "Superhero Left Arm"
2632
CharacterMesh27.Parent = Folder23
2633
CharacterMesh27.BodyPart = Enum.BodyPart.LeftArm
2634
CharacterMesh27.MeshId = 32328397
2635
CharacterMesh28.Name = "Superhero Right Arm"
2636
CharacterMesh28.Parent = Folder23
2637
CharacterMesh28.BodyPart = Enum.BodyPart.RightArm
2638
CharacterMesh28.MeshId = 32328563
2639
Part29.Name = "Flintlock"
2640
Part29.Parent = LocalScript0
2641
Part29.CFrame = CFrame.new(-11.2999983, 4.42351913, 92.0999756, -1, 0, 0, 0, -1, 0, 0, 0, 1)
2642
Part29.Orientation = Vector3.new(0, 0, 180)
2643
Part29.Position = Vector3.new(-11.2999983, 4.42351913, 92.0999756)
2644
Part29.Rotation = Vector3.new(0, 0, -180)
2645
Part29.Color = Color3.new(0.105882, 0.164706, 0.207843)
2646
Part29.Size = Vector3.new(1, 2, 1)
2647
Part29.Anchored = true
2648
Part29.BottomSurface = Enum.SurfaceType.Smooth
2649
Part29.BrickColor = BrickColor.new("Black")
2650
Part29.CanCollide = false
2651-
Part29.Material = Enum.Material.ForceField
2651+
2652
Part29.TopSurface = Enum.SurfaceType.Smooth
2653
Part29.brickColor = BrickColor.new("Black")
2654
Part29.FormFactor = Enum.FormFactor.Plate
2655
Part29.formFactor = Enum.FormFactor.Plate
2656
SpecialMesh30.Parent = Part29
2657
SpecialMesh30.MeshId = "http://www.roblox.com/asset/?id=13508017"
2658
SpecialMesh30.Scale = Vector3.new(1.5, 1.5, 1.5)
2659
SpecialMesh30.TextureId = "http://www.roblox.com/asset/?id=13508018"
2660
SpecialMesh30.MeshType = Enum.MeshType.FileMesh
2661
for i,v in pairs(mas:GetChildren()) do
2662
	v.Parent = workspace
2663
	pcall(function() v:MakeJoints() end)
2664
end
2665
mas:Destroy()
2666
for i,v in pairs(cors) do
2667
	spawn(function()
2668
		pcall(v)
2669
	end)
2670
end