View difference between Paste ID: YMg8FyiY and ymAe9VWc
SHOW: | | - or go back to the newest paste.
1
Player = game.Players.LocalPlayer
2
	Character = Player.Character
3
	local txt = Instance.new("BillboardGui", Character)
4
	txt.Adornee = Character.Head
5
	txt.Name = "_status"
6
	txt.Size = UDim2.new(2, 0, 1.2, 0)
7
	txt.StudsOffset = Vector3.new(-9, 8, 0)
8
	local text = Instance.new("TextLabel", txt)
9
	text.Size = UDim2.new(10, 0, 7, 0)
10
	text.FontSize = "Size24"
11
	text.TextScaled = true
12
	text.TextTransparency = 0
13
	text.BackgroundTransparency = 1 
14
	text.TextTransparency = 0
15
	text.TextStrokeTransparency = 0
16
	text.Font = "Antique"
17
	text.TextStrokeColor3 = Color3.new(0,0,0)
18
        text.Text = "Ultimate kill bot"
19
--//====================================================\\--
20
--||			   EDIE BY SHACKLUSTER
21
--\\====================================================//--
22
23
wait(0.2)
24
25
Player = game:GetService("Players").LocalPlayer
26
PlayerGui = Player.PlayerGui
27
Cam = workspace.CurrentCamera
28
Backpack = Player.Backpack
29
Character = Player.Character
30
Humanoid = Character.Humanoid
31
Mouse = Player:GetMouse()
32
RootPart = Character["HumanoidRootPart"]
33
Torso = Character["Torso"]
34
Head = Character["Head"]
35
RightArm = Character["Right Arm"]
36
LeftArm = Character["Left Arm"]
37
RightLeg = Character["Right Leg"]
38
LeftLeg = Character["Left Leg"]
39
RootJoint = RootPart["RootJoint"]
40
Neck = Torso["Neck"]
41
RightShoulder = Torso["Right Shoulder"]
42
LeftShoulder = Torso["Left Shoulder"]
43
RightHip = Torso["Right Hip"]
44
LeftHip = Torso["Left Hip"]
45
46
IT = Instance.new
47
CF = CFrame.new
48
VT = Vector3.new
49
RAD = math.rad
50
C3 = Color3.new
51
UD2 = UDim2.new
52
BRICKC = BrickColor.new
53
ANGLES = CFrame.Angles
54
EULER = CFrame.fromEulerAnglesXYZ
55
COS = math.cos
56
ACOS = math.acos
57
SIN = math.sin
58
ASIN = math.asin
59
ABS = math.abs
60
MRANDOM = math.random
61
FLOOR = math.floor
62
63
--//=================================\\
64
--|| 	      USEFUL VALUES
65
--\\=================================//
66
67
Animation_Speed = 3
68
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
69
local Speed = 16
70
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
71
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
72
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
73
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
74
local DAMAGEMULTIPLIER = 1
75
local ANIM = "Idle"
76
local ATTACK = false
77
local EQUIPPED = false
78
local HOLD = false
79
local COMBO = 1
80
local Rooted = false
81
local SINE = 0
82
local KEYHOLD = false
83
local CHANGE = 2 / Animation_Speed
84
local WALKINGANIM = false
85
local VALUE1 = false
86
local VALUE2 = false
87
local ROBLOXIDLEANIMATION = IT("Animation")
88
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
89
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
90
--ROBLOXIDLEANIMATION.Parent = Humanoid
91
local WEAPONGUI = IT("ScreenGui", PlayerGui)
92
WEAPONGUI.Name = "Weapon GUI"
93
local Weapon = IT("Model")
94
Weapon.Name = "Adds"
95
local Effects = IT("Folder", Weapon)
96
Effects.Name = "Effects"
97
local ANIMATOR = Humanoid.Animator
98
local ANIMATE = Character.Animate
99
local UNANCHOR = true
100
local LAUGHS = {834001699,834001752,834001797,834001828}
101
local SONGS = {534861083,530959353,1534958855,0}
102
local CHOICE = MRANDOM(1,4)
103
104
--//=================================\\
105
--\\=================================//
106
107
108
--//=================================\\
109
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
110
--\\=================================//
111
112
ArtificialHB = Instance.new("BindableEvent", script)
113
ArtificialHB.Name = "ArtificialHB"
114
115
script:WaitForChild("ArtificialHB")
116
117
frame = Frame_Speed
118
tf = 0
119
allowframeloss = false
120
tossremainder = false
121
lastframe = tick()
122
script.ArtificialHB:Fire()
123
124
game:GetService("RunService").Heartbeat:connect(function(s, p)
125
	tf = tf + s
126
	if tf >= frame then
127
		if allowframeloss then
128
			script.ArtificialHB:Fire()
129
			lastframe = tick()
130
		else
131
			for i = 1, math.floor(tf / frame) do
132
				script.ArtificialHB:Fire()
133
			end
134
		lastframe = tick()
135
		end
136
		if tossremainder then
137
			tf = 0
138
		else
139
			tf = tf - frame * math.floor(tf / frame)
140
		end
141
	end
142
end)
143
144
--//=================================\\
145
--\\=================================//
146
147
--//=================================\\
148
--|| 	      SOME FUNCTIONS
149
--\\=================================//
150
151
function getbloody(victim,amount)
152
	local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
153
	PART.CFrame = victim.CFrame
154
	local HITPLAYERSOUNDS = {"356551938","264486467"}
155
	Debris:AddItem(PART,5)
156
	CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
157
	CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
158
	CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
159
	local prtcl = asd:Clone()
160
	prtcl.Parent = PART
161
	prtcl:Emit(amount*10)
162
end
163
164
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
165
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
166
end
167
168
function PositiveAngle(NUMBER)
169
	if NUMBER >= 0 then
170
		NUMBER = 0
171
	end
172
	return NUMBER
173
end
174
175
function NegativeAngle(NUMBER)
176
	if NUMBER <= 0 then
177
		NUMBER = 0
178
	end
179
	return NUMBER
180
end
181
182
function Swait(NUMBER)
183
	if NUMBER == 0 or NUMBER == nil then
184
		ArtificialHB.Event:wait()
185
	else
186
		for i = 1, NUMBER do
187
			ArtificialHB.Event:wait()
188
		end
189
	end
190
end
191
192
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
193
	local NEWMESH = IT(MESH)
194
	if MESH == "SpecialMesh" then
195
		NEWMESH.MeshType = MESHTYPE
196
		if MESHID ~= "nil" and MESHID ~= "" then
197
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
198
		end
199
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
200
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
201
		end
202
	end
203
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
204
	NEWMESH.Scale = SCALE
205
	NEWMESH.Parent = PARENT
206
	return NEWMESH
207
end
208
209
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
210
	local NEWPART = IT("Part")
211
	NEWPART.formFactor = FORMFACTOR
212
	NEWPART.Reflectance = REFLECTANCE
213
	NEWPART.Transparency = TRANSPARENCY
214
	NEWPART.CanCollide = false
215
	NEWPART.Locked = true
216
	NEWPART.Anchored = true
217
	if ANCHOR == false then
218
		NEWPART.Anchored = false
219
	end
220
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
221
	NEWPART.Name = NAME
222
	NEWPART.Size = SIZE
223
	NEWPART.Position = Torso.Position
224
	NEWPART.Material = MATERIAL
225
	NEWPART:BreakJoints()
226
	NEWPART.Parent = PARENT
227
	return NEWPART
228
end
229
230
	local function weldBetween(a, b)
231
	    local weldd = Instance.new("ManualWeld")
232
	    weldd.Part0 = a
233
	    weldd.Part1 = b
234
	    weldd.C0 = CFrame.new()
235
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
236
	    weldd.Parent = a
237
	    return weldd
238
	end
239
240
241
function QuaternionFromCFrame(cf)
242
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
243
	local trace = m00 + m11 + m22
244
	if trace > 0 then 
245
		local s = math.sqrt(1 + trace)
246
		local recip = 0.5 / s
247
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
248
	else
249
		local i = 0
250
		if m11 > m00 then
251
			i = 1
252
		end
253
		if m22 > (i == 0 and m00 or m11) then
254
			i = 2
255
		end
256
		if i == 0 then
257
			local s = math.sqrt(m00 - m11 - m22 + 1)
258
			local recip = 0.5 / s
259
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
260
		elseif i == 1 then
261
			local s = math.sqrt(m11 - m22 - m00 + 1)
262
			local recip = 0.5 / s
263
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
264
		elseif i == 2 then
265
			local s = math.sqrt(m22 - m00 - m11 + 1)
266
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
267
		end
268
	end
269
end
270
 
271
function QuaternionToCFrame(px, py, pz, x, y, z, w)
272
	local xs, ys, zs = x + x, y + y, z + z
273
	local wx, wy, wz = w * xs, w * ys, w * zs
274
	local xx = x * xs
275
	local xy = x * ys
276
	local xz = x * zs
277
	local yy = y * ys
278
	local yz = y * zs
279
	local zz = z * zs
280
	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))
281
end
282
 
283
function QuaternionSlerp(a, b, t)
284
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
285
	local startInterp, finishInterp;
286
	if cosTheta >= 0.0001 then
287
		if (1 - cosTheta) > 0.0001 then
288
			local theta = ACOS(cosTheta)
289
			local invSinTheta = 1 / SIN(theta)
290
			startInterp = SIN((1 - t) * theta) * invSinTheta
291
			finishInterp = SIN(t * theta) * invSinTheta
292
		else
293
			startInterp = 1 - t
294
			finishInterp = t
295
		end
296
	else
297
		if (1 + cosTheta) > 0.0001 then
298
			local theta = ACOS(-cosTheta)
299
			local invSinTheta = 1 / SIN(theta)
300
			startInterp = SIN((t - 1) * theta) * invSinTheta
301
			finishInterp = SIN(t * theta) * invSinTheta
302
		else
303
			startInterp = t - 1
304
			finishInterp = t
305
		end
306
	end
307
	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
308
end
309
310
function Clerp(a, b, t)
311
	local qa = {QuaternionFromCFrame(a)}
312
	local qb = {QuaternionFromCFrame(b)}
313
	local ax, ay, az = a.x, a.y, a.z
314
	local bx, by, bz = b.x, b.y, b.z
315
	local _t = 1 - t
316
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
317
end
318
319
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
320
	local frame = IT("Frame")
321
	frame.BackgroundTransparency = TRANSPARENCY
322
	frame.BorderSizePixel = BORDERSIZEPIXEL
323
	frame.Position = POSITION
324
	frame.Size = SIZE
325
	frame.BackgroundColor3 = COLOR
326
	frame.BorderColor3 = BORDERCOLOR
327
	frame.Name = NAME
328
	frame.Parent = PARENT
329
	return frame
330
end
331
332
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
333
	local label = IT("TextLabel")
334
	label.BackgroundTransparency = 1
335
	label.Size = UD2(1, 0, 1, 0)
336
	label.Position = UD2(0, 0, 0, 0)
337
	label.TextColor3 = TEXTCOLOR
338
	label.TextStrokeTransparency = STROKETRANSPARENCY
339
	label.TextTransparency = TRANSPARENCY
340
	label.FontSize = TEXTFONTSIZE
341
	label.Font = TEXTFONT
342
	label.BorderSizePixel = BORDERSIZEPIXEL
343
	label.TextScaled = false
344
	label.Text = TEXT
345
	label.Name = NAME
346
	label.Parent = PARENT
347
	return label
348
end
349
350
function NoOutlines(PART)
351
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
352
end
353
354
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
355
	local NEWWELD = IT(TYPE)
356
	NEWWELD.Part0 = PART0
357
	NEWWELD.Part1 = PART1
358
	NEWWELD.C0 = C0
359
	NEWWELD.C1 = C1
360
	NEWWELD.Parent = PARENT
361
	return NEWWELD
362
end
363
364
local S = IT("Sound")
365
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
366
	local NEWSOUND = nil
367
	coroutine.resume(coroutine.create(function()
368
		NEWSOUND = S:Clone()
369
		NEWSOUND.Parent = PARENT
370
		NEWSOUND.Volume = VOLUME
371
		NEWSOUND.Pitch = PITCH
372
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
373
		NEWSOUND:play()
374
		if DOESLOOP == true then
375
			NEWSOUND.Looped = true
376
		else
377
			repeat wait(1) until NEWSOUND.Playing == false
378
			NEWSOUND:remove()
379
		end
380
	end))
381
	return NEWSOUND
382
end
383
384
function CFrameFromTopBack(at, top, back)
385
	local right = top:Cross(back)
386
	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)
387
end
388
389
--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})
390
function WACKYEFFECT(Table)
391
	local TYPE = (Table.EffectType or "Sphere")
392
	local SIZE = (Table.Size or VT(1,1,1))
393
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
394
	local TRANSPARENCY = (Table.Transparency or 0)
395
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
396
	local CFRAME = (Table.CFrame or Torso.CFrame)
397
	local MOVEDIRECTION = (Table.MoveToPos or nil)
398
	local ROTATION1 = (Table.RotationX or 0)
399
	local ROTATION2 = (Table.RotationY or 0)
400
	local ROTATION3 = (Table.RotationZ or 0)
401
	local MATERIAL = (Table.Material or "Neon")
402
	local COLOR = (Table.Color or C3(1,1,1))
403
	local TIME = (Table.Time or 45)
404
	local SOUNDID = (Table.SoundID or nil)
405
	local SOUNDPITCH = (Table.SoundPitch or nil)
406
	local SOUNDVOLUME = (Table.SoundVolume or nil)
407
	coroutine.resume(coroutine.create(function()
408
		local PLAYSSOUND = false
409
		local SOUND = nil
410
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
411
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
412
			PLAYSSOUND = true
413
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
414
		end
415
		EFFECT.Color = COLOR
416
		local MSH = nil
417
		if TYPE == "Sphere" then
418
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
419
		elseif TYPE == "Block" then
420
			MSH = IT("BlockMesh",EFFECT)
421
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
422
		elseif TYPE == "Wave" then
423
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
424
		elseif TYPE == "Ring" then
425
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
426
		elseif TYPE == "Slash" then
427
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
428
		elseif TYPE == "Round Slash" then
429
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
430
		elseif TYPE == "Swirl" then
431
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
432
		elseif TYPE == "Skull" then
433
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
434
		elseif TYPE == "Crystal" then
435
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
436
		end
437
		if MSH ~= nil then
438
			local MOVESPEED = nil
439
			if MOVEDIRECTION ~= nil then
440
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
441
			end
442
			local GROWTH = SIZE - ENDSIZE
443
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
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 = CFRAME
448
			end
449
			for LOOP = 1, TIME+1 do
450
				Swait()
451
				MSH.Scale = MSH.Scale - GROWTH/TIME
452
				if TYPE == "Wave" then
453
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
454
				end
455
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
456
				if TYPE == "Block" then
457
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
458
				else
459
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
460
				end
461
				if MOVEDIRECTION ~= nil then
462
					local ORI = EFFECT.Orientation
463
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
464
					EFFECT.Orientation = ORI
465
				end
466
			end
467
			if PLAYSSOUND == false then
468
				EFFECT:remove()
469
			else
470
				repeat Swait() until SOUND.Playing == false
471
				EFFECT:remove()
472
			end
473
		else
474
			if PLAYSSOUND == false then
475
				EFFECT:remove()
476
			else
477
				repeat Swait() until SOUND.Playing == false
478
				EFFECT:remove()
479
			end
480
		end
481
	end))
482
end
483
484
function MakeForm(PART,TYPE)
485
	if TYPE == "Cyl" then
486
		local MSH = IT("CylinderMesh",PART)
487
	elseif TYPE == "Ball" then
488
		local MSH = IT("SpecialMesh",PART)
489
		MSH.MeshType = "Sphere"
490
	elseif TYPE == "Wedge" then
491
		local MSH = IT("SpecialMesh",PART)
492
		MSH.MeshType = "Wedge"
493
	end
494
end
495
496
Debris = game:GetService("Debris")
497
498
function CastProperRay(StartPos, EndPos, Distance, Ignore)
499
	local DIRECTION = CF(StartPos,EndPos).lookVector
500
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
501
end
502
503
function CharacterFade(COLOR,TIMER)
504
	coroutine.resume(coroutine.create(function()
505
		local FADE = IT("Model",Effects)
506
		for _, c in pairs(Character:GetChildren()) do
507
			if c.ClassName == "Part" and c ~= RootPart then
508
				local FADER = c:Clone()
509
				FADER.Color = COLOR
510
				FADER.CFrame = c.CFrame
511
				FADER.Parent = FADE
512
				FADER.Anchored = true
513
				FADER.Transparency = 0.25
514
				FADER:BreakJoints()
515
				FADER.Material = "Glass"
516
				FADER:ClearAllChildren()
517
				if FADER.Name == "Head" then
518
					FADER.Size = VT(1,1,1)
519
				end
520
			end
521
		end
522
		local TRANS = 0.75/TIMER
523
		for i = 1, TIMER do
524
			Swait()
525
			for _, c in pairs(FADE:GetChildren()) do
526
				if c.ClassName == "Part" then
527
					c.Transparency = c.Transparency + TRANS
528
				end
529
			end
530
		end
531
		FADE:remove()
532
	end))
533
end
534
535
local PE=Instance.new("ParticleEmitter")
536
PE.LightEmission=0.3
537
PE.Size=NumberSequence.new(0)
538
PE.Transparency=NumberSequence.new(0,1)
539
PE.Rotation=NumberRange.new(0,360)
540
PE.LockedToPart = false
541
PE.Speed = NumberRange.new(0,0,0)
542
PE.ZOffset = 0.3
543
PE.Rate = 999
544
PE.VelocitySpread = 25
545
PE.Name = "Particles"
546
547
function CreateParticles(art,accel,drag,lifetime,type,isenabledbydefault,locked,size,speed)
548
    local particle = nil
549
    coroutine.resume(coroutine.create(function(PART)
550
        particle = PE:Clone()
551
        Swait()
552
        particle.Rate = 999
553
        particle.Parent = art
554
        particle.Acceleration = accel
555
        if type == "Fire" then
556
            local EyeSizes={
557
                NumberSequenceKeypoint.new(0,size,size/2),
558
                NumberSequenceKeypoint.new(1,size/4,size/8)
559
            }
560
            particle.Size = NumberSequence.new(EyeSizes)
561
        elseif type == "Smoke" then
562
            local EyeSizes={
563
                NumberSequenceKeypoint.new(0,size/5,0),
564
                NumberSequenceKeypoint.new(1,size*2,0.5)
565
            }
566
            particle.Size = NumberSequence.new(EyeSizes)
567
        elseif type == "Solid" then
568
            local EyeSizes={
569
                NumberSequenceKeypoint.new(0,size,0),
570
                NumberSequenceKeypoint.new(1,size,0)
571
            }
572
            particle.Size = NumberSequence.new(EyeSizes)
573
        end
574
        particle.Lifetime=NumberRange.new(lifetime)
575
        particle.Drag = drag
576
        if locked == true then
577
            particle.LockedToPart = true
578
        end
579
        particle.Speed = NumberRange.new(speed*0.8,speed)
580
        particle.Texture = "http://www.roblox.com/asset/?id=1179557490"
581
        particle.Enabled = isenabledbydefault
582
        particle.Color = ColorSequence.new(Color3.new(255/255, 176/255, 0))
583
    end))
584
return particle
585
end
586
587
--//=================================\\
588
--||	     RAGDOLL STUFF
589
--\\=================================//
590
591
function recurse(root,callback,i)
592
	i= i or 0
593
	for _,v in pairs(root:GetChildren()) do
594
		i = i + 1
595
		callback(i,v)
596
		
597
		if #v:GetChildren() > 0 then
598
			i = recurse(v,callback,i)
599
		end
600
	end
601
	
602
	return i
603
end
604
605
function ragdollJoint(character, part0, part1, attachmentName, className, properties)
606
	attachmentName = attachmentName.."RigAttachment"
607
	local constraint = Instance.new(className.."Constraint")
608
	constraint.Attachment0 = part0:FindFirstChild(attachmentName)
609
	constraint.Attachment1 = part1:FindFirstChild(attachmentName)
610
	constraint.Name = "RagdollConstraint"..part1.Name
611
	
612
	for _,propertyData in next,properties or {} do
613
		constraint[propertyData[1]] = propertyData[2]
614
	end
615
	
616
	constraint.Parent = character
617
end
618
619
function getAttachment0(character, attachmentName)
620
	for _,child in next,character:GetChildren() do
621
		local attachment = child:FindFirstChild(attachmentName)
622
		if attachment then
623
			return attachment
624
		end
625
	end
626
end
627
628
function ArtificialHitbox(Part)
629
	local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false)
630
	HITBOX.CanCollide = true
631
	HITBOX.CFrame = Part.CFrame
632
	weldBetween(Part,HITBOX)
633
end
634
635
function R15Ragdoll(character,KeepArms)
636
	character:BreakJoints()
637
	coroutine.resume(coroutine.create(function()
638
		recurse(character, function(_,v)
639
			if v:IsA("Attachment") then
640
				v.Axis = Vector3.new(0, 1, 0)
641
				v.SecondaryAxis = Vector3.new(0, 0, 1)
642
				v.Rotation = Vector3.new(0, 0, 0)
643
			end
644
		end)
645
		for _,child in next,character:GetChildren() do
646
			if child:IsA("Accoutrement") then
647
				for _,part in next,child:GetChildren() do
648
					if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
649
						local attachment1 = part:FindFirstChildOfClass("Attachment")
650
						local attachment0 = getAttachment0(character,attachment1.Name)
651
						if attachment0 and attachment1 then
652
							local constraint = Instance.new("HingeConstraint")
653
							constraint.Attachment0 = attachment0
654
							constraint.Attachment1 = attachment1
655
							constraint.LimitsEnabled = true
656
							constraint.UpperAngle = 0
657
							constraint.LowerAngle = 0
658
							constraint.Parent = character
659
						end
660
						ArtificialHitbox(part)
661
					elseif part.Name == "HumanoidRootPart" then
662
						part:remove()
663
					end
664
				end
665
			end
666
		end
667
		
668
		ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
669
			{"LimitsEnabled",true};
670
			{"UpperAngle",5};
671
		})
672
		if character:FindFirstChild("Head") then
673
			ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
674
				{"LimitsEnabled",true};
675
				{"UpperAngle",15};
676
			})
677
		end
678
		
679
		local handProperties = {
680
			{"LimitsEnabled", true};
681
			{"UpperAngle",0};
682
			{"LowerAngle",0};
683
		}
684
		ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
685
		ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
686
		
687
		local shinProperties = {
688
			{"LimitsEnabled", true};
689
			{"UpperAngle", 0};
690
			{"LowerAngle", -75};
691
		}
692
		ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
693
		ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
694
		
695
		local footProperties = {
696
			{"LimitsEnabled", true};
697
			{"UpperAngle", 15};
698
			{"LowerAngle", -45};
699
		}
700
		ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
701
		ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
702
		if KeepArms == true then
703
			ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
704
			ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
705
			ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
706
			ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
707
		end
708
		ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
709
		ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
710
		Debris:AddItem(character,5)
711
	end))
712
end
713
714
function Ragdoll(Character2,CharTorso,KeepArms)
715
	coroutine.resume(coroutine.create(function()
716
		Character2:BreakJoints()
717
		local hum = Character2:findFirstChild("Humanoid")
718
		hum:remove()
719
		local function Scan(ch)
720
			local e
721
			for e = 1,#ch do
722
				Scan(ch[e]:GetChildren())
723
				if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
724
					ch[e]:remove()
725
				end
726
			end
727
		end
728
		local NEWHUM = IT("Humanoid")
729
		NEWHUM.Name = "Corpse"
730
		NEWHUM.Health = 0
731
		NEWHUM.MaxHealth = 0
732
		NEWHUM.PlatformStand = true
733
		NEWHUM.Parent = Character2
734
		NEWHUM.DisplayDistanceType = "None"
735
	
736
		local ch = Character2:GetChildren()
737
		local i
738
		for i = 1,#ch do
739
			if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
740
				ch[i]:remove()
741
			end
742
		end
743
	
744
		local Torso2 = Character2.Torso
745
		local movevector = Vector3.new()
746
	
747
		if Torso2 then
748
			movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
749
			local Head = Character2:FindFirstChild("Head")
750
			if Head then
751
				local Neck = Instance.new("Weld")
752
				Neck.Name = "Neck"
753
				Neck.Part0 = Torso2
754
				Neck.Part1 = Head
755
				Neck.C0 = CFrame.new(0, 1.5, 0)
756
				Neck.C1 = CFrame.new()
757
				Neck.Parent = Torso2
758
	
759
			end
760
			local Limb = Character2:FindFirstChild("Right Arm")
761
			if Limb and KeepArms == true then
762
	
763
				Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
764
				local Joint = Instance.new("Glue")
765
				Joint.Name = "RightShoulder"
766
				Joint.Part0 = Torso2
767
				Joint.Part1 = Limb
768
				Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
769
				Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
770
				Joint.Parent = Torso2
771
	
772
				local B = Instance.new("Part")
773
				B.TopSurface = 0
774
				B.BottomSurface = 0
775
				B.formFactor = "Symmetric"
776
				B.Size = Vector3.new(1, 1, 1)
777
				B.Transparency = 1
778
				B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
779
				B.Parent = Character2
780
				local W = Instance.new("Weld")
781
				W.Part0 = Limb
782
				W.Part1 = B
783
				W.C0 = CFrame.new(0, -0.5, 0)
784
				W.Parent = Limb
785
	
786
			end
787
			local Limb = Character2:FindFirstChild("Left Arm")
788
			if Limb and KeepArms == true then
789
	
790
				Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
791
				local Joint = Instance.new("Glue")
792
				Joint.Name = "LeftShoulder"
793
				Joint.Part0 = Torso2
794
				Joint.Part1 = Limb
795
				Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
796
				Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
797
				Joint.Parent = Torso2
798
	
799
				local B = Instance.new("Part")
800
				B.TopSurface = 0
801
				B.BottomSurface = 0
802
				B.formFactor = "Symmetric"
803
				B.Size = Vector3.new(1, 1, 1)
804
				B.Transparency = 1
805
				B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
806
				B.Parent = Character2
807
				local W = Instance.new("Weld")
808
				W.Part0 = Limb
809
				W.Part1 = B
810
				W.C0 = CFrame.new(0, -0.5, 0)
811
				W.Parent = Limb
812
	
813
			end
814
			local Limb = Character2:FindFirstChild("Right Leg")
815
			if Limb then
816
	
817
				Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
818
				local Joint = Instance.new("Glue")
819
				Joint.Name = "RightHip"
820
				Joint.Part0 = Torso2
821
				Joint.Part1 = Limb
822
				Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
823
				Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
824
				Joint.Parent = Torso2
825
	
826
				local B = Instance.new("Part")
827
				B.TopSurface = 0
828
				B.BottomSurface = 0
829
				B.formFactor = "Symmetric"
830
				B.Size = Vector3.new(1, 1, 1)
831
				B.Transparency = 1
832
				B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
833
				B.Parent = Character2
834
				local W = Instance.new("Weld")
835
				W.Part0 = Limb
836
				W.Part1 = B
837
				W.C0 = CFrame.new(0, -0.5, 0)
838
				W.Parent = Limb
839
	
840
			end
841
			local Limb = Character2:FindFirstChild("Left Leg")
842
			if Limb then
843
	
844
				Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
845
				local Joint = Instance.new("Glue")
846
				Joint.Name = "LeftHip"
847
				Joint.Part0 = Torso2
848
				Joint.Part1 = Limb
849
				Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
850
				Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
851
				Joint.Parent = Torso2
852
	
853
				local B = Instance.new("Part")
854
				B.TopSurface = 0
855
				B.BottomSurface = 0
856
				B.formFactor = "Symmetric"
857
				B.Size = Vector3.new(1, 1, 1)
858
				B.Transparency = 1
859
				B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
860
				B.Parent = Character2
861
				local W = Instance.new("Weld")
862
				W.Part0 = Limb
863
				W.Part1 = B
864
				W.C0 = CFrame.new(0, -0.5, 0)
865
				W.Parent = Limb
866
	
867
			end
868
			--[
869
			local Bar = Instance.new("Part")
870
			Bar.TopSurface = 0
871
			Bar.BottomSurface = 0
872
			Bar.formFactor = "Symmetric"
873
			Bar.Size = Vector3.new(1, 1, 1)
874
			Bar.Transparency = 1
875
			Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
876
			Bar.Parent = Character2
877
			local Weld = Instance.new("Weld")
878
			Weld.Part0 = Torso2
879
			Weld.Part1 = Bar
880
			Weld.C0 = CFrame.new(0, 0.5, 0)
881
			Weld.Parent = Torso2
882
			--]]
883
		end
884
		Character2.Parent = workspace
885
		Debris:AddItem(Character2,5)
886
	
887
		return Character2,Torso2
888
	end))
889
end
890
function ApplyAoE(POSITION,RANGE,BRUTAL)
891
	local CHILDREN = workspace:GetDescendants()
892
	for index, CHILD in pairs(CHILDREN) do
893
		if CHILD.ClassName == "Model" and CHILD ~= Character then
894
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
895
			if HUM then
896
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
897
				if TORSO then
898
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
899
						if BRUTAL == true then
900
							Kill(CHILD)
901
						else
902
							CHILD:BreakJoints()
903
						end
904
					end
905
				end
906
			end
907
		end
908
	end
909
end
910
function BulletDetection(FROM,TO,BRUTAL)
911
	local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character)
912
	coroutine.resume(coroutine.create(function()
913
		if AIMHIT ~= nil then
914
			if AIMHIT.Parent ~= Character then
915
				if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
916
					if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then
917
						if BRUTAL == true then
918
							Kill(AIMHIT.Parent)
919
						else
920
							getbloody(AIMHIT,15)
921
							AIMHIT.Parent:BreakJoints()
922
							if AIMHIT.Name == "Head" then
923
								AIMHIT.Name = "HEADSHOT"
924
								AIMHIT:remove()
925
							end
926
						end
927
					else
928
						if BRUTAL == true then
929
							Kill(AIMHIT.Parent.Parent)
930
						else
931
							AIMHIT.Parent.Parent:BreakJoints()
932
						end
933
					end
934
				end
935
			end
936
		end
937
	end))
938
	SpawnTrail(FROM,AIMPOS)
939
	return AIMHIT,AIMPOS,NORMAL
940
end
941
942
function Kill(Char)
943
	local NewCharacter = IT("Model",Effects)
944
	NewCharacter.Name = "Ow im ded ;-;"
945
	for _, c in pairs(Char:GetDescendants()) do
946
		if c:IsA("BasePart") and c.Transparency == 0 then
947
			if c.Parent == Char then
948
				getbloody(c,5)
949
			end
950
			c:BreakJoints()
951
			c.Material = "Glass"
952
			c.Color = C3(0.5,0,0)
953
			c.CanCollide = true
954
			c.Transparency = 0.3
955
			if c:FindFirstChildOfClass("SpecialMesh") then
956
				c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
957
			end
958
			if c.Name == "Head" then
959
				c:ClearAllChildren()
960
				c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
961
			end
962
			if c.ClassName == "MeshPart" then
963
				c.TextureID = ""
964
			end
965
			if c:FindFirstChildOfClass("BodyPosition") then
966
				c:FindFirstChildOfClass("BodyPosition"):remove()
967
			end
968
			if c:FindFirstChildOfClass("ParticleEmitter") then
969
				c:FindFirstChildOfClass("ParticleEmitter"):remove()
970
			end
971
			c.Parent = NewCharacter
972
			c.Name = "DeadPart"
973
			c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
974
			c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
975
		end
976
	end
977
	Char:remove()
978
	Debris:AddItem(NewCharacter,5)
979
end
980
--//=================================\\
981
--||	     WEAPON CREATION
982
--\\=================================//
983
984
local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false)
985
PRT.Color = C3(0,0,0)
986
local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0))
987
CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0))
988
local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Scarf", VT(1,1,1),false)
989
PRT.Color = C3(0,0,0)
990
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0))
991
CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0))
992
for i = 1, 16 do
993
	local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/16.2, "Dark stone grey", "FaceGradient", VT(1.01,0.65,1.01),false)
994
	FACE.Color = C3(0,0,0)
995
	Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
996
	CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.45-(i-1)/25,0), CF(0, 0, 0))
997
end
998
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Institutional White", "Eye", VT(0.1,1,1)/2,false)
999
MakeForm(Eye,"Ball")
1000
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
1001
local LASTPART = Head
1002
for i = 1, 20 do
1003
	local MATH = (1-(i/25))
1004
	if LASTPART == Head then
1005
		local Horn = CreatePart(3, Character, "Neon", 0, 0, "White", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
1006
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0))
1007
		LASTPART = Horn
1008
		Horn.Color = C3((i*3-3)/255,0,0)
1009
	else
1010
		local Horn = CreatePart(3, Character, "Neon", 0, 0, "White", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
1011
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0))
1012
		LASTPART = Horn
1013
		Horn.Color = C3((i*3-3)/255,0,0)
1014
	end
1015
local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
1016
	CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
1017
end
1018
1019
local Handle = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,1.2,0.2),false)
1020
local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.3, 0))
1021
local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.8,0.2),false)
1022
MakeForm(Part,"Wedge")
1023
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0.2, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
1024
local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.6),false)
1025
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1026
local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
1027
MakeForm(Part,"Cyl")
1028
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1029
for i = 1, 8 do
1030
	local Piece = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
1031
	CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
1032
end
1033
local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
1034
MakeForm(Part,"Wedge")
1035
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
1036
local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.39,0.41,0.39),false)
1037
MakeForm(Part,"Cyl")
1038
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1039
local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
1040
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1041
local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.5),false)
1042
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.65) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1043
local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0,0.6),false)
1044
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, -0.2, -0.3))
1045
local RightBarrel = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.28,5,0.28),false)
1046
MakeForm(RightBarrel,"Cyl")
1047
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, RightBarrel, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -2.5, 0))
1048
local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.2,0.2),false)
1049
MakeForm(Part,"Wedge")
1050
CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, Part, CF(0, 2.415, 0.15) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
1051
local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false)
1052
MakeForm(RightHole,"Cyl")
1053
CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, RightHole, CF(0, 2.5, 0), CF(0, 0, 0))
1054
local Handle = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,1.2,0.2),false)
1055
local LeftArmGraps = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.3, 0))
1056
local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.8,0.2),false)
1057
MakeForm(Part,"Wedge")
1058
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0.2, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
1059
local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.6),false)
1060
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1061
local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
1062
MakeForm(Part,"Cyl")
1063
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1064
for i = 1, 8 do
1065
	local Piece = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
1066
	CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
1067
end
1068
local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
1069
MakeForm(Part,"Wedge")
1070
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
1071
local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.39,0.41,0.39),false)
1072
MakeForm(Part,"Cyl")
1073
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1074
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Part", VT(0.3,0.5,0.5),false)
1075
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1076
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Part", VT(0.3,0.4,0.5),false)
1077
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.65) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1078
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Part", VT(0.2,0,0.6),false)
1079
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, -0.2, -0.3))
1080
local LeftBarrel = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Part", VT(0.28,5,0.28),false)
1081
MakeForm(LeftBarrel,"Cyl")
1082
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, LeftBarrel, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -2.5, 0))
1083
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Part", VT(0,0.2,0.2),false)
1084
MakeForm(Part,"Wedge")
1085
CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, Part, CF(0, 2.415, 0.15) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
1086
local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Eye", VT(0.2,0,0.2),false)
1087
MakeForm(LeftHole,"Cyl")
1088
CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, LeftHole, CF(0, 2.5, 0), CF(0, 0, 0))
1089
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false)
1090
MakeForm(Eye,"Ball")
1091
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
1092
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false)
1093
MakeForm(Eye,"Ball")
1094
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
1095
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false)
1096
MakeForm(Eye,"Ball")
1097
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
1098
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false)
1099
MakeForm(Eye,"Ball")
1100
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
1101
local A = IT("Attachment",Torso)
1102
A.Position = VT(1,1.3,0)
1103
A.Orientation = VT(-0.098, -89.999, 0.227)
1104
local B = IT("Attachment",Torso)
1105
B.Position = VT(-1.3,-0.6,0)
1106
B.Orientation = VT(-88.911, -68.808, 158.782)
1107
local ChainLink = IT("Beam",Torso)
1108
ChainLink.Texture = "rbxassetid://73042633"
1109
ChainLink.Color = ColorSequence.new(C3(1,0,0))
1110
ChainLink.TextureSpeed = 1
1111
ChainLink.FaceCamera = true
1112
ChainLink.Width0 = 1
1113
ChainLink.Width1 = 1
1114
ChainLink.TextureLength = 3
1115
ChainLink.Attachment0 = A
1116
ChainLink.Attachment1 = B
1117
ChainLink.CurveSize0 = 1.6
1118
ChainLink.CurveSize1 = 1.6
1119
ChainLink.FaceCamera = true
1120
ChainLink.Transparency = NumberSequence.new(0)
1121
local ChainLink = IT("Beam",Torso)
1122
ChainLink.Texture = "rbxassetid://73042633"
1123
ChainLink.Color = ColorSequence.new(C3(1,0,0))
1124
ChainLink.TextureSpeed = 1
1125
ChainLink.FaceCamera = true
1126
ChainLink.Width0 = 1
1127
ChainLink.Width1 = 1
1128
ChainLink.TextureLength = 3
1129
ChainLink.Attachment0 = B
1130
ChainLink.Attachment1 = A
1131
ChainLink.CurveSize0 = 1.6
1132
ChainLink.CurveSize1 = 1.6
1133
ChainLink.FaceCamera = true
1134
ChainLink.Transparency = NumberSequence.new(0)
1135
local A = IT("Attachment",Torso)
1136
A.Position = VT(1.3,-0.85,0)
1137
A.Orientation = VT(-0.098, -89.999, 0.227)
1138
local B = IT("Attachment",Torso)
1139
B.Position = VT(-1,2,0)
1140
B.Orientation = VT(-88.911, -68.808, 158.782)
1141
local ChainLink = IT("Beam",Torso)
1142
ChainLink.Texture = "rbxassetid://73042633"
1143
ChainLink.Color = ColorSequence.new(C3(1,0,0))
1144
ChainLink.TextureSpeed = 1
1145
ChainLink.FaceCamera = true
1146
ChainLink.Width0 = 1
1147
ChainLink.Width1 = 1
1148
ChainLink.TextureLength = 3
1149
ChainLink.Attachment0 = A
1150
ChainLink.Attachment1 = B
1151
ChainLink.CurveSize0 = 1.3
1152
ChainLink.CurveSize1 = 1.3
1153
ChainLink.FaceCamera = true
1154
ChainLink.Transparency = NumberSequence.new(0)
1155
local ChainLink = IT("Beam",Torso)
1156
ChainLink.Texture = "rbxassetid://73042633"
1157
ChainLink.Color = ColorSequence.new(C3(1,0,0))
1158
ChainLink.TextureSpeed = 1
1159
ChainLink.FaceCamera = true
1160
ChainLink.Width0 = 1
1161
ChainLink.Width1 = 1
1162
ChainLink.TextureLength = 3
1163
ChainLink.Attachment0 = B
1164
ChainLink.Attachment1 = A
1165
ChainLink.CurveSize0 = 1.3
1166
ChainLink.CurveSize1 = 1.3
1167
ChainLink.FaceCamera = true
1168
ChainLink.Transparency = NumberSequence.new(0)
1169
1170
local A = IT("Attachment",RightBarrel)
1171
A.Position = VT(0,-2.5,0)
1172
local B = IT("Attachment",RightBarrel)
1173
B.Position = VT(0,2.5,0)
1174
local Trail = IT("Trail",RightBarrel)
1175
Trail.Attachment0 = A
1176
Trail.Attachment1 = B
1177
Trail.Lifetime = 0.2
1178
Trail.Color = ColorSequence.new(BRICKC"Really red".Color)
1179
Trail.Transparency = NumberSequence.new(0, 1)
1180
Trail.Enabled = false
1181
1182
local DUST = CreateParticles(RightArm,VT(0,0,0),5,2,"Smoke",false,false,5,0)
1183
DUST.ZOffset = 1
1184
RightArm.Transparency = 1
1185
local BasePart = CreatePart(3, Weapon, "Metal", 0, 0, "Really red", "Part", VT(1,2,1),false)
1186
CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1187
local Sphere = CreatePart(3, Weapon, "Metal", 0, 0, "Really red", "Part", VT(1.4,1.4,1.4),false)
1188
MakeForm(Sphere,"Ball")
1189
CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Sphere, CF(0.2,0.8,0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1190
local LaserPart = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0.3,0.3,0.1),false)
1191
MakeForm(LaserPart,"Ball")
1192
CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, LaserPart, CF(0,0,-0.65) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1193
local Bump = CreatePart(3, Weapon, "Metal", 0, 0, "Really red", "Part", VT(0.3,0.3,0.2),false)
1194
MakeForm(Bump,"Ball")
1195
CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Bump, CF(0,0,0.65) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1196
local BottomLaser = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0.4,0,0.4),false)
1197
MakeForm(BottomLaser,"Cyl")
1198
CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, BottomLaser, CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1199
local Part1 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false)
1200
CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part1, CF(0,-0.76,-0.26) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1201
local Part2 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false)
1202
CreateWeldOrSnapOrMotor("Weld", BasePart, Part1, Part2, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, -0.25, 0))
1203
local Part3 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false)
1204
CreateWeldOrSnapOrMotor("Weld", BasePart, Part1, Part3, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0, -0.26, 0))
1205
local Part4 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.56,0.5),false)
1206
CreateWeldOrSnapOrMotor("Weld", BasePart, Part2, Part4, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, -0.26, 0))
1207
local Part5 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.56,0.5),false)
1208
CreateWeldOrSnapOrMotor("Weld", BasePart, Part4, Part5, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-125)), CF(0, -0.26, 0))
1209
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.25,0.5),false)
1210
CreateWeldOrSnapOrMotor("Weld", BasePart, Part4, Part, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, -0.26/2, 0))
1211
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.3,0.5),false)
1212
CreateWeldOrSnapOrMotor("Weld", BasePart, Part2, Part, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-65)), CF(0, -0.31/2, 0))
1213
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(1.4,0,1.4),false)
1214
MakeForm(Part,"Cyl")
1215
CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Part, CF(0.035,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1216
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(1.4,0,1.4),false)
1217
MakeForm(Part,"Cyl")
1218
CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Part, CF(0,-0.035,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
1219
local Sphere = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.3,1.6,0.7),false)
1220
MakeForm(Sphere,"Ball")
1221
CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Sphere, CF(0.45,0.5,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1222
1223
for _, c in pairs(Weapon:GetChildren()) do
1224
	if c.ClassName == "Part" then
1225
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1226
	end
1227
end
1228
1229
local SKILLTEXTCOLOR = C3(1,0,0)
1230
local SKILLFONT = "SciFi"
1231
local SKILLTEXTSIZE = 5
1232
1233
Weapon.Parent = Character
1234
1235
Humanoid.Died:connect(function()
1236
	ATTACK = true
1237
end)
1238
1239
local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
1240
local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
1241
local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.82, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
1242
local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.78, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
1243
local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.74, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
1244
local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame")
1245
1246
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 1")
1247
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 2")
1248
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 3")
1249
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 4")
1250
local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[E]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 5")
1251
local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[X]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 6")
1252
1253
--//=================================\\
1254
--||	     DAMAGE FUNCTIONS
1255
--\\=================================//
1256
1257
function StatLabel(CFRAME, TEXT, COLOR)
1258
	local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
1259
	STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
1260
	local BODYGYRO = IT("BodyGyro", STATPART)
1261
	game:GetService("Debris"):AddItem(STATPART ,5)
1262
	local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
1263
	BILLBOARDGUI.Adornee = STATPART
1264
	BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
1265
	BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
1266
	BILLBOARDGUI.AlwaysOnTop = false
1267
	local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
1268
	TEXTLABEL.BackgroundTransparency = 1
1269
	TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
1270
	TEXTLABEL.Text = TEXT
1271
	TEXTLABEL.Font = SKILLFONT
1272
	TEXTLABEL.FontSize="Size42"
1273
	TEXTLABEL.TextColor3 = COLOR
1274
	TEXTLABEL.TextStrokeTransparency = 0
1275
	TEXTLABEL.TextScaled = true
1276
	TEXTLABEL.TextWrapped = true
1277
	coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
1278
		for i = 1, 50 do
1279
			Swait()
1280
			STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
1281
			TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
1282
			TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
1283
		end
1284
		THEPART.Parent = nil
1285
	end),STATPART, TEXTLABEL)
1286
end
1287
1288
--//=================================\\
1289
--||	ATTACK FUNCTIONS AND STUFF
1290
--\\=================================//
1291
1292
function Warp()
1293
	local HITFLOOR,HITPOS = Raycast(Mouse.Hit.p+VT(0,1,0), (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 100, Character)
1294
	if HITFLOOR then
1295
		CharacterFade(C3(0.5,0,0),50)
1296
		HITPOS = HITPOS + VT(0,3.5,0)
1297
		local POS = RootPart.Position
1298
		RootPart.CFrame = CF(HITPOS,CF(POS,HITPOS)*CF(0,0,-100000).p)
1299
		CreateSound(289556450,Torso,2,MRANDOM(8,13)/10,false)
1300
	end
1301
end
1302
1303
function Dash()
1304
	ATTACK = true
1305
	Rooted = false
1306
	local TARGET = nil
1307
	local TORS = nil
1308
	local GYRO = IT("BodyGyro",RootPart)
1309
	GYRO.D = 175
1310
	GYRO.P = 20000
1311
	GYRO.MaxTorque = VT(0,40000,0)
1312
	GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
1313
	local RANGE = 5
1314
	CreateSound(541909867, Torso, 7, 1, false)
1315
	WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(12,0.5,12), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1316
	for i=0, 1, 0.1 / Animation_Speed do
1317
		Swait()
1318
		RootPart.CFrame = RootPart.CFrame * CF(0,0,-2)
1319
		GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
1320
		local CHILDREN = workspace:GetDescendants()
1321
		for index, CHILD in pairs(CHILDREN) do
1322
			if CHILD.ClassName == "Model" and CHILD ~= Character then
1323
				local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1324
				if HUM then
1325
					local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1326
					if TORSO then
1327
						if (TORSO.Position - LeftHole.Position).Magnitude <= RANGE + TORSO.Size.Magnitude/5 then
1328
							RANGE = (TORSO.Position - LeftHole.Position).Magnitude
1329
							TARGET = HUM
1330
							TORS = TORSO
1331
						end
1332
					end
1333
				end
1334
			end
1335
		end
1336
		if TARGET then
1337
			break
1338
		end
1339
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-80)), 1 / Animation_Speed)
1340
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(80)), 1 / Animation_Speed)
1341
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1342
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1343
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1344
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1345
	end
1346
	GYRO:remove()
1347
	if TORS and TARGET then
1348
		Rooted = true
1349
		local BODYPOSITION = IT("BodyPosition", TORS)
1350
		BODYPOSITION.P = 2000
1351
		BODYPOSITION.D = 100
1352
		BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
1353
		for i=0, 1, 0.1 / Animation_Speed do
1354
			Swait()
1355
			TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0))
1356
			BODYPOSITION.Position = TORS.Position
1357
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed)
1358
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed)
1359
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1360
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1361
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1362
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1363
		end
1364
		for i=0, 0.4, 0.1 / Animation_Speed do
1365
			Swait()
1366
			TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0))
1367
			BODYPOSITION.Position = TORS.Position
1368
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed)
1369
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed)
1370
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(145), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1371
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1372
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1373
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1374
		end	
1375
		local LOOP = 0
1376
		local LOOP2 = 0
1377
		for i=0, 5, 0.1 / Animation_Speed do
1378
			Swait()
1379
			LOOP = LOOP + 1
1380
			TORS.Anchored = true
1381
			LOOP2 = LOOP2 + 1
1382
			if LOOP2 >= 5 then
1383
				WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = RightHole.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})
1384
				WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1385
				CreateSound(145080998, RightHole, 7, 1, false)
1386
				SpawnTrail(RightHole.Position,RightHole.CFrame*CF(0,500,0).p)
1387
				LOOP2 = 0
1388
				getbloody(TORS,1)
1389
			end
1390
			TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0))
1391
			BODYPOSITION.Position = TORS.Position
1392
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed)
1393
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed)
1394
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(145 + 2 * SIN(LOOP / 12)), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1395
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1396
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1397
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1398
		end	
1399
		BODYPOSITION:remove()
1400
		if TORS then
1401
			TORS.Anchored = false
1402
			Kill(TORS.Parent)
1403
		end
1404
	end
1405
	ATTACK = false
1406
	Rooted = false
1407
end
1408
function Deathbound()
1409
	CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 1, false)
1410
	ATTACK = true
1411
	Rooted = true
1412
	for i=0, 1, 0.1 / Animation_Speed do
1413
		Swait()
1414
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1415
		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)
1416
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1417
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1418
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1419
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1420
	end
1421
	local DONE = false
1422
	local GATE = nil
1423
	local GATESPIN = true
1424
	coroutine.resume(coroutine.create(function()
1425
		repeat
1426
			Swait()
1427
			if GATE ~= nil then
1428
				GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0))
1429
			end
1430
		until GATESPIN == false
1431
	end))
1432
	coroutine.resume(coroutine.create(function()
1433
		repeat
1434
			Swait()
1435
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.2 - 0.25 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
1436
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1437
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1438
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1439
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1440
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1441
		until DONE == true
1442
		Swait(50)
1443
		for i = 1, 35 do
1444
			Swait(4)
1445
			local FIRED = false
1446
			local CHILDREN = workspace:GetDescendants()
1447
			for index, CHILD in pairs(CHILDREN) do
1448
				if CHILD.ClassName == "Model" and CHILD ~= Character then
1449
					local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1450
					if HUM then
1451
						local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1452
						if TORSO then
1453
							if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
1454
								local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
1455
								local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
1456
								WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 145080998, SoundPitch = 1.5, SoundVolume = 6})
1457
								WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1458
								SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)		
1459
								Kill(CHILD)
1460
								FIRED = true
1461
								break
1462
							end
1463
						end
1464
					end
1465
				end
1466
			end
1467
			if FIRED == false then
1468
				local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
1469
				WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 145080998, SoundPitch = 1.5, SoundVolume = 6})
1470
				WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1471
				SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
1472
				local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
1473
				if HITBOD ~= nil then
1474
					if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
1475
						Kill(HITBOD.Parent)
1476
					end
1477
				end
1478
			end
1479
		end
1480
		for i = 1, 45 do
1481
			Swait()
1482
			GATE.Size = GATE.Size - VT(3,0,3)
1483
		end
1484
		GATESPIN = false
1485
		GATE:remove()
1486
	end))
1487
	Swait(15)
1488
	local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character)
1489
	GATE = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Gate", VT(0,0,0))
1490
	local DECAL = IT("Decal",GATE)
1491
	DECAL.Texture = "http://www.roblox.com/asset/?id=1526406096"
1492
	DECAL.Face = "Top"
1493
	GATE.CFrame = CF(HITPOS)
1494
	CreateSound(160772554, GATE, 7, 1.3, false)
1495
	for i = 1, 45 do
1496
		Swait()
1497
		GATE.Size = GATE.Size + VT(3,0,3)
1498
	end
1499
	CreateSound(145080998, RightHole, 7, 1, false)
1500
	CreateSound(145080998, LeftHole, 7, 1, false)
1501
	WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1502
	WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1503
	ATTACK = false
1504
	Rooted = false
1505
	DONE = true
1506
end
1507
function Morning_Star()
1508
	ATTACK = true
1509
	Rooted = true
1510
	CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 1, false)
1511
	for i=0, 1, 0.1 / Animation_Speed do
1512
		Swait()
1513
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1514
		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)
1515
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1516
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1517
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1518
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1519
	end	
1520
	coroutine.resume(coroutine.create(function()
1521
		local POS = Mouse.Hit.p
1522
		local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Strike", VT(0,2000,0))
1523
		MakeForm(RAY,"Cyl")
1524
		local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Strike", VT(0,0,0))
1525
		MakeForm(SPHERE,"Ball")
1526
		local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Strike", VT(0,0,0))
1527
		MakeForm(SHIELD,"Ball")
1528
		SHIELD.CFrame = CF(POS)
1529
		RAY.CFrame = CF(POS)
1530
		SPHERE.CFrame = CF(POS)
1531
		CreateSound(440145570, SPHERE, 10, 0.8, false)
1532
		CreateSound(415700134, SPHERE, 10, 0.8, false)
1533
		for i = 1, 200 do
1534
			Swait()
1535
			WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1536
			RAY.Size = RAY.Size + VT(0.05,0,0.05)
1537
			SPHERE.Size = SPHERE.Size + VT(2,2,2)
1538
			SHIELD.Size = SPHERE.Size + VT(3,3,3)
1539
			ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true)
1540
		end	
1541
		for i = 1, 45 do
1542
			Swait()
1543
			RAY.Transparency = RAY.Transparency + 1/45
1544
			SPHERE.Transparency = RAY.Transparency 
1545
			SHIELD.Transparency = SPHERE.Transparency + 1/45
1546
		end
1547
		RAY:remove()
1548
		SHIELD:remove()
1549
		SPHERE:remove()
1550
	end))
1551
	for i=0, 1, 0.1 / Animation_Speed do
1552
		Swait()
1553
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
1554
		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)
1555
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1556
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1557
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1558
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1559
	end
1560
	ATTACK = false
1561
	Rooted = false
1562
end
1563
1564
function Taunt()
1565
	ATTACK = true
1566
	Rooted = true
1567
	local TAUNT = CreateSound(159882303,Torso,10,1,false)
1568
	coroutine.resume(coroutine.create(function()
1569
		repeat
1570
			Swait()
1571
			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)
1572
			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)
1573
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.75, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1574
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.25, -0.5) * ANGLES(RAD(90), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1575
			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)
1576
			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)
1577
		until ATTACK == false
1578
	end))
1579
	repeat wait() until TAUNT.Playing == false
1580
	ATTACK = false
1581
	Rooted = false
1582
end
1583
1584
1585
--//=================================\\
1586
--||	  ASSIGN THINGS TO KEYS
1587
--\\=================================//
1588
1589
function MouseDown(Mouse)
1590
	if ATTACK == false then
1591
	end
1592
end
1593
1594
function MouseUp(Mouse)
1595
HOLD = false
1596
end
1597
1598
function KeyDown(Key)
1599
	KEYHOLD = true
1600
	if Key == "z" and ATTACK == false then
1601
		Warp()
1602
	end
1603
1604
	if Key == "b" and ATTACK == false then
1605
		Dash()
1606
	end
1607
1608
	if Key == "c" and ATTACK == false then
1609
		LimbRip()
1610
	end
1611
1612
	if Key == "v" and ATTACK == false then
1613
		 Deathbound()
1614
	end
1615
1616
	if Key == "e" and ATTACK == false then
1617
		Cleave()
1618
	end
1619
1620
	if Key == "x" and ATTACK == false then
1621
		Morning_Star()
1622
	end
1623
1624
	if Key == "t" and ATTACK == false then
1625
		Taunt()
1626
	end
1627
end
1628
1629
function KeyUp(Key)
1630
	KEYHOLD = false
1631
end
1632
1633
	Mouse.Button1Down:connect(function(NEWKEY)
1634
		MouseDown(NEWKEY)
1635
	end)
1636
	Mouse.Button1Up:connect(function(NEWKEY)
1637
		MouseUp(NEWKEY)
1638
	end)
1639
	Mouse.KeyDown:connect(function(NEWKEY)
1640
		KeyDown(NEWKEY)
1641
	end)
1642
	Mouse.KeyUp:connect(function(NEWKEY)
1643
		KeyUp(NEWKEY)
1644
	end)
1645
1646
--//=================================\\
1647
--\\=================================//
1648
1649
function AntiTimeStop()
1650
	for _, c in pairs(Character:GetChildren()) do
1651
		if c:IsA("BasePart") then
1652
			c.Anchored = false
1653
		end
1654
	end
1655
	for _, c in pairs(Weapon:GetChildren()) do
1656
		if c:IsA("BasePart") then
1657
			c.Anchored = false
1658
		end
1659
	end
1660
end
1661
1662
--//=================================\\
1663
--||	WRAP THE WHOLE SCRIPT UP
1664
--\\=================================//
1665
1666
Humanoid.Changed:connect(function(Jump)
1667
	if Jump == "Jump" and (Disable_Jump == true) then
1668
		Humanoid.Jump = false
1669
	end
1670
end)
1671
1672
local sick = IT("Sound")
1673
1674
while true do
1675
	Swait()
1676
	script.Parent = WEAPONGUI
1677
	ANIMATE.Parent = nil
1678
	for _,v in next, Humanoid:GetPlayingAnimationTracks() do
1679
	    v:Stop();
1680
	end
1681
	SINE = SINE + CHANGE
1682
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1683
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1684
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
1685
	local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
1686
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
1687
		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)
1688
		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)
1689
		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(90 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1690
		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(90 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1691
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
1692
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1693
		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)
1694
		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)
1695
		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)
1696
	end
1697
	if HITFLOOR == nil then
1698
		ANIM = "Midair"
1699
		if ATTACK == false then
1700
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1701
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
1702
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1703
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1704
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.2, -0.6) * ANGLES(RAD(15), RAD(70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
1705
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.2, -0.6) * ANGLES(RAD(15), RAD(-70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
1706
		end
1707
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
1708
		ANIM = "Idle"
1709
		if ATTACK == false then
1710
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1711
			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)
1712
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.35 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(10 - 15 * COS(SINE / 12))) * ANGLES(RAD(0), RAD(-15), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1713
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.35 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(-10 + 15 * COS(SINE / 12))) * ANGLES(RAD(0), RAD(15), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1714
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
1715
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
1716
		end
1717
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
1718
		ANIM = "Walk"
1719
		if ATTACK == false then
1720
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(10 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
1721
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-10 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
1722
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * ANGLES(RAD(0), RAD(-15), RAD(0)) * RIGHTSHOULDERC0, 0.8 / Animation_Speed)
1723
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * ANGLES(RAD(0), RAD(15), RAD(0)) * LEFTSHOULDERC0, 0.8 / Animation_Speed)
1724
			RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
1725
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
1726
		end
1727
	end
1728
	Humanoid.MaxHealth = 10e10
1729
	Humanoid.Health = 10e10
1730
	sick.SoundId = "rbxassetid://1696854181"
1731
	sick.Looped = true
1732
	sick.Pitch = 1
1733
	sick.Volume = 2
1734
	sick.Playing = true
1735
	sick.Parent = Effects
1736
	AntiTimeStop()
1737
	if Rooted == false then
1738
		Disable_Jump = false
1739
		Humanoid.WalkSpeed = Speed
1740
	elseif Rooted == true then
1741
		Disable_Jump = true
1742
		Humanoid.WalkSpeed = 0
1743
	end
1744
	Humanoid.Name = "Killbot"
1745
end
1746
1747
--//=================================\\
1748
--\\=================================//
1749
1750
--//====================================================\\--
1751
--||			  		 END OF SCRIPT
1752
--\\====================================================//--