View difference between Paste ID: VJPPM8BN and ZXSxXgEf
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2-
--   _     _                                       _ _ _   
2+
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
3-
--  (_)   (_)                                     | (_) |  
3+
local RealPlayer = Player
4-
--   _ _____  __ _  __ _  ___ _ __ ___     ___  __| |_| |_ 
4+
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
5-
--  | |_  / |/ _` |/ _` |/ _ \ '_ ` _ \   / _ \/ _` | | __|
5+
6-
--  | |/ /| | (_| | (_| |  __/ | | | | | |  __/ (_| | | |_ 
6+
7-
--  |_/___|_|\__, |\__,_|\___|_| |_| |_|  \___|\__,_|_|\__|
7+
8-
--            __/ |                                        
8+
9-
--           |___/    ★·.·´¯`·.·★ ᴛʜᴇ ᴠᴏɪᴅ ᴡᴀʀᴅᴇɴ ★·.·´¯`·.·★
9+
10
Backpack = Player.Backpack
11
Character = Player.Character
12
Humanoid = Character.Humanoid
13
Mouse = Player:GetMouse()
14
RootPart = Character["HumanoidRootPart"]
15
Torso = Character["Torso"]
16
Head = Character["Head"]
17
RightArm = Character["Right Arm"]
18
LeftArm = Character["Left Arm"]
19
RightLeg = Character["Right Leg"]
20
LeftLeg = Character["Left Leg"]
21
RootJoint = RootPart["RootJoint"]
22
Neck = Torso["Neck"]
23
RightShoulder = Torso["Right Shoulder"]
24
LeftShoulder = Torso["Left Shoulder"]
25
RightHip = Torso["Right Hip"]
26
LeftHip = Torso["Left Hip"]
27
local sick = Instance.new("Sound",Character)
28
sick.SoundId = "rbxassetid://1244332148"
29
sick.Looped = true
30
sick.Pitch = 1
31
sick.Volume = 1
32
sick:Play()
33
34
IT = Instance.new
35
CF = CFrame.new
36
VT = Vector3.new
37
RAD = math.rad
38
C3 = Color3.new
39
UD2 = UDim2.new
40
BRICKC = BrickColor.new
41
ANGLES = CFrame.Angles
42
EULER = CFrame.fromEulerAnglesXYZ
43
COS = math.cos
44
ACOS = math.acos
45
SIN = math.sin
46
ASIN = math.asin
47
ABS = math.abs
48
MRANDOM = math.random
49
FLOOR = math.floor
50
51
--//=================================\\
52
--|| 	      USEFUL VALUES
53
--\\=================================//
54
55
Animation_Speed = 3
56
Player_Size = 1 --Size of the player.
57
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
58
local Speed = 25
59
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
60
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
61
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
62
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
63
local DAMAGEMULTIPLIER = 1
64
local ANIM = "Idle"
65
local ATTACK = false
66
local EQUIPPED = false
67
local HOLD = false
68
local COMBO = 1
69
local Rooted = false
70
local SINE = 0
71
local KEYHOLD = false
72
local CHANGE = 2 / Animation_Speed
73
local WALKINGANIM = false
74
local VALUE1 = false
75
local VALUE2 = false
76
local ROBLOXIDLEANIMATION = IT("Animation")
77
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
78
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
79
--ROBLOXIDLEANIMATION.Parent = Humanoid
80
local WEAPONGUI = IT("ScreenGui", PlayerGui)
81
WEAPONGUI.Name = "Weapon GUI"
82
local Effects = IT("Folder", Character)
83
Effects.Name = "Effects"
84
local ANIMATOR = Humanoid.Animator
85
local ANIMATE = Character.Animate
86
local UNANCHOR = true
87
local PLAYMAINANIM = true
88
local BOLTSOUNDS = {419011101,305734380}
89
local SIZE = 1
90
local UNANCHOR = true
91
local TRUEFORM = false
92
local HITFLOOR, HITPOS = nil
93
local FLIGHT = false
94
--//=================================\\
95
--\\=================================//
96
97
98
99
--//=================================\\
100
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
101
--\\=================================//
102
103
ArtificialHB = Instance.new("BindableEvent", script)
104
ArtificialHB.Name = "ArtificialHB"
105
106
script:WaitForChild("ArtificialHB")
107
108
frame = Frame_Speed
109
tf = 0
110
allowframeloss = false
111
tossremainder = false
112
lastframe = tick()
113
script.ArtificialHB:Fire()
114
115
game:GetService("RunService").Heartbeat:connect(function(s, p)
116
	tf = tf + s
117
	if tf >= frame then
118
		if allowframeloss then
119
			script.ArtificialHB:Fire()
120
			lastframe = tick()
121
		else
122
			for i = 1, math.floor(tf / frame) do
123
				script.ArtificialHB:Fire()
124
			end
125
		lastframe = tick()
126
		end
127
		if tossremainder then
128
			tf = 0
129
		else
130
			tf = tf - frame * math.floor(tf / frame)
131
		end
132
	end
133
end)
134
135
--//=================================\\
136
--\\=================================//
137
138
--//=================================\\
139
--|| 	      SOME FUNCTIONS
140
--\\=================================//
141
142
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
143
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
144
end
145
146
function PositiveAngle(NUMBER)
147
	if NUMBER >= 0 then
148
		NUMBER = 0
149
	end
150
	return NUMBER
151
end
152
153
function NegativeAngle(NUMBER)
154
	if NUMBER <= 0 then
155
		NUMBER = 0
156
	end
157
	return NUMBER
158
end
159
160
function Swait(NUMBER)
161
	if NUMBER == 0 or NUMBER == nil then
162
		ArtificialHB.Event:wait()
163
	else
164
		for i = 1, NUMBER do
165
			ArtificialHB.Event:wait()
166
		end
167
	end
168
end
169
170
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
171
	local NEWMESH = IT(MESH)
172
	if MESH == "SpecialMesh" then
173
		NEWMESH.MeshType = MESHTYPE
174
		if MESHID ~= "nil" and MESHID ~= "" then
175
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
176
		end
177
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
178
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
179
		end
180
	end
181
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
182
	NEWMESH.Scale = SCALE
183
	NEWMESH.Parent = PARENT
184
	return NEWMESH
185
end
186
187
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
188
	local NEWPART = IT("Part")
189
	NEWPART.formFactor = FORMFACTOR
190
	NEWPART.Reflectance = REFLECTANCE
191
	NEWPART.Transparency = TRANSPARENCY
192
	NEWPART.CanCollide = false
193
	NEWPART.Locked = true
194
	NEWPART.Anchored = true
195
	if ANCHOR == false then
196
		NEWPART.Anchored = false
197
	end
198
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
199
	NEWPART.Name = NAME
200
	NEWPART.Size = SIZE
201
	NEWPART.Position = Torso.Position
202
	NEWPART.Material = MATERIAL
203
	NEWPART:BreakJoints()
204
	NEWPART.Parent = PARENT
205
	return NEWPART
206
end
207
208
	local function weldBetween(a, b)
209
	    local weldd = Instance.new("ManualWeld")
210
	    weldd.Part0 = a
211
	    weldd.Part1 = b
212
	    weldd.C0 = CFrame.new()
213
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
214
	    weldd.Parent = a
215
	    return weldd
216
	end
217
218
219
function QuaternionFromCFrame(cf)
220
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
221
	local trace = m00 + m11 + m22
222
	if trace > 0 then 
223
		local s = math.sqrt(1 + trace)
224
		local recip = 0.5 / s
225
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
226
	else
227
		local i = 0
228
		if m11 > m00 then
229
			i = 1
230
		end
231
		if m22 > (i == 0 and m00 or m11) then
232
			i = 2
233
		end
234
		if i == 0 then
235
			local s = math.sqrt(m00 - m11 - m22 + 1)
236
			local recip = 0.5 / s
237
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
238
		elseif i == 1 then
239
			local s = math.sqrt(m11 - m22 - m00 + 1)
240
			local recip = 0.5 / s
241
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
242
		elseif i == 2 then
243
			local s = math.sqrt(m22 - m00 - m11 + 1)
244
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
245
		end
246
	end
247
end
248
 
249
function QuaternionToCFrame(px, py, pz, x, y, z, w)
250
	local xs, ys, zs = x + x, y + y, z + z
251
	local wx, wy, wz = w * xs, w * ys, w * zs
252
	local xx = x * xs
253
	local xy = x * ys
254
	local xz = x * zs
255
	local yy = y * ys
256
	local yz = y * zs
257
	local zz = z * zs
258
	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))
259
end
260
 
261
function QuaternionSlerp(a, b, t)
262
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
263
	local startInterp, finishInterp;
264
	if cosTheta >= 0.0001 then
265
		if (1 - cosTheta) > 0.0001 then
266
			local theta = ACOS(cosTheta)
267
			local invSinTheta = 1 / SIN(theta)
268
			startInterp = SIN((1 - t) * theta) * invSinTheta
269
			finishInterp = SIN(t * theta) * invSinTheta
270
		else
271
			startInterp = 1 - t
272
			finishInterp = t
273
		end
274
	else
275
		if (1 + cosTheta) > 0.0001 then
276
			local theta = ACOS(-cosTheta)
277
			local invSinTheta = 1 / SIN(theta)
278
			startInterp = SIN((t - 1) * theta) * invSinTheta
279
			finishInterp = SIN(t * theta) * invSinTheta
280
		else
281
			startInterp = t - 1
282
			finishInterp = t
283
		end
284
	end
285
	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
286
end
287
288
function Clerp(a, b, t)
289
	local qa = {QuaternionFromCFrame(a)}
290
	local qb = {QuaternionFromCFrame(b)}
291
	local ax, ay, az = a.x, a.y, a.z
292
	local bx, by, bz = b.x, b.y, b.z
293
	local _t = 1 - t
294
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
295
end
296
297
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
298
	local frame = IT("Frame")
299
	frame.BackgroundTransparency = TRANSPARENCY
300
	frame.BorderSizePixel = BORDERSIZEPIXEL
301
	frame.Position = POSITION
302
	frame.Size = SIZE
303
	frame.BackgroundColor3 = COLOR
304
	frame.BorderColor3 = BORDERCOLOR
305
	frame.Name = NAME
306
	frame.Parent = PARENT
307
	return frame
308
end
309
310
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
311
	local label = IT("TextLabel")
312
	label.BackgroundTransparency = 1
313
	label.Size = UD2(1, 0, 1, 0)
314
	label.Position = UD2(0, 0, 0, 0)
315
	label.TextColor3 = TEXTCOLOR
316
	label.TextStrokeTransparency = STROKETRANSPARENCY
317
	label.TextTransparency = TRANSPARENCY
318
	label.FontSize = TEXTFONTSIZE
319
	label.Font = TEXTFONT
320
	label.BorderSizePixel = BORDERSIZEPIXEL
321
	label.TextScaled = false
322
	label.Text = TEXT
323
	label.Name = NAME
324
	label.Parent = PARENT
325
	return label
326
end
327
328
function NoOutlines(PART)
329
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
330
end
331
332
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
333
	local NEWWELD = IT(TYPE)
334
	NEWWELD.Part0 = PART0
335
	NEWWELD.Part1 = PART1
336
	NEWWELD.C0 = C0
337
	NEWWELD.C1 = C1
338
	NEWWELD.Parent = PARENT
339
	return NEWWELD
340
end
341
342
local S = IT("Sound")
343
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
344
	local NEWSOUND = nil
345
	coroutine.resume(coroutine.create(function()
346
		NEWSOUND = S:Clone()
347
		NEWSOUND.Parent = PARENT
348
		NEWSOUND.Volume = VOLUME
349
		NEWSOUND.Pitch = PITCH
350
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
351
		NEWSOUND:play()
352
		if DOESLOOP == true then
353
			NEWSOUND.Looped = true
354
		else
355
			repeat wait(1) until NEWSOUND.Playing == false
356
			NEWSOUND:remove()
357
		end
358
	end))
359
	return NEWSOUND
360
end
361
362
function CFrameFromTopBack(at, top, back)
363
	local right = top:Cross(back)
364
	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)
365
end
366
367
function CreateWave(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
368
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
369
	local mesh = IT("SpecialMesh",wave)
370
	mesh.MeshType = "FileMesh"
371
	mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
372
	mesh.Scale = VT(size,size,size)
373
	mesh.Offset = VT(0,0,-size/8)
374
	wave.CFrame = cframe
375
	coroutine.resume(coroutine.create(function(PART)
376
		for i = 1, waitt do
377
			Swait()
378
			mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
379
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
380
			if doesrotate == true then
381
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
382
			end
383
			wave.Transparency = wave.Transparency + (0.5/waitt)
384
			if wave.Transparency > 0.99 then
385
				wave:remove()
386
			end
387
		end
388
	end))
389
end
390
391
function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
392
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
393
	local mesh = IT("SpecialMesh",wave)
394
	mesh.MeshType = "FileMesh"
395
	mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
396
	mesh.Scale = VT(size,size,size)
397
	wave.CFrame = cframe
398
	coroutine.resume(coroutine.create(function(PART)
399
		for i = 1, waitt do
400
			Swait()
401
			mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
402
			if doesrotate == true then
403
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
404
			end
405
			wave.Transparency = wave.Transparency + (0.5/waitt)
406
			if wave.Transparency > 0.99 then
407
				wave:remove()
408
			end
409
		end
410
	end))
411
end
412
413
function CreateTornado(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
414
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
415
	local mesh = IT("SpecialMesh",wave)
416
	mesh.MeshType = "FileMesh"
417
	mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
418
	mesh.Scale = VT(size,size,size)
419
	wave.CFrame = cframe
420
	coroutine.resume(coroutine.create(function(PART)
421
		for i = 1, waitt do
422
			Swait()
423
			mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
424
			if doesrotate == true then
425
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
426
			end
427
			wave.Transparency = wave.Transparency + (0.5/waitt)
428
			if wave.Transparency > 0.99 then
429
				wave:remove()
430
			end
431
		end
432
	end))
433
end
434
435
function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
436
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
437
	local mesh = IT("SpecialMesh",wave)
438
	mesh.MeshType = "FileMesh"
439
	mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
440
	mesh.Scale = SIZE
441
	mesh.Offset = VT(0,0,-SIZE.X/8)
442
	wave.CFrame = CFRAME
443
	coroutine.resume(coroutine.create(function(PART)
444
		for i = 1, WAIT do
445
			Swait()
446
			mesh.Scale = mesh.Scale + GROW
447
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
448
			if DOESROT == true then
449
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
450
			end
451
			wave.Transparency = wave.Transparency + (0.5/WAIT)
452
			if wave.Transparency > 0.99 then
453
				wave:remove()
454
			end
455
		end
456
	end))
457
end
458
459
function CreateRing2(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
460
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
461
	local mesh = IT("SpecialMesh",wave)
462
	mesh.MeshType = "FileMesh"
463
	mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
464
	mesh.Scale = SIZE
465
	mesh.Offset = VT(0,0,0)
466
	wave.CFrame = CFRAME
467
	coroutine.resume(coroutine.create(function(PART)
468
		for i = 1, WAIT do
469
			Swait()
470
			mesh.Scale = mesh.Scale + GROW
471
			if DOESROT == true then
472
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
473
			end
474
			wave.Transparency = wave.Transparency + (0.5/WAIT)
475
			if wave.Transparency > 0.99 then
476
				wave:remove()
477
			end
478
		end
479
	end))
480
end
481
482
function MagicSphere3(SIZE,WAIT,CFRAME,COLOR,GROW)
483
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
484
	local mesh = IT("SpecialMesh",wave)
485
	mesh.MeshType = "Sphere"
486
	mesh.Scale = SIZE
487
	mesh.Offset = VT(0,0,0)
488
	wave.CFrame = CFRAME
489
	coroutine.resume(coroutine.create(function(PART)
490
		for i = 1, WAIT do
491
			Swait()
492
			mesh.Scale = mesh.Scale + GROW
493
			wave.Transparency = wave.Transparency + (1/WAIT)
494
			if wave.Transparency > 0.99 then
495
				wave:remove()
496
			end
497
		end
498
	end))
499
end
500
501
502
function CreateRing(inair,size,doesrotate,rotatedirection,waitt,cframe,spin1,spin2,color)
503
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
504
	local mesh = IT("SpecialMesh",wave)
505
	mesh.MeshType = "FileMesh"
506
	mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
507
	mesh.Scale = VT(size,size,size)
508
	mesh.Offset = VT(0,0,0)
509
	wave.CFrame = cframe
510
	coroutine.resume(coroutine.create(function(PART)
511
		for i = 1, waitt do
512
			Swait()
513
			mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
514
			if doesrotate == true then
515
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1)
516
			end
517
			wave.Transparency = wave.Transparency + (0.5/waitt)
518
			if wave.Transparency > 0.99 then
519
				wave:remove()
520
			end
521
		end
522
	end))
523
end
524
525
function MagicSphere(size,waitt,cframe,color)
526
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1))
527
	local mesh = IT("SpecialMesh",wave)
528
	mesh.MeshType = "Sphere"
529
	mesh.Scale = VT(size,size,size)
530
	mesh.Offset = VT(0,0,0)
531
	wave.CFrame = cframe
532
	coroutine.resume(coroutine.create(function(PART)
533
		for i = 1, waitt do
534
			Swait()
535
			mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
536
			wave.Transparency = wave.Transparency + (1/waitt)
537
			if wave.Transparency > 0.99 then
538
				wave:remove()
539
			end
540
		end
541
	end))
542
end
543
544
function MagicSphere2(size,waitt,cframe,color)
545
	local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1))
546
	local mesh = IT("SpecialMesh",wave)
547
	mesh.MeshType = "Sphere"
548
	mesh.Scale = VT(size,size,size)
549
	mesh.Offset = VT(0,0,0)
550
	wave.CFrame = cframe
551
	coroutine.resume(coroutine.create(function(PART)
552
		for i = 1, waitt do
553
			Swait()
554
			mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt)
555
			wave.Transparency = wave.Transparency - (1/waitt)
556
		end
557
		wave:remove()
558
	end))
559
end
560
561
function BreakEffect(brickcolor,cframe,x1,y1,z1,material)
562
	local prt=part("Custom",workspace,material,0,0,brickcolor,"Effect",VT(0.5,0.5,0.5))
563
	prt.Anchored=true
564
	prt.CFrame=cframe*EULER(math.random(-50,50),math.random(-50,50),math.random(-50,50))
565
	local msh=mesh("SpecialMesh",prt,"Sphere","",VT(0,0,0),VT(x1,y1,z1))
566
	coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) 
567
		CF=Part.CFrame
568
		Numbb=0
569
		randnumb=math.random()-math.random()
570
		for i=0,1,0.05 do
571
			wait()
572
			CF=CF*CF(0,1,0)
573
			--Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
574
			Part.CFrame=CF*EULER(Numbb,0,0)
575
			Part.Transparency=i
576
			Numbb=Numbb+randnumb
577
		end
578
		Part.Parent=nil
579
	end),prt)
580
end
581
582
function MagicBlock(size,waitt,cframe,color)
583
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(size,size,size))
584
	local mesh = IT("BlockMesh",wave)
585
	wave.CFrame = cframe
586
	coroutine.resume(coroutine.create(function(PART)
587
		for i = 1, waitt do
588
			Swait()
589
			mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
590
			wave.CFrame = cframe * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
591
			wave.Transparency = wave.Transparency + (1/waitt)
592
			if wave.Transparency > 0.99 then
593
				wave:remove()
594
			end
595
		end
596
	end))
597
end
598
599
function checkfriendlist(model)
600
local friend = false
601
local target = nil
602
if model.ClassName == "Player" then
603
target = model
604
else
605
target = game:GetService("Players"):GetPlayerFromCharacter(model)
606
end
607
local EyeSizes={
608
	NumberSequenceKeypoint.new(0,2,0),
609
	NumberSequenceKeypoint.new(1,0,0)
610
}
611
local EyeTrans={
612
	NumberSequenceKeypoint.new(0,0.5,0),
613-
if target ~= nil then
613+
614-
if target:IsFriendsWith(409145949) then friend = true end
614+
615
local PE=Instance.new("ParticleEmitter",nil)
616-
return friend
616+
617
PE.Color = ColorSequence.new(BRICKC("Alder").Color,BRICKC("Eggplant").Color)
618-
if checkfriendlist(game:GetService("Players").LocalPlayer) == true then
618+
619-
	warn('Youre friends with Toey8418, Have fun It !')
619+
620
PE.Lifetime=NumberRange.new(0.35,1)
621
PE.Rotation=NumberRange.new(0,360)
622-
if checkfriendlist(game:GetService("Players").LocalPlayer) == false then
622+
623-
	warn('How did you even get this script? ')
623+
624-
	warn('You are not friends with Toey8418, go away >:c' ..plr.Name)
624+
625
PE.Drag = 5
626
PE.Speed = NumberRange.new(0.1,5)
627
PE.Texture="http://www.roblox.com/asset/?id=1460745664"
628
PE.ZOffset = 0.5
629
PE.Name = "PE"
630
PE.Enabled = false
631
632
function Fire(art)
633
	local PARTICLES = PE:Clone()
634
	PARTICLES.Parent = art
635
	PARTICLES.Enabled = true
636
	return PARTICLES
637
end
638
639
function CFrameFromTopBack(at, top, back)
640
	local right = top:Cross(back)
641
	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)
642
end
643
644
--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})
645
function WACKYEFFECT(Table)
646
	local TYPE = (Table.EffectType or "Sphere")
647
	local SIZE = (Table.Size or VT(1,1,1))
648
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
649
	local TRANSPARENCY = (Table.Transparency or 0)
650
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
651
	local CFRAME = (Table.CFrame or Torso.CFrame)
652
	local MOVEDIRECTION = (Table.MoveToPos or nil)
653
	local ROTATION1 = (Table.RotationX or 0)
654
	local ROTATION2 = (Table.RotationY or 0)
655
	local ROTATION3 = (Table.RotationZ or 0)
656
	local MATERIAL = (Table.Material or "Neon")
657
	local COLOR = (Table.Color or C3(1,1,1))
658
	local TIME = (Table.Time or 45)
659
	local SOUNDID = (Table.SoundID or nil)
660
	local SOUNDPITCH = (Table.SoundPitch or nil)
661
	local SOUNDVOLUME = (Table.SoundVolume or nil)
662
	coroutine.resume(coroutine.create(function()
663
		local PLAYSSOUND = false
664
		local SOUND = nil
665
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
666
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
667
			PLAYSSOUND = true
668
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
669
		end
670
		EFFECT.Color = COLOR
671
		local MSH = nil
672
		if TYPE == "Sphere" then
673
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
674
		elseif TYPE == "Block" or TYPE == "Box" then
675
			MSH = IT("BlockMesh",EFFECT)
676
			MSH.Scale = SIZE
677
		elseif TYPE == "Wave" then
678
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
679
		elseif TYPE == "Ring" then
680
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
681
		elseif TYPE == "Slash" then
682
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
683
		elseif TYPE == "Round Slash" then
684
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
685
		elseif TYPE == "Swirl" then
686
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
687
		elseif TYPE == "Skull" then
688
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
689
		elseif TYPE == "Crystal" then
690
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
691
		end
692
		if MSH ~= nil then
693
			local MOVESPEED = nil
694
			if MOVEDIRECTION ~= nil then
695
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
696
			end
697
			local GROWTH = SIZE - ENDSIZE
698
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
699
			if TYPE == "Block" then
700
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
701
			else
702
				EFFECT.CFrame = CFRAME
703
			end
704
			for LOOP = 1, TIME+1 do
705
				Swait()
706
				MSH.Scale = MSH.Scale - GROWTH/TIME
707
				if TYPE == "Wave" then
708
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
709
				end
710
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
711
				if TYPE == "Block" then
712
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
713
				else
714
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
715
				end
716
				if MOVEDIRECTION ~= nil then
717
					local ORI = EFFECT.Orientation
718
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
719
					EFFECT.Orientation = ORI
720
				end
721
			end
722
			if PLAYSSOUND == false then
723
				EFFECT:remove()
724
			else
725
				repeat wait(1) until SOUND.Playing == false
726
				EFFECT:remove()
727
			end
728
		else
729
			if PLAYSSOUND == false then
730
				EFFECT:remove()
731
			else
732
				repeat Swait() until SOUND.Playing == false
733
				EFFECT:remove()
734
			end
735
		end
736
	end))
737
end
738
739
function MakeForm(PART,TYPE)
740
	if TYPE == "Cyl" then
741
		local MSH = IT("CylinderMesh",PART)
742
	elseif TYPE == "Ball" then
743
		local MSH = IT("SpecialMesh",PART)
744
		MSH.MeshType = "Sphere"
745
	elseif TYPE == "Wedge" then
746
		local MSH = IT("SpecialMesh",PART)
747
		MSH.MeshType = "Wedge"
748
	end
749
end
750
751
function createaddongen(limb,position,size)
752
	local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(0.25*Player_Size, size*0.8*Player_Size,size*0.8*Player_Size),false)
753
	local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0.45 * Player_Size, position * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, 0, 0))
754
	local part = CreatePart(3, Weapon, "Neon", 0, 0, "Royal purple", limb.Name.." Neon Gauntlet Part", VT(0.25*Player_Size,size*Player_Size,size*Player_Size),false)
755
	local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0.425 * Player_Size, position * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, 0, 0))
756
end
757
758
function creategauntlet(limb)
759
	--main--
760
	local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.75+0.07*Player_Size,1.07*Player_Size),false)
761
	local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, -0.65 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
762
	local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.25*Player_Size,1.07*Player_Size),false)
763
	local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, -0.115 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
764
	MakeForm(part,"Wedge")
765
	local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.25*Player_Size,1.07*Player_Size),false)
766
	local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, 0.115 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0))
767
	MakeForm(part,"Wedge")
768
	local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.75+0.07*Player_Size,1.07*Player_Size),false)
769
	local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, 0.65 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
770
	--neon addons
771
	local part = CreatePart(3, Weapon, "Neon", 0, 0, "Royal purple", limb.Name.." Neon Gauntlet Part", VT(1.05*Player_Size,2.05*Player_Size,1.05*Player_Size),false)
772
	local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
773
	--misc--
774
	createaddongen(limb,0.25,0.75)
775
	createaddongen(limb,-0.2,0.25)
776
	createaddongen(limb,-0.35,0.25)
777
	createaddongen(limb,-0.65,0.45)
778
end
779
780
781
Debris = game:GetService("Debris")
782
783
function CastProperRay(StartPos, EndPos, Distance, Ignore)
784
	local DIRECTION = CF(StartPos,EndPos).lookVector
785
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
786
end
787
788
local HATWELD = nil
789
function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
790
	PLAYMAINANIM = false
791
	if WhichPose == "Cast1" then
792
		for i=0, Time, 0.1 / Animation_Speed do
793
			Swait()
794
			if Magic == true then
795
				WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Eggplant".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
796
			end
797
			if Gyro ~= nil and Gyro ~= false then
798
				Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
799
			end
800
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed)
801
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed)
802
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
803
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
804
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
805
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
806
		end
807
	elseif WhichPose == "Cast2" then
808
		for i=0, Time, 0.1 / Animation_Speed do
809
			Swait()
810
			if Magic == true then
811
				WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Eggplant".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
812
				WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Eggplant".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
813
			end
814
			if Gyro ~= nil and Gyro ~= false then
815
				Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
816
			end
817
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
818
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
819
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
820
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
821
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
822
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
823
		end
824
	elseif WhichPose == "RightArmUp" then
825
		for i=0, Time, 0.1 / Animation_Speed do
826
			Swait()
827
			if Magic == true then
828
				WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Eggplant".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
829
			end
830
			if Gyro ~= nil and Gyro ~= false then
831
				Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
832
			end
833
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed)
834
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed)
835
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
836
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
837
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
838
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
839
		end
840
	elseif WhichPose == "Taunt" then
841
		for i=0, Time, 0.1 / Animation_Speed do
842
			Swait()
843
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
844
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
845
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
846
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
847
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
848
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
849
		end
850
		HATWELD.Part0 = RightArm
851
		HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
852
		CreateSound(319332735,Torso,10,1,false)
853
		for i=0, Time*2, 0.1 / Animation_Speed do
854
			Swait()
855
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
856
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
857
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
858
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
859
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
860
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
861
		end
862
		for i=0, Time, 0.1 / Animation_Speed do
863
			Swait()
864
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
865
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
866
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
867
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
868
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
869
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
870
			HATWELD.C0 = Clerp(HATWELD.C0, CF(-0.5,-1.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(35), RAD(0), RAD(35)), Speed / Animation_Speed)
871
		end
872
		HATWELD.Part0 = Head
873
		HATWELD.C0 = CF(0,0.35,0)
874
	elseif WhichPose == "Prepare key" then
875
		for i=0, Time, 0.1 / Animation_Speed do
876
			Swait()
877
			if Gyro ~= nil and Gyro ~= false then
878
				Gyro.cframe = CF(RootPart.Position,Tors.Position)
879
			end
880
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed)
881
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed)
882
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
883
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
884
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
885
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
886
		end
887
	elseif WhichPose == "Turn key" then
888
		for i=0, Time, 0.1 / Animation_Speed do
889
			Swait()
890
			if Gyro ~= nil and Gyro ~= false then
891
				Gyro.cframe = CF(RootPart.Position,Tors.Position)
892
			end
893
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed)
894
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed)
895
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
896
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
897
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
898
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
899
		end
900
	end
901
	PLAYMAINANIM = true
902
end
903
904
--Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 9999, Branches = false})
905
function Lightning(Table)
906
	local Color = Table.Color or C3(1,1,1)
907
	local StartPos = Table.Start or Torso.Position
908
	local EndPos = Table.End or Mouse.Hit.p
909
	local SegmentLength = Table.SegmentL or 2
910
	local Thickness = Table.Thickness or 0.1
911
	local Dissapear = Table.DoesFade or false
912
	local Parent = Table.Ignore or Character
913
	local MaxDist = Table.MaxDist or 400
914
	local Branches = Table.Branches or false
915
	local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
916
	local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
917
	local LIGHTNINGMODEL = IT("Model",Effects)
918
	LIGHTNINGMODEL.Name = "Lightning"
919
	local LastBolt = nil
920
	for E = 1, DISTANCE do
921
		local ExtraSize = (DISTANCE-E)/15
922
		local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
923
		PART.Color = Color
924
		MakeForm(PART,"Cyl")
925
		if LastBolt == nil then
926
			PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
927
		else
928
			PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SegmentLength/3+(DISTANCE-E)).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
929
		end
930
		LastBolt = PART
931
		if Branches == true then
932
			local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
933
			if CHOICE == 1 then
934
				local LASTBRANCH = nil
935
				for i = 1, MRANDOM(2,5) do
936
					local ExtraSize2 = ((DISTANCE-E)/25)/i
937
					local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
938
					PART.Color = Color
939
					MakeForm(PART,"Cyl")
940
					if LASTBRANCH == nil then
941
						PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
942
					else
943
						PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
944
					end
945
					LASTBRANCH = PART
946
				end
947
			end
948
		end
949
	end
950
	if Dissapear == true then
951
		coroutine.resume(coroutine.create(function()
952
			for i = 1, 10 do
953
				Swait()
954
				for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
955
					if c.ClassName == "Part" then
956
						c.Transparency = i/10
957
					end
958
				end
959
			end
960
			LIGHTNINGMODEL:remove()
961
		end))
962
	elseif Dissapear == false then
963
		Debris:AddItem(LIGHTNINGMODEL,0.1)
964
	end
965
	return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
966
end
967
968
--//=================================\\
969
--||	     WEAPON CREATION
970
--\\=================================//
971
for i = 1, 15 do
972
	local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/15.2, "Dark stone grey", "FaceGradient", VT(1.01,0.58,1.01),false)
973
	FACE.Color = C3(0,0,0)
974
	Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
975
	CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/35,0), CF(0, 0, 0))
976
end
977
local HAT1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2,0.2,2),false)
978
MakeForm(HAT1,"Cyl")
979
HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.35,0), CF(0, 0, 0))
980
local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2.01,0.15,2.01),false)
981
BELT.Color = C3(15/255,15/255,15/255)
982
MakeForm(BELT,"Cyl")
983
CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0,0), CF(0, 0, 0))
984
local HAT2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,2.2,1.3),false)
985
MakeForm(HAT2,"Cyl")
986
CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0))
987
local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.2,1.31),false)
988
BELT.Color = C3(15/255,15/255,15/255)
989
MakeForm(BELT,"Cyl")
990
CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0,0), CF(0, 0, 0))
991
local GEM = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Gem", VT(0.25,0.25,0.1),false)
992
MakeForm(GEM,"Ball")
993
CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0))
994
local GEM = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Gem", VT(0.25,0.25,0.1),false)
995
MakeForm(GEM,"Ball")
996
CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0))
997
local GEM = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Gem", VT(0.1,0.25,0.25),false)
998
MakeForm(GEM,"Ball")
999
CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0))
1000
local GEM = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Gem", VT(0.1,0.25,0.25),false)
1001
MakeForm(GEM,"Ball")
1002
CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0))
1003
local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
1004
BELT.Color = C3(15/255,15/255,15/255)
1005
MakeForm(BELT,"Cyl")
1006
CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.7,0), CF(0, 0, 0))
1007
local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
1008
BELT.Color = C3(15/255,15/255,15/255)
1009
MakeForm(BELT,"Cyl")
1010
CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.7,0), CF(0, 0, 0))
1011
local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
1012
BELT.Color = C3(15/255,15/255,15/255)
1013
MakeForm(BELT,"Cyl")
1014
CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.35,0), CF(0, 0, 0))
1015
local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
1016
BELT.Color = C3(15/255,15/255,15/255)
1017
MakeForm(BELT,"Cyl")
1018
CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.35,0), CF(0, 0, 0))
1019
local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,0.5,1.3),false)
1020
MakeForm(BELT,"Ball")
1021
CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,HAT2.Size.Y/2,0), CF(0, 0, 0))
1022
1023
local lightning = Instance.new("ParticleEmitter",Torso)
1024
lightning.Texture = "http://www.roblox.com/asset/?id=348321827"
1025
lightning.LightEmission = 0
1026
lightning.Color = ColorSequence.new(Color3.new(1,0,1),Color3.new(1,0,1))
1027
lightning.LockedToPart = true
1028
lightning.Rate = 20
1029
lightning.Lifetime = NumberRange.new(0.1,0.10)
1030
lightning.Rotation = NumberRange.new(0,360)
1031
lightning.Size = NumberSequence.new(3,3,3)
1032
lightning.Transparency = NumberSequence.new(0,0)
1033
lightning.Speed = NumberRange.new(0,0)
1034
lightning.RotSpeed = NumberRange.new(0,0)
1035
lightning.ZOffset = 5
1036
lightning.Parent = Character.Torso
1037
lightning.Enabled = false
1038
1039
local eeeffecto = Instance.new("ParticleEmitter",Torso)
1040
eeeffecto.Texture = "http://www.roblox.com/asset/?id=305943367"
1041
eeeffecto.LightEmission = 0
1042
eeeffecto.Color = ColorSequence.new(Color3.new(1,0,1),Color3.new(1,0,1))
1043
eeeffecto.LockedToPart = true
1044
eeeffecto.Rate = 10
1045
eeeffecto.Lifetime = NumberRange.new(0.1,0.1)
1046
eeeffecto.Rotation = NumberRange.new(0,0)
1047
eeeffecto.Size = NumberSequence.new(9,9,9)
1048
eeeffecto.Transparency = NumberSequence.new(0,0)
1049
eeeffecto.Speed = NumberRange.new(0,0)
1050
eeeffecto.RotSpeed = NumberRange.new(0,0)
1051
eeeffecto.Parent = Character.Torso
1052
eeeffecto.Enabled = false
1053
1054
Humanoid.DisplayDistanceType = "None"
1055
local naeeym2 = IT("BillboardGui",Character)
1056
naeeym2.AlwaysOnTop = true
1057
naeeym2.Size = UDim2.new(6,40,3,20)
1058
naeeym2.StudsOffset = Vector3.new(0,3,0)
1059
naeeym2.MaxDistance = 200
1060
naeeym2.Adornee = Character.Head
1061
naeeym2.Name = "Name"
1062
local tecks2 = IT("TextLabel",naeeym2)
1063
tecks2.BackgroundTransparency = 1
1064
tecks2.TextScaled = true
1065
tecks2.BorderSizePixel = 0
1066
tecks2.Text = "Warden of the Void"
1067
tecks2.Font = "Antique"
1068
tecks2.TextSize = 40
1069
tecks2.TextStrokeTransparency = 0.5
1070
tecks2.TextColor3 = Color3.new(0,0,0)
1071
tecks2.TextStrokeColor3 = BRICKC"Eggplant".Color
1072
tecks2.Size = UDim2.new(1,0,0.5,0)
1073
tecks2.Parent = naeeym2
1074
local EYE = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "FaceGradient", VT(0.15,0.15,0.15),false)
1075
MakeForm(EYE,"Ball")
1076
CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.22,-0.55), CF(0, 0, 0))
1077
local EYE = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "FaceGradient", VT(0.05,0.14,0.05),false)
1078
EYE.Color = C3(0,0,0)
1079
MakeForm(EYE,"Ball")
1080
CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.22,-0.6), CF(0, 0, 0))
1081
local top = Instance.new("Shirt")
1082
top.ShirtTemplate = "rbxassetid://476542397"
1083
top.Parent = Character
1084
top.Name = "Cloth"
1085
local bottom = Instance.new("Pants")
1086
bottom.PantsTemplate = "rbxassetid://476542637"
1087
bottom.Parent = Character
1088
bottom.Name = "Cloth"
1089
for _, c in pairs(Character:GetChildren()) do
1090
	if c.ClassName == "Part" and c.Name ~= "FaceGradient" and c.Name ~= "Hat" and c.Name ~= "Gem" then
1091
		c.Material = "Neon"
1092
		if c:FindFirstChildOfClass("ParticleEmitter") then
1093
			c:FindFirstChildOfClass("ParticleEmitter"):remove()
1094
		end
1095
		c.Color = C3(1,1,1)
1096
		if c == Head then
1097
			if c:FindFirstChild("face") then
1098
				c.face:remove()
1099
			end
1100
		end
1101
	elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
1102
		c:remove()
1103
	elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
1104
		c:remove()
1105
	end
1106
end
1107
local BODY = {}
1108
for _, c in pairs(Character:GetDescendants()) do
1109
	if c:IsA("BasePart") and c.Name ~= "Handle" then
1110
		if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
1111
			c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1112
		end
1113
		table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
1114
	elseif c:IsA("JointInstance") then
1115
		table.insert(BODY,{c,c.Parent,nil,nil,nil})
1116
	end
1117
end
1118
for e = 1, #BODY do
1119
    if BODY[e] ~= nil then
1120
        local STUFF = BODY[e]
1121
        local PART = STUFF[1]
1122
        local PARENT = STUFF[2]
1123
        local MATERIAL = STUFF[3]
1124
        local COLOR = STUFF[4]
1125
        local TRANSPARENCY = STUFF[5]
1126
        if PART.ClassName == "Part" and PART ~= RootPart then
1127
            PART.Material = MATERIAL
1128
            PART.Color = COLOR
1129
            PART.Transparency = TRANSPARENCY
1130
        end
1131
        PART.AncestryChanged:Connect(function()
1132
            PART.Parent = PARENT
1133
        end)
1134
    end
1135
end
1136
function refit()
1137
    Character.Parent = workspace
1138
    for e = 1, #BODY do
1139
        if BODY[e] ~= nil then
1140
            local STUFF = BODY[e]
1141
            local PART = STUFF[1]
1142
            local PARENT = STUFF[2]
1143
            local MATERIAL = STUFF[3]
1144
            local COLOR = STUFF[4]
1145
            local TRANSPARENCY = STUFF[5]
1146
            if PART.ClassName == "Part" and PART ~= RootPart then
1147
                PART.Material = MATERIAL
1148
                PART.Color = COLOR
1149
                PART.Transparency = TRANSPARENCY
1150
            end
1151
            if PART.Parent ~= PARENT then
1152
                Humanoid:remove()
1153
                PART.Parent = PARENT
1154
                Humanoid = IT("Humanoid",Character)
1155
            end
1156
        end
1157
    end
1158
end
1159
local SKILLTEXTCOLOR = BRICKC"Eggplant".Color
1160
local SKILLFONT = "Bodoni"
1161
local SKILLTEXTSIZE = 7
1162
1163
local SKILLTEXTCOLOR2 = BRICKC"Royal purple".Color
1164
local SKILLFONT = "Bodoni"
1165
local SKILLTEXTSIZE = 7
1166
1167
Humanoid.Died:connect(function()
1168
	refit()
1169
end)
1170
1171
local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
1172
local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
1173
local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 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")
1174
local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.75, 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")
1175
local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
1176
local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.15, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame")
1177
local SKILL7FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.05, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame")
1178
local SKILL8FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.10, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 8 Frame")
1179
local SKILL9FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.10, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 9 Frame")
1180
local SKILL10FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.10, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 10 Frame")
1181
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Void Zap", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
1182
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Void Thunder", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
1183
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Void Ring", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
1184
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Warden Wall", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
1185
local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Void Beam", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
1186
local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[F] Void Hop", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 6")
1187
local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[G] Trap into the Void", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 7")
1188
local SKILL8TEXT = CreateLabel(SKILL8FRAME, "[P] Rift World", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 8")
1189
local SKILL9TEXT = CreateLabel(SKILL9FRAME, "[E] Void Star", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 9")
1190
local SKILL10TEXT = CreateLabel(SKILL10FRAME, "[Q] Void Box", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 10")
1191
1192
--//=================================\\
1193
--||			DAMAGING
1194
--\\=================================//
1195
1196
function ApplyAoE(POSITION,RANGE,FLING,BURN)
1197
	local CHILDREN = workspace:GetDescendants()
1198
	for index, CHILD in pairs(CHILDREN) do
1199
		if CHILD.ClassName == "Model" and CHILD ~= Character then
1200
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1201
			if HUM then
1202
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1203
				if TORSO then
1204
					if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
1205
						CHILD:BreakJoints()
1206
						if FLING ~= 0 then
1207
							for _, c in pairs(CHILD:GetChildren()) do
1208
								if c:IsA("BasePart") and c.Transparency == 0 then
1209
									if BURN == true then
1210
										Fire(c)
1211
									end
1212
									local bv = Instance.new("BodyVelocity") 
1213
									bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1214
									bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
1215
									bv.Parent = c
1216
									Debris:AddItem(bv,0.05)
1217
								end
1218
							end
1219
						end
1220
					end
1221
				end
1222
			end
1223
		end
1224
	end
1225
end
1226
1227
--//=================================\\
1228
--||	   text above head lel
1229
--\\=================================//
1230
1231
function chatfunc(text)
1232
	local chat = coroutine.wrap(function()
1233
	if Character:FindFirstChild("TalkingBillBoard")~= nil then
1234
		Character:FindFirstChild("TalkingBillBoard"):destroy()
1235
	end
1236
	local Bill = Instance.new("BillboardGui",Character)
1237
	Bill.Size = UDim2.new(0,100,0,40)
1238
	Bill.StudsOffset = Vector3.new(0,5.5,0)
1239
	Bill.Adornee = Character.Head
1240
	Bill.Name = "TalkingBillBoard"
1241
	local Hehe = Instance.new("TextLabel",Bill)
1242
	Hehe.BackgroundTransparency = 1
1243
	Hehe.BorderSizePixel = 0
1244
	Hehe.Text = ""
1245
	Hehe.Font = "Antique"
1246
	Hehe.TextSize = 50
1247
	Hehe.TextStrokeTransparency = 0
1248
	Hehe.Size = UDim2.new(1,0,0.5,0)
1249
	coroutine.resume(coroutine.create(function()
1250
		while Hehe ~= nil do
1251
			Swait()	
1252
			Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))	
1253
			Hehe.Rotation = math.random(-5,5)
1254
			Hehe.TextColor3 = Color3.new(0,0,0)
1255
			Hehe.TextStrokeColor3 = BRICKC"Eggplant".Color
1256
		end
1257
	end))
1258
	for i = 1,string.len(text),1 do
1259
		Swait()
1260
		Hehe.Text = string.sub(text,1,i)
1261
	end
1262
	Swait(90)--Re[math.random(1, 93)]
1263
	for i = 0, 1, .025 do
1264
		Swait()
1265
		Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
1266
		Hehe.TextStrokeTransparency = i
1267
		Hehe.TextTransparency = i
1268
	end
1269
	Bill:Destroy()
1270
	end)
1271
chat()
1272
end
1273
1274
function onChatted(msg)
1275
	chatfunc(msg)
1276
end
1277
1278
Player.Chatted:connect(onChatted)
1279
1280
1281
--//=================================\\
1282
--||	ATTACK FUNCTIONS AND STUFF
1283
--\\=================================//
1284
1285
--------------VOID BOX-------------------
1286
1287
function VoidBox()
1288
	local HITFLOOR,HITPOS = Raycast(RootPart.CFrame*CF(0,0,-6.5).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
1289
	if HITFLOOR ~= nil then
1290
		ATTACK = false
1291
		Rooted = false
1292
		local RINGSPIN = true
1293
		local CONSTRUCTING = true
1294
		local RING = CreatePart(3, Effects, "Neon", 0, 1, "Eggplant", "Ring", VT(0,0,0))
1295
		RING.Color = C3(0,0,0)
1296
		MakeForm(RING,"Cyl")
1297
		RING.CFrame = CF(HITPOS)
1298
		CreateSound(402981977, RING, 5, 1.2, false)
1299
		coroutine.resume(coroutine.create(function()
1300
			repeat
1301
				Swait()
1302
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
1303
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
1304
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1305
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(115), RAD(45), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1306
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1307
				RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
1308
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
1309
			until CONSTRUCTING == false
1310
			repeat 
1311
				Swait() 
1312
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
1313
			until RINGSPIN == false
1314
			for i = 1, 25 do
1315
				Swait()
1316
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
1317
				RING.Size = RING.Size - VT(0.15,0,0.15)
1318
				--DECAL.Transparency = DECAL.Transparency + 1/25
1319
				RING.Transparency = RING.Transparency + 1/25
1320
			end
1321
			RING:remove()
1322
		end))
1323
		for i = 1, 15 do
1324
			Swait()
1325
			RING.Size = RING.Size + VT(0.75,0,0.75)
1326
			RING.Transparency = RING.Transparency - 1/15
1327
		end
1328
		local BOXSPIN = true
1329
		local PANDORASBOX = IT("Model",Effects2)
1330
		PANDORASBOX.Name = "Pandora's Box"
1331
		local BOX = IT("Model",PANDORASBOX)
1332
		BOX.Name = "Body"
1333
		local LID = IT("Model",PANDORASBOX)
1334
		LID.Name = "Lid"
1335
		--BUILDING THE BOX--
1336
			local BASE = CreatePart(3, BOX, "Neon", 0, 0, "Eggplant", "Black", VT(2,1.8,2))
1337
			BASE.Color = C3(0,0,0)
1338
			PANDORASBOX.PrimaryPart = BASE
1339
			BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z))
1340
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,1.9,0.2))
1341
			WOOD.CFrame = BASE.CFrame*CF(1,0,1)
1342
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,1.9,0.2))
1343
			WOOD.CFrame = BASE.CFrame*CF(1,0,-1)
1344
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,1.9,0.2))
1345
			WOOD.CFrame = BASE.CFrame*CF(-1,0,1)
1346
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,1.9,0.2))
1347
			WOOD.CFrame = BASE.CFrame*CF(-1,0,-1)
1348
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(2.1,0.2,0.2))
1349
			WOOD.CFrame = BASE.CFrame*CF(0,0.9,1)
1350
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(2.1,0.2,0.2))
1351
			WOOD.CFrame = BASE.CFrame*CF(0,0.9,-1)
1352
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,0.2,2.1))
1353
			WOOD.CFrame = BASE.CFrame*CF(1,0.9,0)
1354
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,0.2,2.1))
1355
			WOOD.CFrame = BASE.CFrame*CF(-1,0.9,0)
1356
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(2.1,0.2,0.2))
1357
			WOOD.CFrame = BASE.CFrame*CF(0,-0.9,1)
1358
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(2.1,0.2,0.2))
1359
			WOOD.CFrame = BASE.CFrame*CF(0,-0.9,-1)
1360
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,0.2,2.1))
1361
			WOOD.CFrame = BASE.CFrame*CF(1,-0.9,0)
1362
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,0.2,2.1))
1363
			WOOD.CFrame = BASE.CFrame*CF(-1,-0.9,0)
1364
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Eggplant", "Marble", VT(2.1,1.9,0.1))
1365
			WOOD.CFrame = BASE.CFrame*CF(0,0,1)
1366
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Eggplant", "Marble", VT(2.1,1.9,0.1))
1367
			WOOD.CFrame = BASE.CFrame*CF(0,0,-1)
1368
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Eggplant", "Marble", VT(0.1,1.9,2.1))
1369
			WOOD.CFrame = BASE.CFrame*CF(1,0,0)
1370
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Eggplant", "Marble", VT(0.1,1.9,2.1))
1371
			WOOD.CFrame = BASE.CFrame*CF(-1,0,0)
1372
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Eggplant", "Marble", VT(2.1,0.1,2.1))
1373
			WOOD.CFrame = BASE.CFrame*CF(0,-0.9,0)
1374
			-------------
1375
			local LIDPART = CreatePart(3, LID, "Marble", 0, 0, "Eggplant", "Marble", VT(2.1,0.1,2.1))
1376
			LIDPART.CFrame = BASE.CFrame*CF(0,1,0)
1377
			LID.PrimaryPart = LIDPART
1378
			local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Magenta", "Marble", VT(2.1,0.2,0.2))
1379
			WOOD.CFrame = LIDPART.CFrame*CF(0,0,-1)
1380
			local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Magenta", "Marble", VT(2.1,0.2,0.2))
1381
			WOOD.CFrame = LIDPART.CFrame*CF(0,0,1)
1382
			local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,0.2,2.1))
1383
			WOOD.CFrame = LIDPART.CFrame*CF(1,0,0)
1384
			local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,0.2,2.1))
1385
			WOOD.CFrame = LIDPART.CFrame*CF(-1,0,0)
1386
			local DECAL = IT("Decal",LIDPART)
1387
			DECAL.Face = "Top"
1388
			DECAL.Texture = "http://www.roblox.com/asset/?id=1501226061"
1389
			DECAL.Color3 = C3(0,0,0)
1390
		--BUILDING THE BOX--
1391
		coroutine.resume(coroutine.create(function()
1392
			repeat
1393
				Swait()
1394
				PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * ANGLES(RAD(0), RAD(2.45), RAD(0)))
1395
			until BOXSPIN == false
1396
		end))
1397
		for i = 1, 25 do
1398
			Swait()
1399
			PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,1.5-(i/12.5),0))
1400
		end
1401
		wait(0.5)
1402
		BOXSPIN = false
1403
		CONSTRUCTING = false	
1404
		coroutine.resume(coroutine.create(function()
1405
			WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = LIDPART.Size, Size2 = VT(3,0,3)*4, Transparency = 0, Transparency2 = 1, CFrame = LIDPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 168586586, SoundPitch = 1.3, SoundVolume = 6})
1406
			--[[for i = 1, 45 do
1407
				Swait()
1408
				LID:SetPrimaryPartCFrame(LIDPART.CFrame * CF(0,1.5-(i/12.5),0.5) * ANGLES(RAD(0.7), RAD(0), RAD(0)))
1409
			end-
1410
			LID:remove()]]--
1411
			for _, c in pairs(LID:GetChildren()) do
1412
				if c.ClassName == "Part" then
1413
					c.Anchored = false
1414
					c.CanCollide = true
1415
					if c ~= LIDPART then
1416
						weldBetween(LIDPART,c)
1417
					end
1418
				end
1419
			end
1420
			LIDPART.Velocity = CF(LIDPART.Position,LIDPART.CFrame*CF(15,25,0).p).lookVector*65
1421
			Debris:AddItem(LID,15)
1422
			wait(0.5)
1423
			local RANDOMEFFECT = MRANDOM(1,4)
1424
			if RANDOMEFFECT == 1 then
1425
				for i = 1, 45 do
1426
					wait((2-(i/15))/15)
1427
					WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(0,MRANDOM(12,15),0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,MRANDOM(1,5)), MoveToPos = BASE.Position, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.8, SoundVolume = 6})
1428
				end	
1429
				wait(1)
1430
				WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(35,35,35)*12, Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6})
1431
				WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(45,3,45)*10, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 469345336, SoundPitch = 0.75, SoundVolume = 6})
1432
				WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(45,3,45)*9, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
1433
				for i = 1, 5 do
1434
					WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35)*12, Transparency = 0.5, Transparency2 = 1, CFrame = BASE.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
1435
				end
1436
				ApplyAoE(BASE.Position,50,1,200,375,false)
1437
				ApplyAoE(BASE.Position,250,35,75,175,false)
1438
			elseif RANDOMEFFECT == 2 then
1439
				local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Magenta", "Field", VT(0.3,0.3,0.3))
1440
				FIELD.CFrame = BASE.CFrame
1441
				MakeForm(FIELD,"Ball")
1442
				for i = 1, 50 do
1443
					Swait()
1444
					FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01)
1445
					FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
1446
				end
1447
				wait(0.2)
1448
				local LOOP = CreateSound(1393698948, FIELD, 0, 1.2, true)
1449
				coroutine.resume(coroutine.create(function()
1450
					for i = 1, 75 do
1451
						Swait()
1452
						LOOP.Volume = LOOP.Volume + 10/75
1453
						LOOP.Parent = FIELD
1454
						local CHILDREN = workspace:GetDescendants()
1455
						for index, CHILD in pairs(CHILDREN) do
1456
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
1457
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1458
								if HUM then
1459
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1460
									if TORSO then
1461
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
1462
											HUM.Health = HUM.Health - 0.1
1463
											TORSO.Velocity = VT(0,5,0)
1464
											HUM.PlatformStand = true
1465
											if TORSO.RotVelocity.Magnitude < 15 then
1466
										 		TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
1467
											end
1468
										end
1469
									end
1470
								end
1471
							end
1472
						end
1473
						FIELD.Size = FIELD.Size + VT(3,3,3)
1474
						FIELD.Transparency = FIELD.Transparency + 0.8/75
1475
					end
1476
					for i = 1, 500 do
1477
						Swait()
1478
						LOOP.Parent = FIELD
1479
						local CHILDREN = workspace:GetDescendants()
1480
						for index, CHILD in pairs(CHILDREN) do
1481
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
1482
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1483
								if HUM then
1484
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1485
									if TORSO then
1486
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
1487
											TORSO.Velocity = VT(0,5,0)
1488
											HUM.Health = HUM.Health - 0.1
1489
											HUM.PlatformStand = true
1490
											if TORSO.RotVelocity.Magnitude < 15 then
1491
										 		TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
1492
											end
1493
										end
1494
									end
1495
								end
1496
							end
1497
						end
1498
					end
1499
					for i = 1, 25 do
1500
						Swait()
1501
						LOOP.Volume = LOOP.Volume + 10/25
1502
						LOOP.Parent = FIELD
1503
						local CHILDREN = workspace:GetDescendants()
1504
						for index, CHILD in pairs(CHILDREN) do
1505
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
1506
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1507
								if HUM then
1508
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1509
									if TORSO then
1510
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then
1511
											TORSO.Velocity = VT(0,5,0)
1512
											HUM.Health = HUM.Health - 0.1
1513
											HUM.PlatformStand = false
1514
											if TORSO.RotVelocity.Magnitude < 15 then
1515
										 		TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
1516
											end
1517
										end
1518
									end
1519
								end
1520
							end
1521
						end
1522
						FIELD.Size = FIELD.Size - VT(3,3,3)
1523
						FIELD.Transparency = FIELD.Transparency + 0.2/25
1524
					end	
1525
					FIELD:remove()
1526
				end))
1527
			elseif RANDOMEFFECT == 3 then
1528
				for i = 1, 10 do
1529
					wait(0.15)
1530
					WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(3,8,3), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(0,0.3,0), MoveToPos = BASE.Position+VT(0,6,0), RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 90655239, SoundPitch = 0.8, SoundVolume = 6})
1531
					coroutine.resume(coroutine.create(function()
1532
						local MINION = CLONE:Clone()
1533
						MINION.Parent = Effects
1534
						MINION.Name = "Shadow"
1535
						MINION.HumanoidRootPart.CFrame = BASE.CFrame*CF(0,5,0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))
1536
						MINION.HumanoidRootPart.Velocity = CF(MINION.HumanoidRootPart.Position,MINION.HumanoidRootPart.CFrame*CF(0,8,-15).p).lookVector*MRANDOM(55,100)
1537
						for _, c in pairs(MINION:GetChildren()) do
1538
							if c.ClassName == "Part" then
1539
								c.Material = "Neon"
1540
								c.Color = C3(0,0,0)
1541
								c.Transparency = 0.25
1542
								if c.Name == "Head" then
1543
									c:ClearAllChildren()
1544
									local MSH = IT("BlockMesh",c)
1545
									MSH.Scale = VT(0.5,1,1)
1546
								end
1547
							end
1548
						end
1549
						local TORSO = MINION.Torso
1550
						local HUMAN = MINION.Humanoid
1551
						HUMAN.WalkSpeed = 100
1552
						HUMAN.MaxHealth = math.huge
1553
						HUMAN.Health = math.huge
1554
						HUMAN.DisplayDistanceType = "None"
1555
						HUMAN.Died:connect(function()
1556
							MINION:remove()
1557
							--CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false)
1558
						end)
1559
						wait(1)
1560
						local findNearestTorso = function(POS)
1561
							local list = game.Workspace:GetDescendants()
1562
							local torso = nil
1563
							local dist = 9999
1564
							local temp = nil
1565
							local human = nil
1566
							local temp2 = nil
1567
							for x = 1, #list do
1568
								temp2 = list[x]
1569
								if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then
1570
									temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
1571
									human = temp2:findFirstChildOfClass("Humanoid")
1572
									if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
1573
										if (temp.Position - POS).magnitude < dist then
1574
											torso = temp
1575
											dist = (temp.Position - POS).magnitude
1576
										end
1577
									end
1578
								end
1579
							end
1580
							return torso, dist
1581
						end
1582
						for i = 1, 40 do
1583
							if HUMAN.Health == 0 then
1584
								break
1585
							end
1586
							wait(0.3)
1587
							local target,dist= findNearestTorso(TORSO.Position)
1588
							if target then
1589
								HUMAN:MoveTo(target.Position)
1590
								if dist < 999 then
1591
									CreateSound(348663022, TORSO, 10, 1, true)
1592
									wait(0.5)
1593
									--local ANIM = HUMAN:LoadAnimation(ATANIM)
1594
									--ANIM:Play()
1595
									--CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false)
1596
									ApplyAoE(TORSO.Position,10,0,0,85,false)
1597
									WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(25,25,25), Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 201858087, SoundPitch = 0.8, SoundVolume = 10})
1598
									for i = 1, 5 do
1599
										WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(15,1,15), Transparency = 0.5, Transparency2 = 1, CFrame = TORSO.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-15,15)/7.5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
1600
									end
1601
									break
1602
								end
1603
							end
1604
						end
1605
						MINION:remove()
1606
					end))
1607
				end
1608
			elseif RANDOMEFFECT == 4 then
1609
				local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Alder", "Field", VT(0.3,0.3,0.3))
1610
				FIELD.Color = C3(0,0,0)
1611
				FIELD.CFrame = BASE.CFrame
1612
				MakeForm(FIELD,"Ball")
1613
				FIELD.CanCollide = true
1614
				for i = 1, 50 do
1615
					Swait()
1616
					FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01)
1617
					FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
1618
				end
1619
				wait(0.2)
1620
				local LOOP = CreateSound(487214658, FIELD, 0, 1, true)
1621
				coroutine.resume(coroutine.create(function()
1622
					local E = 0
1623
					for i = 1, 75 do
1624
						E = E + 1
1625
						Swait()
1626
						if E >= 35 then
1627
							E = 0
1628
							WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6})
1629
						end
1630
						LOOP.Volume = LOOP.Volume + 10/75
1631
						LOOP.Parent = FIELD
1632
						local CHILDREN = workspace:GetDescendants()
1633
						for index, CHILD in pairs(CHILDREN) do
1634
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
1635
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1636
								if HUM then
1637
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1638
									if TORSO then
1639
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then
1640
											for _, c in pairs(CHILD:GetChildren()) do
1641
												if c:IsA("BasePart") then
1642
													local bv = Instance.new("BodyVelocity") 
1643
													bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1644
													bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50
1645
													bv.Parent = c
1646
													Debris:AddItem(bv,0.05)
1647
												end
1648
											end
1649
											HUM.Health = HUM.Health - 0.3
1650
										end
1651
									end
1652
								end
1653
							end
1654
						end
1655
						FIELD.Size = FIELD.Size + VT(0.3,0.3,0.3)/5
1656
					end
1657
					for i = 1, 180 do
1658
						E = E + 1
1659
						Swait()
1660
						if E >= 35 then
1661
							E = 0
1662
							WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6})
1663
						end
1664
						LOOP.Parent = FIELD
1665
						local CHILDREN = workspace:GetDescendants()
1666
						for index, CHILD in pairs(CHILDREN) do
1667
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
1668
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1669
								if HUM then
1670
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1671
									if TORSO then
1672
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then
1673
											for _, c in pairs(CHILD:GetChildren()) do
1674
												if c:IsA("BasePart") then
1675
													local bv = Instance.new("BodyVelocity") 
1676
													bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1677
													bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50
1678
													bv.Parent = c
1679
													Debris:AddItem(bv,0.05)
1680
												end
1681
											end
1682
											HUM.Health = HUM.Health - 0.3
1683
										end
1684
									end
1685
								end
1686
							end
1687
						end
1688
					end
1689
					ApplyAoE(FIELD.Position,40,15,20,375,false)
1690
					WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = FIELD.Size, Size2 = VT(35,35,35), Transparency = 0, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 231917744, SoundPitch = 1, SoundVolume = 6})
1691
					for i = 1, 5 do
1692
						WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35), Transparency = 0.5, Transparency2 = 1, CFrame = FIELD.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
1693
					end
1694
					FIELD:remove()
1695
				end))
1696
			elseif RANDOMEFFECT == 5 then
1697
			end
1698
			wait(0.5)
1699
			for i = 1, 25 do
1700
				Swait()
1701
				PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,-0.3,0))
1702
			end
1703
			PANDORASBOX:remove()
1704
			RINGSPIN = false
1705
		end))
1706
		ATTACK = false
1707
		Rooted = false
1708
	end
1709
end
1710
--------------VOID STAR-------------------
1711
1712
--Explosion--
1713
function Expld(rad,pos)
1714
local ex = Instance.new("Explosion",game.Workspace)
1715
ex.BlastRadius = rad
1716
ex.BlastPressure = 0
1717
ex.Position = pos
1718
ex.Visible = false
1719
ex.Hit:connect(function(hit)
1720
if hit.Parent ~= chara and hit.Parent:FindFirstChild("Humanoid")~= nil then
1721
hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - rad
1722
end
1723
end)
1724
end
1725
1726
local asd = Instance.new("ParticleEmitter")
1727
asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
1728
asd.LightEmission = .1
1729
asd.Texture = "http://www.roblox.com/asset/?ID=249481494"
1730
aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
1731
bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
1732
asd.Transparency = bbb
1733
asd.Size = aaa
1734
asd.ZOffset = .9
1735
asd.Acceleration = Vector3.new(0, -15, 0)
1736
asd.LockedToPart = false
1737
asd.EmissionDirection = "Back"
1738
asd.Lifetime = NumberRange.new(1, 2)
1739
asd.Rotation = NumberRange.new(-100, 100)
1740
asd.RotSpeed = NumberRange.new(-100, 100)
1741
asd.Speed = NumberRange.new(10)
1742
asd.Enabled = false
1743
asd.VelocitySpread = 999
1744
1745
function getbloody(victim,amount)
1746
	local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
1747
	PART.CFrame = victim.CFrame
1748
	local HITPLAYERSOUNDS = {"356551938","264486467"}
1749
	Debris:AddItem(PART,5)
1750
	CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
1751
	CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
1752
	CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
1753
	local prtcl = asd:Clone()
1754
	prtcl.Parent = PART
1755
	prtcl:Emit(amount*10)
1756
end
1757
1758
function Kill(Char)
1759
	local NewCharacter = IT("Model",Effects)
1760
	NewCharacter.Name = "Ow im ded lul ;-;"
1761
	for _, c in pairs(Char:GetDescendants()) do
1762
		if c:IsA("BasePart") and c.Transparency == 0 then
1763
			if c.Parent == Char then
1764
				getbloody(c,5)
1765
			end
1766
			c:BreakJoints()
1767
			c.Material = "Glass"
1768
			c.Color = C3(0.5,0,0)
1769
			c.CanCollide = true
1770
			c.Transparency = 0.3
1771
			if c:FindFirstChildOfClass("SpecialMesh") then
1772
				c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
1773
			end
1774
			if c.Name == "Head" then
1775
				c:ClearAllChildren()
1776
				c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
1777
			end
1778
			if c.ClassName == "MeshPart" then
1779
				c.TextureID = ""
1780
			end
1781
			if c:FindFirstChildOfClass("BodyPosition") then
1782
				c:FindFirstChildOfClass("BodyPosition"):remove()
1783
			end
1784
			if c:FindFirstChildOfClass("ParticleEmitter") then
1785
				c:FindFirstChildOfClass("ParticleEmitter"):remove()
1786
			end
1787
			c.Parent = NewCharacter
1788
			c.Name = "DeadPart"
1789
			c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
1790
			c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
1791
		end
1792
	end
1793
	Char:remove()
1794
	Debris:AddItem(NewCharacter,5)
1795
end
1796
1797
1798
function ApplyAoE3(POSITION,RANGE,BRUTAL)
1799
	local CHILDREN = workspace:GetDescendants()
1800
	for index, CHILD in pairs(CHILDREN) do
1801
		if CHILD.ClassName == "Model" and CHILD ~= Character then
1802
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1803
			if HUM then
1804
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1805
				if TORSO then
1806
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
1807
						if BRUTAL == true then
1808
							Kill(CHILD)
1809
						else
1810
							CHILD:BreakJoints()
1811
						end
1812
					end
1813
				end
1814
			end
1815
		end
1816
	end
1817
end
1818
1819
function VoidStar()
1820
    ATTACK = true
1821
	Rooted = true
1822
	for i=0, 1, 0.1 / Animation_Speed do
1823
		Swait()
1824
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1825
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1826
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1827
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1828
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1829
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1830
	end	
1831
	coroutine.resume(coroutine.create(function()
1832
		local POS = Mouse.Hit.p
1833
		local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Eggplant", "Strike", VT(0,2000,0))
1834
		MakeForm(RAY,"Cyl")
1835
		local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Eggplant", "Strike", VT(0,0,0))
1836
		MakeForm(SPHERE,"Ball")
1837
		local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Strike", VT(0,0,0))
1838
		MakeForm(SHIELD,"Ball")
1839
		SHIELD.CFrame = CF(POS)
1840
		RAY.CFrame = CF(POS)
1841
		SPHERE.CFrame = CF(POS)
1842
		CreateSound(440145570, SPHERE, 10, 0.8, false)
1843
		CreateSound(415700134, SPHERE, 10, 0.8, false)
1844
		for i = 1, 200 do
1845
			Swait()
1846
			WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(123,0,123), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1847
			RAY.Size = RAY.Size + VT(0.05,0,0.05)
1848
			SPHERE.Size = SPHERE.Size + VT(2,2,2)
1849
			SHIELD.Size = SPHERE.Size + VT(3,3,3)
1850
			ApplyAoE3(SPHERE.Position,SPHERE.Size.X/2,true)
1851
		end	
1852
		for i = 1, 45 do
1853
			Swait()
1854
			RAY.Transparency = RAY.Transparency + 1/45
1855
			SPHERE.Transparency = RAY.Transparency 
1856
			SHIELD.Transparency = SPHERE.Transparency + 1/45
1857
		end
1858
		RAY:remove()
1859
		SHIELD:remove()
1860
		SPHERE:remove()
1861
	end))
1862
	for i=0, 1, 0.1 / Animation_Speed do
1863
		Swait()
1864
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
1865
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1866
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1867
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1868
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1869
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1870
	end
1871
	ATTACK = false
1872
	Rooted = false
1873
end
1874
1875
--------------RIFT WORLD-------------------
1876
1877
function RiftForm()
1878
	ATTACK = true
1879
	Rooted = false
1880
	UNANCHOR = false
1881
	RootPart.Anchored = true
1882
	for i=0, 5, 0.1 / Animation_Speed do
1883
		Swait()
1884
		RootPart.CFrame = RootPart.CFrame * CF(0,0.2,0)
1885
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1886
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 2 / Animation_Speed)
1887
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1888
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1889
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed)
1890
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed)
1891
	end
1892
	CreateSound("1368598393", Effects, 10, 1)
1893
	for i=0, 2, 0.1 / Animation_Speed do
1894
		Swait()
1895
		local CFRAME = CF(Torso.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
1896
		MagicSphere3(VT(0,0,0),15,CFRAME,"Really black",VT(0.1,0.1,5))
1897
		MagicSphere3(VT(0.1,0.1,0.1),15,CFRAME,"Really black",VT(0.1,0.1,5))
1898
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1899
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 2 / Animation_Speed)
1900
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-75)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1901
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(75)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1902
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed)
1903
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed)
1904
	end
1905
	CreateSound("1368583274", Effects, 10, 1)
1906
	for i=0, 6, 0.1 / Animation_Speed do
1907
		Swait()
1908
		CreateRing2(VT(45,5,0)*2,false,0,45,Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really black",VT(-1,0,0))
1909
		CreateRing2(VT(45,5,0)*3,false,0,45,Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really black",VT(-1,0,0)*3)
1910
		local CFRAME = CF(Torso.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
1911
		MagicSphere3(VT(0,0,0),15,CFRAME,"Really black",VT(0.1,0.1,55))
1912
		MagicSphere3(VT(0,0,0),15,CFRAME,"Really black",VT(2,2,2))
1913
		MagicSphere3(VT(0.1,0.1,0.1),15,CFRAME,"Really black",VT(0.1,0.1,55))
1914
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1915
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 2 / Animation_Speed)
1916
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-75)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1917
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(75)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1918
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed)
1919
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed)
1920
	end
1921
	CreateSound("907329532", Effects, 10, 0.9)
1922
	Swait(175)
1923
	CreateRing2(VT(0,0,0),false,0,45,RootPart.CFrame*ANGLES(RAD(90),RAD(0),RAD(0)),"Really black",VT(7,7,0))
1924
	CreateSound("1368605755", Effects, 10, 1)
1925
	CreateSound("1368637781", Effects, 10, 1)
1926
	MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Really black",VT(5,5,5))
1927
	TRUEFORM = true
1928
	for i=0, 1, 0.1 / Animation_Speed do
1929
	CreateRing2(VT(0,0,0),false,0,45,Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really black",VT(4,4,0))
1930
		CreateRing2(VT(0,0,0),false,0,45,Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really black",VT(5,5,0))
1931
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1932
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 2 / Animation_Speed)
1933
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-60), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1934
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1935
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-50)), 2 / Animation_Speed)
1936
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(50)), 2 / Animation_Speed)
1937
	end
1938
	UNANCHOR = true
1939
	RootPart.Anchored = false
1940
	ATTACK = false
1941
	Rooted = false
1942
end
1943
1944
-- LIMIT BROKEN
1945
1946
local DECAL = IT("Decal")
1947
function MakeRing()
1948
	local RING = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Pearl"), "MagicRing", VT(0, 0, 0), true)
1949
	local MSH = IT("BlockMesh", RING)
1950
	local TOP = DECAL:Clone()
1951
	local BOTTOM = DECAL:Clone()
1952
	TOP.Parent = RING
1953
	BOTTOM.Parent = RING
1954
	TOP.Face = "Top"
1955
	BOTTOM.Face = "Bottom"
1956
	TOP.Texture = "http://www.roblox.com/asset/?id=1259031636"
1957
	BOTTOM.Texture = "http://www.roblox.com/asset/?id=1259031636"
1958
	local function REMOVE()
1959
		coroutine.resume(coroutine.create(function()
1960
			local SIZE = MSH.Scale.X
1961
			for i = 1, 35 do
1962
				Swait()
1963
				MSH.Scale = MSH.Scale - VT(SIZE, 0, SIZE) / 60
1964
				TOP.Transparency = TOP.Transparency + 0.02857142857142857
1965
				BOTTOM.Transparency = BOTTOM.Transparency + 0.02857142857142857
1966
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(-5), RAD(0))
1967
			end
1968
			RING:remove()
1969
		end))
1970
	end
1971
	return RING, MSH, REMOVE
1972
end
1973
1974
function SHAKECAM(POSITION, RANGE, INTENSITY, TIME)
1975
	local TORSO = Torso
1976
	local HUM = Humanoid
1977
	if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
1978
		coroutine.wrap(function()
1979
			VT = Vector3.new
1980
			MRANDOM = math.random
1981
			local A = TIME
1982
			local B = INTENSITY
1983
			local C = true
1984
			local HUMANOID = Humanoid
1985
			local TIMER = A or 35
1986
			local SHAKE = B or 5
1987
			local FADE = C or true
1988
			if HUMANOID then
1989
				local FADER = SHAKE / TIMER
1990
				for i = 1, TIMER do
1991
					wait()
1992
					HUMANOID.CameraOffset = VT(MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10)
1993
				end
1994
				HUMANOID.CameraOffset = VT(0, 0, 0)
1995
			end
1996
1997
		end)()
1998
	end
1999
end
2000
2001
function NS(...)
2002
	local tab = {...}
2003
	local fat = {}
2004
	for i = 1, #tab do
2005
		local v = tab[i]
2006
		table.insert(fat,NumberSequenceKeypoint.new(v[1],v[2]))
2007
	end
2008
	return NumberSequence.new(fat);	
2009
end
2010
2011
local hed = Character:WaitForChild("Head")
2012
2013
cors = {}
2014
mas = Instance.new("Model",game:GetService("Lighting"))
2015
ParticleEmitter1 = Instance.new("ParticleEmitter")
2016
ParticleEmitter1.Name = "Death"
2017
ParticleEmitter1.Texture = "rbxassetid://249481494"
2018
ParticleEmitter1.Color = ColorSequence.new(Color3.fromRGB(0, 0, 255))
2019
ParticleEmitter1.EmissionDirection = "Top"
2020
ParticleEmitter1.Parent = mas
2021
ParticleEmitter1.Enabled = false
2022
ParticleEmitter1.Speed = NumberRange.new(8)
2023
ParticleEmitter1.Size = NumberSequence.new(8,0)
2024
ParticleEmitter1.Transparency = NumberSequence.new(0,1)
2025
ParticleEmitter1.Drag = 1.2
2026
ParticleEmitter1.LockedToPart = true
2027
ParticleEmitter1.Lifetime = NumberRange.new(0, 1)
2028
ParticleEmitter1.Rate = 195
2029
ParticleEmitter1.RotSpeed = NumberRange.new(-56, 56)
2030
ParticleEmitter1.LightEmission = 0
2031
ParticleEmitter1.Rotation = NumberRange.new(-360,360)
2032
ParticleEmitter1.VelocitySpread = 100.2	
2033
ParticleEmitter1.ZOffset = 2.5
2034
2035
2036
for i,v in pairs(mas:GetChildren()) do
2037
	v.Parent = script
2038
	pcall(function() v:MakeJoints() end)
2039
end
2040
mas:Destroy()
2041
for i,v in pairs(cors) do
2042
	spawn(function()
2043
		pcall(v)
2044
	end)
2045
end
2046
2047
local DParticles = script.Death
2048
DParticles:remove()
2049
DParticles.Name = "ArchangelDeathParticles"
2050
local BODY = {}
2051
for _, c in pairs(Character:GetDescendants()) do
2052
	if c:IsA("BasePart") and c.Name ~= "Handle" then
2053
		if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
2054
			c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
2055
		end
2056
		table.insert(BODY, {
2057
			c,
2058
			c.Parent,
2059
			c.Material,
2060
			c.Color,
2061
			c.Transparency
2062
		})
2063
	elseif c:IsA("JointInstance") then
2064
		table.insert(BODY, {
2065
			c,
2066
			c.Parent,
2067
			nil,
2068
			nil,
2069
			nil
2070
		})
2071
	end
2072
end
2073
2074
function ApplyAoE2(POSITION, RANGE)
2075
	local PARTS = {}
2076
	for index, CHILD in pairs(workspace:GetDescendants()) do
2077
		if CHILD.ClassName == "Model" and CHILD ~= Character then
2078
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2079
			if HUM then
2080
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2081
				if TORSO and HUM.Health > 0 and RANGE >= (TORSO.Position - POSITION).Magnitude then
2082
					CHILD:BreakJoints()
2083
					for index, PART in pairs(CHILD:GetChildren()) do
2084
						if PART:IsA("BasePart") and PART.Name ~= "HumanoidRootPart" then
2085
							local P = DParticles:Clone()
2086
							P.Parent = PART
2087
							P.Enabled = true
2088
							P.Color = ColorSequence.new(PART.Color, C3(1, 1, 1))
2089
							PART.Anchored = true
2090
							table.insert(PARTS, {PART, P})
2091
						end
2092
					end
2093
				end
2094
			end
2095
		elseif CHILD:IsA("BasePart") and CHILD.Parent.Parent ~= Character and CHILD.Parent:FindFirstChildOfClass("Humanoid") == nil and CHILD:FindFirstChild("ewdfrfgrwefd") == nil and CHILD.Size.Magnitude < RANGE * 2 and CHILD.Size.Magnitude < 200 and RANGE > (CHILD.Position - POSITION).Magnitude then
2096
			local FOLDER = IT("Folder", CHILD)
2097
			FOLDER.Name = "ewdfrfgrwefd"
2098
			local P = DParticles:Clone()
2099
			P.Parent = CHILD
2100
			P.Enabled = true
2101
			CHILD:BreakJoints()
2102
			CHILD.CanCollide = false
2103
			CHILD.Anchored = true
2104
			P.Rate = math.ceil(CHILD.Size.Magnitude / 2)
2105
			P.Color = ColorSequence.new(CHILD.Color, C3(1, 1, 1))
2106
			table.insert(PARTS, {CHILD, P})
2107
		end
2108
	end
2109
	coroutine.resume(coroutine.create(function()
2110
		if #PARTS > 0 then
2111
			for i = 1, 85 do
2112
				Swait()
2113
				for E = 1, #PARTS do
2114
					local F = PARTS[E]
2115
					local A = F[1]
2116
					local B = F[2]
2117
					A.Transparency = A.Transparency + 0.011764705882352941
2118
					B.Rate = math.ceil(B.Rate * 1.2)
2119
					for index, E in pairs(A:GetChildren()) do
2120
						if E:IsA("Decal") or E:IsA("Texture") then
2121
							E.Transparency = E.Transparency + 0.011764705882352941
2122
						elseif E:IsA("JointInstance") then
2123
							E:remove()
2124
						elseif E:IsA("Light") or E:IsA("ParticleEmitter") and E ~= B and E.Name ~= "ArchangelDeathParticles" or E:IsA("Fire") or E:IsA("Sparkles") or E:IsA("Smoke") then
2125
							E.Enabled = false
2126
						end
2127
					end
2128
				end
2129
			end
2130
			for E = 1, #PARTS do
2131
				local F = PARTS[E]
2132
				local A = F[1]
2133
				local B = F[2]
2134
				B.Enabled = false
2135
				Debris:AddItem(A, 3)
2136
			end
2137
		end
2138
	end))
2139
end
2140
2141
function VoidThunder2()
2142
	ATTACK = true
2143
	Rooted = true
2144
	local GYRO = IT("BodyGyro", RootPart)
2145
	GYRO.D = 20
2146
	GYRO.P = 4000
2147
	GYRO.MaxTorque = VT(0, 40000, 0)
2148
	local RING, MESH, DELET = MakeRing()
2149
	local HITFLOOR, HITPOS = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 15, Character)
2150
	RING.CFrame = CF(HITPOS)
2151
	for i = 0, 0.6, 0.1 / Animation_Speed do
2152
		GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p)
2153
		Swait()
2154
		MESH.Scale = MESH.Scale + VT(53, 0, 53)
2155
		RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
2156
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(7 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 1 / Animation_Speed)
2157
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
2158
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25 - 7.5 * SIN(SINE / 12)), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2159
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 7.5 * SIN(SINE / 12)), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
2160
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2161
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2162
	end
2163
	coroutine.resume(coroutine.create(function()
2164
		local CFRAME = RootPart.CFrame
2165
		for i = 1, 100 do
2166
			CFRAME = CFRAME * CF(0, 0, -35)
2167
			do
2168
				local HITFLOOR, HITPOS = Raycast(CFRAME.p, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 15, Character)
2169
				if HITFLOOR then
2170
					Swait()
2171
					do
2172
						local OFFSET = CFRAME * CF(MRANDOM(-25, 25), 0, 0)
2173
						coroutine.resume(coroutine.create(function()
2174
							local RING, MESH, DELET = MakeRing()
2175
							RING.CFrame = CF(OFFSET.p.X, HITPOS.Y, OFFSET.p.Z)
2176
							for i = 1, 25 do
2177
								Swait()
2178
								MESH.Scale = MESH.Scale + VT(42, 0, 42)
2179
								RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
2180
							end
2181
							ApplyAoE2(RING.Position, 65)
2182
							SHAKECAM(RING.Position, 80, 12, 15)
2183
							local TURN = ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * ANGLES(RAD(MRANDOM(0, 25)), RAD(0), RAD(0))
2184
							WACKYEFFECT({
2185
								Time = 25,
2186
								EffectType = "Sphere",
2187
								Size = VT(22, 22, 22),
2188
								Size2 = VT(85, 85, 85),
2189
								Transparency = 0,
2190
								Transparency2 = 1,
2191
								CFrame = CF(RING.Position),
2192
								MoveToPos = nil,
2193
								RotationX = 0,
2194
								RotationY = 0,
2195
								RotationZ = 0,
2196
								Material = "Neon",
2197
								Color = C3(0,0,0),
2198
							})
2199
							for e = 1, 3 do
2200
								WACKYEFFECT({
2201
									EffectType = "Wave",
2202
									Size = VT(25, 0, 25),
2203
									Size2 = VT(40, 0, 40) + VT(e * 6, e / 5, e * 6),
2204
									Transparency = 0,
2205
									Transparency2 = 1,
2206
									CFrame = CF(RING.Position) * ANGLES(RAD(0), RAD(72 * i), RAD(0)),
2207
									MoveToPos = nil,
2208
									RotationX = 0,
2209
									RotationY = 3,
2210
									RotationZ = 0,
2211
									Material = "Neon",
2212
									Color = C3(0,0,0),
2213
									SoundID = nil,
2214
									SoundPitch = nil,
2215
									SoundVolume = nil
2216
								})
2217
								WACKYEFFECT({
2218
									Time = 35,
2219
									EffectType = "Sphere",
2220
									Size = VT(22, 45, 22),
2221
									Size2 = VT(25, 45 + e * 75, 25),
2222
									Transparency = 0,
2223
									Transparency2 = 1,
2224
									CFrame = CF(RING.Position) * TURN,
2225
									MoveToPos = nil,
2226
									RotationX = 0,
2227
									RotationY = 0,
2228
									RotationZ = 0,
2229
									Material = "Neon",
2230
									Color = C3(0,0,0),
2231
									SoundID = nil,
2232
									SoundPitch = MRANDOM(9, 12) / 10,
2233
									SoundVolume = 10
2234
								})
2235
							end
2236
							wait(0.3)
2237
							DELET()
2238
						end))
2239
					end
2240
				end
2241
			end
2242
		end
2243
	end))
2244
	Rooted = false
2245
	for i = 0, 0.2, 0.1 / Animation_Speed do
2246
		Swait()
2247
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(7 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(75)), 1 / Animation_Speed)
2248
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), 1 / Animation_Speed)
2249
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(145 - 7.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12)), RAD(12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2250
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 7.5 * SIN(SINE / 12)), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
2251
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2252
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2253
	end
2254
	DELET()
2255
	GYRO:remove()
2256
	ATTACK = false
2257
	Rooted = false
2258
end
2259
2260
function Nuke()
2261
	ATTACK = true
2262
	Rooted = true
2263
	local CHARGE = false
2264
	local BLASTS = {468991944, 468991990}
2265
	coroutine.resume(coroutine.create(function()
2266
		repeat
2267
			Swait()
2268
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(-15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 1 * SIN(SINE / 12))), 0.1 / Animation_Speed)
2269
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 0.1 / Animation_Speed)
2270
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(140 - 7.5 * SIN(SINE / 12)), RAD(-7.5 * SIN(SINE / 12)), RAD(-45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 0.1 / Animation_Speed)
2271
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(140 - 7.5 * SIN(SINE / 12)), RAD(7.5 * SIN(SINE / 12)), RAD(45 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 0.1 / Animation_Speed)
2272
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(25 - 7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.1 / Animation_Speed)
2273
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(25 - 7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.1 / Animation_Speed)
2274
		until CHARGE == true
2275
		for i = 0, 0.4, 0.1 / Animation_Speed do
2276
			Swait()
2277
			WACKYEFFECT({
2278
				Time = 15,
2279
				EffectType = "Sphere",
2280
				Size = VT(120, 120, 120),
2281
				Size2 = VT(0, 0, 0),
2282
				Transparency = 1,
2283
				Transparency2 = 0.7,
2284
				CFrame = CF(RootPart.Position),
2285
				MoveToPos = nil,
2286
				RotationX = 0,
2287
				RotationY = 0,
2288
				RotationZ = 0,
2289
				Material = "Neon",
2290
				Color = C3(123, 0, 123),
2291
				SoundID = nil,
2292
				SoundPitch = nil,
2293
				SoundVolume = nil
2294
			})
2295
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 1 * SIN(SINE / 12))), 1 / Animation_Speed)
2296
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
2297
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(160 - 7.5 * SIN(SINE / 12)), RAD(-7.5 * SIN(SINE / 12)), RAD(-50 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2298
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(160 - 7.5 * SIN(SINE / 12)), RAD(7.5 * SIN(SINE / 12)), RAD(50 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
2299
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(35 - 7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2300
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(35 - 7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2301
		end
2302
		coroutine.resume(coroutine.create(function()
2303
			local POS = RootPart.Position
2304
			wait(0.2)
2305
			for i = 1, 5 do
2306
				WACKYEFFECT({
2307
					Time = 65,
2308
					EffectType = "Sphere",
2309
					Size = VT(4, 4, 4),
2310
					Size2 = VT(0, 0, 1000),
2311
					Transparency = 1,
2312
					Transparency2 = 0,
2313
					CFrame = CF(POS),
2314
					MoveToPos = nil,
2315
					RotationX = MRANDOM(-2, 2),
2316
					RotationY = MRANDOM(-12, 12),
2317
					RotationZ = MRANDOM(-2, 2),
2318
					Material = "Neon",
2319
					Color = C3(123, 0, 123),
2320
					SoundID = nil,
2321
					SoundPitch = nil,
2322
					SoundVolume = nil
2323
				})
2324
			end
2325
			wait(1)
2326
			SHAKECAM(POS, 9999999999, 25, 25)
2327
			ApplyAoE2(POS, 450)
2328
			WACKYEFFECT({
2329
				Time = 85,
2330
				EffectType = "Sphere",
2331
				Size = VT(240, 240, 240),
2332
				Size2 = VT(700, 700, 700),
2333
				Transparency = 0,
2334
				Transparency2 = 1,
2335
				CFrame = CF(POS),
2336
				MoveToPos = nil,
2337
				RotationX = 0,
2338
				RotationY = 0,
2339
				RotationZ = 0,
2340
				Material = "Neon",
2341
				Color = C3(123, 0, 123),
2342
				SoundID = nil,
2343
				SoundPitch = 1,
2344
				SoundVolume = 10
2345
			})
2346
			for i = 1, 20 do
2347
				WACKYEFFECT({
2348
					Time = 85,
2349
					EffectType = "Sphere",
2350
					Size = VT(240, 240, 240),
2351
					Size2 = VT(240, 240, 288) + VT(i * 3, i * 3, i * 3),
2352
					Transparency = 0.8,
2353
					Transparency2 = 1,
2354
					CFrame = CF(POS),
2355
					MoveToPos = nil,
2356
					RotationX = 0,
2357
					RotationY = 0,
2358
					RotationZ = 0,
2359
					Material = "Neon",
2360
					Color = C3(123, 0, 123),
2361
					SoundID = nil,
2362
					SoundPitch = 1,
2363
					SoundVolume = 10
2364
				})
2365
				WACKYEFFECT({
2366
					Time = 100,
2367
					EffectType = "Wave",
2368
					Size = VT(50, 4, 50),
2369
					Size2 = VT(800, 0, 800) * 1.2,
2370
					Transparency = 0,
2371
					Transparency2 = 1,
2372
					CFrame = CF(POS) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
2373
					MoveToPos = nil,
2374
					RotationX = 0,
2375
					RotationY = 0,
2376
					RotationZ = 0,
2377
					Material = "Neon",
2378
					Color = C3(123, 0, 123),
2379
					SoundID = nil,
2380
					SoundPitch = nil,
2381
					SoundVolume = nil
2382
				})
2383
			end
2384
			local HITFLOOR, HITPOS = Raycast(POS, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 150, Character)
2385
			for i = 1, 5 do
2386
				CreateSound(438666077, Effects, 15, 1 - i / 15, false)
2387
				WACKYEFFECT({
2388
					Time = 120,
2389
					EffectType = "Wave",
2390
					Size = VT(300, 2, 300),
2391
					Size2 = VT(600 + i * 340, 0, 600 + i * 340) * 1.2,
2392
					Transparency = 0,
2393
					Transparency2 = 1,
2394
					CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)),
2395
					MoveToPos = nil,
2396
					RotationX = 0,
2397
					RotationY = 0,
2398
					RotationZ = 0,
2399
					Material = "Neon",
2400
					Color = C3(123, 0, 123),
2401
					SoundID = nil,
2402
					SoundPitch = nil,
2403
					SoundVolume = nil
2404
				})
2405
			end
2406
		end))
2407
		for i = 0, 1, 0.1 / Animation_Speed do
2408
			Swait()
2409
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(7 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 1 * SIN(SINE / 12))), 1 / Animation_Speed)
2410
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
2411
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(45 - 7.5 * SIN(SINE / 12)), RAD(45 - 7.5 * SIN(SINE / 12)), RAD(12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2412
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(45 - 7.5 * SIN(SINE / 12)), RAD(-45 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
2413
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2414
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2415
		end
2416
		ATTACK = false
2417
		Rooted = false
2418
	end))
2419
	for i = 1, 30 do
2420
		wait(0.01)
2421
		local POS = CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * CF(0, 0, MRANDOM(10, 150))
2422
		local HITFLOOR, HITPOS = Raycast(POS.p, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 150, Character)
2423
		if HITFLOOR then
2424
			ApplyAoE2(HITPOS, 65)
2425
			local TURN = ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * ANGLES(RAD(MRANDOM(0, 25)), RAD(0), RAD(0))
2426
			WACKYEFFECT({
2427
				Time = 25,
2428
				EffectType = "Sphere",
2429
				Size = VT(44, 44, 44),
2430
				Size2 = VT(170, 170, 170),
2431
				Transparency = 0,
2432
				Transparency2 = 1,
2433
				CFrame = CF(HITPOS),
2434
				MoveToPos = nil,
2435
				RotationX = 0,
2436
				RotationY = 0,
2437
				RotationZ = 0,
2438
				Material = "Neon",
2439
				Color = C3(123, 0, 123),
2440
				SoundID = BLASTS[MRANDOM(1, #BLASTS)],
2441
				SoundPitch = MRANDOM(9, 12) / 10,
2442
				SoundVolume = 10
2443
			})
2444
			for e = 1, 3 do
2445
				WACKYEFFECT({
2446
					EffectType = "Wave",
2447
					Size = VT(50, 0, 50),
2448
					Size2 = VT(80, 0, 80) + VT(e * 6, e / 5, e * 6),
2449
					Transparency = 0,
2450
					Transparency2 = 1,
2451
					CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(72 * i), RAD(0)),
2452
					MoveToPos = nil,
2453
					RotationX = 0,
2454
					RotationY = 3,
2455
					RotationZ = 0,
2456
					Material = "Neon",
2457
					Color = C3(123, 0, 123),
2458
					SoundID = nil,
2459
					SoundPitch = nil,
2460
					SoundVolume = nil
2461
				})
2462
				WACKYEFFECT({
2463
					Time = 35,
2464
					EffectType = "Sphere",
2465
					Size = VT(44, 90, 44),
2466
					Size2 = VT(50, 90 + e * 150, 50),
2467
					Transparency = 0,
2468
					Transparency2 = 1,
2469
					CFrame = CF(HITPOS) * TURN,
2470
					MoveToPos = nil,
2471
					RotationX = 0,
2472
					RotationY = 0,
2473
					RotationZ = 0,
2474
					Material = "Neon",
2475
					Color = C3(123, 0, 123),
2476
					SoundID = nil,
2477
					SoundPitch = MRANDOM(9, 12) / 10,
2478
					SoundVolume = 10
2479
				})
2480
			end
2481
		end
2482
	end
2483
	CHARGE = true
2484
end
2485
2486
function Beam()
2487
	ATTACK = true
2488
	Rooted = true
2489
	local GYRO = IT("BodyGyro", RootPart)
2490
	GYRO.D = 20
2491
	GYRO.P = 4000
2492
	GYRO.MaxTorque = VT(0, 40000, 0)
2493
	local RING, MESH, DELET = MakeRing()
2494
	local POS = RootPart.Position + VT(0, 25, 0)
2495
	RING.CFrame = CF(POS, Mouse.Hit.p) * ANGLES(RAD(90), RAD(0), RAD(0))
2496
	CreateSound(459523787, RING, 8, 1, false)
2497
	local BLASTS = {468991944, 468991990}
2498
	coroutine.resume(coroutine.create(function()
2499
		local E = 0
2500
		repeat
2501
			E = E + 5
2502
			GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p)
2503
			Swait()
2504
			RING.CFrame = CF(POS, Mouse.Hit.p) * ANGLES(RAD(90), RAD(E), RAD(0))
2505
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(90)), 1 / Animation_Speed)
2506
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-90)), 1 / Animation_Speed)
2507
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2508
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 7.5 * SIN(SINE / 12)), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
2509
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2510
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2511
		until ATTACK == false
2512
		GYRO:remove()
2513
		DELET()
2514
	end))
2515
	for i = 1, 50 do
2516
		Swait()
2517
		MESH.Scale = MESH.Scale + VT(33, 0, 33)
2518
	end
2519
	for i = 1, 25 do
2520
		Swait()
2521
		WACKYEFFECT({
2522
			Time = 15,
2523
			EffectType = "Sphere",
2524
			Size = VT(16, 16, 16),
2525
			Size2 = VT(0, 0, 0),
2526
			Transparency = 1,
2527
			Transparency2 = 0,
2528
			CFrame = CF(RING.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) * CF(0, 0, 35),
2529
			MoveToPos = RING.Position,
2530
			RotationX = 0,
2531
			RotationY = 0,
2532
			RotationZ = 0,
2533
			Material = "Neon",
2534
			Color = C3(123, 0, 123),
2535
			SoundID = nil,
2536
			SoundPitch = nil,
2537
			SoundVolume = nil
2538
		})
2539
	end
2540
	local LOOP = 0
2541
	local BEAM = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Eggplant"), "Beam", VT(0, 0, 0), true)
2542
	MakeForm(BEAM, "Cyl")
2543
	CreateSound(BLASTS[MRANDOM(1, #BLASTS)], RING, 5, MRANDOM(9, 11) / 10, false)
2544
	repeat
2545
		local DISTANCE = (RING.Position - Mouse.Hit.p).Magnitude
2546
		if DISTANCE < 2000 then
2547
			BEAM.Size = VT(40 + 8 * COS(SINE / 4), DISTANCE, 40 + 8 * COS(SINE / 4))
2548
			BEAM.CFrame = CF(RING.Position, Mouse.Hit.p) * CF(0, 0, -DISTANCE / 2) * ANGLES(RAD(90), RAD(0), RAD(0))
2549
			ApplyAoE2(Mouse.Hit.p, 35)
2550
			WACKYEFFECT({
2551
				Time = 35,
2552
				EffectType = "Sphere",
2553
				Size = VT(40 + 8 * COS(SINE / 4), 40 + 8 * COS(SINE / 4), 40 + 8 * COS(SINE / 4)) * 2,
2554
				Size2 = VT(20, 300, 20),
2555
				Transparency = 0,
2556
				Transparency2 = 1,
2557
				CFrame = CF(Mouse.Hit.p) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
2558
				MoveToPos = nil,
2559
				RotationX = 0,
2560
				RotationY = 0,
2561
				RotationZ = 0,
2562
				Material = "Neon",
2563
				Color = C3(123, 0, 123),
2564
				SoundID = nil,
2565
				SoundPitch = MRANDOM(9, 12) / 10,
2566
				SoundVolume = 10
2567
			})
2568
			Swait()
2569
			LOOP = LOOP + 1
2570
		end
2571
	until KEYHOLD == false and LOOP >= 35 or DISTANCE >= 2000
2572
	coroutine.resume(coroutine.create(function()
2573
		for i = 1, 15 do
2574
			Swait()
2575
			BEAM.Size = BEAM.Size - VT(0.8, 0, 0.8)
2576
			BEAM.Transparency = BEAM.Transparency + 0.06666666666666667
2577
		end
2578
		BEAM:remove()
2579
	end))
2580
	ATTACK = false
2581
	Rooted = false
2582
end
2583
--
2584
2585
function RiftWorld()
2586
	local HITFLOOR,HITPOS = Raycast(RootPart.CFrame*CF(0,0,-6.5).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
2587
	CHOICE = 6
2588
     back = CreateSound(395371531, Character, 9999, 0.7, true)
2589
     chatfunc("Welcome to my w o r l d...")
2590
	local sillsky = Instance.new('Sky', game:GetService'Lighting')
2591
sillsky.SkyboxBk = "rbxassetid://149397692"
2592
sillsky.SkyboxDn = "rbxassetid://149397686"
2593
sillsky.SkyboxFt = "rbxassetid://149397697"
2594
sillsky.SkyboxLf = "rbxassetid://149397684"
2595
sillsky.SkyboxRt = "rbxassetid://149397688"
2596
sillsky.SkyboxUp = "rbxassetid://149397702"
2597
sillsky.StarCount = 0
2598
sillsky.SunAngularSize = 0
2599
sillsky.MoonAngularSize = 0
2600
sillsky.MoonTextureId = ""
2601
sillsky.CelestialBodiesShown = false
2602
game.Lighting.FogColor = Color3.new(0,0,0)
2603
game.Lighting.FogEnd = 1400
2604
	if HITFLOOR ~= nil then
2605
		ATTACK = false
2606
		Rooted = false
2607
		local RINGSPIN = true
2608
		local CONSTRUCTING = true
2609
		local RING = CreatePart(3, Effects, "Neon", 0, 1, "Eggplant", "Ring", VT(0,0,0))
2610
		RING.Color = C3(0,0,0)
2611
		MakeForm(RING,"Cyl")
2612
		RING.CFrame = CF(HITPOS)
2613
		coroutine.resume(coroutine.create(function()
2614
			repeat
2615
				Swait()
2616
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
2617
			until CONSTRUCTING == false
2618
			repeat 
2619
				Swait() 
2620
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
2621
			until RINGSPIN == false
2622
			for i = 1, 25 do
2623
				Swait()
2624
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
2625
				RING.Size = RING.Size - VT(0.15,0,0.15)
2626
				--DECAL.Transparency = DECAL.Transparency + 1/25
2627
				RING.Transparency = RING.Transparency + 1/25
2628
			end
2629
			RING:remove()
2630
		end))
2631
		for i = 1, 15 do
2632
			Swait()
2633
			RING.Size = RING.Size + VT(0,0,0)
2634
			RING.Transparency = RING.Transparency - 1/15
2635
		end
2636
		end
2637
	local RANDOMEFFECT = MRANDOM(1)
2638
	local BASE = CreatePart(3, Character, "Neon", 0, 0, "Eggplant", "Black", VT(2,1.8,2))
2639
			BASE.Color = C3(0,0,0)
2640
			BASE.Transparency = 1
2641
			BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z))
2642
	if RANDOMEFFECT == 1 then
2643
				local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Eggplant", "Field", VT(0.3,0.3,0.3))
2644
				FIELD.CFrame = BASE.CFrame
2645
				MakeForm(FIELD,"Ball")
2646
				for i = 1, 50 do
2647
					Swait()
2648
					FIELD.Size = VT(0,0,0)
2649
					FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
2650
				end
2651
				end
2652
				wait(0.2)
2653
				local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Eggplant", "Field", VT(0.3,0.3,0.3))
2654
				FIELD.CFrame = BASE.CFrame
2655
				local LOOP = CreateSound(1393698948, Character, 0, 1, true)
2656
				coroutine.resume(coroutine.create(function()
2657
					for i = 1, 75 do
2658
                        Swait()
2659
						LOOP.Volume = LOOP.Volume + 10/75
2660
						LOOP.Parent = FIELD
2661
						local CHILDREN = workspace:GetDescendants()
2662
						for index, CHILD in pairs(CHILDREN) do
2663
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
2664
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2665
								if HUM then
2666
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2667
									if TORSO then
2668
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
2669
											HUM.Health = HUM.Health - 0
2670
											TORSO.Velocity = VT(0,5,0)
2671
											HUM.PlatformStand = true
2672
											if TORSO.RotVelocity.Magnitude < 15 then
2673
										 		TORSO.Anchored = true
2674
											end
2675
										end
2676
									end
2677
								end
2678
							end
2679
						end
2680
						FIELD.Size = FIELD.Size + VT(90,90,90)
2681
						FIELD.Transparency = FIELD.Transparency + 0.8/75
2682
					end
2683
				for i = 1, 500 do
2684
                        Swait()
2685
						LOOP.Parent = FIELD
2686
						local CHILDREN = workspace:GetDescendants()
2687
						for index, CHILD in pairs(CHILDREN) do
2688
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
2689
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2690
								if HUM then
2691
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2692
									if TORSO then
2693
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
2694
											TORSO.Velocity = VT(0,5,0)
2695
											HUM.Health = HUM.Health - 0
2696
											HUM.PlatformStand = true
2697
											if TORSO.RotVelocity.Magnitude < 15 then
2698
										 		TORSO.Anchored = false
2699
											end
2700
										end
2701
									end
2702
								end
2703
							end
2704
						end
2705
					end
2706
 CHOICE = MRANDOM (1,5)
2707
					for i = 1, 25 do
2708
						Swait()
2709
						LOOP.Volume = LOOP.Volume + 10/25
2710
						LOOP.Parent = FIELD
2711
						local CHILDREN = workspace:GetDescendants()
2712
						for index, CHILD in pairs(CHILDREN) do
2713
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
2714
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2715
								if HUM then
2716
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2717
									if TORSO then
2718
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then
2719
											TORSO.Velocity = VT(0,5,0)
2720
											HUM.Health = HUM.Health - 0
2721
											HUM.PlatformStand = false
2722
											if TORSO.RotVelocity.Magnitude < 15 then
2723
										 		TORSO.Anchored = false
2724
										end
2725
									end
2726
								end
2727
							end
2728
						end
2729
						FIELD.Size = FIELD.Size - VT(3,3,3)
2730
						FIELD.Transparency = FIELD.Transparency + 0.2/25
2731
						     end
2732
						end
2733
				end))	
2734
				FIELD:Remove()
2735
           ATTACK = false
2736
		Rooted = false
2737
end
2738
2739
--------------VOID BEAM-------------------
2740
2741
function killnearest(position,range,maxstrength)
2742
	for i,v in ipairs(workspace:GetChildren()) do
2743
	local body = v:GetChildren()
2744
		for part = 1, #body do
2745
			if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
2746
				if(body[part].Position - position).Magnitude < range then
2747
					if v.ClassName == "Model" then
2748
						v:BreakJoints()
2749
					end
2750
					--table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
2751
					body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
2752
				end
2753
			end
2754
		end
2755
		if v.ClassName == "Part" then
2756
			if v.Anchored == false and (v.Position - position).Magnitude < range then
2757
				--table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
2758
				v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
2759
			end
2760
		end
2761
	end
2762
end
2763
2764
function CheckTableForString(Table, String)
2765
	for i, v in pairs(Table) do
2766
		if string.find(string.lower(String), string.lower(v)) then
2767
			return true
2768
		end
2769
	end
2770
	return false
2771
end
2772
2773
function CheckIntangible(Hit)
2774
	local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
2775
	if Hit and Hit.Parent then
2776
		if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
2777
			return true
2778
		end
2779
	end
2780
	return false
2781
end
2782
2783
Debris = game:GetService("Debris")
2784
2785
function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
2786
	local Direction = CFrame.new(StartPos, Vec).lookVector
2787
	local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
2788
	local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
2789
	if RayHit and CheckIntangible(RayHit) then
2790
		if DelayIfHit then
2791
			wait()
2792
		end
2793
		RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
2794
	end
2795
	return RayHit, RayPos, RayNormal
2796
end
2797
2798
function turnto(position)
2799
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
2800
end
2801
2802
function VoidBeam()
2803
	ATTACK = true
2804
	Rooted = true
2805
	for i=0, 1, 0.1 / Animation_Speed do
2806
		Swait()
2807
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2808
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2809
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2810
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
2811
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2812
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2813
	end
2814
	CreateSound("348663022", Torso, 5, 1)
2815
	local StartPos = RootPart.CFrame * CF(0,10,0).p
2816
	for i = 1, 5 do
2817
		MagicSphere2(25,25,CF(StartPos),"Eggplant")
2818
		Swait(15)
2819
	end
2820
	local soundeffect = IT("Sound",Torso)
2821
	soundeffect.SoundId = "rbxassetid://487186990"
2822
	soundeffect.Looped = true
2823
	soundeffect.Volume = 10
2824
	soundeffect.Playing = true
2825
	repeat
2826
		turnto(Mouse.Hit.p)
2827
		MagicSphere2(25,25,CF(StartPos),"Eggplant")
2828
		MagicSphere(25/10,25,CF(StartPos),"Eggplant")
2829
		local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Mouse.Hit.p, 750, Character, false)
2830
		local distance = (StartPos - RayPos).magnitude
2831
		local RayBeam = IT("Part",Effects)
2832
		RayBeam.Material = "Neon"
2833
		RayBeam.Anchored = true
2834
		RayBeam.BrickColor = BRICKC"Eggplant"
2835
		local mesh = IT("SpecialMesh",RayBeam)
2836
		mesh.MeshType = "Cylinder"
2837
		RayBeam.Size = Vector3.new(distance+10, 5, 5)
2838
		RayBeam.CFrame = CFrame.new(StartPos, RayPos) * CFrame.new(0, 0, -distance/2) * ANGLES(RAD(0),RAD(90),RAD(0))
2839
		MagicSphere(15,5,CF(RayPos),"Eggplant")
2840
		killnearest(RayPos,15,100)
2841
		for i = 1, 3 do
2842
			CreateSwirl(0,25,true,-0.2,5,CF(RayPos) * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),"Really black")
2843
		end
2844
		Swait()
2845
		if KEYHOLD == false then
2846
			coroutine.resume(coroutine.create(function()
2847
				for i = 1, 5 do
2848
					RayBeam.Transparency = RayBeam.Transparency + 1/5
2849
					Swait()
2850
				end
2851
				RayBeam:remove()
2852
			end))
2853
		else
2854
			RayBeam:remove()
2855
		end
2856
	until KEYHOLD == false
2857
	soundeffect:remove()
2858
	ATTACK = false
2859
	Rooted = false
2860
end
2861
----------------------------------
2862
function Teleport()
2863
	ATTACK = true
2864
	Rooted = false
2865
	for i=0, 0.5, 0.1 / Animation_Speed do
2866
		Swait()
2867
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2868
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
2869
	end
2870
	for e = 1, #BODY do
2871
		if BODY[e] ~= nil then
2872
			local STUFF = BODY[e]
2873
			local PART = STUFF[1]
2874
			if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then
2875
				local PRT = PART:Clone()
2876
				PRT.Anchored = true
2877
				PRT.CanCollide = false
2878
				PRT.Material = "Neon"
2879
				PRT.Color = C3(123,0,123)
2880
				PRT.Name = "WarpEffect"
2881
				PRT.Parent = Effects
2882
				PRT.CFrame = PART.CFrame
2883
				PRT:BreakJoints()
2884
				if PRT:FindFirstChildOfClass("Sound") then
2885
					PRT:FindFirstChildOfClass("Sound"):remove()
2886
				end
2887
				if PRT:FindFirstChildOfClass("Decal") then
2888
					PRT:FindFirstChildOfClass("Decal"):remove()
2889
				end
2890
				coroutine.resume(coroutine.create(function()
2891
					for i = 1, 100 do
2892
						Swait()
2893
						PRT.Transparency = PRT.Transparency + 1/100
2894
					end
2895
					PRT:remove()
2896
				end))
2897
			end
2898
		end
2899
	end
2900
	CreateSound(289556450, Torso, 10, 1)
2901
	local POS = RootPart.Orientation
2902
	RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0))
2903
	RootPart.Orientation = POS
2904
	RootJoint.Parent = RootPart
2905
	for i=0, 0.5, 0.1 / Animation_Speed do
2906
		Swait()
2907
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2908
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-15), RAD(12)) * ANGLES(RAD(175 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
2909
	end
2910
	for i=0, 0.1, 0.1 / Animation_Speed do
2911
		Swait()
2912
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
2913
	end
2914
	ATTACK = false
2915
	Rooted = false
2916
end
2917
2918
function Warden_Zap()
2919
	ATTACK = true
2920
	Rooted = false
2921
	local GYRO = IT("BodyGyro",RootPart)
2922
	GYRO.D = 750
2923
	GYRO.P = 20000
2924
	GYRO.MaxTorque = VT(0,40000000,0)
2925
	CreateSound(348663022,RightArm,1.5,2,false)
2926
	Pose("Cast1",0.8,1,true,GYRO)
2927
	local LightningTable = Lightning({Color = SKILLTEXTCOLOR, Start = RightArm.CFrame*CF(0,-1,0).p, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.2, DoesFade = true, Ignore = Character, MaxDist = 9999, Branches = false})
2928
	local Hitpos = LightningTable.End
2929
	ApplyAoE(Hitpos,10,35)
2930
	WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(1,1,1)*15, Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Eggplant".Color, SoundID = BOLTSOUNDS[MRANDOM(1,#BOLTSOUNDS)], SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
2931
	for i = 1, 4 do
2932
		WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(0,45,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Eggplant".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2933
	end
2934
	Pose("Cast1",0.8,1,true)
2935
	GYRO:remove()
2936
	ATTACK = false
2937
	Rooted = false
2938
end
2939
2940
function VoidThunder()
2941
	ATTACK = true
2942
	Rooted = false
2943
	local GYRO = IT("BodyGyro",RootPart)
2944
	GYRO.D = 750
2945
	GYRO.P = 20000
2946
	GYRO.MaxTorque = VT(0,40000000,0)
2947
	CreateSound(469345336,Torso,3,2,false)
2948
	Pose("Cast2",1.5,2,true,GYRO)
2949
	coroutine.resume(coroutine.create(function()
2950
		local FRAME = RootPart.CFrame
2951
		for i = 1, 25 do
2952
			local POS = FRAME*CF(MRANDOM(-17,17),0,-i*15)
2953
			local LightningTable = Lightning({Color = SKILLTEXTCOLOR, Start = POS*CF(0,85,0).p, End = POS*CF(0,-15,0).p, SegmentL = 3, Thickness = 0.4, DoesFade = true, Ignore = Character, MaxDist = 400, Branches = true})
2954
			local Hitpos = LightningTable.End
2955
			ApplyAoE(Hitpos,20,15)
2956
			WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(1,1,1)*15, Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Eggplant".Color, SoundID = BOLTSOUNDS[MRANDOM(1,#BOLTSOUNDS)], SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
2957
			for i = 1, 4 do
2958
				WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(0,75,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Eggplant".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2959
			end
2960
			wait(0.05)
2961
		end
2962
	end))
2963
	Pose("Cast2",1.5,0.7,true)
2964
	GYRO:remove()
2965
	ATTACK = false
2966
	Rooted = false
2967
end
2968
2969
function Inferno_Ring()
2970
	ATTACK = true
2971
	Rooted = false
2972
	local GYRO = IT("BodyGyro",RootPart)
2973
	GYRO.D = 750
2974
	GYRO.P = 20000
2975
	GYRO.MaxTorque = VT(0,40000000,0)
2976
	local FIRE = IT("Model",Effects)
2977
	FIRE.Name = "Fire"
2978
	local MAIN = CreatePart(3, FIRE, "Neon", 0, 1, "Magenta", "Center", VT(0,0,0))
2979
	FIRE.PrimaryPart = MAIN
2980
	local FIRES = {}
2981
	for i = 1, 45 do
2982
		local PRT = CreatePart(3, FIRE, "Neon", 0, 1, "Dark indigo", "RingPart", VT(3,3,3))
2983
		PRT.CFrame = MAIN.CFrame*ANGLES(RAD(0),RAD((360/45)*i),RAD(0))*CF(0,0,20)
2984
		local F = Fire(PRT)
2985
		table.insert(FIRES,F)
2986
	end
2987
	repeat
2988
		FIRE:SetPrimaryPartCFrame(CF(Mouse.Hit.p))
2989
		Pose("Cast1",1.5,0.01,false,GYRO)
2990
	until HOLD == true
2991
	coroutine.resume(coroutine.create(function()
2992
		for i = 1, 4 do
2993
			ApplyAoE(MAIN.Position,21,-15,true)
2994
			CreateSound(463598785,MAIN,3,1,false)
2995
			for E = 1, #FIRES do
2996
				if FIRES[E] ~= nil then
2997
					FIRES[E].Acceleration = VT(0,300,0)
2998
					FIRES[E].Lifetime=NumberRange.new(0.35,1.5)
2999
				end
3000
			end
3001
			wait(0.3)
3002
		end
3003
		for E = 1, #FIRES do
3004
			if FIRES[E] ~= nil then
3005
				FIRES[E].Enabled = false
3006
			end
3007
		end
3008
		Debris:AddItem(FIRE,5)
3009
	end))
3010
	CreateSound(138474143,RightArm,3,1,false)
3011
	Pose("RightArmUp",1.5,0.5,true)
3012
	GYRO:remove()
3013
	ATTACK = false
3014
	Rooted = false
3015
end
3016
3017
function Warden_Wall()
3018
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 8, Character)
3019
	if HITFLOOR ~= nil then
3020
		if HITFLOOR.Anchored == true then
3021
			local WALL = HITFLOOR:Clone()
3022
			WALL.Size = VT(45,45,5)
3023
			WALL.Parent = Effects
3024
			WALL.Name = "Wall"
3025
			WALL.CFrame = RootPart.CFrame*CF(0,-65/2.1,-5)*ANGLES(RAD(-15),RAD(0),RAD(0))
3026
			CreateSound(130972023,WALL,5,0.8,false)
3027
			ATTACK = true
3028
			Rooted = true
3029
			local HIT = WALL.Touched:Connect(function(hit)
3030
				if hit.Parent ~= Character then
3031
					hit:BreakJoints()
3032
				end
3033
			end)
3034
			coroutine.resume(coroutine.create(function()
3035
				WACKYEFFECT({Time = 35, EffectType = "Box", Size = WALL.Size, Size2 = WALL.Size*2, Transparency = 0, Transparency2 = 1, CFrame = WALL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Eggplant".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
3036
				for i = 1, 90 do
3037
					Swait()
3038
					WALL.CFrame = WALL.CFrame*CF(0,0.5,0)
3039
				end
3040
				HIT:disconnect()
3041
				wait(5)
3042
				for i = 1, 46 do
3043
					Swait()
3044
					WALL.CFrame = WALL.CFrame*CF(0,-1,0)
3045
				end
3046
				WALL:remove()
3047
			end))
3048
			Pose("RightArmUp",1.5,1.2,true)
3049
			ATTACK = false
3050
			Rooted = false
3051
		end
3052
	end
3053
end
3054
3055
function Prison_Key()
3056
	if Mouse.Target ~= nil then
3057
		if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
3058
			local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
3059
			local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
3060
			local GYRO = IT("BodyGyro",RootPart)
3061
			GYRO.D = 750
3062
			GYRO.P = 20000
3063
			GYRO.MaxTorque = VT(0,40000000,0)
3064
			local grav = Instance.new("BodyPosition",TORSO)
3065
			grav.D = 15
3066
			grav.P = 20000
3067
			grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
3068
			grav.position = TORSO.Position
3069
			local GYRO2 = IT("BodyGyro",TORSO)
3070
			GYRO2.D = 750
3071
			GYRO2.P = 20000
3072
			GYRO2.MaxTorque = VT(0,40000000,0)
3073
			GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
3074
			grav.Name = "Jail"
3075
			local LOCKPARTS = {}
3076
			ATTACK = true
3077
			Rooted = false
3078
			local LOCK = IT("Model",Effects)
3079
			LOCK.Name = "Lock"
3080
			local LOCK2 = IT("Model",LOCK)
3081
			LOCK2.Name = "Metal"
3082
			--CREATE LOCK--
3083
				local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1))
3084
				LOCK.PrimaryPart = BASE
3085
				BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
3086
				local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3))
3087
				PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
3088
				MakeForm(PRT,"Cyl")
3089
				local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1))
3090
				PRT.Color = C3(0,0,0)
3091
				PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
3092
				MakeForm(PRT,"Cyl")
3093
				local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1))
3094
				PRT.Color = C3(0,0,0)
3095
				PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
3096
				for i = 1, 45 do
3097
					local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
3098
					PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
3099
				end
3100
				local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
3101
				PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
3102
				LOCK2.PrimaryPart = PRT
3103
			---------------
3104
			local CHILDREN = LOCK:GetDescendants()
3105
			for index, CHILD in pairs(CHILDREN) do
3106
				if CHILD:IsA("BasePart") then
3107
					CHILD.Transparency = 1
3108
				end
3109
			end
3110
			for i = 1, 75 do
3111
				LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
3112
				Swait()
3113
				GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
3114
				GYRO.cframe = CF(RootPart.Position,TORSO.Position)
3115
				local CHILDREN = LOCK:GetDescendants()
3116
				for index, CHILD in pairs(CHILDREN) do
3117
					if CHILD:IsA("BasePart") then
3118
						CHILD.Transparency = CHILD.Transparency - 1/75
3119
					end
3120
				end
3121
			end
3122
			HUM.DisplayDistanceType = "None"
3123
			local KEY = IT("Model",Effects)
3124
			KEY.Name = "Key"
3125
			--CREATE KEY--
3126
				local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Eggplant", "KeyBase", VT(0.1, 1, 0.1),false)
3127
				KEY.PrimaryPart = KBASE
3128
				KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
3129
				local WLD = weldBetween(RightArm,KBASE)
3130
				for i = 1, 45 do
3131
					local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Eggplant", "Key", VT(0.1, 0.1, 0.1),false)
3132
					PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
3133
					weldBetween(KBASE,PRT)
3134
				end
3135
				local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Eggplant", "Key", VT(0.3, 0.1, 0.1),false)
3136
				PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
3137
				weldBetween(KBASE,PRT)
3138
				local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Eggplant", "Key", VT(0.3, 0.1, 0.1),false)
3139
				PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
3140
				weldBetween(KBASE,PRT)
3141
			--------------
3142
			Rooted = true
3143
			Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
3144
			coroutine.resume(coroutine.create(function()
3145
				for i = 1, 10 do
3146
					Swait()
3147
					GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
3148
					GYRO.cframe = CF(RootPart.Position,TORSO.Position)
3149
				end
3150
				CreateSound(1149318312,BASE,5,1,false)
3151
				CreateSound(160772554,BASE,3,1,false)
3152
				LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
3153
				for i = 1, 4 do
3154
					WACKYEFFECT({Time = 35, EffectType = "Crystal", Size = VT(1,1,1), Size2 = VT(0,15,0), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(1,1.45,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Eggplant".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
3155
				end
3156
				WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1)*25, Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Eggplant".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
3157
				wait(1)
3158
				TORSO.Parent.Parent = LOCK
3159
				for i = 1, 75 do
3160
					Swait()
3161
					local CHILDREN = KEY:GetDescendants()
3162
					for index, CHILD in pairs(CHILDREN) do
3163
						if CHILD:IsA("BasePart") then
3164
							CHILD.Transparency = i/25
3165
						end
3166
					end
3167
					local CHILDREN = LOCK:GetDescendants()
3168
					for index, CHILD in pairs(CHILDREN) do
3169
						if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
3170
							CHILD.Transparency = CHILD.Transparency + 1/75
3171
						elseif CHILD.ClassName == "Decal" then
3172
							CHILD.Transparency = CHILD.Transparency + 1/75
3173
						end
3174
					end
3175
				end
3176
				TORSO.Parent:ClearAllChildren()
3177
				KEY:remove()
3178
				LOCK:remove()
3179
			end))
3180
			Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
3181
			GYRO:remove()
3182
			ATTACK = false
3183
			Rooted = false
3184
		end
3185
	end
3186
end
3187
3188
function Hat()
3189
	ATTACK = true
3190
	Rooted = false
3191
	Pose("Taunt",0.4,1.2,false)
3192
	ATTACK = false
3193
	Rooted = false
3194
end
3195
3196
--//=================================\\
3197
--||	  ASSIGN THINGS TO KEYS
3198
--\\=================================//
3199
3200
function MouseDown(Mouse)
3201
	HOLD = true
3202
	if ATTACK == false then
3203
	end
3204
end
3205
3206
function CastProperRay2(StartPos, Vec, Length, Ignore)
3207
	local Direction = CFrame.new(StartPos, Vec).lookVector
3208
	local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
3209
	local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
3210
	return RayHit, RayPos, RayNormal
3211
end
3212
3213
function MouseUp(Mouse)
3214
HOLD = false
3215
end
3216
3217
function KeyDown(Key)
3218
	KEYHOLD = true
3219
    if TRUEFORM == false then
3220
3221
     if Key == "z" and ATTACK == false then
3222
		Warden_Zap()
3223
	end
3224
3225
    if Key == "f" and ATTACK == false then
3226
		Teleport()
3227
	end
3228
    
3229
    if Key == "g" and ATTACK == false then
3230
		Prison_Key()
3231
	end
3232
3233
    if Key == "e" and ATTACK == false then
3234
		VoidStar()
3235
	end
3236
3237
    if Key == "q" and ATTACK == false then
3238
		VoidBox()
3239
	end
3240
3241
    if Key == "b" and ATTACK == false then
3242
		VoidThunder()
3243
	end
3244
3245
	if Key == "c" and ATTACK == false then
3246
		Inferno_Ring()
3247
	end
3248
3249
	if Key == "v" and ATTACK == false then
3250
		Warden_Wall()
3251
	end
3252
3253
	if Key == "x" and ATTACK == false then
3254
		VoidBeam()
3255
	end
3256
3257
	if Key == "t" and ATTACK == false then
3258
		Hat()
3259
    end
3260
3261
    if Key == "p" and ATTACK == false then
3262
		RiftForm()
3263
        lightning.Enabled = true
3264
		eeeffecto.Enabled = true
3265
        SKILL2TEXT:remove()
3266
        SKILL5TEXT:remove()
3267
        SKILL9TEXT:remove()
3268
        SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Rift Thunder", SKILLTEXTCOLOR2, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
3269
        SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Rift Beam", SKILLTEXTCOLOR2, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
3270
        SKILL9TEXT = CreateLabel(SKILL9FRAME, "[E] Rift Star", SKILLTEXTCOLOR2, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 9")
3271
        RiftWorld()
3272
    end
3273
else
3274
	if Key == "p" and ATTACK == false then
3275
        TRUEFORM = false
3276
        lightning.Enabled = false
3277
		eeeffecto.Enabled = false
3278
        SKILL2TEXT:remove()
3279
        SKILL5TEXT:remove()
3280
        SKILL9TEXT:remove()
3281
        SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Void Thunder", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
3282
        SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Void Beam", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
3283
        SKILL9TEXT = CreateLabel(SKILL9FRAME, "[E] Void Star", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 9")
3284
        local sillsky = Instance.new('Sky', game:GetService'Lighting')
3285
        back:remove()
3286
        sillsky:remove()
3287
        game.Lighting.FogEnd = 90000000
3288
        CreateSound(464600985, Character, 99999, 0.8, false)
3289
    end
3290
3291
    if Key == "z" and ATTACK == false then
3292
		Warden_Zap()
3293
	end
3294
3295
    if Key == "f" and ATTACK == false then
3296
		Teleport()
3297
	end
3298
    
3299
    if Key == "g" and ATTACK == false then
3300
		Prison_Key()
3301
	end
3302
3303
    if Key == "e" and ATTACK == false then
3304
		Nuke()
3305
	end
3306
3307
    if Key == "q" and ATTACK == false then
3308
		VoidBox()
3309
	end
3310
3311
    if Key == "b" and ATTACK == false then
3312
		VoidThunder2()
3313
	end
3314
3315
	if Key == "c" and ATTACK == false then
3316
		Inferno_Ring()
3317
	end
3318
3319
	if Key == "v" and ATTACK == false then
3320
		Warden_Wall()
3321
	end
3322
3323
	if Key == "x" and ATTACK == false then
3324
		Beam()
3325
	end
3326
3327
	if Key == "t" and ATTACK == false then
3328
		Hat()
3329
end
3330
end
3331
end
3332
3333
function KeyUp(Key)
3334
	KEYHOLD = false
3335
end
3336
3337
	Mouse.Button1Down:connect(function(NEWKEY)
3338
		MouseDown(NEWKEY)
3339
	end)
3340
	Mouse.Button1Up:connect(function(NEWKEY)
3341
		MouseUp(NEWKEY)
3342
	end)
3343
	Mouse.KeyDown:connect(function(NEWKEY)
3344
		KeyDown(NEWKEY)
3345
	end)
3346
	Mouse.KeyUp:connect(function(NEWKEY)
3347
		KeyUp(NEWKEY)
3348
	end)
3349
3350
--//=================================\\
3351
--\\=================================//
3352
3353
3354
function unanchor()
3355
	if UNANCHOR == true then
3356
		g = Character:GetChildren()
3357
		for i = 1, #g do
3358
			if g[i].ClassName == "Part" then
3359
				g[i].Anchored = false
3360
			end
3361
		end
3362
	end
3363
end
3364
3365
3366
3367
--//=================================\\
3368
--||	WRAP THE WHOLE SCRIPT UP
3369
--\\=================================//
3370
3371
local FF = IT("ForceField",Character)
3372
FF.Visible = false
3373
3374
Humanoid.Changed:connect(function(Jump)
3375
	if Jump == "Jump" and (Disable_Jump == true) then
3376
		Humanoid.Jump = false
3377
	end
3378
end)
3379
3380
while true do
3381
    Swait()
3382
    script.Parent = WEAPONGUI
3383
    Humanoid.Parent = Character
3384
    if Humanoid then
3385
        local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
3386
        IDLEANIMATION:Play()
3387
    end
3388
    if ANIMATE.Parent == Character then
3389
        ANIMATE:Destroy()
3390
    end
3391
    SINE = SINE + CHANGE
3392
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
3393
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
3394
	Humanoid.HipHeight = 1
3395
	Humanoid.Name = "VoidWarden"
3396
	Humanoid.PlatformStand = false
3397
	if PLAYMAINANIM == true then
3398
		if TORSOVELOCITY < 1 then
3399
			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)
3400
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
3401
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
3402
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
3403
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
3404
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
3405
		elseif TORSOVELOCITY > 1 then
3406
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
3407
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
3408
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-35), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
3409
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-35), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
3410
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-20)), 0.15 / Animation_Speed)
3411
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(10)), 0.15 / Animation_Speed)
3412
		end
3413
	end
3414
	unanchor()
3415
	Humanoid.MaxHealth = 1.0E298
3416
	Humanoid.Health = 1.0E298
3417
	if Rooted == false then
3418
		Disable_Jump = false
3419
		Humanoid.WalkSpeed = Speed
3420
	elseif Rooted == true then
3421
		Disable_Jump = true
3422
		Humanoid.WalkSpeed = 0
3423
	end
3424
	for _, c in pairs(Character:GetChildren()) do
3425
		if c.ClassName == "Part" and c.Name ~= "Eye" then
3426
			c.Material = "Neon"
3427
			if c:FindFirstChildOfClass("ParticleEmitter") then
3428
				c:FindFirstChildOfClass("ParticleEmitter"):remove()
3429
			end
3430
			c.Color = C3(1,1,1)
3431
			if c == Head then
3432
				if c:FindFirstChild("face") then
3433
					c.face:remove()
3434
				end
3435
			end
3436
		elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
3437
			c:remove()
3438
		elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
3439
			c:remove()
3440
		end
3441
	end
3442
	sick.SoundId = "rbxassetid://1427189017"
3443
	sick.Looped = true
3444
	sick.Pitch = 1
3445
	sick.Volume = 3
3446
	sick:Resume()
3447
	sick.Parent = Torso
3448
	refit()
3449
	if Head:FindFirstChildOfClass("Sound") then
3450
		Head:FindFirstChildOfClass("Sound"):remove()
3451
   end
3452
end
3453
3454
if Humanoid.Health < 1.0E298 then
3455
refit()
3456
Humanoid.MaxHealth = 1.0E298
3457
Humanoid.Health = Humanoid.Health + 1.0E298
3458
 
3459
end
3460
3461
3462
--//=================================\\
3463
--\\=================================//
3464
3465
3466
3467
3468
3469
--//====================================================\\--
3470
--||			  		 END OF SCRIPT
3471
--\\====================================================//--