View difference between Paste ID: An1WmZ6S and Bv1jrMv4
SHOW: | | - or go back to the newest paste.
1
--//====================================================\\--
2
--||			   CREATED BY SHACKLUSTER
3
--\\====================================================//--
4
5
wait(0.2)
6
7-
Player = game:GetService("Players").LocalPlayer
7+
Player = owner
8
PlayerGui = Player.PlayerGui
9
Cam = workspace.CurrentCamera
10
Backpack = Player.Backpack
11
Character = Player.Character
12
Humanoid = Character.Humanoid
13-
Mouse = Player:GetMouse()
13+
14
Torso = Character["Torso"]
15
Head = Character["Head"]
16
RightArm = Character["Right Arm"]
17
LeftArm = Character["Left Arm"]
18
RightLeg = Character["Right Leg"]
19
LeftLeg = Character["Left Leg"]
20
RootJoint = RootPart["RootJoint"]
21
Neck = Torso["Neck"]
22
RightShoulder = Torso["Right Shoulder"]
23
LeftShoulder = Torso["Left Shoulder"]
24
RightHip = Torso["Right Hip"]
25
LeftHip = Torso["Left Hip"]
26
Player:ClearCharacterAppearance()
27
28
IT = Instance.new
29
CF = CFrame.new
30
VT = Vector3.new
31
RAD = math.rad
32
C3 = Color3.new
33
UD2 = UDim2.new
34
BRICKC = BrickColor.new
35
ANGLES = CFrame.Angles
36
EULER = CFrame.fromEulerAnglesXYZ
37
COS = math.cos
38
ACOS = math.acos
39
SIN = math.sin
40
ASIN = math.asin
41
ABS = math.abs
42
MRANDOM = math.random
43
FLOOR = math.floor
44
45
--//=================================\\
46
--|| 	      USEFUL VALUES
47
--\\=================================//
48
49
Animation_Speed = 3
50
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
51
local Speed = 10
52
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
53
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
54
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
55
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
56
local DAMAGEMULTIPLIER = 1
57
local ANIM = "Idle"
58
local ATTACK = false
59
local EQUIPPED = false
60
local HOLD = false
61
local COMBO = 1
62
local Rooted = false
63
local SINE = 0
64
local KEYHOLD = false
65
local CHANGE = 2 / Animation_Speed
66
local WALKINGANIM = false
67
local VALUE1 = false
68
local VALUE2 = false
69
local ROBLOXIDLEANIMATION = IT("Animation")
70
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
71
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
72
local ATANIM = IT("Animation")
73
ATANIM.Name = "Attack Animation"
74
ATANIM.AnimationId = "http://www.roblox.com/asset/?id=74894663"
75
--ROBLOXIDLEANIMATION.Parent = Humanoid
76
local WEAPONGUI = IT("ScreenGui", PlayerGui)
77
WEAPONGUI.Name = "Weapon GUI"
78
local Weapon = IT("Model")
79
Weapon.Name = "Adds"
80
local Effects = IT("Folder", Weapon)
81
Effects.Name = "Effects"
82
local ANIMATOR = Humanoid.Animator
83
local ANIMATE = Character.Animate
84
local UNANCHOR = true
85
local PLAYANIMS = true
86
script.Parent = WEAPONGUI
87
Character.Archivable = true
88
local CLONE = Character:Clone()
89
CLONE.Parent = nil
90
Character.Archivable = false
91
local sick = Instance.new("Sound",Torso)
92
sick.SoundId = "rbxassetid://1551788627"
93
sick.Looped = true
94
sick.Pitch = 1
95
sick.Volume = 3
96
sick:Play()
97
local SIT = IT("BoolValue",Torso)
98
SIT.Name = "IsThePharaohSitting?"
99
100
--//=================================\\
101
--\\=================================//
102
103
104
--//=================================\\
105
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
106
--\\=================================//
107
108
ArtificialHB = Instance.new("BindableEvent", script)
109
ArtificialHB.Name = "ArtificialHB"
110
111
script:WaitForChild("ArtificialHB")
112
113
frame = Frame_Speed
114
tf = 0
115
allowframeloss = false
116
tossremainder = false
117
lastframe = tick()
118
script.ArtificialHB:Fire()
119
120
game:GetService("RunService").Heartbeat:connect(function(s, p)
121
	tf = tf + s
122
	if tf >= frame then
123
		if allowframeloss then
124
			script.ArtificialHB:Fire()
125
			lastframe = tick()
126
		else
127
			for i = 1, math.floor(tf / frame) do
128
				script.ArtificialHB:Fire()
129
			end
130
		lastframe = tick()
131
		end
132
		if tossremainder then
133
			tf = 0
134
		else
135
			tf = tf - frame * math.floor(tf / frame)
136
		end
137
	end
138
end)
139
140
--//=================================\\
141
--\\=================================//
142
143
--//=================================\\
144
--|| 	      SOME FUNCTIONS
145
--\\=================================//
146
147
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
148
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
149
end
150
151
function PositiveAngle(NUMBER)
152
	if NUMBER >= 0 then
153
		NUMBER = 0
154
	end
155
	return NUMBER
156
end
157
158
function NegativeAngle(NUMBER)
159
	if NUMBER <= 0 then
160
		NUMBER = 0
161
	end
162
	return NUMBER
163
end
164
165
function Swait(NUMBER)
166
	if NUMBER == 0 or NUMBER == nil then
167
		ArtificialHB.Event:wait()
168
	else
169
		for i = 1, NUMBER do
170
			ArtificialHB.Event:wait()
171
		end
172
	end
173
end
174
175
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
176
	local NEWMESH = IT(MESH)
177
	if MESH == "SpecialMesh" then
178
		NEWMESH.MeshType = MESHTYPE
179
		if MESHID ~= "nil" and MESHID ~= "" then
180
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
181
		end
182
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
183
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
184
		end
185
	end
186
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
187
	NEWMESH.Scale = SCALE
188
	NEWMESH.Parent = PARENT
189
	return NEWMESH
190
end
191
192
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
193
	local NEWPART = IT("Part")
194
	NEWPART.formFactor = FORMFACTOR
195
	NEWPART.Reflectance = REFLECTANCE
196
	NEWPART.Transparency = TRANSPARENCY
197
	NEWPART.CanCollide = false
198
	NEWPART.Locked = true
199
	NEWPART.Anchored = true
200
	if ANCHOR == false then
201
		NEWPART.Anchored = false
202
	end
203
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
204
	NEWPART.Name = NAME
205
	NEWPART.Size = SIZE
206
	NEWPART.Position = Torso.Position
207
	NEWPART.Material = MATERIAL
208
	NEWPART:BreakJoints()
209
	NEWPART.Parent = PARENT
210
	return NEWPART
211
end
212
213
	local function weldBetween(a, b)
214
	    local weldd = Instance.new("ManualWeld")
215
	    weldd.Part0 = a
216
	    weldd.Part1 = b
217
	    weldd.C0 = CFrame.new()
218
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
219
	    weldd.Parent = a
220
	    return weldd
221
	end
222
223
224
function QuaternionFromCFrame(cf)
225
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
226
	local trace = m00 + m11 + m22
227
	if trace > 0 then 
228
		local s = math.sqrt(1 + trace)
229
		local recip = 0.5 / s
230
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
231
	else
232
		local i = 0
233
		if m11 > m00 then
234
			i = 1
235
		end
236
		if m22 > (i == 0 and m00 or m11) then
237
			i = 2
238
		end
239
		if i == 0 then
240
			local s = math.sqrt(m00 - m11 - m22 + 1)
241
			local recip = 0.5 / s
242
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
243
		elseif i == 1 then
244
			local s = math.sqrt(m11 - m22 - m00 + 1)
245
			local recip = 0.5 / s
246
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
247
		elseif i == 2 then
248
			local s = math.sqrt(m22 - m00 - m11 + 1)
249
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
250
		end
251
	end
252
end
253
 
254
function QuaternionToCFrame(px, py, pz, x, y, z, w)
255
	local xs, ys, zs = x + x, y + y, z + z
256
	local wx, wy, wz = w * xs, w * ys, w * zs
257
	local xx = x * xs
258
	local xy = x * ys
259
	local xz = x * zs
260
	local yy = y * ys
261
	local yz = y * zs
262
	local zz = z * zs
263
	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))
264
end
265
 
266
function QuaternionSlerp(a, b, t)
267
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
268
	local startInterp, finishInterp;
269
	if cosTheta >= 0.0001 then
270
		if (1 - cosTheta) > 0.0001 then
271
			local theta = ACOS(cosTheta)
272
			local invSinTheta = 1 / SIN(theta)
273
			startInterp = SIN((1 - t) * theta) * invSinTheta
274
			finishInterp = SIN(t * theta) * invSinTheta
275
		else
276
			startInterp = 1 - t
277
			finishInterp = t
278
		end
279
	else
280
		if (1 + cosTheta) > 0.0001 then
281
			local theta = ACOS(-cosTheta)
282
			local invSinTheta = 1 / SIN(theta)
283
			startInterp = SIN((t - 1) * theta) * invSinTheta
284
			finishInterp = SIN(t * theta) * invSinTheta
285
		else
286
			startInterp = t - 1
287
			finishInterp = t
288
		end
289
	end
290
	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
291
end
292
293
function Clerp(a, b, t)
294
	local qa = {QuaternionFromCFrame(a)}
295
	local qb = {QuaternionFromCFrame(b)}
296
	local ax, ay, az = a.x, a.y, a.z
297
	local bx, by, bz = b.x, b.y, b.z
298
	local _t = 1 - t
299
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
300
end
301
302
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
303
	local frame = IT("Frame")
304
	frame.BackgroundTransparency = TRANSPARENCY
305
	frame.BorderSizePixel = BORDERSIZEPIXEL
306
	frame.Position = POSITION
307
	frame.Size = SIZE
308
	frame.BackgroundColor3 = COLOR
309
	frame.BorderColor3 = BORDERCOLOR
310
	frame.Name = NAME
311
	frame.Parent = PARENT
312
	return frame
313
end
314
315
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
316
	local label = IT("TextLabel")
317
	label.BackgroundTransparency = 1
318
	label.Size = UD2(1, 0, 1, 0)
319
	label.Position = UD2(0, 0, 0, 0)
320
	label.TextColor3 = TEXTCOLOR
321
	label.TextStrokeTransparency = STROKETRANSPARENCY
322
	label.TextTransparency = TRANSPARENCY
323
	label.FontSize = TEXTFONTSIZE
324
	label.Font = TEXTFONT
325
	label.BorderSizePixel = BORDERSIZEPIXEL
326
	label.TextScaled = false
327
	label.Text = TEXT
328
	label.Name = NAME
329
	label.Parent = PARENT
330
	return label
331
end
332
333
function NoOutlines(PART)
334
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
335
end
336
337
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
338
	local NEWWELD = IT(TYPE)
339
	NEWWELD.Part0 = PART0
340
	NEWWELD.Part1 = PART1
341
	NEWWELD.C0 = C0
342
	NEWWELD.C1 = C1
343
	NEWWELD.Parent = PARENT
344
	return NEWWELD
345
end
346
347
local S = IT("Sound")
348
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
349
	local NEWSOUND = nil
350
	coroutine.resume(coroutine.create(function()
351
		NEWSOUND = S:Clone()
352
		NEWSOUND.Parent = PARENT
353
		NEWSOUND.Volume = VOLUME
354
		NEWSOUND.Pitch = PITCH
355
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
356
		NEWSOUND:play()
357
		if DOESLOOP == true then
358
			NEWSOUND.Looped = true
359
		else
360
			repeat wait(1) until NEWSOUND.Playing == false
361
			NEWSOUND:remove()
362
		end
363
	end))
364
	return NEWSOUND
365
end
366
367
function CFrameFromTopBack(at, top, back)
368
	local right = top:Cross(back)
369
	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)
370
end
371
372
--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})
373
function WACKYEFFECT(Table)
374
	local TYPE = (Table.EffectType or "Sphere")
375
	local SIZE = (Table.Size or VT(1,1,1))
376
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
377
	local TRANSPARENCY = (Table.Transparency or 0)
378
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
379
	local CFRAME = (Table.CFrame or Torso.CFrame)
380
	local MOVEDIRECTION = (Table.MoveToPos or nil)
381
	local ROTATION1 = (Table.RotationX or 0)
382
	local ROTATION2 = (Table.RotationY or 0)
383
	local ROTATION3 = (Table.RotationZ or 0)
384
	local MATERIAL = (Table.Material or "Neon")
385
	local COLOR = (Table.Color or C3(1,1,1))
386
	local TIME = (Table.Time or 45)
387
	local SOUNDID = (Table.SoundID or nil)
388
	local SOUNDPITCH = (Table.SoundPitch or nil)
389
	local SOUNDVOLUME = (Table.SoundVolume or nil)
390
	coroutine.resume(coroutine.create(function()
391
		local PLAYSSOUND = false
392
		local SOUND = nil
393
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
394
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
395
			PLAYSSOUND = true
396
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
397
		end
398
		EFFECT.Color = COLOR
399
		local MSH = nil
400
		if TYPE == "Sphere" then
401
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
402
		elseif TYPE == "Block" then
403
			MSH = IT("BlockMesh",EFFECT)
404
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
405
		elseif TYPE == "Wave" then
406
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
407
		elseif TYPE == "Ring" then
408
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
409
		elseif TYPE == "Slash" then
410
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
411
		elseif TYPE == "Round Slash" then
412
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
413
		elseif TYPE == "Swirl" then
414
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
415
		elseif TYPE == "Skull" then
416
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
417
		elseif TYPE == "Crystal" then
418
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
419
		end
420
		if MSH ~= nil then
421
			local MOVESPEED = nil
422
			if MOVEDIRECTION ~= nil then
423
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
424
			end
425
			local GROWTH = SIZE - ENDSIZE
426
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
427
			if TYPE == "Block" then
428
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
429
			else
430
				EFFECT.CFrame = CFRAME
431
			end
432
			for LOOP = 1, TIME+1 do
433
				Swait()
434
				MSH.Scale = MSH.Scale - GROWTH/TIME
435
				if TYPE == "Wave" then
436
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
437
				end
438
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
439
				if TYPE == "Block" then
440
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
441
				else
442
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
443
				end
444
				if MOVEDIRECTION ~= nil then
445
					local ORI = EFFECT.Orientation
446
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
447
					EFFECT.Orientation = ORI
448
				end
449
			end
450
			EFFECT.Transparency = 1
451
			if PLAYSSOUND == false then
452
				EFFECT:remove()
453
			else
454
				repeat Swait() until SOUND.Playing == false
455
				EFFECT:remove()
456
			end
457
		else
458
			if PLAYSSOUND == false then
459
				EFFECT:remove()
460
			else
461
				repeat Swait() until SOUND.Playing == false
462
				EFFECT:remove()
463
			end
464
		end
465
	end))
466
end
467
468
function MakeForm(PART,TYPE)
469
	if TYPE == "Cyl" then
470
		local MSH = IT("CylinderMesh",PART)
471
	elseif TYPE == "Ball" then
472
		local MSH = IT("SpecialMesh",PART)
473
		MSH.MeshType = "Sphere"
474
	elseif TYPE == "Wedge" then
475
		local MSH = IT("SpecialMesh",PART)
476
		MSH.MeshType = "Wedge"
477
	end
478
end
479
480
Debris = game:GetService("Debris")
481
482
function CastProperRay(StartPos, EndPos, Distance, Ignore)
483
	local DIRECTION = CF(StartPos,EndPos).lookVector
484
	return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, DIRECTION * Distance), Ignore)
485
end
486
487
local FIRECOLOR = C3(1,85/255,0)
488
489
local Particle = IT("ParticleEmitter",nil)
490
Particle.Enabled = false
491
Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.6),NumberSequenceKeypoint.new(1,1)})
492
Particle.LightEmission = 0.5
493
Particle.Rate = 500
494
Particle.Rotation = NumberRange.new(-180, 180)
495
Particle.RotSpeed = NumberRange.new(-180, 180)
496
Particle.Texture = "http://www.roblox.com/asset/?id=1460745664"
497
Particle.Color = ColorSequence.new(FIRECOLOR)
498
499
--ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
500
function ParticleEmitter(Table)
501
	local PRTCL = Particle:Clone()
502
	local Speed = Table.Speed or 5
503
	local Drag = Table.Drag or 0
504
	local Size1 = Table.Size1 or 1
505
	local Size2 = Table.Size2 or 5
506
	local Lifetime1 = Table.Lifetime1 or 1
507
	local Lifetime2 = Table.Lifetime2 or 1.5
508
	local Parent = Table.Parent or Torso
509
	local Emit = Table.Emit or 100
510
	local Offset = Table.Offset or 360
511
	local Accel = Table.Accel or VT(0,0,0)
512
	local Enabled = Table.Enabled or false
513
	PRTCL.Parent = Parent
514
	PRTCL.Size = NumberSequence.new(Size1,Size2)
515
	PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
516
	PRTCL.Speed = NumberRange.new(Speed)
517
	PRTCL.VelocitySpread = Offset
518
	PRTCL.Drag = Drag
519
	PRTCL.Acceleration = Accel
520
	if Enabled == false then
521
		PRTCL:Emit(Emit)
522
		Debris:AddItem(PRTCL,Lifetime2)
523
	else
524
		PRTCL.Enabled = true
525
	end
526
	return PRTCL
527
end
528
529
function Pheonix(Size)
530
	local PHEONIX = IT("Model",nil)
531
	PHEONIX.Name = "PHEONIX"
532
	local BASEPART = CreatePart(3, PHEONIX, "Neon", 0, 0.5, "Deep orange", "Wyvern Base",VT(0,0,0),false)
533
	CreateWeldOrSnapOrMotor("Weld", RootPart, RootPart, BASEPART, CF(0 , 4*Size, 3*Size), CF(0, 0, 0))
534
	CreateMesh("SpecialMesh", BASEPART, "FileMesh", "90615474", "", VT(1.5,1.5,1.5)*Size, VT(0,0,0))
535
	local RWING = CreatePart(3, PHEONIX, "Neon", 0, 0.5, "Deep orange", "Right Wing", VT(0,0,0),false)
536
	local RWELD = CreateWeldOrSnapOrMotor("Weld", BASEPART, BASEPART, RWING, CF(2*Size , 2*Size, 0.75*Size), CF(-2*Size, 0, 0))
537
	local LWING = CreatePart(3, PHEONIX, "Neon", 0, 0.5, "Deep orange", "Left Wing", VT(0,0,0),false)
538
	local LWELD = CreateWeldOrSnapOrMotor("Weld", BASEPART, BASEPART, LWING, CF(-2*Size , 2*Size, 0.75*Size), CF(2*Size, 0, 0))
539
	CreateMesh("SpecialMesh", RWING, "FileMesh", "90615661", "", VT(1.5,1.5,1.5)*Size, VT(0,0,0))
540
	CreateMesh("SpecialMesh", LWING, "FileMesh", "90615581", "", VT(1.5,1.5,1.5)*Size, VT(0,0,0))
541
	for _, c in pairs(PHEONIX:GetChildren()) do
542
		if c.ClassName == "Part" then
543
			c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
544
			c.Color = FIRECOLOR
545
		end
546
	end
547
	PHEONIX.Parent = Weapon
548
	return PHEONIX,BASEPART,RWING,LWING,RWELD,LWELD
549
end
550
551
function turnto(position)
552
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
553
end
554
555
function AddChildrenToTable(FROM,PARENT,DIST,TABLE)
556
	for _, c in pairs(PARENT:GetDescendants()) do
557
		if c.ClassName == "Model" then
558
			if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then
559
				local HUMANOID = c:FindFirstChildOfClass("Humanoid")
560
				local TORSO = (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso"))
561
				if (TORSO.Position - FROM).Magnitude < DIST then
562
					table.insert(TABLE,c)
563
				end
564
			end
565
		end
566
	end
567
end
568
569
--//=================================\\
570
--||	     WEAPON CREATION
571
--\\=================================//
572
573
Humanoid.DisplayDistanceType = "None"
574
local naeeym2 = IT("BillboardGui",Character)
575
naeeym2.AlwaysOnTop = true
576
naeeym2.Size = UDim2.new(2,35,1,15)
577
naeeym2.StudsOffset = Vector3.new(0,1.5,0)
578
naeeym2.MaxDistance = 75
579
naeeym2.Adornee = Character.Head
580
naeeym2.Name = "Name"
581
naeeym2.PlayerToHideFrom = Player
582
local tecks2 = IT("TextLabel",naeeym2)
583
tecks2.BackgroundTransparency = 1
584
tecks2.TextScaled = true
585
tecks2.BorderSizePixel = 0
586
tecks2.Text = "The Pharaoh"
587
tecks2.Font = "Bodoni"
588
tecks2.TextSize = 30
589
tecks2.TextStrokeTransparency = 0
590
tecks2.TextColor3 = C3(0,0,0)
591
tecks2.TextStrokeColor3 = C3(188/255, 155/255, 93/255)
592
tecks2.Size = UDim2.new(1,0,0.5,0)
593
tecks2.Parent = naeeym2
594
local top = Instance.new("Shirt")
595
top.ShirtTemplate = "rbxassetid://182802864"
596
top.Parent = Character
597
top.Name = "Cloth"
598
local bottom = Instance.new("Pants")
599
bottom.PantsTemplate = "rbxassetid://182802941"
600
bottom.Parent = Character
601
bottom.Name = "Cloth"
602
603
--Head.Transparency = 1
604
local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false)
605
PRT.Color = C3(0,0,0)
606
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.1,0.05), CF(0, 0, 0))
607
CreateMesh("SpecialMesh", PRT, "FileMesh", "10661327", "10661334", VT(1,1,1)*1.1, VT(0,0,0))
608
CreateMesh("SpecialMesh", Head, "FileMesh", "16150909", "16150889", VT(1,1,1), VT(0,0,0))
609
local Handle = CreatePart(3, Weapon, "Concrete", 0, 0, "Cork", "Staff", VT(0,6,0),false)
610
MakeForm(Handle,"Cyl")
611
local Grasp = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Handle, CF(0,-1,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
612
local Part = CreatePart(3, Weapon, "Concrete", 0, 0, "Cork", "Staff", VT(0.1,1,0.1),false)
613
MakeForm(Part,"Cyl")
614
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0,Handle.Size.Y/2,0), CF(0, 0, 0))
615
local Part = CreatePart(3, Weapon, "Concrete", 0, 0, "Cork", "Staff", VT(0.1,1,0.1),false)
616
MakeForm(Part,"Cyl")
617
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0,-Handle.Size.Y/2-1.3,0) * ANGLES(RAD(0), RAD(150), RAD(0)), CF(0, 0, 0))
618
CreateMesh("SpecialMesh", Part, "FileMesh", "19106648", "19106633", VT(1,1,1)*1.1, VT(0,0,0))
619
local Eye = CreatePart(3, Weapon, "Concrete", 0, 1, "Cork", "Eye", VT(0,0,0),false)
620
CreateWeldOrSnapOrMotor("Weld", Handle, Part, Eye, CF(0,Part.Size.Y/2+0.17,-0.05), CF(0, 0, 0))
621
622
for _, c in pairs(Weapon:GetChildren()) do
623
	if c.ClassName == "Part" then
624
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
625
	end
626
end
627
628
local SKILLTEXTCOLOR = C3(188/255, 155/255, 93/255)
629
local SKILLFONT = "Bodoni"
630
local SKILLTEXTSIZE = 6
631
632
Weapon.Parent = Character
633
634
Humanoid.Died:connect(function()
635
	ATTACK = true
636
end)
637
638
local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
639
local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
640
local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
641
local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
642
local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
643
644
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Summon", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 1")
645
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Warp", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 2")
646
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Pheonix Glare", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 3")
647
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Shade Zone", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 4")
648
local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Pharaoh's Throne", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 5")
649
650
--//=================================\\
651
--||			DAMAGING
652
--\\=================================//
653
654
function ApplyDamage(Humanoid,Damage,TorsoPart)
655
	local defence = Instance.new("BoolValue",Humanoid.Parent)
656
	defence.Name = ("HitBy"..Player.Name)
657
	game:GetService("Debris"):AddItem(defence, 0.001)
658
	Damage = Damage * DAMAGEMULTIPLIER
659
	if Humanoid.Health ~= 0 then
660
		local CritChance = MRANDOM(1,100)
661
		if Damage > Humanoid.Health then
662
			Damage = math.ceil(Humanoid.Health)
663
			if Damage == 0 then
664
				Damage = 0.1
665
			end
666
		end
667
		Humanoid.Health = Humanoid.Health - Damage
668
	end
669
end
670
671
function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
672
	local CHILDREN = workspace:GetDescendants()
673
	for index, CHILD in pairs(CHILDREN) do
674
		if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
675
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
676
			if HUM then
677
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
678
				if TORSO then
679
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
680
						if INSTAKILL == true then
681
							CHILD:BreakJoints()
682
						else
683
							local DMG = MRANDOM(MINDMG,MAXDMG)
684
							ApplyDamage(HUM,DMG,TORSO)
685
						end
686
						if FLING > 0 then
687
							for _, c in pairs(CHILD:GetChildren()) do
688
								if c:IsA("BasePart") then
689
									local bv = Instance.new("BodyVelocity") 
690
									bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
691
									bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
692
									bv.Parent = c
693
									Debris:AddItem(bv,0.05)
694
								end
695
							end
696
						end
697
					end
698
				end
699
			end
700
		end
701
	end
702
end
703
704
--//=================================\\
705
--||	ATTACK FUNCTIONS AND STUFF
706
--\\=================================//
707
708
function Raise()
709
	PLAYANIMS = false
710
	for i=0, 0.3, 0.1 / Animation_Speed do
711
		Swait()
712
		Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(45)), 1 / Animation_Speed)
713
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
714
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 - 4 * COS(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
715
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, 0) * ANGLES(RAD(150), RAD(7.5), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
716
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-12 - 6 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
717
		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.5 / Animation_Speed)
718
		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.5 / Animation_Speed)
719
	end
720
	Rooted = true
721
	WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(1,1,1)*4, Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = CF(Eye.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 743521450, SoundPitch = 1, SoundVolume = 2.5})
722
	WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(1,1,1)*7, Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = CF(Eye.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
723
	WACKYEFFECT({Time = 25, EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(3,3,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Eye.Position) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
724
	for i=0, 1, 0.1 / Animation_Speed do
725
		Swait()
726
		Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(45)), 1 / Animation_Speed)
727
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
728
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 - 4 * COS(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
729
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, 0) * ANGLES(RAD(150), RAD(7.5), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
730
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-12 - 6 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
731
		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.5 / Animation_Speed)
732
		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.5 / Animation_Speed)
733
	end
734
	Rooted = false
735
	PLAYANIMS = true
736
end
737
738
function Attack()
739
	ATTACK = true
740
	Raise()
741
	coroutine.resume(coroutine.create(function()
742
	end))
743
	ATTACK = false
744
end
745
746
function Summon()
747
	ATTACK = true
748
	Raise()
749
	coroutine.resume(coroutine.create(function()
750
		local MINIONS = {}
751
		local HEADMESHES = {{Mesh = 36869983, Texture = 36869975},{Mesh = 63638055, Texture = 63638307}}
752
		local RIGHTARMS = {{Mesh = 63637701, Texture = 63637809},{Mesh = 36780156, Texture = 36780292}}
753
		local LEFTARMS = {{Mesh = 63637682, Texture = 63637809},{Mesh = 36780032, Texture = 36780292}}
754
		local RIGHTLEGS = {{Mesh = 63637711, Texture = 63637809},{Mesh = 36780195, Texture = 36780292}}
755
		local LEFTLEGS = {{Mesh = 63637691, Texture = 63637809},{Mesh = 36780079, Texture = 36780292}}
756
		local TORSOS = {{Mesh = 63637732, Texture = 63637809},{Mesh = 36780113, Texture = 36780292}}
757
		for i = 1, 3 do
758
			Swait()
759
			local MINION = CLONE:Clone()
760
			ANIMATE:Clone().Parent = MINION
761
			MINION.Name = "Mummy"
762
			MINION.Parent = Effects
763
			MINION.Head:ClearAllChildren()
764
			MINION.HumanoidRootPart.Anchored = true
765
			MINION.HumanoidRootPart.CFrame = RootPart.CFrame*CF(MRANDOM(-15,15),-10,MRANDOM(-15,15))
766
			local HITFLOOR = Raycast(MINION.HumanoidRootPart.Position+VT(0,10,0), (CF(MINION.HumanoidRootPart.Position, MINION.HumanoidRootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
767
			if HITFLOOR then
768
				MINION.HumanoidRootPart.Color = HITFLOOR.Color
769
				WACKYEFFECT({Time = 25, EffectType = "Crystal", Size = VT(1,0,1), Size2 = VT(0,100,0), Transparency = 1, Transparency2 = 0, CFrame = CF(MINION.HumanoidRootPart.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 743521450, SoundPitch = 1.5, SoundVolume = 2})
770
				local HEDMESH = HEADMESHES[MRANDOM(1,#HEADMESHES)]
771
				CreateMesh("SpecialMesh", MINION.Head, "FileMesh", HEDMESH.Mesh, HEDMESH.Texture, VT(1,1,1), VT(0,0,0))
772
				---------
773
					local PACKAGE = IT("CharacterMesh",MINION)
774
					PACKAGE.BodyPart = "RightArm"
775
					local PACKAGESTUFF = RIGHTARMS[MRANDOM(1,2)]
776
					PACKAGE.MeshId = PACKAGESTUFF.Mesh
777
					PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
778
				---------
779
					local PACKAGE = IT("CharacterMesh",MINION)
780
					PACKAGE.BodyPart = "LeftArm"
781
					local PACKAGESTUFF = LEFTARMS[MRANDOM(1,2)]
782
					PACKAGE.MeshId = PACKAGESTUFF.Mesh
783
					PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
784
				---------
785
					local PACKAGE = IT("CharacterMesh",MINION)
786
					PACKAGE.BodyPart = "RightLeg"
787
					local PACKAGESTUFF = RIGHTLEGS[MRANDOM(1,2)]
788
					PACKAGE.MeshId = PACKAGESTUFF.Mesh
789
					PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
790
				---------
791
					local PACKAGE = IT("CharacterMesh",MINION)
792
					PACKAGE.BodyPart = "LeftLeg"
793
					local PACKAGESTUFF = LEFTLEGS[MRANDOM(1,2)]
794
					PACKAGE.MeshId = PACKAGESTUFF.Mesh
795
					PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
796
				---------
797
					local PACKAGE = IT("CharacterMesh",MINION)
798
					PACKAGE.BodyPart = "Torso"
799
					local PACKAGESTUFF = TORSOS[MRANDOM(1,2)]
800
					PACKAGE.MeshId = PACKAGESTUFF.Mesh
801
					PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
802
				---------
803
				table.insert(MINIONS,MINION)
804
			else
805
				MINION:remove()
806
			end
807
		end
808
		for e = 1, 100 do
809
			Swait()
810
			for i = 1, #MINIONS do
811
				if MINIONS[i] ~= nil then
812
					WACKYEFFECT({Time = 5, EffectType = "Wave", Size = VT(1,2,1), Size2 = VT(8,0,8), Transparency = 0.5, Transparency2 = 1, CFrame = MINIONS[i].HumanoidRootPart.CFrame*CF(0,7.5-(e*0.1),0) * ANGLES(RAD(0), RAD(i*2), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = MINIONS[i].HumanoidRootPart.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
813
					MINIONS[i].HumanoidRootPart.CFrame = MINIONS[i].HumanoidRootPart.CFrame * CF(0,0.1,0)
814
				end
815
			end
816
		end
817
		for i = 1, #MINIONS do
818
			if MINIONS[i] ~= nil then
819
				MINIONS[i].HumanoidRootPart.Anchored = false
820
			end
821
		end
822
		for i = 1, #MINIONS do
823
			coroutine.resume(coroutine.create(function()
824
				local SHOUTS = {1158091961,1158091668,1158092150}
825
				local TORSO = MINIONS[i].Torso
826
				local MUMMY = MINIONS[i]
827
				local HUMAN = MINIONS[i].Humanoid
828
				HUMAN.MaxHealth = MRANDOM(20,65)
829
				HUMAN.Health = HUMAN.MaxHealth
830
				HUMAN.Died:connect(function()
831
					CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false)
832
				end)
833
				local findNearestTorso = function(POS)
834
					local list = game.Workspace:GetDescendants()
835
					local torso = nil
836
					local dist = 10000
837
					local temp = nil
838
					local human = nil
839
					local temp2 = nil
840
					for x = 1, #list do
841
						temp2 = list[x]
842
						if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then
843
							temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
844
							human = temp2:findFirstChild("Humanoid")
845
							if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
846
								if (temp.Position - POS).magnitude < dist then
847
									torso = temp
848
									dist = (temp.Position - POS).magnitude
849
								end
850
							end
851
						end
852
					end
853
					return torso, dist
854
				end
855
				for i = 1, 60 do
856
					if HUMAN.Health == 0 then
857
						break
858
					end
859
					wait(1)
860
					local target,dist= findNearestTorso(TORSO.Position)
861
					if target then
862
						HUMAN:MoveTo(target.Position)
863
						if dist < 5 then
864
							local ANIM = HUMAN:LoadAnimation(ATANIM)
865
							ANIM:Play()
866
							CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false)
867
							ApplyAoE(TORSO.CFrame*CF(0,0,-1.2).p,3,5,25,3,false)
868
						end
869
					end
870
				end
871
				TORSO.Parent:BreakJoints()
872
				Debris:AddItem(MUMMY,4)
873
			end))
874
		end	
875
	end))
876
	ATTACK = false
877
end
878
879
function Warp(Pos)
880
	ATTACK = true
881
	Raise()
882
	PLAYANIMS = false
883
	local SPOT = Pos
884
	if Pos == "Mouse" then
885
		SPOT = Mouse.Hit.p
886
	end
887
	local PLAYPOS = RootPart.Position
888
	Rooted = true
889
	coroutine.resume(coroutine.create(function()
890
		repeat
891
			Swait()
892
			Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(45)), 1 / Animation_Speed)
893
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
894
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 - 4 * COS(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
895
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, 0) * ANGLES(RAD(150), RAD(7.5), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
896
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-12 - 6 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
897
			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.5 / Animation_Speed)
898
			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.5 / Animation_Speed)
899
		until ATTACK == false
900
		PLAYANIMS = true
901
	end))
902
	for i = 1, 10 do
903
		for _, c in pairs(Weapon:GetChildren()) do
904
			if c.ClassName == "Part" then
905
				c.Transparency = c.Transparency + 1/10
906
			end
907
		end
908
		for _, c in pairs(Character:GetChildren()) do
909
			if c.ClassName == "Part" and c ~= RootPart then
910
				c.Transparency = c.Transparency + 1/10
911
			end
912
		end
913
		tecks2.TextTransparency = tecks2.TextTransparency + 1/10
914
		tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 1/10
915
		WACKYEFFECT({Time = 25, EffectType = "Swirl", Size = VT(1,1,1)*25, Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = CF(Torso.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 743521450, SoundPitch = 1.5, SoundVolume = 2})
916
		wait(0.1)
917
	end
918
	CreateSound(743521450, Torso, 5, 0.5, false)
919
	RootPart.CFrame = CF(SPOT+VT(0,15,0),PLAYPOS)
920
	UNANCHOR = false
921
	RootPart.Anchored = true
922
	for i = 1, 10 do
923
		wait(0.04)
924
		WACKYEFFECT({Time = 25, EffectType = "Swirl", Size = VT(0,0,0), Size2 = VT(1,1,1)*25, Transparency = 0, Transparency2 = 1, CFrame = CF(Torso.Position), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 1.5, SoundVolume = 2})
925
		for _, c in pairs(Weapon:GetChildren()) do
926
			if c.ClassName == "Part" then
927
				c.Transparency = c.Transparency - 1/10
928
			end
929
		end
930
		for _, c in pairs(Character:GetChildren()) do
931
			if c.ClassName == "Part" and c ~= RootPart then
932
				c.Transparency = c.Transparency - 1/10
933
			end
934
		end
935
		tecks2.TextTransparency = tecks2.TextTransparency - 1/10
936
		tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency - 1/10
937
	end
938
	UNANCHOR = true
939
	RootPart.Anchored = false
940
	Rooted = false
941
	ATTACK = false
942
end
943
944
function PheonixGlare()
945
	ATTACK = true
946
	Rooted = true
947
	local BURNINGBODIES = {}
948
	local SIZE = 2
949
	if Humanoid.Sit == false then
950
		Raise()
951
	else
952
		PLAYANIMS = false
953
		SIZE = 9
954
		for i=0, 0.3, 0.1 / Animation_Speed do
955
			Swait()
956
			Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(45)), 1 / Animation_Speed)
957
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 - 4 * COS(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
958
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, 0) * ANGLES(RAD(150), RAD(7.5), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
959
		end
960
		WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(1,1,1)*4, Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = CF(Eye.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 743521450, SoundPitch = 1, SoundVolume = 2.5})
961
		WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(1,1,1)*7, Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = CF(Eye.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
962
		WACKYEFFECT({Time = 25, EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(3,3,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Eye.Position) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
963
		for i=0, 1, 0.1 / Animation_Speed do
964
			Swait()
965
			Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(45)), 1 / Animation_Speed)
966
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 - 4 * COS(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
967
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, 0) * ANGLES(RAD(150), RAD(7.5), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
968
		end
969
		PLAYANIMS = true
970
	end
971
	Rooted = true
972
	local PHEONIX,WBODY,WRWING,WLWING,RWELD2,LWELD2 = Pheonix(SIZE)
973
	for i=1, 20 do
974
		Swait()
975
		RWELD2.C0 = Clerp(RWELD2.C0, CF(2*(SIZE/2),3*(SIZE/2),0.75*SIZE) * ANGLES(RAD(-25), RAD(65), RAD(0)), 0.1 / Animation_Speed)
976
		LWELD2.C0 = Clerp(LWELD2.C0, CF(-2*(SIZE/2),3*(SIZE/2),0.75*SIZE) * ANGLES(RAD(-25), RAD(-65), RAD(0)), 0.1 / Animation_Speed)
977
	end
978
	for i=1, 65 do
979
		Swait()
980
		RWELD2.C0 = Clerp(RWELD2.C0, CF(2*(SIZE/2),3*(SIZE/2),0.75*SIZE) * ANGLES(RAD(25), RAD(65), RAD(0)), 0.1 / Animation_Speed)
981
		LWELD2.C0 = Clerp(LWELD2.C0, CF(-2*(SIZE/2),3*(SIZE/2),0.75*SIZE) * ANGLES(RAD(25), RAD(-65), RAD(0)), 0.1 / Animation_Speed)
982
	end
983
	for i = 1, 5 do
984
		WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(35,35,35)*(SIZE/2), Transparency = 0, Transparency2 = 1, CFrame = CF(WBODY.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))*CF(0,0,35*(SIZE/2)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0.1,0.1,0.1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
985
		WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(45,45,45)*(SIZE/2), Transparency = 0, Transparency2 = 1, CFrame = CF(WBODY.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))*CF(0,0,35*(SIZE/2)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = FIRECOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
986
	end
987
	WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(200,200,200)*(SIZE/2), Transparency = 0, Transparency2 = 1, CFrame = CF(WBODY.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = FIRECOLOR, SoundID = 462676772, SoundPitch = 1.2, SoundVolume = 10})
988
	AddChildrenToTable(WBODY.Position,workspace,50*(SIZE/2),BURNINGBODIES)
989
	ApplyAoE(WBODY.Position,50*(SIZE/2),0,0,130,false)
990
	for i=1, 15 do
991
		Swait()
992
		RWELD2.C0 = Clerp(RWELD2.C0, CF(2*(SIZE/2),3*(SIZE/2),0.75*SIZE) * ANGLES(RAD(25), RAD(-65), RAD(0)), 1 / Animation_Speed)
993
		LWELD2.C0 = Clerp(LWELD2.C0, CF(-2*(SIZE/2),3*(SIZE/2),0.75*SIZE) * ANGLES(RAD(25), RAD(65), RAD(0)), 1 / Animation_Speed)
994
	end
995
	coroutine.resume(coroutine.create(function()
996
		wait(1)
997
		for i = 1, 150 do
998
			for i = 1, #BURNINGBODIES do
999
				if BURNINGBODIES[i] ~= nil then
1000
					if BURNINGBODIES[i].Name ~= "Mummy" then
1001
						local HUM = BURNINGBODIES[i]:FindFirstChildOfClass("Humanoid")
1002
						if HUM then
1003
							if HUM.Health > 0 then
1004
								for _, c in pairs(BURNINGBODIES[i]:GetChildren()) do
1005
									if c:IsA("BasePart") and c.Transparency < 1 then
1006
										ParticleEmitter({Accel = VT(0,25,0), Speed = 2, Drag = 0, Size1 = 0.3, Size2 = 0, Lifetime1 = 1, Lifetime2 = 1.5, Parent = c, Emit = 4, Offset = 360, Enabled = false})
1007
									end
1008
								end
1009
								HUM.Health = HUM.Health - 0.5
1010
							else
1011
								table.remove(BURNINGBODIES,i)
1012
							end
1013
						else
1014
							table.remove(BURNINGBODIES,i)
1015
						end
1016
					else
1017
						for _, c in pairs(BURNINGBODIES[i]:GetChildren()) do
1018
							if c:IsA("BasePart") and c.Transparency < 1 then
1019
								c.Velocity = VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))*5
1020
								ParticleEmitter({Accel = VT(0,25,0), Speed = 2, Drag = 0, Size1 = 0.5, Size2 = 0, Lifetime1 = 1, Lifetime2 = 1.5, Parent = c, Emit = 45, Offset = 360, Enabled = true})
1021
							end
1022
						end
1023
						BURNINGBODIES[i]:BreakJoints()
1024
						table.remove(BURNINGBODIES,i)
1025
					end
1026
				else
1027
					table.remove(BURNINGBODIES,i)
1028
				end
1029
			end
1030
			wait()
1031
		end
1032
	end))
1033
	coroutine.resume(coroutine.create(function()
1034
		for i = 1, 50 do
1035
			Swait()
1036
			WBODY.Transparency = WBODY.Transparency + 0.5/50
1037
			WRWING.Transparency = WBODY.Transparency
1038
			WLWING.Transparency = WBODY.Transparency
1039
		end
1040
		PHEONIX:remove()
1041
	end))
1042
	Rooted = false
1043
	ATTACK = false
1044
end
1045
1046
function ShadeZone()
1047
	local HEADMESHES = {{Mesh = 36869983, Texture = 36869975},{Mesh = 63638055, Texture = 63638307}}
1048
	local RIGHTARMS = {{Mesh = 63637701, Texture = 63637809},{Mesh = 36780156, Texture = 36780292}}
1049
	local LEFTARMS = {{Mesh = 63637682, Texture = 63637809},{Mesh = 36780032, Texture = 36780292}}
1050
	local RIGHTLEGS = {{Mesh = 63637711, Texture = 63637809},{Mesh = 36780195, Texture = 36780292}}
1051
	local LEFTLEGS = {{Mesh = 63637691, Texture = 63637809},{Mesh = 36780079, Texture = 36780292}}
1052
	local TORSOS = {{Mesh = 63637732, Texture = 63637809},{Mesh = 36780113, Texture = 36780292}}
1053
	local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character)
1054
	if HITFLOOR and Effects:FindFirstChild("Shade Zone") == nil then
1055
		ATTACK = true
1056
		local BODIES = {}
1057
		Raise()
1058
		coroutine.resume(coroutine.create(function()
1059
			local ZONE = CreatePart(3, Effects, "Neon", 0, 1, C3(0,0,0), "Shade Zone", VT(45,0,45))
1060
			ZONE.Color = C3(0,0,0)
1061
			MakeForm(ZONE,"Cyl")
1062
			ZONE.CFrame = CF(HITPOS)
1063
			local AURA = CreateSound(1393698948, ZONE, 0, 0.5, true)
1064
			for i =1, 45 do
1065
				Swait()
1066
				AURA.Volume = AURA.Volume + 10/45
1067
				ZONE.Transparency = ZONE.Transparency - 1/45
1068
				ZONE.Size = ZONE.Size + VT(2,0,2)
1069
			end
1070
			local SIZE = ZONE.Size
1071
			for i =1, 400 do
1072
				Swait()
1073
				AddChildrenToTable(ZONE.Position,workspace,ZONE.Size.X/2,BODIES)
1074
				if MRANDOM(1,5) == 1 then
1075
					WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(5,0,5), Size2 = VT(0,135,0), Transparency = 0, Transparency2 = 1, CFrame = CF(ZONE.Position) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,MRANDOM(0,math.ceil(ZONE.Size.X/2.1))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1076
				end
1077
				ZONE.Size = SIZE + VT(2 * COS(i / 12),0,2 * COS(i / 12))
1078
			end
1079
			for i =1, 45 do
1080
				Swait()
1081
				AURA.Volume = AURA.Volume - 10/45
1082
				ZONE.Transparency = ZONE.Transparency + 1/45
1083
				ZONE.Size = ZONE.Size - VT(2,0,2)
1084
			end
1085
			ZONE:remove()
1086
			for e = 1, #BODIES do
1087
				Swait()
1088
				if BODIES[e] ~= nil then
1089
					local BOD = BODIES[e]
1090
					for i = 1, 10 do
1091
						for i = 1, #BODIES do
1092
							if (BODIES[i] == BOD and i ~= e) then
1093
								table.remove(BODIES,i)
1094
							end
1095
						end
1096
					end
1097
					coroutine.resume(coroutine.create(function()
1098
						local BODY = BODIES[e]
1099
						local TORSO = BODIES[e]:FindFirstChild("Torso") or BODIES[e]:FindFirstChild("UpperTorso")
1100
						local HUM = BODIES[e]:FindFirstChildOfClass("Humanoid")
1101
						if TORSO and HUM then
1102
							TORSO.Anchored = true
1103
							for i = 1, 15 do
1104
								if HUM.Health > 0 then
1105
									wait(0.1)
1106
									WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(15,15,15), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 182765513, SoundPitch = MRANDOM(6,8)/10, SoundVolume = 2.5})
1107
									TORSO.CFrame = TORSO.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
1108
									HUM.Health = HUM.Health - 1.5
1109
									if HUM.Health == 0 then
1110
										local MINION = CLONE:Clone()
1111
										ANIMATE:Clone().Parent = MINION
1112
										MINION.Name = "Mummy"
1113
										MINION.Parent = Effects
1114
										MINION.Head:ClearAllChildren()
1115
										MINION.Torso.CFrame = TORSO.CFrame
1116
										BODY:remove()
1117
										local HEDMESH = HEADMESHES[MRANDOM(1,#HEADMESHES)]
1118
										CreateMesh("SpecialMesh", MINION.Head, "FileMesh", HEDMESH.Mesh, HEDMESH.Texture, VT(1,1,1), VT(0,0,0))
1119
										---------
1120
											local PACKAGE = IT("CharacterMesh",MINION)
1121
											PACKAGE.BodyPart = "RightArm"
1122
											local PACKAGESTUFF = RIGHTARMS[MRANDOM(1,2)]
1123
											PACKAGE.MeshId = PACKAGESTUFF.Mesh
1124
											PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
1125
										---------
1126
											local PACKAGE = IT("CharacterMesh",MINION)
1127
											PACKAGE.BodyPart = "LeftArm"
1128
											local PACKAGESTUFF = LEFTARMS[MRANDOM(1,2)]
1129
											PACKAGE.MeshId = PACKAGESTUFF.Mesh
1130
											PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
1131
										---------
1132
											local PACKAGE = IT("CharacterMesh",MINION)
1133
											PACKAGE.BodyPart = "RightLeg"
1134
											local PACKAGESTUFF = RIGHTLEGS[MRANDOM(1,2)]
1135
											PACKAGE.MeshId = PACKAGESTUFF.Mesh
1136
											PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
1137
										---------
1138
											local PACKAGE = IT("CharacterMesh",MINION)
1139
											PACKAGE.BodyPart = "LeftLeg"
1140
											local PACKAGESTUFF = LEFTLEGS[MRANDOM(1,2)]
1141
											PACKAGE.MeshId = PACKAGESTUFF.Mesh
1142
											PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
1143
										---------
1144
											local PACKAGE = IT("CharacterMesh",MINION)
1145
											PACKAGE.BodyPart = "Torso"
1146
											local PACKAGESTUFF = TORSOS[MRANDOM(1,2)]
1147
											PACKAGE.MeshId = PACKAGESTUFF.Mesh
1148
											PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
1149
										---------
1150
										coroutine.resume(coroutine.create(function()
1151
											local SHOUTS = {1158091961,1158091668,1158092150}
1152
											local TORSO = MINION.Torso
1153
											local MUMMY = MINION
1154
											local HUMAN = MINION.Humanoid
1155
											HUMAN.MaxHealth = MRANDOM(20,65)
1156
											HUMAN.Health = HUMAN.MaxHealth
1157
											HUMAN.Died:connect(function()
1158
												CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false)
1159
											end)
1160
											local findNearestTorso = function(POS)
1161
												local list = game.Workspace:GetDescendants()
1162
												local torso = nil
1163
												local dist = 10000
1164
												local temp = nil
1165
												local human = nil
1166
												local temp2 = nil
1167
												for x = 1, #list do
1168
													temp2 = list[x]
1169
													if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then
1170
														temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
1171
														human = temp2:findFirstChild("Humanoid")
1172
														if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
1173
															if (temp.Position - POS).magnitude < dist then
1174
																torso = temp
1175
																dist = (temp.Position - POS).magnitude
1176
															end
1177
														end
1178
													end
1179
												end
1180
												return torso, dist
1181
											end
1182
											for i = 1, 30 do
1183
												if HUMAN.Health == 0 then
1184
													break
1185
												end
1186
												wait(1)
1187
												local target,dist= findNearestTorso(TORSO.Position)
1188
												if target then
1189
													HUMAN:MoveTo(target.Position)
1190
													if dist < 5 then
1191
														local ANIM = HUMAN:LoadAnimation(ATANIM)
1192
														ANIM:Play()
1193
														CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false)
1194
														ApplyAoE(TORSO.CFrame*CF(0,0,-1.2).p,3,5,25,3,false)
1195
													end
1196
												end
1197
											end
1198
											TORSO.Parent:BreakJoints()
1199
											Debris:AddItem(MUMMY,4)
1200
										end))
1201
										break
1202
									end
1203
								end
1204
							end
1205
							if TORSO then
1206
								TORSO.Anchored = false
1207
							end
1208
						end
1209
					end))
1210
				end
1211
			end
1212
		end))
1213
		ATTACK = false
1214
	end
1215
end
1216
1217
function PharaohsThrone()
1218
	local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
1219
	if HITFLOOR then
1220
		ATTACK = true
1221
		Raise()
1222
		coroutine.resume(coroutine.create(function()
1223
			local PYRAMID = IT("Model")
1224
			PYRAMID.Name = "Pyramid"
1225
			local BASEPART = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(100,1,100))
1226
			local FIREPART = CreatePart(3, Effects, "Neon", 0, 1, "Wheat", "Pyramid", VT(110,1,110))
1227
			FIREPART.Touched:Connect(function(hit)
1228
				if FIREPART.Transparency ~= 1 then
1229
					if hit.Parent:FindFirstChildOfClass("Humanoid") then
1230
						if hit.Parent.Name == "Mummy" then
1231
							hit.Parent:BreakJoints()
1232
						else
1233
							hit.Parent:FindFirstChildOfClass("Humanoid").Health = hit.Parent:FindFirstChildOfClass("Humanoid").Health - 25
1234
						end
1235
					end
1236
				end
1237
			end)
1238
			------
1239
				local PILLAR = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(5,25,5))
1240
				MakeForm(PILLAR,"Cyl")
1241
				PILLAR.CFrame = BASEPART.CFrame*CF(25,25,25)
1242
				local PILLARTOP = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(6,4,6))
1243
				MakeForm(PILLARTOP,"Cyl")
1244
				PILLARTOP.CFrame = PILLAR.CFrame*CF(0,12.5,0)
1245
				local COAL = CreatePart(3, PYRAMID, "Pebble", 0, 0, "Black", "Pyramid", VT(2,2,2))
1246
				COAL.CFrame = PILLARTOP.CFrame*CF(0,PILLARTOP.Size.Y/2,0)
1247
				local FIRE = ParticleEmitter({Accel = VT(0,15,0), Speed = 3, Drag = 0, Size1 = 2, Size2 = 0, Lifetime1 = 1, Lifetime2 = 2, Parent = COAL, Emit = 45, Offset = 360, Enabled = true})
1248
				FIRE.LockedToPart = true
1249
			------
1250
				local PILLAR = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(5,25,5))
1251
				MakeForm(PILLAR,"Cyl")
1252
				PILLAR.CFrame = BASEPART.CFrame*CF(-25,25,25)
1253
				local PILLARTOP = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(6,4,6))
1254
				MakeForm(PILLARTOP,"Cyl")
1255
				PILLARTOP.CFrame = PILLAR.CFrame*CF(0,12.5,0)
1256
				local COAL = CreatePart(3, PYRAMID, "Pebble", 0, 0, "Black", "Pyramid", VT(2,2,2))
1257
				COAL.CFrame = PILLARTOP.CFrame*CF(0,PILLARTOP.Size.Y/2,0)
1258
				local FIRE = ParticleEmitter({Accel = VT(0,15,0), Speed = 3, Drag = 0, Size1 = 2, Size2 = 0, Lifetime1 = 1, Lifetime2 = 2, Parent = COAL, Emit = 45, Offset = 360, Enabled = true})
1259
				FIRE.LockedToPart = true
1260
			------
1261
				local PILLAR = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(5,25,5))
1262
				MakeForm(PILLAR,"Cyl")
1263
				PILLAR.CFrame = BASEPART.CFrame*CF(25,25,-25)
1264
				local PILLARTOP = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(6,4,6))
1265
				MakeForm(PILLARTOP,"Cyl")
1266
				PILLARTOP.CFrame = PILLAR.CFrame*CF(0,12.5,0)
1267
				local COAL = CreatePart(3, PYRAMID, "Pebble", 0, 0, "Black", "Pyramid", VT(2,2,2))
1268
				COAL.CFrame = PILLARTOP.CFrame*CF(0,PILLARTOP.Size.Y/2,0)
1269
				local FIRE = ParticleEmitter({Accel = VT(0,15,0), Speed = 3, Drag = 0, Size1 = 2, Size2 = 0, Lifetime1 = 1, Lifetime2 = 2, Parent = COAL, Emit = 45, Offset = 360, Enabled = true})
1270
				FIRE.LockedToPart = true
1271
			------
1272
				local PILLAR = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(5,25,5))
1273
				MakeForm(PILLAR,"Cyl")
1274
				PILLAR.CFrame = BASEPART.CFrame*CF(-25,25,-25)
1275
				local PILLARTOP = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(6,4,6))
1276
				MakeForm(PILLARTOP,"Cyl")
1277
				PILLARTOP.CFrame = PILLAR.CFrame*CF(0,12.5,0)
1278
				local COAL = CreatePart(3, PYRAMID, "Pebble", 0, 0, "Black", "Pyramid", VT(2,2,2))
1279
				COAL.CFrame = PILLARTOP.CFrame*CF(0,PILLARTOP.Size.Y/2,0)
1280
				local FIRE = ParticleEmitter({Accel = VT(0,15,0), Speed = 3, Drag = 0, Size1 = 2, Size2 = 0, Lifetime1 = 1, Lifetime2 = 2, Parent = COAL, Emit = 45, Offset = 360, Enabled = true})
1281
				FIRE.LockedToPart = true
1282
			------
1283
			FIREPART.Color = FIRECOLOR
1284
			FIREPART.CFrame = RootPart.CFrame*CF(0,-3.3,65)
1285
			local FIRE = ParticleEmitter({Accel = VT(0,15,0), Speed = 3, Drag = 0, Size1 = 2, Size2 = 0, Lifetime1 = 1, Lifetime2 = 2, Parent = FIREPART, Emit = 45, Offset = 360, Enabled = true})
1286
			local LASTPART = nil
1287
			for i = 1, 35 do
1288
				local PART = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(100-i*2,1,100-i*2))
1289
				PART.CFrame = BASEPART.CFrame*CF(0,i,0)
1290
				LASTPART = PART
1291
				local PART = CreatePart(3, PYRAMID, "Marble", 0, 0, "Cork", "Pyramid", VT(5,1.1,100.1-i*2))
1292
				PART.CFrame = BASEPART.CFrame*CF(0,i,0)
1293
				local PART = CreatePart(3, PYRAMID, "Marble", 0, 0, "Cork", "Pyramid", VT(100.1-i*2,1.1,5))
1294
				PART.CFrame = BASEPART.CFrame*CF(0,i,0)
1295
				local PART = CreatePart(3, PYRAMID, "Granite", 0, 0, "Cork", "Pyramid", VT(7,1.05,100.05-i*2))
1296
				PART.CFrame = BASEPART.CFrame*CF(0,i,0)
1297
				local PART = CreatePart(3, PYRAMID, "Granite", 0, 0, "Cork", "Pyramid", VT(100.05-i*2,1.05,7))
1298
				PART.CFrame = BASEPART.CFrame*CF(0,i,0)
1299
			end
1300
			local PART = CreatePart(3, PYRAMID, "Marble", 0, 0, "Cork", "Pyramid", VT(20,0.1,20))
1301
			PART.CFrame = LASTPART.CFrame*CF(0,LASTPART.Size.Y/2,0)
1302
			FIRE.Rate = 999
1303
			local CHAIR1 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Dark stone grey", "Throne", VT(7,1,7))
1304
			CHAIR1.CFrame = BASEPART.CFrame*CF(0,36,0)
1305
			local CHAIR2 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Dark stone grey", "Throne", VT(5,1,5))
1306
			CHAIR2.CFrame = CHAIR1.CFrame*CF(0,1,0)
1307
			local CHAIR3 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Mid gray", "Throne", VT(3,1,3))
1308
			CHAIR3.CFrame = CHAIR2.CFrame*CF(0,1,0)
1309
			local SEAT = IT("Seat",PYRAMID)
1310
			SEAT.Size = VT(2,0.2,2)
1311
			SEAT.Material = "Concrete"
1312
			SEAT.Anchored = true
1313
			SEAT.BrickColor = BRICKC"Dark orange"
1314
			SEAT.CFrame = CHAIR3.CFrame*CF(0,0.55,-0.5)
1315
			local CHAIR4 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Mid gray", "Throne", VT(3,5,1))
1316
			CHAIR4.CFrame = CHAIR3.CFrame*CF(0,3,1)
1317
			local CHAIR5 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Dark orange", "Throne", VT(2,4.7,1))
1318
			CHAIR5.CFrame = CHAIR4.CFrame*CF(0,0,-0.1)
1319
			local CHAIR6 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Mid gray", "Throne", VT(0.5,2,2))
1320
			CHAIR6.CFrame = CHAIR3.CFrame*CF(1.5,0.75,0)
1321
			local CHAIR7 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Mid gray", "Throne", VT(0.5,2,2))
1322
			CHAIR7.CFrame = CHAIR3.CFrame*CF(-1.5,0.75,0)
1323
			PYRAMID.PrimaryPart = BASEPART
1324
			PYRAMID:SetPrimaryPartCFrame(RootPart.CFrame*CF(0,-50,65))
1325
			PYRAMID.Parent = Weapon
1326
			for i = 1, 25 do
1327
				Swait()
1328
				FIREPART.Transparency = FIREPART.Transparency - 1/25
1329
			end
1330
			for _, c in pairs(PYRAMID:GetChildren()) do
1331
				if c:IsA("BasePart") then
1332
					c.CanCollide = true
1333
				end
1334
			end
1335
			local RESET = PYRAMID.Changed:Connect(function()
1336
				PYRAMID.Parent = workspace
1337
			end)
1338
			CreateSound(130972023, BASEPART, 10, 0.8, false)
1339
			for i = 1, 46*4 do
1340
				Swait()
1341
				PYRAMID:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,0.25,0))
1342
			end
1343
			for i = 1, 25 do
1344
				Swait()
1345
				FIREPART.Transparency = FIREPART.Transparency + 1/25
1346
			end
1347
			FIRE.Enabled = false
1348
			local SINKING = false
1349
			SIT.Changed:Connect(function()
1350
				if SIT.Value == false and SINKING == false then
1351
					SINKING = true
1352
					local PRT = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Dark orange", "Throne", VT(2,0.2,2))
1353
					PRT.CFrame = SEAT.CFrame
1354
					SEAT:remove()
1355
					wait(1)
1356
					FIRE.Enabled = true
1357
					for i = 1, 25 do
1358
						Swait()
1359
						FIREPART.Transparency = FIREPART.Transparency - 1/25
1360
					end
1361
					for i = 1, 46*4 do
1362
						Swait()
1363
						FIREPART.Size = FIREPART.Size - VT(0.003*i,0,0.003*i)
1364
						PYRAMID:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,-0.25,0))
1365
					end
1366
					for i = 1, 25 do
1367
						Swait()
1368
						FIREPART.Size = FIREPART.Size - VT((0.003*i)*45,0,(0.003*i)*45)
1369
						FIREPART.Transparency = FIREPART.Transparency + 1/25
1370
					end
1371
					FIRE.Enabled = false
1372
					Debris:AddItem(FIREPART,5)
1373
					RESET:disconnect()
1374
					PYRAMID:remove()
1375
				end
1376
			end)
1377
		end))
1378
		ATTACK = false
1379
	end
1380
end
1381
1382
--//=================================\\
1383
--||	  ASSIGN THINGS TO KEYS
1384
--\\=================================//
1385
1386
function MouseDown(Mouse)
1387
	if ATTACK == false then
1388
	end
1389
end
1390
1391
function MouseUp(Mouse)
1392
HOLD = false
1393
end
1394
1395
function KeyDown(Key)
1396
	KEYHOLD = true
1397
	if Humanoid.Sit == false then
1398
		if Key == "z" and ATTACK == false then
1399
			Summon()
1400
		end
1401
	
1402
		if Key == "b" and ATTACK == false then
1403
			if Weapon:FindFirstChild("Pyramid") == nil then
1404
				Warp("Mouse")
1405
			else
1406
				if Weapon.Pyramid:FindFirstChild("Seat") then
1407
					Warp(Weapon.Pyramid.Seat.Position+VT(0,5,0))
1408
				end
1409
			end
1410
		end
1411
1412
		if Key == "v" and ATTACK == false then
1413
			ShadeZone()
1414
		end
1415
1416
		if Key == "x" and ATTACK == false then
1417
			if Weapon:FindFirstChild("Pyramid") == nil then
1418
				PharaohsThrone()
1419
			else
1420
				SIT.Value = true
1421
			end
1422
		end
1423
	end
1424
1425
	if Key == "c" and ATTACK == false then
1426
		PheonixGlare()
1427
	end
1428
end
1429
1430
function KeyUp(Key)
1431
	KEYHOLD = false
1432
end
1433
1434
	Mouse.Button1Down:connect(function(NEWKEY)
1435
		MouseDown(NEWKEY)
1436
	end)
1437
	Mouse.Button1Up:connect(function(NEWKEY)
1438
		MouseUp(NEWKEY)
1439
	end)
1440
	Mouse.KeyDown:connect(function(NEWKEY)
1441
		KeyDown(NEWKEY)
1442
	end)
1443
	Mouse.KeyUp:connect(function(NEWKEY)
1444
		KeyUp(NEWKEY)
1445
	end)
1446
1447
--//=================================\\
1448
--\\=================================//
1449
1450
1451
function unanchor()
1452
	if UNANCHOR == true then
1453
		RootPart.Anchored = false
1454
	end
1455
	g = Character:GetChildren()
1456
	for i = 1, #g do
1457
		if g[i].ClassName == "Part" and g[i] ~= RootPart then
1458
			g[i].Anchored = false
1459
		end
1460
	end
1461
	g = Weapon:GetChildren()
1462
	for i = 1, #g do
1463
		if g[i].ClassName == "Part" then
1464
			g[i].Anchored = false
1465
		end
1466
	end
1467
end
1468
1469
1470
--//=================================\\
1471
--||	WRAP THE WHOLE SCRIPT UP
1472
--\\=================================//
1473
1474
Humanoid.Changed:connect(function(Jump)
1475
	if Jump == "Jump" and (Disable_Jump == true) then
1476
		Humanoid.Jump = false
1477
	end
1478
end)
1479
1480
while true do
1481
	Swait()
1482
	script.Parent = WEAPONGUI
1483
	ANIMATE.Parent = nil
1484
	if Humanoid then
1485
		local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
1486
		IDLEANIMATION:Play()
1487
	end
1488
	SINE = SINE + CHANGE
1489
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1490
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1491
	Ignore = {Torso,RootPart,RightLeg,LeftLeg,RightLeg,Head,RightArm,LeftArm,PRT}
1492
	local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
1493
	local HITFLOOR,HITPOS = CastProperRay(RootPart.Position, RootPart.Position-VT(0,15,0), 4, Ignore)
1494
	local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
1495
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
1496
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1497
		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)
1498
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * 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(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1499
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * 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(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1500
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
1501
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1502
		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)
1503
		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)
1504
		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)
1505
	end
1506
	if Humanoid.Sit == false then
1507
		SIT.Value = false
1508
		if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
1509
			ANIM = "Jump"
1510
			if PLAYANIMS == true then
1511
				Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1512
				RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1513
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1514
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1515
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1516
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
1517
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1518
		    end
1519
		elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
1520
			ANIM = "Fall"
1521
			if PLAYANIMS == true then
1522
				Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1523
				RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1524
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1525
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1526
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1527
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1528
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
1529
			end
1530
		elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
1531
			ANIM = "Idle"
1532
			if PLAYANIMS == true then
1533
				Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1534
				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)
1535
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-8 - 4 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1536
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 - 0.25 * COS(SINE / 12), 0.45 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(7.5 * COS(SINE / 12)), RAD(45 - 7.5 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1537
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-12 - 6 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1538
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1539
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1540
			end
1541
		elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
1542
			ANIM = "Walk"
1543
			if PLAYANIMS == true then
1544
				Grasp.C1 = Clerp(Grasp.C1,CF(0, 0+0.35 * COS(SINE / WALKSPEEDVALUE), 0) * ANGLES(RAD(0), RAD(0), RAD(-20 * COS(SINE / WALKSPEEDVALUE / 2))), 0.5 / Animation_Speed)
1545
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1546
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1547
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65-0.35 * COS(SINE / WALKSPEEDVALUE), 0) * ANGLES(RAD(90-20 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
1548
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(15), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
1549
				RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
1550
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
1551
			end
1552
		end
1553
	else
1554
		SIT.Value = true
1555
		if PLAYANIMS == true then
1556
			Grasp.C1 = Clerp(Grasp.C1,CF(0, 0.85, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1557
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
1558
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-3 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed)
1559
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1560
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.05 * COS(SINE / 12), 0.3) * ANGLES(RAD(90), RAD(0), RAD(5)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1561
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.35 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(25), RAD(65), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed)
1562
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.35 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(25), RAD(-65), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed)
1563
		end
1564
	end
1565
	unanchor()
1566
	Humanoid.MaxHealth = "inf"
1567
	Humanoid.Health = "inf"
1568
	if Rooted == false then
1569
		Disable_Jump = false
1570
		Humanoid.WalkSpeed = Speed
1571
	elseif Rooted == true then
1572
		Disable_Jump = true
1573
		Humanoid.WalkSpeed = 0
1574
	end
1575
	for _, c in pairs(Character:GetChildren()) do
1576
		if c.ClassName == "Part" and c.Name ~= "Eye" then
1577
			c.Material = "Neon"
1578
			if c:FindFirstChildOfClass("ParticleEmitter") then
1579
				c:FindFirstChildOfClass("ParticleEmitter"):remove()
1580
			end
1581
			c.Color = C3(0,0,0)
1582
			if c == Head then
1583
				if c:FindFirstChild("face") then
1584
					c.face:remove()
1585
				end
1586
			end
1587
		elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
1588
			c:remove()
1589
		elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
1590
			c:remove()
1591
		end
1592
	end
1593
	sick.SoundId = "rbxassetid://1551788627"
1594
	sick.Looped = true
1595
	sick.Pitch = 1
1596
	sick.Volume = 3
1597
	sick.Parent = Torso
1598
	sick:Resume()
1599
	Humanoid.Name = "Pharaoh"
1600
end
1601
1602
--//=================================\\
1603
--\\=================================//
1604
1605
1606
1607
1608
1609
--//====================================================\\--
1610
--||			  		 END OF SCRIPT
1611
--\\====================================================//--