View difference between Paste ID: 1aXqhfU4 and upVkWayG
SHOW: | | - or go back to the newest paste.
1
--//====================================================\\--
2
--||			   CREATED BY SHACKLUSTER
3
--\\====================================================//--
4
5
6
7
wait(0.2)
8
9
10
11
Player = game:GetService("Players").LocalPlayer
12
PlayerGui = Player.PlayerGui
13
Cam = workspace.CurrentCamera
14
Backpack = Player.Backpack
15
Character = Player.Character
16
Humanoid = Character.Humanoid
17
Mouse = Player:GetMouse()
18
RootPart = Character["HumanoidRootPart"]
19
Torso = Character["Torso"]
20
Head = Character["Head"]
21
RightArm = Character["Right Arm"]
22
LeftArm = Character["Left Arm"]
23
RightLeg = Character["Right Leg"]
24
LeftLeg = Character["Left Leg"]
25
RootJoint = RootPart["RootJoint"]
26
Neck = Torso["Neck"]
27
RightShoulder = Torso["Right Shoulder"]
28
LeftShoulder = Torso["Left Shoulder"]
29
RightHip = Torso["Right Hip"]
30
LeftHip = Torso["Left Hip"]
31
32
IT = Instance.new
33
CF = CFrame.new
34
VT = Vector3.new
35
RAD = math.rad
36
C3 = Color3.new
37
UD2 = UDim2.new
38
BRICKC = BrickColor.new
39
ANGLES = CFrame.Angles
40
EULER = CFrame.fromEulerAnglesXYZ
41
COS = math.cos
42
ACOS = math.acos
43
SIN = math.sin
44
ASIN = math.asin
45
ABS = math.abs
46
MRANDOM = math.random
47
FLOOR = math.floor
48
49
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
50
	local NEWMESH = IT(MESH)
51
	if MESH == "SpecialMesh" then
52
		NEWMESH.MeshType = MESHTYPE
53
		if MESHID ~= "nil" and MESHID ~= "" then
54
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
55
		end
56
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
57
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
58
		end
59
	end
60
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
61
	NEWMESH.Scale = SCALE
62
	NEWMESH.Parent = PARENT
63
	return NEWMESH
64
end
65
66
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
67
	local NEWPART = IT("Part")
68
	NEWPART.formFactor = FORMFACTOR
69
	NEWPART.Reflectance = REFLECTANCE
70
	NEWPART.Transparency = TRANSPARENCY
71
	NEWPART.CanCollide = false
72
	NEWPART.Locked = true
73
	NEWPART.Anchored = true
74
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
75
	NEWPART.Name = NAME
76
	NEWPART.Size = SIZE
77
	NEWPART.Position = Torso.Position
78
	NEWPART.Material = MATERIAL
79
	NEWPART:BreakJoints()
80
	NEWPART.Parent = PARENT
81
	return NEWPART
82
end
83
84
85
--//=================================\\
86
--||		  CUSTOMIZATION
87
--\\=================================//
88
89
Class_Name = "Nigger OP Hole"
90
Weapon_Name = "Add-ons"
91
92
Custom_Colors = {
93-
	Custom_Color_1 = BRICKC("Institutional black"); --1st color for the weapon.
93+
	Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
94-
	Custom_Color_2 = BRICKC("Institutional black"); --2nd color for the weapon.
94+
	Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
95
96
	Custom_Color_3 = BRICKC("Institutional red"); --Color for the abilities.
97
	Custom_Color_4 = BRICKC("Institutional red"); --Color for the secondary bar.
98
	Custom_Color_5 = BRICKC("Institutional red"); --Color for the mana bar.
99
	Custom_Color_6 = BRICKC("Institutional red"); --Color for the health bar.
100
	Custom_Color_7 = BRICKC("Institutional red"); --Color for the stun bar.
101
102
	Custom_Color_8 = BRICKC("Institutional red"); --Background for the mana bar.
103
	Custom_Color_9 = BRICKC("Institutional red"); --Background for the secondary mana bar.
104
	Custom_Color_10 = BRICKC("Institutional red"); --Background for the stun bar.
105
	Custom_Color_11 = BRICKC("Institutional red"); --Background for the health bar.
106
	Custom_Color_12 = BRICKC("Institutional red"); --Background for the abilities.
107
}
108
109
110
Player_Size = 1 --Size of the player.
111
Animation_Speed = 3
112
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
113
114
local Speed = 16
115
local Effects2 = {}
116
117
--//=================================\\
118
--|| 	  END OF CUSTOMIZATION
119
--\\=================================//
120
121
	local function weldBetween(a, b)
122
	    local weldd = Instance.new("ManualWeld")
123
	    weldd.Part0 = a
124
	    weldd.Part1 = b
125
	    weldd.C0 = CFrame.new()
126
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
127
	    weldd.Parent = a
128
	    return weldd
129
	end
130
131
--//=================================\\
132
--|| 	      USEFUL VALUES
133
--\\=================================//
134
135
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
136
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
137
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
138
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
139
local CO1 = 0
140
local CO2 = 0
141
local CO3 = 0
142
local CO4 = 0
143
local CHANGEDEFENSE = 0
144
local CHANGEDAMAGE = 0
145
local CHANGEMOVEMENT = 0
146
local ANIM = "Idle"
147
local ATTACK = false
148
local EQUIPPED = false
149
local HOLD = false
150
local COMBO = 1
151
local LASTPOINT = nil
152
local BLCF = nil
153
local SCFR = nil
154
local STAGGERHITANIM = false
155
local STAGGERANIM = false
156
local STUNANIM = false
157
local CRITCHANCENUMBER = 0
158
local IDLENUMBER = 0
159
local DONUMBER = 0
160
local HANDIDLE = false
161
local PLAYINGMUSIC = false
162
local SINE = 0
163
local CHANGE = 2 / Animation_Speed
164
local WALKINGANIM = false
165
local WALK = 0
166
local DISABLEJUMPING = false
167
local HASBEENBLOCKED = false
168
local STUNDELAYNUMBER = 0
169
local MANADELAYNUMBER = 0
170
local SOUND = nil
171
local SECONDARYMANADELAYNUMBER = 0
172
local ROBLOXIDLEANIMATION = IT("Animation")
173
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
174
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
175
--ROBLOXIDLEANIMATION.Parent = Humanoid
176
local WEAPONGUI = IT("ScreenGui", nil)
177
WEAPONGUI.Name = "Weapon GUI"
178
local WEAPONTOOL = IT("HopperBin", nil)
179
WEAPONTOOL.Name = Weapon_Name
180
local Weapon = IT("Model")
181
Weapon.Name = Weapon_Name
182
local Effects = IT("Folder", Weapon)
183
Effects.Name = "Effects"
184
local ANIMATOR = Humanoid.Animator
185
local ANIMATE = Character.Animate
186
local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
187
local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
188
local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
189
local HITBLOCKSOUNDS = {"199148933", "199148947"}
190
local PEWSOUND = {"907527750","907527912","907528019","907530553"}
191
local BULLETLOOPSOUND = "907530407"
192
local BULLETIMPACTSOUND = "907532865"
193
local UNANCHOR = true
194
local MAGICPARTICLE = "655109389"
195
local Rooted = false
196
local GRABBED = false
197
local X = 10
198
local Y = 10
199
local Z = 10
200
local CUSTOMMOVEMENT = false
201
local FLIGHT = false
202
local VACUUM = false
203
204
--//=================================\\
205
--\\=================================//
206
207
208
209
210
--//=================================\\
211
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
212
--\\=================================//
213
214
ArtificialHB = Instance.new("BindableEvent", script)
215
ArtificialHB.Name = "ArtificialHB"
216
217
script:WaitForChild("ArtificialHB")
218
219
frame = Frame_Speed
220
tf = 0
221
allowframeloss = false
222
tossremainder = false
223
lastframe = tick()
224
script.ArtificialHB:Fire()
225
226
game:GetService("RunService").Heartbeat:connect(function(s, p)
227
	tf = tf + s
228
	if tf >= frame then
229
		if allowframeloss then
230
			script.ArtificialHB:Fire()
231
			lastframe = tick()
232
		else
233
			for i = 1, math.floor(tf / frame) do
234
				script.ArtificialHB:Fire()
235
			end
236
		lastframe = tick()
237
		end
238
		if tossremainder then
239
			tf = 0
240
		else
241
			tf = tf - frame * math.floor(tf / frame)
242
		end
243
	end
244
end)
245
246
--//=================================\\
247
--\\=================================//
248
249
250
251
252
253
--//=================================\\
254
--|| 	      SOME FUNCTIONS
255
--\\=================================//
256
257
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
258
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
259
end
260
261
function PositiveAngle(NUMBER)
262
	if NUMBER >= 0 then
263
		NUMBER = 0
264
	end
265
	return NUMBER
266
end
267
268
function NegativeAngle(NUMBER)
269
	if NUMBER <= 0 then
270
		NUMBER = 0
271
	end
272
	return NUMBER
273
end
274
275
function Swait(NUMBER)
276
	if NUMBER == 0 or NUMBER == nil then
277
		ArtificialHB.Event:wait()
278
	else
279
		for i = 1, NUMBER do
280
			ArtificialHB.Event:wait()
281
		end
282
	end
283
end
284
285
function QuaternionFromCFrame(cf)
286
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
287
	local trace = m00 + m11 + m22
288
	if trace > 0 then 
289
		local s = math.sqrt(1 + trace)
290
		local recip = 0.5 / s
291
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
292
	else
293
		local i = 0
294
		if m11 > m00 then
295
			i = 1
296
		end
297
		if m22 > (i == 0 and m00 or m11) then
298
			i = 2
299
		end
300
		if i == 0 then
301
			local s = math.sqrt(m00 - m11 - m22 + 1)
302
			local recip = 0.5 / s
303
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
304
		elseif i == 1 then
305
			local s = math.sqrt(m11 - m22 - m00 + 1)
306
			local recip = 0.5 / s
307
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
308
		elseif i == 2 then
309
			local s = math.sqrt(m22 - m00 - m11 + 1)
310
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
311
		end
312
	end
313
end
314
 
315
function QuaternionToCFrame(px, py, pz, x, y, z, w)
316
	local xs, ys, zs = x + x, y + y, z + z
317
	local wx, wy, wz = w * xs, w * ys, w * zs
318
	local xx = x * xs
319
	local xy = x * ys
320
	local xz = x * zs
321
	local yy = y * ys
322
	local yz = y * zs
323
	local zz = z * zs
324
	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))
325
end
326
 
327
function QuaternionSlerp(a, b, t)
328
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
329
	local startInterp, finishInterp;
330
	if cosTheta >= 0.0001 then
331
		if (1 - cosTheta) > 0.0001 then
332
			local theta = ACOS(cosTheta)
333
			local invSinTheta = 1 / SIN(theta)
334
			startInterp = SIN((1 - t) * theta) * invSinTheta
335
			finishInterp = SIN(t * theta) * invSinTheta
336
		else
337
			startInterp = 1 - t
338
			finishInterp = t
339
		end
340
	else
341
		if (1 + cosTheta) > 0.0001 then
342
			local theta = ACOS(-cosTheta)
343
			local invSinTheta = 1 / SIN(theta)
344
			startInterp = SIN((t - 1) * theta) * invSinTheta
345
			finishInterp = SIN(t * theta) * invSinTheta
346
		else
347
			startInterp = t - 1
348
			finishInterp = t
349
		end
350
	end
351
	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
352
end
353
354
function Clerp(a, b, t)
355
	local qa = {QuaternionFromCFrame(a)}
356
	local qb = {QuaternionFromCFrame(b)}
357
	local ax, ay, az = a.x, a.y, a.z
358
	local bx, by, bz = b.x, b.y, b.z
359
	local _t = 1 - t
360
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
361
end
362
363
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
364
	local frame = IT("Frame")
365
	frame.BackgroundTransparency = TRANSPARENCY
366
	frame.BorderSizePixel = BORDERSIZEPIXEL
367
	frame.Position = POSITION
368
	frame.Size = SIZE
369
	frame.BackgroundColor3 = COLOR
370
	frame.BorderColor3 = BORDERCOLOR
371
	frame.Name = NAME
372
	frame.Parent = PARENT
373
	return frame
374
end
375
376
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
377
	local label = IT("TextLabel")
378
	label.BackgroundTransparency = 1
379
	label.Size = UD2(1, 0, 1, 0)
380
	label.Position = UD2(0, 0, 0, 0)
381
	label.TextColor3 = C3(255, 255, 255)
382
	label.TextStrokeTransparency = STROKETRANSPARENCY
383
	label.TextTransparency = TRANSPARENCY
384
	label.FontSize = TEXTFONTSIZE
385
	label.Font = TEXTFONT
386
	label.BorderSizePixel = BORDERSIZEPIXEL
387
	label.TextScaled = true
388
	label.Text = TEXT
389
	label.Name = NAME
390
	label.Parent = PARENT
391
	return label
392
end
393
394
function NoOutlines(PART)
395
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
396
end
397
398
399
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
400
	local NEWWELD = IT(TYPE)
401
	NEWWELD.Part0 = PART0
402
	NEWWELD.Part1 = PART1
403
	NEWWELD.C0 = C0
404
	NEWWELD.C1 = C1
405
	NEWWELD.Parent = PARENT
406
	return NEWWELD
407
end
408
409
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
410
	local NEWSOUND = nil
411
	coroutine.resume(coroutine.create(function()
412
		NEWSOUND = IT("Sound", PARENT)
413
		NEWSOUND.Volume = VOLUME
414
		NEWSOUND.Pitch = PITCH
415
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
416
		Swait()
417
		NEWSOUND:play()
418
		if DOESLOOP == false then
419
			repeat Swait() until NEWSOUND.Playing == false
420
			NEWSOUND:remove()
421
		elseif DOESLOOP == true then
422
			NEWSOUND.Looped = true
423
		end
424
	end))
425
	return NEWSOUND
426
end
427
428
function CFrameFromTopBack(at, top, back)
429
	local right = top:Cross(back)
430
	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)
431
end
432
433
function CreateWave(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
434
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
435
	local mesh = IT("SpecialMesh",wave)
436
	mesh.MeshType = "FileMesh"
437
	mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
438
	mesh.Scale = VT(size,size,size)
439
	mesh.Offset = VT(0,0,-size/8)
440
	wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
441
	coroutine.resume(coroutine.create(function(PART)
442
		for i = 1, waitt do
443
			Swait()
444
			mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
445
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
446
			if doesrotate == true then
447
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
448
			end
449
			wave.Transparency = wave.Transparency + (0.5/waitt)
450
			if wave.Transparency > 0.99 then
451
				wave:remove()
452
			end
453
		end
454
	end))
455
end
456
457
function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
458
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
459
	local mesh = IT("SpecialMesh",wave)
460
	mesh.MeshType = "FileMesh"
461
	mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
462
	mesh.Scale = VT(size,size,size)
463
	wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
464
	coroutine.resume(coroutine.create(function(PART)
465
		for i = 1, waitt do
466
			Swait()
467
			mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
468
			if doesrotate == true then
469
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
470
			end
471
			wave.Transparency = wave.Transparency + (0.5/waitt)
472
			if wave.Transparency > 0.99 then
473
				wave:remove()
474
			end
475
		end
476
	end))
477
end
478
479
function CreateTornado(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
480
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
481
	local mesh = IT("SpecialMesh",wave)
482
	mesh.MeshType = "FileMesh"
483
	mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
484
	mesh.Scale = VT(size,size,size)
485
	wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
486
	coroutine.resume(coroutine.create(function(PART)
487
		for i = 1, waitt do
488
			Swait()
489
			mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
490
			if doesrotate == true then
491
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
492
			end
493
			wave.Transparency = wave.Transparency + (0.5/waitt)
494
			if wave.Transparency > 0.99 then
495
				wave:remove()
496
			end
497
		end
498
	end))
499
end
500
501
function CreateRing(inair,size,doesrotate,rotatedirection,waitt,part,offset,spin1,spin2,color)
502
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
503
	local mesh = IT("SpecialMesh",wave)
504
	mesh.MeshType = "FileMesh"
505
	mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
506
	mesh.Scale = VT(size,size,size)
507
	mesh.Offset = VT(0,0,0)
508
	wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
509
	coroutine.resume(coroutine.create(function(PART)
510
		for i = 1, waitt do
511
			Swait()
512
			mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
513
			if doesrotate == true then
514
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1)
515
			end
516
			wave.Transparency = wave.Transparency + (1/waitt)
517
			if wave.Transparency > 0.99 then
518
				wave:remove()
519
			end
520
		end
521
	end))
522
end
523
524
function MagicSphere(size,waitt,part,offset,color)
525
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1))
526
	local mesh = IT("SpecialMesh",wave)
527
	mesh.MeshType = "Sphere"
528
	mesh.Scale = VT(size,size,size)
529
	mesh.Offset = VT(0,0,0)
530
	wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(0),RAD(0),RAD(0))
531
	coroutine.resume(coroutine.create(function(PART)
532
		for i = 1, waitt do
533
			Swait()
534
			mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
535
			wave.Transparency = wave.Transparency + (1/waitt)
536
			if wave.Transparency > 0.99 then
537
				wave:remove()
538
			end
539
		end
540
	end))
541
end
542
543
function clerp(a, b, t)
544
  return a:lerp(b, t)
545
end
546
547
function newBezier(startpos, pos2, pos3, endpos, t)
548
  local A = clerp(startpos, pos2, t)
549
  local B = clerp(pos2, pos3, t)
550
  local C = clerp(pos3, endpos, t)
551
  local lerp1 = clerp(A, B, t)
552
  local lerp2 = clerp(B, C, t)
553
  local cubic = clerp(lerp1, lerp2, t)
554
  return cubic
555
end
556
557
function MagicBlock(size,waitt,part,offset,color)
558
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(size,size,size))
559
	local mesh = IT("BlockMesh",wave)
560
	wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(0),RAD(0),RAD(0))
561
	coroutine.resume(coroutine.create(function(PART)
562
		for i = 1, waitt do
563
			Swait()
564
			mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
565
			wave.CFrame = CF(wave.Position) * ANGLES(RAD(math(-360,360)),RAD(math(-360,360)),RAD(math(-360,360)))
566
			wave.Transparency = wave.Transparency + (0.5/waitt)
567
			if wave.Transparency > 0.99 then
568
				wave:remove()
569
			end
570
		end
571
	end))
572
end
573
574
local EyeSizes={
575
	NumberSequenceKeypoint.new(0,1,0),
576
	NumberSequenceKeypoint.new(1,0.2,0)
577
}
578
local EyeTrans={
579
	NumberSequenceKeypoint.new(0,0.8,0),
580
	NumberSequenceKeypoint.new(1,1,0)
581
}
582
local PE=Instance.new("ParticleEmitter")
583
PE.LightEmission=0
584
PE.Size=NumberSequence.new(EyeSizes)
585
PE.Transparency=NumberSequence.new(EyeTrans)
586
PE.Lifetime=NumberRange.new(0.35,0.35,0.35)
587
PE.Rotation=NumberRange.new(0,360)
588
PE.Rate=15
589
PE.Acceleration = Vector3.new(0,75,0)
590
PE.Drag = 5
591
PE.Enabled = false
592
PE.RotSpeed = NumberRange.new(75)
593
PE.Speed = NumberRange.new(0,0,0)
594
PE.Texture="http://www.roblox.com/asset/?id=1179557490"
595
PE.ZOffset = 0
596
PE.Name = "Particles"
597
598
function CreateParticles(art,accel,drag,rate,type,isenabledbydefault,locked,size)
599
	local particle = PE:Clone()
600
	particle.Parent = art
601
	particle.Acceleration = accel
602
	particle.Rate = rate
603
	if type == "Fire" then
604
		local EyeSizes={
605
			NumberSequenceKeypoint.new(0,size,size*0.3),
606
			NumberSequenceKeypoint.new(1,0.2,0.2)
607
		}
608
		particle.Size = NumberSequence.new(EyeSizes)
609
	elseif type == "Smoke" then
610
		local EyeSizes={
611
			NumberSequenceKeypoint.new(0,size,0),
612
			NumberSequenceKeypoint.new(1,size*5,0.5)
613
		}
614
		particle.Size = NumberSequence.new(EyeSizes)
615
	elseif type == "Solid" then
616
		local EyeSizes={
617
			NumberSequenceKeypoint.new(0,size,0),
618
			NumberSequenceKeypoint.new(1,size,0)
619
		}
620
		particle.Size = NumberSequence.new(EyeSizes)
621
	end
622
	particle.LockedToPart = locked
623
	particle.Drag = drag
624
	particle.Texture = "http://www.roblox.com/asset/?id=43997508"
625
	particle.Enabled = isenabledbydefault
626
return particle
627
end
628
629
--//=================================\\
630
--\\=================================//
631
632
633
--//=================================\\
634
--||	     WEAPON CREATION
635
--\\=================================//
636
637
if Player_Size ~= 1 then
638
	for _, v in pairs (Weapon:GetChildren()) do
639
		if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
640
			local p1 = v.Part1
641
			v.Part1 = nil
642
			local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
643
			v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
644
			v.Part1 = p1
645
		elseif v.ClassName == "Part" then
646
			for _, b in pairs (v:GetChildren()) do
647
				if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
648
					b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
649
				end
650
			end
651
		end
652
	end
653
end
654
655
for _, c in pairs(Weapon:GetChildren()) do
656
	if c.ClassName == "Part" then
657
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
658
	end
659
end
660
661
Weapon.Parent = Character
662
663
Humanoid.Died:connect(function()
664
	ATTACK = true
665
end)
666
667
print(Class_Name.." loaded.")
668
669
local ORB = IT("Part",Weapon)
670
ORB.CanCollide = false
671
ORB.Anchored = false
672
ORB.CFrame = RootPart.CFrame
673
ORB.Shape = "Ball"
674
ORB.Material = "Neon"
675
ORB.Size = VT(0.2,0.2,0.2)
676
ORB.Color = C3(0.5,0,1)
677
local Orbmesh = IT("SpecialMesh",ORB)
678
Orbmesh.MeshType = "Sphere"
679
Orbmesh.Scale = VT(10,10,10)
680
local grav = Instance.new("BodyPosition",ORB)
681
grav.P = 20000
682
grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
683
grav.position = RootPart.CFrame*CF(3,0.7,-1).p
684
grav.Name = "GravityForce"
685
CreateParticles(ORB,VT(0,0,0),0,150,"Solid",true,true,4)
686
687
--//=================================\\
688
--\\=================================//
689
690
function onChatted(msg)
691
	if msg:sub(1,10) == "Orb, play " then
692
		local ID = msg:sub(11)
693
		if SOUND == nil then
694
			SOUND = CreateSound(ID, ORB, 5, 1, true)
695
		else
696
			SOUND:remove()
697
			SOUND = CreateSound(ID, ORB, 5, 1, true)
698
		end
699
		PLAYINGMUSIC = true
700
	elseif msg == "Orb, stop music" then
701
	if SOUND ~= nil then
702
		SOUND:remove()
703
		PLAYINGMUSIC = false
704
	elseif msg == "Orb, do you like me?" then
705
		CreateSound("269597232", ORB, 1, 1, false)
706
	end
707
	end
708
end
709
Player.Chatted:connect(onChatted)
710
711
--//=================================\\
712
--||			ABILITIES
713
--\\=================================//
714
715
function turnto(pos,part)
716
	part.CFrame = CF(part.Position,VT(pos.X,RootPart.Position.Y,pos.Z))
717
end
718
719
function Warp()
720
	ATTACK = true
721
	Rooted = true
722
	CUSTOMMOVEMENT = true
723
	grav.position = RootPart.CFrame.p
724
	Swait(50)
725
	CreateSound(PEWSOUND[MRANDOM(1, #PEWSOUND)], ORB, 2, MRANDOM(8, 9) / 10,false)
726
	for i = 1, 25 do
727
		Swait()
728
		X = X + 1
729
		Y = X
730
		Z = X
731
	end
732
	local weld = weldBetween(Torso,ORB)
733
	grav.position = VT(Mouse.Hit.p.X,Mouse.Hit.p.Y+4,Mouse.Hit.p.Z)
734
	Swait(50)
735
	CUSTOMMOVEMENT = false
736
	weld:remove()
737
	for i = 1, 25 do
738
		Swait()
739
		X = X - 1
740
		Y = X
741
		Z = X
742
	end
743
	ATTACK = false
744
	Rooted = false
745
end
746
747
function StartFlight()
748
	Rooted = true
749
	CUSTOMMOVEMENT = true
750
	grav.position = RootPart.Position
751
	Swait(50)
752
	grav.P = 500
753
	CreateSound(PEWSOUND[MRANDOM(1, #PEWSOUND)], ORB, 2, MRANDOM(8, 9) / 10,false)
754
	for i = 1, 10 do
755
		Swait()
756
		X = X - 1
757
		Y = X
758
		Z = X
759
	end
760
	local weld = weldBetween(Torso,ORB)
761
	repeat
762
		Swait()
763
		grav.position = Mouse.Hit.p
764
		turnto(Mouse.Hit.p,RootPart)
765
	until FLIGHT == false
766
	grav.P = 20000
767
	CUSTOMMOVEMENT = false
768
	weld:remove()
769
	for i = 1, 10 do
770
		Swait()
771
		X = X + 1
772
		Y = X
773
		Z = X
774
	end
775
	Rooted = false
776
end
777
778
function succnearest(position,range,force,doesbreak)
779
	for i,v in ipairs(workspace:GetChildren()) do
780
	local body = v:GetChildren()
781
		for part = 1, #body do
782
			if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
783
				if(body[part].Position - position).Magnitude < range then
784
					local bv = Instance.new("BodyVelocity") 
785
					bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
786
					bv.velocity = CF(body[part].Position,position).lookVector*force
787
					bv.Parent = body[part]
788
					bv.Name = "SUCC"
789
					if v:FindFirstChild("Humanoid") and doesbreak == false then
790
						dealdamage(body[part],5,15,0,false,12,2)
791
					end
792
					if v.ClassName == "Model" and doesbreak == true then
793
						v:BreakJoints()
794
					end
795
					game:GetService("Debris"):AddItem(bv, 0.1)
796
				end
797
			end
798
		end
799
		if v.ClassName == "Part" then
800
			if v.Anchored == false and (v.Position - position).Magnitude < range then
801
				local bv = Instance.new("BodyVelocity") 
802
				bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
803
				bv.velocity = CF(v.Position,position).lookVector*force
804
				bv.Parent = v
805
				bv.Name = "SUCC"
806
				game:GetService("Debris"):AddItem(bv, 0.1)
807
			end
808
		end
809
	end
810
end
811
812
function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier)
813
	if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
814
		local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
815
		local dmg = math.random(min,max)
816
		if humanoid.Health > 0 then
817
			if beserk == true then
818
				humanoid.Health = 0
819
			else
820
				--CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10)
821
				--hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
822
				if math.random(1,100) < critrate+1 then
823
					humanoid.Health = humanoid.Health - dmg*critmultiplier
824
					--StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
825
				else
826
					humanoid.Health = humanoid.Health - dmg
827
					--StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(255/255, 0, 0))
828
				end
829
				local defence = Instance.new("BoolValue",hit.Parent)
830
				defence.Name = ("HitBy"..Player.Name)
831
				game:GetService("Debris"):AddItem(defence, 0.5)
832
			end
833
		end
834
	end
835
end
836
837
function Vacuum()
838
	CUSTOMMOVEMENT = true
839
	local succ = CreateSound("319444224", ORB, 0.3, 1, true)
840
	local harm = ORB.Touched:Connect(function(hit)
841
		if hit.Parent ~= Character and hit.Parent.ClassName ~= "Accessory" and hit.Parent ~= Effects and hit.Anchored == false then
842
			hit:remove()
843
			CreateSound("261732529", ORB, 3, 1,false)
844
		end
845
	end)
846
	repeat
847
		Swait()
848
		succnearest(ORB.Position,50,80,true)
849
	until VACUUM == false
850
	CUSTOMMOVEMENT = false
851
	succ:remove()
852
	harm:disconnect()
853
end
854
855
function shootbullet()
856
	CreateSound(PEWSOUND[MRANDOM(1, #PEWSOUND)], ORB, 2, MRANDOM(8, 9) / 10,false)
857
	local bullet = IT("Part",Effects)
858
	bullet.Size = VT(1,1,1)
859
	bullet.Shape = "Ball"
860
	bullet.Material = "Neon"
861
	bullet.Color = C3(0.5,0,1)
862
	local sparks = CreateParticles(bullet,VT(0,0,0),0,150,"Solid",true,true,2)
863
	bullet.CFrame = ORB.CFrame
864
	local bv = Instance.new("BodyVelocity") 
865
	bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
866
	bv.velocity = CF(bullet.Position,Mouse.Hit.p).lookVector*200
867
	bv.Parent = bullet
868
	bv.Name = "MOVE"
869
	local loop = CreateSound(BULLETLOOPSOUND, bullet, 0.6, MRANDOM(9, 11) / 10,true)
870
	local HIT = false
871
	local harm = bullet.Touched:Connect(function(hit)
872
		if HIT == false and hit.Parent ~= Character and hit.Parent ~= Weapon and hit.Parent ~= Effects then
873
			HIT = true
874
			coroutine.resume(coroutine.create(function()
875
				coroutine.resume(coroutine.create(function()
876
					for i = 1, 10 do
877
						Swait()
878
						bullet.Transparency = bullet.Transparency + 0.1
879
					end
880
				end))
881
				bullet.Anchored = true
882
				bullet.CanCollide = false
883
				sparks.Enabled = false
884
				local sparks2 = CreateParticles(bullet,VT(0,0,0),0,150,"Solid",true,true,7)
885
				loop.Volume = 3
886
				CreateSound(BULLETIMPACTSOUND, bullet, 2, MRANDOM(9, 11) / 10,false)
887
				for i = 1, 350 do
888
					Swait()
889
					succnearest(bullet.Position,15,25,false)
890
				end
891
				sparks2.Enabled = false
892
				for i = 1, 10 do
893
					Swait()
894
					loop.Volume = loop.Volume - (3/10)
895
				end
896
				bullet:remove()
897
			end))
898
		end
899
	end)
900
end
901
902
function shoottoughbullet()
903
	CreateSound(PEWSOUND[MRANDOM(1, #PEWSOUND)], ORB, 2, MRANDOM(8, 9) / 10,false)
904
	local bullet = IT("Part",Effects)
905
	bullet.Size = VT(3,3,3)
906
	bullet.Shape = "Ball"
907
	bullet.Material = "Neon"
908
	bullet.Color = C3(0.5,0,1)
909
	local sparks = CreateParticles(bullet,VT(0,0,0),0,150,"Solid",true,true,3.5)
910
	bullet.CFrame = ORB.CFrame
911
	local bv = Instance.new("BodyVelocity") 
912
	bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
913
	bv.velocity = CF(bullet.Position,Mouse.Hit.p).lookVector*100
914
	bv.Parent = bullet
915
	bv.Name = "MOVE"
916
	local loop = CreateSound(BULLETLOOPSOUND, bullet, 0.6, MRANDOM(5, 7) / 10,true)
917
	local HIT = false
918
	local harm = bullet.Touched:Connect(function(hit)
919
		if HIT == false and hit.Parent ~= Character and hit.Parent ~= Weapon and hit.Parent ~= Effects then
920
			HIT = true
921
			coroutine.resume(coroutine.create(function()
922
				coroutine.resume(coroutine.create(function()
923
					for i = 1, 10 do
924
						Swait()
925
						bullet.Transparency = bullet.Transparency + 0.1
926
					end
927
				end))
928
				bullet.Anchored = true
929
				bullet.CanCollide = false
930
				sparks.Enabled = false
931
				local sparks2 = CreateParticles(bullet,VT(0,0,0),0,150,"Solid",true,true,15)
932
				loop.Volume = 3
933
				CreateSound(BULLETIMPACTSOUND, bullet, 6, MRANDOM(5,7) / 10,false)
934
				for i = 1, 50 do
935
					Swait()
936
					succnearest(bullet.Position,25,100,true)
937
				end
938
				sparks2.Enabled = false
939
				for i = 1, 10 do
940
					Swait()
941
					loop.Volume = loop.Volume - (3/10)
942
				end
943
				bullet:remove()
944
			end))
945
		end
946
	end)
947
end
948
949
function grab()
950
	if Mouse.Target.Parent:FindFirstChild("Torso") then
951
		local targ = Mouse.Target
952
		GRABBED = true
953
		targ.Anchored = true
954
		CUSTOMMOVEMENT = true
955
		grav.position = targ.Position
956
		Swait(50)
957
		if targ then
958
			Swait(5)
959
			targ.Anchored = false
960
			CUSTOMMOVEMENT = false
961
			repeat 
962
				Swait() 
963
				targ.CFrame = ORB.CFrame
964
			until GRABBED == false or targ == nil
965
			GRABBED = false
966
		end
967
	end
968
end
969
970
--//=================================\\
971
--||	  ASSIGN THINGS TO KEYS
972
--\\=================================//
973
974
Humanoid.Changed:connect(function(Jump)
975
	if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
976
		Humanoid.Jump = false
977
	end
978
end)
979
980
function MouseDown(Mouse)
981
	if ATTACK == false then
982
	end
983
end
984
985
function MouseUp(Mouse)
986
HOLD = false
987
end
988
989
function KeyDown(Key)
990
	if ATTACK == false then
991
		if Key == "e" and VACUUM == false and FLIGHT == false and GRABBED == false then
992
			Warp()
993
		end
994
		if Key == "z" and VACUUM == false and GRABBED == false then
995
			if FLIGHT == false then
996
				FLIGHT = true
997
				StartFlight()
998
			elseif FLIGHT == true then
999
				FLIGHT = false
1000
			end
1001
		end
1002
		if Key == "h" then
1003
			shootbullet()
1004
		end
1005
		if Key == "]" then
1006
			shoottoughbullet()
1007
		end
1008
		if Key == "c" and VACUUM == false then
1009
			if GRABBED == false then
1010
				grab()
1011
			elseif GRABBED == true then
1012
				GRABBED = false
1013
			end
1014
		end
1015
		if Key == "x" then
1016
			if VACUUM == false then
1017
				VACUUM = true
1018
				Vacuum()
1019
			elseif VACUUM == true then
1020
				VACUUM = false
1021
			end
1022
		end
1023
	end
1024
end
1025
1026
function KeyUp(Key)
1027
end
1028
1029
	Mouse.Button1Down:connect(function(NEWKEY)
1030
		MouseDown(NEWKEY)
1031
	end)
1032
	Mouse.Button1Up:connect(function(NEWKEY)
1033
		MouseUp(NEWKEY)
1034
	end)
1035
	Mouse.KeyDown:connect(function(NEWKEY)
1036
		KeyDown(NEWKEY)
1037
	end)
1038
	Mouse.KeyUp:connect(function(NEWKEY)
1039
		KeyUp(NEWKEY)
1040
	end)
1041
1042
--//=================================\\
1043
--\\=================================//
1044
1045
1046
function unanchor()
1047
	if UNANCHOR == true then
1048
		g = Character:GetChildren()
1049
		for i = 1, #g do
1050
			if g[i].ClassName == "Part" then
1051
				g[i].Anchored = false
1052
			end
1053
		end
1054
	end
1055
end
1056
1057
1058
--//=================================\\
1059
--||	WRAP THE WHOLE SCRIPT UP
1060
--\\=================================//
1061
1062
Humanoid.Changed:connect(function(Jump)
1063
	if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
1064
		Humanoid.Jump = false
1065
	end
1066
end)
1067
1068
local loop = 0
1069
local aaa = 1/2
1070
local loop2 = 0
1071
1072
while true do
1073
	Swait()
1074
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1075
	SINE = SINE + CHANGE
1076
if #Effects2>0 then
1077
for e=1,#Effects2 do
1078
if Effects2[e]~=nil then
1079
local Thing=Effects2[e]
1080
if Thing~=nil then
1081
local Part=Thing[1]
1082
local Mode=Thing[2]
1083
local Delay=Thing[3]
1084
local IncX=Thing[4]
1085
local IncY=Thing[5]
1086
local IncZ=Thing[6]
1087
local Part2=Thing[8]
1088
if Thing[1].Transparency<=1 then
1089
if Thing[2]=="Block1" then
1090
Thing[1].CFrame=Thing[1].CFrame
1091
Mesh=Thing[1].Mesh
1092
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
1093
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1094
elseif Thing[2]=="Cylinder" then
1095
Mesh=Thing[1].Mesh
1096
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
1097
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1098
elseif Thing[2]=="Blood" then
1099
Mesh=Thing[7]
1100
Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
1101
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
1102
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1103
elseif Thing[2]=="Elec" then
1104
Mesh=Thing[1].Mesh
1105
Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
1106
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1107
elseif Thing[2]=="Disappear" then
1108
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1109
end
1110
else
1111
Part.Parent=nil
1112
table.remove(Effects2,e)
1113
end
1114
end
1115
end
1116
end
1117
end
1118
unanchor()
1119
Humanoid.MaxHealth = "inf"
1120
Humanoid.Health = "inf"
1121
if Rooted == false then
1122
	Disable_Jump = false
1123
	Humanoid.WalkSpeed = Speed
1124
elseif Rooted == true then
1125
	Disable_Jump = true
1126
	Humanoid.WalkSpeed = 0
1127
end
1128
if CUSTOMMOVEMENT == false then
1129
	loop = loop + aaa
1130
	grav.position = RootPart.CFrame*CF(4,1+loop/10,1).p
1131
	if loop == 45/2 then
1132
		aaa = -1/2
1133
	elseif loop == -15/2 then
1134
		aaa = 1/2
1135
	end
1136
else
1137
end
1138
if PLAYINGMUSIC == true then
1139
	Orbmesh.Scale = VT(X+SOUND.PlaybackLoudness/70,Y+SOUND.PlaybackLoudness/70,Z+SOUND.PlaybackLoudness/70)
1140
else
1141
	Orbmesh.Scale = VT(X,Y,Z)
1142
end
1143
	ORB.Anchored = false
1144
end
1145
1146
--//=================================\\
1147
--\\=================================//
1148
1149
1150
1151
1152
1153
--//====================================================\\--
1154
--||			  		 END OF SCRIPT
1155
--\\====================================================//--