View difference between Paste ID: apumuy9f and rsgbBtQh
SHOW: | | - or go back to the newest paste.
1
local char = game.Players.localPlayer.Character
2
	local txt = Instance.new("BillboardGui", char)
3
	txt.Adornee = char .Head
4
	txt.Name = "_status"
5
	txt.Size = UDim2.new(2, 0, 1.2, 0)
6
	txt.StudsOffset = Vector3.new(-9, 10, 0)
7
	local text = Instance.new("TextLabel", txt)
8
	text.Size = UDim2.new(10, 0, 7, 0)
9
	text.FontSize = "Size24"
10
	text.TextScaled = true
11
	text.TextTransparency = 0
12
	text.BackgroundTransparency = 1 
13
	text.TextTransparency = 0
14
	text.TextStrokeTransparency = 0
15
	text.Font = "Garamond"
16
	text.TextStrokeColor3 = Color3.new(1,1,1)
17
    text.Text = "Death Gun"
18
script.Name = "Banisher Gun V3 / 1"
19
--//====================================================\\--
20
--||			   CREATED BY SHACKLUSTER
21
--\\====================================================//--
22
23
script:ClearAllChildren()
24
wait(0.2)
25
26
Player = game:GetService("Players").LocalPlayer
27
PlayerGui = Player.PlayerGui
28
Cam = workspace.CurrentCamera
29
Backpack = Player.Backpack
30
Character = Player.Character
31
Humanoid = Character.Humanoid
32
Mouse = Player:GetMouse()
33
RootPart = Character["HumanoidRootPart"]
34
Torso = Character["Torso"]
35
Head = Character["Head"]
36
RightArm = Character["Right Arm"]
37
LeftArm = Character["Left Arm"]
38
RightLeg = Character["Right Leg"]
39
LeftLeg = Character["Left Leg"]
40
RootJoint = RootPart["RootJoint"]
41
Neck = Torso["Neck"]
42
RightShoulder = Torso["Right Shoulder"]
43
LeftShoulder = Torso["Left Shoulder"]
44
RightHip = Torso["Right Hip"]
45
LeftHip = Torso["Left Hip"]
46
local TIME = 0
47
local sick = Instance.new("Sound",Torso)
48
49
IT = Instance.new
50
CF = CFrame.new
51
VT = Vector3.new
52
RAD = math.rad
53
C3 = Color3.new
54
UD2 = UDim2.new
55
BRICKC = BrickColor.new
56
ANGLES = CFrame.Angles
57
EULER = CFrame.fromEulerAnglesXYZ
58
COS = math.cos
59
ACOS = math.acos
60
SIN = math.sin
61
ASIN = math.asin
62
ABS = math.abs
63
MRANDOM = math.random
64
FLOOR = math.floor
65
66
--//=================================\\
67
--|| 	      USEFUL VALUES
68
--\\=================================//
69
70
Animation_Speed = 3
71
local FORCERESET = false
72
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
73
local Speed = 16
74
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
75
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
76
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
77
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
78
local DAMAGEMULTIPLIER = 1
79
local ANIM = "Idle"
80
local ATTACK = false
81
local EQUIPPED = false
82
local HOLD = false
83
local COMBO = 1
84
local Rooted = false
85
local SINE = 0
86
local KEYHOLD = false
87
local CHANGE = 2 / Animation_Speed
88
local WALKINGANIM = false
89
local VALUE1 = false
90
local VALUE2 = false
91
local ROBLOXIDLEANIMATION = IT("Animation")
92
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
93
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
94
--ROBLOXIDLEANIMATION.Parent = Humanoid
95
local WEAPONGUI = IT("ScreenGui", PlayerGui)
96
WEAPONGUI.Name = "BanishV3Gui"
97
local Weapon = IT("Model")
98
Weapon.Name = "Adds"
99
local Effects = IT("Folder", Weapon)
100
Effects.Name = "Effects"
101
local ANIMATOR = Humanoid.Animator
102
local ANIMATE = Character:FindFirstChild("Animate")
103
local UNANCHOR = true
104
local TOBANISH = {}
105
script.Parent = PlayerGui
106
107
--//=================================\\
108
--\\=================================//
109
110
111
--//=================================\\
112
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
113
--\\=================================//
114
115
ArtificialHB = Instance.new("BindableEvent", script)
116
ArtificialHB.Name = "ArtificialHB"
117
118
script:WaitForChild("ArtificialHB")
119
120
frame = Frame_Speed
121
tf = 0
122
allowframeloss = false
123
tossremainder = false
124
lastframe = tick()
125
script.ArtificialHB:Fire()
126
127
game:GetService("RunService").Heartbeat:connect(function(s, p)
128
	tf = tf + s
129
	if tf >= frame then
130
		if allowframeloss then
131
			script.ArtificialHB:Fire()
132
			lastframe = tick()
133
		else
134
			for i = 1, math.floor(tf / frame) do
135
				script.ArtificialHB:Fire()
136
			end
137
		lastframe = tick()
138
		end
139
		if tossremainder then
140
			tf = 0
141
		else
142
			tf = tf - frame * math.floor(tf / frame)
143
		end
144
	end
145
end)
146
147
--//=================================\\
148
--\\=================================//
149
150
--//=================================\\
151
--|| 	      SOME FUNCTIONS
152
--\\=================================//
153
154
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
155
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
156
end
157
158
function PositiveAngle(NUMBER)
159
	if NUMBER >= 0 then
160
		NUMBER = 0
161
	end
162
	return NUMBER
163
end
164
165
function NegativeAngle(NUMBER)
166
	if NUMBER <= 0 then
167
		NUMBER = 0
168
	end
169
	return NUMBER
170
end
171
172
function Swait(NUMBER)
173
	if NUMBER == 0 or NUMBER == nil then
174
		ArtificialHB.Event:wait()
175
	else
176
		for i = 1, NUMBER do
177
			ArtificialHB.Event:wait()
178
		end
179
	end
180
end
181
182
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
183
	local NEWMESH = IT(MESH)
184
	if MESH == "SpecialMesh" then
185
		NEWMESH.MeshType = MESHTYPE
186
		if MESHID ~= "nil" and MESHID ~= "" then
187
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
188
		end
189
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
190
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
191
		end
192
	end
193
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
194
	NEWMESH.Scale = SCALE
195
	NEWMESH.Parent = PARENT
196
	return NEWMESH
197
end
198
199
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
200
	local NEWPART = IT("Part")
201
	NEWPART.formFactor = FORMFACTOR
202
	NEWPART.Reflectance = REFLECTANCE
203
	NEWPART.Transparency = TRANSPARENCY
204
	NEWPART.CanCollide = false
205
	NEWPART.Locked = true
206
	NEWPART.Anchored = true
207
	if ANCHOR == false then
208
		NEWPART.Anchored = false
209
	end
210
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
211
	NEWPART.Name = NAME
212
	NEWPART.Size = SIZE
213
	NEWPART.Position = Torso.Position
214
	NEWPART.Material = MATERIAL
215
	NEWPART:BreakJoints()
216
	NEWPART.Parent = PARENT
217
	return NEWPART
218
end
219
220
	local function weldBetween(a, b)
221
	    local weldd = Instance.new("ManualWeld")
222
	    weldd.Part0 = a
223
	    weldd.Part1 = b
224
	    weldd.C0 = CFrame.new()
225
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
226
	    weldd.Parent = a
227
	    return weldd
228
	end
229
230
231
function QuaternionFromCFrame(cf)
232
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
233
	local trace = m00 + m11 + m22
234
	if trace > 0 then 
235
		local s = math.sqrt(1 + trace)
236
		local recip = 0.5 / s
237
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
238
	else
239
		local i = 0
240
		if m11 > m00 then
241
			i = 1
242
		end
243
		if m22 > (i == 0 and m00 or m11) then
244
			i = 2
245
		end
246
		if i == 0 then
247
			local s = math.sqrt(m00 - m11 - m22 + 1)
248
			local recip = 0.5 / s
249
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
250
		elseif i == 1 then
251
			local s = math.sqrt(m11 - m22 - m00 + 1)
252
			local recip = 0.5 / s
253
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
254
		elseif i == 2 then
255
			local s = math.sqrt(m22 - m00 - m11 + 1)
256
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
257
		end
258
	end
259
end
260
 
261
function QuaternionToCFrame(px, py, pz, x, y, z, w)
262
	local xs, ys, zs = x + x, y + y, z + z
263
	local wx, wy, wz = w * xs, w * ys, w * zs
264
	local xx = x * xs
265
	local xy = x * ys
266
	local xz = x * zs
267
	local yy = y * ys
268
	local yz = y * zs
269
	local zz = z * zs
270
	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))
271
end
272
 
273
function QuaternionSlerp(a, b, t)
274
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
275
	local startInterp, finishInterp;
276
	if cosTheta >= 0.0001 then
277
		if (1 - cosTheta) > 0.0001 then
278
			local theta = ACOS(cosTheta)
279
			local invSinTheta = 1 / SIN(theta)
280
			startInterp = SIN((1 - t) * theta) * invSinTheta
281
			finishInterp = SIN(t * theta) * invSinTheta
282
		else
283
			startInterp = 1 - t
284
			finishInterp = t
285
		end
286
	else
287
		if (1 + cosTheta) > 0.0001 then
288
			local theta = ACOS(-cosTheta)
289
			local invSinTheta = 1 / SIN(theta)
290
			startInterp = SIN((t - 1) * theta) * invSinTheta
291
			finishInterp = SIN(t * theta) * invSinTheta
292
		else
293
			startInterp = t - 1
294
			finishInterp = t
295
		end
296
	end
297
	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
298
end
299
300
function Clerp(a, b, t)
301
	local qa = {QuaternionFromCFrame(a)}
302
	local qb = {QuaternionFromCFrame(b)}
303
	local ax, ay, az = a.x, a.y, a.z
304
	local bx, by, bz = b.x, b.y, b.z
305
	local _t = 1 - t
306
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
307
end
308
309
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
310
	local frame = IT("Frame")
311
	frame.BackgroundTransparency = TRANSPARENCY
312
	frame.BorderSizePixel = BORDERSIZEPIXEL
313
	frame.Position = POSITION
314
	frame.Size = SIZE
315
	frame.BackgroundColor3 = COLOR
316
	frame.BorderColor3 = BORDERCOLOR
317
	frame.Name = NAME
318
	frame.Parent = PARENT
319
	return frame
320
end
321
322
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
323
	local label = IT("TextLabel")
324
	label.BackgroundTransparency = 1
325
	label.Size = UD2(1, 0, 1, 0)
326
	label.Position = UD2(0, 0, 0, 0)
327
	label.TextColor3 = TEXTCOLOR
328
	label.TextStrokeTransparency = STROKETRANSPARENCY
329
	label.TextTransparency = TRANSPARENCY
330
	label.FontSize = TEXTFONTSIZE
331
	label.Font = TEXTFONT
332
	label.BorderSizePixel = BORDERSIZEPIXEL
333
	label.TextScaled = false
334
	label.Text = TEXT
335
	label.Name = NAME
336
	label.Parent = PARENT
337
	return label
338
end
339
340
function NoOutlines(PART)
341
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
342
end
343
344
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
345
	local NEWWELD = IT(TYPE)
346
	NEWWELD.Part0 = PART0
347
	NEWWELD.Part1 = PART1
348
	NEWWELD.C0 = C0
349
	NEWWELD.C1 = C1
350
	NEWWELD.Parent = PARENT
351
	return NEWWELD
352
end
353
354
local S = IT("Sound")
355
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
356
	local NEWSOUND = nil
357
	coroutine.resume(coroutine.create(function()
358
		NEWSOUND = S:Clone()
359
		NEWSOUND.Parent = PARENT
360
		NEWSOUND.Volume = VOLUME
361
		NEWSOUND.Pitch = PITCH
362
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
363
		NEWSOUND:play()
364
		if DOESLOOP == true then
365
			NEWSOUND.Looped = true
366
		else
367
			repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
368
			NEWSOUND:remove()
369
		end
370
	end))
371
	return NEWSOUND
372
end
373
374
function CFrameFromTopBack(at, top, back)
375
	local right = top:Cross(back)
376
	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)
377
end
378
379
--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})
380
function WACKYEFFECT(Table)
381
	local TYPE = (Table.EffectType or "Sphere")
382
	local SIZE = (Table.Size or VT(1,1,1))
383
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
384
	local TRANSPARENCY = (Table.Transparency or 0)
385
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
386
	local CFRAME = (Table.CFrame or Torso.CFrame)
387
	local MOVEDIRECTION = (Table.MoveToPos or nil)
388
	local ROTATION1 = (Table.RotationX or 0)
389
	local ROTATION2 = (Table.RotationY or 0)
390
	local ROTATION3 = (Table.RotationZ or 0)
391
	local MATERIAL = (Table.Material or "Neon")
392
	local COLOR = (Table.Color or C3(1,1,1))
393
	local TIME = (Table.Time or 45)
394
	local SOUNDID = (Table.SoundID or nil)
395
	local SOUNDPITCH = (Table.SoundPitch or nil)
396
	local SOUNDVOLUME = (Table.SoundVolume or nil)
397
	coroutine.resume(coroutine.create(function()
398
		local PLAYSSOUND = false
399
		local SOUND = nil
400
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
401
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
402
			PLAYSSOUND = true
403
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
404
		end
405
		EFFECT.Color = COLOR
406
		local MSH = nil
407
		if TYPE == "Sphere" then
408
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
409
		elseif TYPE == "Block" then
410
			MSH = IT("BlockMesh",EFFECT)
411
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
412
		elseif TYPE == "Wave" then
413
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
414
		elseif TYPE == "Ring" then
415
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
416
		elseif TYPE == "Slash" then
417
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
418
		elseif TYPE == "Round Slash" then
419
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
420
		elseif TYPE == "Swirl" then
421
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
422
		elseif TYPE == "Crystal" then
423
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
424
		end
425
		if MSH ~= nil then
426
			local MOVESPEED = nil
427
			if MOVEDIRECTION ~= nil then
428
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
429
			end
430
			local GROWTH = SIZE - ENDSIZE
431
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
432
			if TYPE == "Block" then
433
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
434
			else
435
				EFFECT.CFrame = CFRAME
436
			end
437
			for LOOP = 1, TIME+1 do
438
				Swait()
439
				MSH.Scale = MSH.Scale - GROWTH/TIME
440
				if TYPE == "Wave" then
441
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
442
				end
443
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
444
				if TYPE == "Block" then
445
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
446
				else
447
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
448
				end
449
				if MOVEDIRECTION ~= nil then
450
					local ORI = EFFECT.Orientation
451
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
452
					EFFECT.Orientation = ORI
453
				end
454
			end
455
			if PLAYSSOUND == false then
456
				EFFECT:remove()
457
			else
458
				SOUND.Stopped:Connect(function()
459
					EFFECT:remove()
460
				end)
461
			end
462
		else
463
			if PLAYSSOUND == false then
464
				EFFECT:remove()
465
			else
466
				repeat Swait() until SOUND.Playing == false
467
				EFFECT:remove()
468
			end
469
		end
470
	end))
471
end
472
473
function MakeForm(PART,TYPE)
474
	if TYPE == "Cyl" then
475
		local MSH = IT("CylinderMesh",PART)
476
	elseif TYPE == "Ball" then
477
		local MSH = IT("SpecialMesh",PART)
478
		MSH.MeshType = "Sphere"
479
	elseif TYPE == "Wedge" then
480
		local MSH = IT("SpecialMesh",PART)
481
		MSH.MeshType = "Wedge"
482
	end
483
end
484
485
function SpawnTrail(FROM,TO,BIG)
486
	local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
487
	MakeForm(TRAIL,"Cyl")
488
	local DIST = (FROM - TO).Magnitude
489
	if BIG == true then
490
		TRAIL.Size = VT(0.5,DIST,0.5)
491
	else
492
		TRAIL.Size = VT(0.25,DIST,0.25)
493
	end
494
	TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
495
	coroutine.resume(coroutine.create(function()
496
		for i = 1, 5 do
497
			Swait()
498
			TRAIL.Transparency = TRAIL.Transparency + 0.1
499
		end
500
		TRAIL:remove()
501
	end))
502
end
503
504
Debris = game:GetService("Debris")
505
506
function CastProperRay(StartPos, EndPos, Distance, Ignore)
507
	local DIRECTION = CF(StartPos,EndPos).lookVector
508
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
509
end
510
511
function turnto(position)
512
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
513
end
514
515
--//=================================\\
516
--||	     WEAPON CREATION
517
--\\=================================//
518
519
Head:ClearAllChildren()
520
Head.Transparency = 1
521
522
function particles(art)
523
local EyeSizes={
524
	NumberSequenceKeypoint.new(0,0.3,0),
525
	NumberSequenceKeypoint.new(1,0,0)
526
}
527
local EyeTrans={
528
	NumberSequenceKeypoint.new(0,0.2,0),
529
	NumberSequenceKeypoint.new(1,1,0)
530
}
531
local PE=Instance.new("ParticleEmitter",art)
532
PE.LightEmission=.4
533
PE.Size=NumberSequence.new(EyeSizes)
534
PE.Transparency=NumberSequence.new(EyeTrans)
535
PE.Lifetime=NumberRange.new(0.35,0.35,0.35)
536
PE.Rotation=NumberRange.new(0,360)
537
PE.Rate=999
538
PE.Acceleration = Vector3.new(0,75,0)
539
PE.Drag = 5
540
PE.Speed = NumberRange.new(0,0,0)
541
PE.Texture="http://www.roblox.com/asset/?id=1179557490"
542
PE.ZOffset = -1.5
543
PE.Name = "PE"
544
end
545
546
CreateWeldOrSnapOrMotor("Weld", Part, Head, Part, CF(0.35, 0.1, -0.65) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
547
MakeForm(Part,"Ball")
548
549
local Particle = IT("ParticleEmitter",nil)
550
Particle.Enabled = false
551
Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
552
Particle.LightEmission = 0.5
553
Particle.Rate = 150
554
Particle.ZOffset = 0.2
555
Particle.Rotation = NumberRange.new(-180, 180)
556
Particle.RotSpeed = NumberRange.new(-180, 180)
557
Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
558
Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
559
560
--ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
561
function ParticleEmitter(Table)
562
	local PRTCL = Particle:Clone()
563
	local Speed = Table.Speed or 5
564
	local Drag = Table.Drag or 0
565
	local Size1 = Table.Size1 or 1
566
	local Size2 = Table.Size2 or 5
567
	local Lifetime1 = Table.Lifetime1 or 1
568
	local Lifetime2 = Table.Lifetime2 or 1.5
569
	local Parent = Table.Parent or Torso
570
	local Emit = Table.Emit or 100
571
	local Offset = Table.Offset or 360
572
	local Acel = Table.Acel or VT(0,0,0)
573
	local Enabled = Table.Enabled or false
574
	PRTCL.Parent = Parent
575
	PRTCL.Size = NumberSequence.new(Size1,Size2)
576
	PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
577
	PRTCL.Speed = NumberRange.new(Speed)
578
	PRTCL.VelocitySpread = Offset
579
	PRTCL.Drag = Drag
580
	PRTCL.Acceleration = Acel
581
	if Enabled == false then
582
		PRTCL:Emit(Emit)
583
		Debris:AddItem(PRTCL,Lifetime2)
584
	else
585
		PRTCL.Enabled = true
586
	end
587
	return PRTCL
588
end
589
590
local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
591
local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
592
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
593
MakeForm(Part,"Wedge")
594
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
595
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
596
MakeForm(Part,"Wedge")
597
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
598
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
599
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
600
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
601
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
602
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
603
MakeForm(Part,"Cyl")
604
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
605
for i = 1, 8 do
606
	local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
607
	CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
608
end
609
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
610
MakeForm(Part,"Cyl")
611
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
612
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
613
MakeForm(Part,"Ball")
614
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
615
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
616
MakeForm(Part,"Wedge")
617
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
618
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
619
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
620
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
621
MakeForm(Part,"Cyl")
622
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
623
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
624
MakeForm(Part,"Cyl")
625
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
626
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
627
MakeForm(Part,"Cyl")
628
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
629
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
630
MakeForm(Part,"Wedge")
631
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
632
local LASTPART = Handle
633
for i = 1, 10 do
634
	if LASTPART == Handle then
635
		local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
636
		LASTPART = Part
637
		CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
638
	else
639
		local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
640
		CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
641
		LASTPART = Part
642
	end
643
end
644
645
local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
646
MakeForm(Barrel,"Cyl")
647
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
648
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
649
MakeForm(Part,"Cyl")
650
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
651
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
652
MakeForm(Part,"Wedge")
653
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
654
local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
655
MakeForm(Hole,"Cyl")
656
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
657
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
658
local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
659
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
660
local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
661
local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
662
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
663
coroutine.resume(coroutine.create(function()
664
	while wait() do
665
		GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
666
		GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
667
	end
668
end))
669
670
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)})
671
--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)})
672
673
for _, c in pairs(Weapon:GetDescendants()) do
674
	if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
675
		c.Material = "Glass"
676
		c.Color = C3(0,0,0)
677
	elseif c.ClassName == "Part" and c.Name == "Eye" then
678
		c.Color = C3(1,0,0)
679
		c.Material = "Neon"
680
	end
681
end
682
683
Weapon.Parent = Character
684
for _, c in pairs(Weapon:GetChildren()) do
685
	if c.ClassName == "Part" then
686
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
687
	end
688
end
689
690
local SKILLTEXTCOLOR = C3(1,0,0)
691
local SKILLFONT = "Antique"
692
local SKILLTEXTSIZE = 7
693
694
Humanoid.Died:connect(function()
695
	ATTACK = true
696
end)
697
698
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")
699
--[[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")
700
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")
701
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")
702
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")
703
]]
704
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[CLICK] Shot", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
705
--[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
706
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
707
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
708
local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
709
]]
710
function printbye(Name)
711
	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, "}
712
	warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")	
713
end
714
715
workspace.ChildAdded:connect(function(instance)
716
    for BANISH = 1, #TOBANISH do
717
		if TOBANISH[BANISH] ~= nil then
718
			if instance.Name == TOBANISH[BANISH] then
719
				coroutine.resume(coroutine.create(function()
720
					printbye(instance.Name)
721
					instance:ClearAllChildren()
722
					Debris:AddItem(instance,0.0005)
723
				end))
724
			end
725
		end
726
	end
727
end)
728
729
--//=================================\\
730
--||			DAMAGING
731
--\\=================================//
732
733
function Banish(Foe)
734
	if Foe then
735
		coroutine.resume(coroutine.create(function()
736
			--if game.Players:FindFirstChild(Foe.Name) then
737
				table.insert(TOBANISH,Foe.Name)
738
				printbye(Foe.Name)
739
			--end
740
			Foe.Archivable = true
741
			local CLONE = Foe:Clone()
742
			Foe:Destroy()
743
			CLONE.Parent = Effects
744
			CLONE:BreakJoints()
745
			local MATERIALS = {"Glass","Neon"}
746
			for _, c in pairs(CLONE:GetDescendants()) do
747
				if c:IsA("BasePart") then
748
					if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
749
 						CreateSound(340722848, c, 10, 1, false)
750
					end
751
					c.Anchored = true
752
					c.Transparency = c.Transparency + 0.2
753
					c.Material = MATERIALS[MRANDOM(1,2)]
754
					c.Color = C3(1,0,0)
755
					if c.ClassName == "MeshPart" then
756
						c.TextureID = ""
757
					end
758
					if c:FindFirstChildOfClass("SpecialMesh") then
759
						c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
760
					end
761
					if c:FindFirstChildOfClass("Decal") then
762
						c:FindFirstChildOfClass("Decal"):remove()
763
					end
764
					c.Name = "Banished"
765
					c.CanCollide = false
766
				else
767
					c:remove()
768
				end
769
			end
770
			local A = false
771
			for i = 1, 35 do
772
				if A == false then
773
					A = true
774
				elseif A == true then
775
					A = false
776
				end
777
				for _, c in pairs(CLONE:GetDescendants()) do
778
					if c:IsA("BasePart") then
779
						c.Anchored = true
780
						c.Material = MATERIALS[MRANDOM(1,2)]
781
						c.Transparency = c.Transparency + 0.8/35
782
						if A == false then
783
							c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
784
						elseif A == true then
785
							c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)						
786
						end
787
					end
788
				end
789
				Swait()
790
			end
791
			CLONE:remove()
792
		end))
793
	end
794
end
795
796
function ApplyAoE(POSITION,RANGE,ISBANISH)
797
	local CHILDREN = workspace:GetDescendants()
798
	for index, CHILD in pairs(CHILDREN) do
799
		if CHILD.ClassName == "Model" and CHILD ~= Character then
800
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
801
			if HUM then
802
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
803
				if TORSO then
804
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
805
						if ISBANISH == true then
806
							Banish(CHILD)
807
						else
808
							if ISBANISH == "Gravity" then
809
								HUM.PlatformStand = true
810
								if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
811
									local grav = Instance.new("BodyPosition",TORSO)
812
									grav.D = 15
813
									grav.P = 20000
814
									grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
815
									grav.position = TORSO.Position
816
									grav.Name = "V3BanishForce"..Player.Name
817
								else
818
									TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
819
									TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
820
								end
821
							else
822
								HUM.PlatformStand = false
823
							end
824
						end
825
					elseif ISBANISH == "Gravity" then
826
						if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
827
							TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
828
							HUM.PlatformStand = false
829
						end
830
					end
831
				end
832
			end
833
		end
834
	end
835
end
836
837
--//=================================\\
838
--||	ATTACK FUNCTIONS AND STUFF
839
--\\=================================//
840
841
function Shot()
842
	ATTACK = true
843
	Rooted = false
844
	for i=0, 0.4, 0.1 / Animation_Speed do
845
		Swait()
846
		turnto(Mouse.Hit.p)
847
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
848
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
849
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
850
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
851
		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)
852
		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)
853
	end
854
	repeat
855
		for i=0, 0.2, 0.1 / Animation_Speed do
856
			Swait()
857
			turnto(Mouse.Hit.p)
858
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
859
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
860
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
861
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
862
			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)
863
			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)
864
		end
865
		local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
866
		SpawnTrail(Hole.Position,POS)
867
		if HIT ~= nil then
868
			if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
869
				Banish(HIT.Parent)
870
			end
871
		end
872
		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})
873
		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})
874
		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})
875
		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})
876
		for i=0, 0.3, 0.1 / Animation_Speed do
877
			Swait()
878
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
879
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
880
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
881
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
882
			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)
883
			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)
884
		end
885
	until KEYHOLD == false
886
	ATTACK = false
887
	Rooted = false
888
end
889
890
function AttackTemplate()
891
	ATTACK = true
892
	Rooted = false
893
	for i=0, 1, 0.1 / Animation_Speed do
894
		Swait()
895
		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)
896
		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)
897
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
898
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
899
		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)
900
		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)
901
	end
902
	ATTACK = false
903
	Rooted = false
904
end
905
906
--//=================================\\
907
--||	  ASSIGN THINGS TO KEYS
908
--\\=================================//
909
910
function MouseDown(Mouse)
911
	if ATTACK == false then
912
		Shot()
913
	end
914
end
915
916
function MouseUp(Mouse)
917
HOLD = false
918
end
919
920
function KeyDown(Key)
921
	KEYHOLD = true
922
923
	if Key == "b" and ATTACK == false then
924
	end
925
926
	if Key == "c" and ATTACK == false then
927
	end
928
929
	if Key == "v" and ATTACK == false then
930
	end
931
932
	if Key == "x" and ATTACK == false then
933
	end
934
end
935
936
function KeyUp(Key)
937
	KEYHOLD = false
938
end
939
940
	Mouse.Button1Down:connect(function(NEWKEY)
941
		MouseDown(NEWKEY)
942
	end)
943
	Mouse.Button1Up:connect(function(NEWKEY)
944
		MouseUp(NEWKEY)
945
	end)
946
	Mouse.KeyDown:connect(function(NEWKEY)
947
		KeyDown(NEWKEY)
948
	end)
949
	Mouse.KeyUp:connect(function(NEWKEY)
950
		KeyUp(NEWKEY)
951
	end)
952
953
--//=================================\\
954
--\\=================================//
955
956
957
function unanchor()
958
	if UNANCHOR == true then
959
		g = Character:GetChildren()
960
		for i = 1, #g do
961
			if g[i].ClassName == "Part" then
962
				g[i].Anchored = false
963
			end
964
		end
965
	end
966
end
967
968
969
--//=================================\\
970
--||	WRAP THE WHOLE SCRIPT UP
971
--\\=================================//
972
973
Humanoid.Changed:connect(function(Jump)
974
	if Jump == "Jump" and (Disable_Jump == true) then
975
		Humanoid.Jump = false
976
	end
977
end)
978
979
local CONNECT = nil
980
981
while true do
982
	Swait()
983
	ANIMATE.Parent = nil
984
	if Character:FindFirstChildOfClass("Humanoid") == nil then
985
		Humanoid = IT("Humanoid",Character)
986
	end
987
	for _,v in next, Humanoid:GetPlayingAnimationTracks() do
988
	    v:Stop();
989
	end
990
	SINE = SINE + CHANGE
991
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
992
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
993
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
994
	local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
995
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
996
		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)
997
		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)
998
		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)
999
		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)
1000
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
1001
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1002
		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)
1003
		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)
1004
		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)
1005
	end
1006
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
1007
		ANIM = "Jump"
1008
		if ATTACK == false then
1009
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1010
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1011
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1012
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1013
			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)
1014
			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)
1015
	    end
1016
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
1017
		ANIM = "Fall"
1018
		if ATTACK == false then
1019
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1020
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1021
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1022
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1023
			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)
1024
			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)
1025
		end
1026
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
1027
		ANIM = "Idle"
1028
		if ATTACK == false then
1029
			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)
1030
			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)
1031
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1032
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1033
			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)
1034
			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)
1035
		end
1036
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
1037
		ANIM = "Walk"
1038
		if ATTACK == false then
1039
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1040
			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)
1041
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1042
			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)
1043
			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)
1044
			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)
1045
		end
1046
	end
1047
	unanchor()
1048
	Humanoid.MaxHealth = "inf"
1049
	Humanoid.Health = "inf"
1050
	if Rooted == false then
1051
		Disable_Jump = false
1052
		Humanoid.WalkSpeed = Speed
1053
	elseif Rooted == true then
1054
		Disable_Jump = true
1055
		Humanoid.WalkSpeed = 0
1056
	end
1057
	sick.Parent = Torso
1058
	sick:resume()
1059
	sick.Volume = 5
1060
	sick.Pitch = 1
1061
	sick.SoundId = "rbxassetid://530959353"
1062
	sick.Name = "Huntereye"
1063
end
1064
1065
--//=================================\\
1066
--\\=================================//
1067
1068
1069
1070
1071
1072
--//====================================================\\--
1073
--||			  		 END OF SCRIPT
1074
--\\====================================================//--