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