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