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