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