View difference between Paste ID: LAgwSsHu and mG5zfRB8
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
3
do
4
	print("FE Compatibility code by Mokiros")
5
	script.Parent = Player.Character
6
7
	--RemoteEvent for communicating
8
	local Event = Instance.new("RemoteEvent")
9
	Event.Name = "UserInput_Event"
10
11
	--Fake event to make stuff like Mouse.KeyDown work
12
	local function fakeEvent()
13
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
14
		t.connect = t.Connect
15
		return t
16
	end
17
18
	--Creating fake input objects with fake variables
19
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
20
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
21
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
22
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
23
	end}
24
	--Merged 2 functions into one by checking amount of arguments
25
	CAS.UnbindAction = CAS.BindAction
26
27
	--This function will trigger the events that have been :Connect()'ed
28
	local function te(self,ev,...)
29
		local t = m[ev]
30
		if t and t._fakeEvent and t.Function then
31
			t.Function(...)
32
		end
33
	end
34
	m.TrigEvent = te
35
	UIS.TrigEvent = te
36
37
	Event.OnServerEvent:Connect(function(plr,io)
38
	    if plr~=Player then return end
39
		if io.isMouse then
40
			m.Target = io.Target
41
			m.Hit = io.Hit
42
		else
43
			local b = io.UserInputState == Enum.UserInputState.Begin
44
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
45
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
46
			end
47
			for _,t in pairs(CAS.Actions) do
48
				for _,k in pairs(t.Keys) do
49
					if k==io.KeyCode then
50
						t.Function(t.Name,io.UserInputState,io)
51
					end
52
				end
53
			end
54
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
55
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
56
	    end
57
	end)
58
	Event.Parent = NLS([==[
59
	local Player = owner
60
	local Event = script:WaitForChild("UserInput_Event")
61
62
	local UIS = game:GetService("UserInputService")
63
	local input = function(io,a)
64
		if a then return end
65
		--Since InputObject is a client-side instance, we create and pass table instead
66
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
67
	end
68
	UIS.InputBegan:Connect(input)
69
	UIS.InputEnded:Connect(input)
70
71
	local Mouse = Player:GetMouse()
72
	local h,t
73
	--Give the server mouse data 30 times every second, but only if the values changed
74
	--If player is not moving their mouse, client won't fire events
75
	while wait(1/30) do
76
		if h~=Mouse.Hit or t~=Mouse.Target then
77
			h,t=Mouse.Hit,Mouse.Target
78
			Event:FireServer({isMouse=true,Target=t,Hit=h})
79
		end
80
	end]==],Player.Character)
81
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
82
end
83
--//====================================================\\--
84
--||			   CREATED BY SHACKLUSTER
85
--\\====================================================//--
86
87
wait(0.2)
88
89
Player = owner
90
PlayerGui = Player.PlayerGui
91
Cam = workspace.CurrentCamera
92
Backpack = Player.Backpack
93
Character = Player.Character
94
Humanoid = Character.Humanoid
95
RootPart = Character["HumanoidRootPart"]
96
Torso = Character["Torso"]
97
Head = Character["Head"]
98
RightArm = Character["Right Arm"]
99
LeftArm = Character["Left Arm"]
100
RightLeg = Character["Right Leg"]
101
LeftLeg = Character["Left Leg"]
102
RootJoint = RootPart["RootJoint"]
103
Neck = Torso["Neck"]
104
RightShoulder = Torso["Right Shoulder"]
105
LeftShoulder = Torso["Left Shoulder"]
106
RightHip = Torso["Right Hip"]
107
LeftHip = Torso["Left Hip"]
108
IT = Instance.new
109
CF = CFrame.new
110
VT = Vector3.new
111
RAD = math.rad
112
C3 = Color3.new
113
UD2 = UDim2.new
114
BRICKC = BrickColor.new
115
ANGLES = CFrame.Angles
116
EULER = CFrame.fromEulerAnglesXYZ
117
COS = math.cos
118
ACOS = math.acos
119
SIN = math.sin
120
ASIN = math.asin
121
ABS = math.abs
122
MRANDOM = math.random
123
FLOOR = math.floor
124
local sick = Instance.new("Sound",RootPart)
125
--//=================================\\
126
--|| 	      USEFUL VALUES
127
--\\=================================//
128
129
Animation_Speed = 3
130
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
131
local Speed = 45
132
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
133
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
134
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
135
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
136
local DAMAGEMULTIPLIER = 1
137
local ANIM = "Idle"
138
local ATTACK = false
139
local EQUIPPED = false
140
local HOLD = false
141
local COMBO = 1
142
local Rooted = false
143
local SINE = 0
144
local KEYHOLD = false
145
local CHANGE = 2 / Animation_Speed
146
local WALKINGANIM = false
147
local VALUE1 = false
148
local VALUE2 = false
149
local ROBLOXIDLEANIMATION = IT("Animation")
150
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
151
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
152
--ROBLOXIDLEANIMATION.Parent = Humanoid
153
local WEAPONGUI = IT("ScreenGui", PlayerGui)
154
WEAPONGUI.Name = "Weapon GUI"
155
local Weapon = IT("Model")
156
Weapon.Name = "Adds"
157
local Effects = IT("Folder", Weapon)
158
Effects.Name = "Effects"
159
local ANIMATOR = Humanoid.Animator
160
local ANIMATE = Character.Animate
161
local UNANCHOR = true
162
local HITFLOOR = nil
163
local HITPOS = nil
164-
local FireSound = "904051531"
164+
local FireSound = "147722227"
165
local AMMO = 16
166
local SONG = nil
167
local READYTODOUBLE = false
168
local DOUBLEJUMP = false
169
local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
170
Humanoid.DisplayDistanceType = "None"
171
local naeeym2 = IT("BillboardGui",Character)
172
naeeym2.AlwaysOnTop = true
173
naeeym2.Size = UDim2.new(5,35,2,15)
174
naeeym2.StudsOffset = Vector3.new(0,2,0)
175
naeeym2.MaxDistance = 75
176
naeeym2.Adornee = Character.Head
177
naeeym2.Name = "Name"
178
local tecks2 = IT("TextLabel",naeeym2)
179
tecks2.BackgroundTransparency = 1
180
tecks2.TextScaled = true
181
tecks2.BorderSizePixel = 0
182
tecks2.Text = "Sammy The Purple Heart Guardian Of Abyssal"
183
tecks2.Font = "Arcade"
184
tecks2.TextSize = 30
185
tecks2.TextStrokeTransparency = 0
186
tecks2.TextColor3 = C3(0,0,0)
187
tecks2.TextStrokeColor3 = C3(0/0, 0/0, 0/0)
188
tecks2.Size = UDim2.new(1,0,0.5,0)
189
tecks2.Parent = naeeym2
190
--//=================================\\
191
--\\=================================//
192
193
194
--//=================================\\
195
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
196
--\\=================================//
197
198
ArtificialHB = Instance.new("BindableEvent", script)
199
ArtificialHB.Name = "ArtificialHB"
200
201
script:WaitForChild("ArtificialHB")
202
203
frame = Frame_Speed
204
tf = 0
205
allowframeloss = false
206
tossremainder = false
207
lastframe = tick()
208
script.ArtificialHB:Fire()
209
210
game:GetService("RunService").Heartbeat:connect(function(s, p)
211
	tf = tf + s
212
	if tf >= frame then
213
		if allowframeloss then
214
			script.ArtificialHB:Fire()
215
			lastframe = tick()
216
		else
217
			for i = 1, math.floor(tf / frame) do
218
				script.ArtificialHB:Fire()
219-
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
219+
220
		lastframe = tick()
221
		end
222
		if tossremainder then
223
			tf = 0
224
		else
225
			tf = tf - frame * math.floor(tf / frame)
226
		end
227
	end
228
end)
229
230
--//=================================\\
231
--\\=================================//
232
233
--//=================================\\
234
--|| 	      SOME FUNCTIONS
235
--\\=================================//
236
function R_RANDOM(CFRAME,DIST)
237
	return CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-DIST)
238
end
239
240
function CharacterFade(COLOR,TIMER,MOVEDIRECTION,PARENT)
241
	coroutine.resume(coroutine.create(function()
242
		local FADE = IT("Model",Effects)
243
		if PARENT ~= nil then
244
			FADE.Parent = PARENT
245
		end
246
		FADE.Name = "FadingEffect"
247
		for _, c in pairs(Character:GetChildren()) do
248
			if c.ClassName == "Part" then
249
				c.CanCollide = false
250
				local FADER = CreatePart(3, FADE, "Neon", 0, 0.75, BRICKC("Pearl"), c.Name, c.Size, true)
251
				FADER.CFrame = c.CFrame
252
				FADER.Color = COLOR
253
				if FADER.Name == "Head" then
254
					Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FADER
255
				elseif FADER.Name == "HumanoidRootPart" then
256
					FADE.PrimaryPart = FADER
257
					FADER.Transparency = 1
258
				end
259
			end
260
		end
261
		local TRANS = 0.25/TIMER
262
		local DIST = nil
263
		if MOVEDIRECTION ~= nil then
264
			DIST = (FADE.PrimaryPart.Position - MOVEDIRECTION).Magnitude
265
		end
266
		for i = 1, TIMER do
267
			Swait()
268
			for _, c in pairs(FADE:GetChildren()) do
269
				if c.ClassName == "Part" then
270
					c.Transparency = c.Transparency + TRANS
271
				end
272
			end
273
			if MOVEDIRECTION ~= nil then
274
				local ORI = FADE.PrimaryPart.Orientation
275
				FADE:SetPrimaryPartCFrame(CF(CF(FADE.PrimaryPart.Position,MOVEDIRECTION)*CF(0,0,-DIST/TIMER).p) * ANGLES(RAD(ORI.X), RAD(ORI.Y), RAD(ORI.Z)))
276
			end
277
		end
278
		FADE:remove()
279
	end))
280
end
281
282
283
function PositiveAngle(NUMBER)
284
	if NUMBER >= 0 then
285
		NUMBER = 0
286
	end
287
	return NUMBER
288
end
289
290
function NegativeAngle(NUMBER)
291
	if NUMBER <= 0 then
292
		NUMBER = 0
293
	end
294
	return NUMBER
295
end
296
297
function Swait(NUMBER)
298
	if NUMBER == 0 or NUMBER == nil then
299
		ArtificialHB.Event:wait()
300
	else
301
		for i = 1, NUMBER do
302
			ArtificialHB.Event:wait()
303
		end
304
	end
305
end
306
307
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
308
	local NEWMESH = IT(MESH)
309
	if MESH == "SpecialMesh" then
310
		NEWMESH.MeshType = MESHTYPE
311
		if MESHID ~= "nil" and MESHID ~= "" then
312
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
313
		end
314
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
315
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
316
		end
317
	end
318
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
319
	NEWMESH.Scale = SCALE
320
	NEWMESH.Parent = PARENT
321
	return NEWMESH
322
end
323
324
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
325
	local NEWPART = IT("Part")
326
	NEWPART.formFactor = FORMFACTOR
327
	NEWPART.Reflectance = REFLECTANCE
328
	NEWPART.Transparency = TRANSPARENCY
329
	NEWPART.CanCollide = false
330
	NEWPART.Locked = true
331
	NEWPART.Anchored = true
332
	if ANCHOR == false then
333
		NEWPART.Anchored = false
334
	end
335
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
336
	NEWPART.Name = NAME
337
	NEWPART.Size = SIZE
338
	NEWPART.Position = Torso.Position
339
	NEWPART.Material = MATERIAL
340
	NEWPART:BreakJoints()
341
	NEWPART.Parent = PARENT
342
	return NEWPART
343
end
344
345
	local function weldBetween(a, b)
346
	    local weldd = Instance.new("ManualWeld")
347
	    weldd.Part0 = a
348
	    weldd.Part1 = b
349
	    weldd.C0 = CFrame.new()
350
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
351
	    weldd.Parent = a
352
	    return weldd
353
	end
354
355
356
function QuaternionFromCFrame(cf)
357
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
358
	local trace = m00 + m11 + m22
359
	if trace > 0 then 
360
		local s = math.sqrt(1 + trace)
361
		local recip = 0.5 / s
362
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
363
	else
364
		local i = 0
365
		if m11 > m00 then
366
			i = 1
367
		end
368
		if m22 > (i == 0 and m00 or m11) then
369
			i = 2
370
		end
371
		if i == 0 then
372
			local s = math.sqrt(m00 - m11 - m22 + 1)
373
			local recip = 0.5 / s
374
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
375
		elseif i == 1 then
376
			local s = math.sqrt(m11 - m22 - m00 + 1)
377
			local recip = 0.5 / s
378
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
379
		elseif i == 2 then
380
			local s = math.sqrt(m22 - m00 - m11 + 1)
381
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
382
		end
383
	end
384
end
385
 
386
function QuaternionToCFrame(px, py, pz, x, y, z, w)
387
	local xs, ys, zs = x + x, y + y, z + z
388
	local wx, wy, wz = w * xs, w * ys, w * zs
389
	local xx = x * xs
390
	local xy = x * ys
391
	local xz = x * zs
392
	local yy = y * ys
393
	local yz = y * zs
394
	local zz = z * zs
395
	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))
396
end
397
 
398
function QuaternionSlerp(a, b, t)
399
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
400
	local startInterp, finishInterp;
401
	if cosTheta >= 0.0001 then
402
		if (1 - cosTheta) > 0.0001 then
403
			local theta = ACOS(cosTheta)
404
			local invSinTheta = 1 / SIN(theta)
405
			startInterp = SIN((1 - t) * theta) * invSinTheta
406
			finishInterp = SIN(t * theta) * invSinTheta
407
		else
408
			startInterp = 1 - t
409
			finishInterp = t
410
		end
411
	else
412
		if (1 + cosTheta) > 0.0001 then
413
			local theta = ACOS(-cosTheta)
414
			local invSinTheta = 1 / SIN(theta)
415
			startInterp = SIN((t - 1) * theta) * invSinTheta
416
			finishInterp = SIN(t * theta) * invSinTheta
417
		else
418
			startInterp = t - 1
419
			finishInterp = t
420
		end
421
	end
422
	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
423
end
424
425
function Clerp(a, b, t)
426
	local qa = {QuaternionFromCFrame(a)}
427
	local qb = {QuaternionFromCFrame(b)}
428
	local ax, ay, az = a.x, a.y, a.z
429
	local bx, by, bz = b.x, b.y, b.z
430
	local _t = 1 - t
431
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
432
end
433
434
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
435
	local frame = IT("Frame")
436
	frame.BackgroundTransparency = TRANSPARENCY
437
	frame.BorderSizePixel = BORDERSIZEPIXEL
438
	frame.Position = POSITION
439
	frame.Size = SIZE
440
	frame.BackgroundColor3 = COLOR
441
	frame.BorderColor3 = BORDERCOLOR
442
	frame.Name = NAME
443
	frame.Parent = PARENT
444
	return frame
445
end
446
447
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
448
	local label = IT("TextLabel")
449
	label.BackgroundTransparency = 1
450
	label.Size = UD2(1, 0, 1, 0)
451
	label.Position = UD2(0, 0, 0, 0)
452
	label.TextColor3 = TEXTCOLOR
453
	label.TextStrokeTransparency = STROKETRANSPARENCY
454
	label.TextTransparency = TRANSPARENCY
455
	label.FontSize = TEXTFONTSIZE
456
	label.Font = TEXTFONT
457
	label.BorderSizePixel = BORDERSIZEPIXEL
458
	label.TextScaled = false
459
	label.Text = TEXT
460
	label.Name = NAME
461
	label.Parent = PARENT
462
	return label
463
end
464
465
function NoOutlines(PART)
466
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
467
end
468
469
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
470
	local NEWWELD = IT(TYPE)
471
	NEWWELD.Part0 = PART0
472
	NEWWELD.Part1 = PART1
473
	NEWWELD.C0 = C0
474
	NEWWELD.C1 = C1
475
	NEWWELD.Parent = PARENT
476
	return NEWWELD
477
end
478
479
local S = IT("Sound")
480
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
481
	local NEWSOUND = nil
482
	coroutine.resume(coroutine.create(function()
483
		NEWSOUND = S:Clone()
484
		NEWSOUND.Parent = PARENT
485
		NEWSOUND.Volume = VOLUME
486
		NEWSOUND.Pitch = PITCH
487
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
488
		NEWSOUND:play()
489
		if DOESLOOP == true then
490
			NEWSOUND.Looped = true
491
		else
492
			repeat Swait() until NEWSOUND.Playing == false
493
			NEWSOUND:remove()
494
		end
495
	end))
496
	return NEWSOUND
497
end
498
499
function CFrameFromTopBack(at, top, back)
500
	local right = top:Cross(back)
501
	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)
502
end
503
function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
504
    PLAYMAINANIM = false
505
    if WhichPose == "Cast1" then
506
        for i=0, Time, 0.1 / Animation_Speed do
507
            Swait()
508
            if Magic == true then
509
                WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
510
            end
511
            if Gyro ~= nil and Gyro ~= false then
512
                Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
513
            end
514
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed)
515
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed)
516
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
517
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
518
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
519
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
520
        end
521
    elseif WhichPose == "Cast2" then
522
        for i=0, Time, 0.1 / Animation_Speed do
523
            Swait()
524
            if Magic == true then
525
                WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
526
                WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
527
            end
528
            if Gyro ~= nil and Gyro ~= false then
529
                Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
530
            end
531
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
532
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
533
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
534
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
535
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
536
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
537
        end
538
    elseif WhichPose == "RightArmUp" then
539
        for i=0, Time, 0.1 / Animation_Speed do
540
            Swait()
541
            if Magic == true then
542
                WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
543
            end
544
            if Gyro ~= nil and Gyro ~= false then
545
                Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
546
            end
547
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed)
548
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed)
549
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
550
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
551
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
552
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
553
        end
554
    elseif WhichPose == "Taunt" then
555
        for i=0, Time, 0.1 / Animation_Speed do
556
            Swait()
557
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
558
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
559
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
560
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
561
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
562
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
563
        end
564
        HATWELD.Part0 = RightArm
565
        HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
566
        CreateSound(221057812,Torso,10,1,false)
567
        for i=0, Time*2, 0.1 / Animation_Speed do
568
            Swait()
569
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
570
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
571
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
572
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
573
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
574
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
575
        end
576
        for i=0, Time, 0.1 / Animation_Speed do
577
            Swait()
578
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
579
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
580
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
581
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
582
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
583
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
584
            HATWELD.C0 = Clerp(HATWELD.C0, CF(-0.5,-1.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(35), RAD(0), RAD(35)), Speed / Animation_Speed)
585
        end
586
        HATWELD.Part0 = Head
587
        HATWELD.C0 = CF(0,0.35,0)
588
    elseif WhichPose == "Prepare key" then
589
        for i=0, Time, 0.1 / Animation_Speed do
590
            Swait()
591
            if Gyro ~= nil and Gyro ~= false then
592
                Gyro.cframe = CF(RootPart.Position,Tors.Position)
593
            end
594
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed)
595
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed)
596
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
597
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
598
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
599
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
600
        end
601
    elseif WhichPose == "Turn key" then
602
        for i=0, Time, 0.1 / Animation_Speed do
603
            Swait()
604
            if Gyro ~= nil and Gyro ~= false then
605
                Gyro.cframe = CF(RootPart.Position,Tors.Position)
606
            end
607
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed)
608
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed)
609
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
610
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
611
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
612
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
613
        end
614
    end
615-
local Decal = IT("Decal")
615+
    PLAYMAINANIM = true
616-
function SpawnBulletHole(POSITION)
616+
617-
	local O1 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Bullet hole", VT(0.2,0,0.2))
617+
618-
	local decal = Decal:Clone()
618+
619-
	decal.Parent = O1
619+
620-
	decal.Face = "Top"
620+
621-
	decal.Texture = "http://www.roblox.com/asset/?id=130624105"
621+
622-
	local decal2 = Decal:Clone()
622+
623-
	decal2.Parent = O1
623+
624-
	decal2.Face = "Bottom"
624+
625-
	decal2.Texture = "http://www.roblox.com/asset/?id=130624105"
625+
626-
	O1.CFrame = POSITION*ANGLES(RAD(0),RAD(MRANDOM(-180,180)),RAD(0))
626+
627-
	Debris:AddItem(O1,5)
627+
628
	local ROTATION2 = (Table.RotationY or 0)
629
	local ROTATION3 = (Table.RotationZ or 0)
630
	local MATERIAL = (Table.Material or "Neon")
631
	local COLOR = (Table.Color or C3(1,1,1))
632
	local TIME = (Table.Time or 45)
633
	local SOUNDID = (Table.SoundID or nil)
634
	local SOUNDPITCH = (Table.SoundPitch or nil)
635
	local SOUNDVOLUME = (Table.SoundVolume or nil)
636
	coroutine.resume(coroutine.create(function()
637
		local PLAYSSOUND = false
638
		local SOUND = nil
639
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
640
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
641
			PLAYSSOUND = true
642
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
643
		end
644
		EFFECT.Color = COLOR
645
		local MSH = nil
646
		if TYPE == "Sphere" then
647
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
648
		elseif TYPE == "Block" then
649
			MSH = IT("BlockMesh",EFFECT)
650
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
651
		elseif TYPE == "Wave" then
652
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
653
		elseif TYPE == "Ring" then
654
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
655
		elseif TYPE == "Slash" then
656
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
657
		elseif TYPE == "Round Slash" then
658
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
659
		elseif TYPE == "Swirl" then
660
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
661
		elseif TYPE == "Skull" then
662
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
663
		elseif TYPE == "Crystal" then
664
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
665
		end
666
		if MSH ~= nil then
667
			local MOVESPEED = nil
668
			if MOVEDIRECTION ~= nil then
669
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
670
			end
671
			local GROWTH = SIZE - ENDSIZE
672
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
673
			if TYPE == "Block" then
674
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
675
			else
676
				EFFECT.CFrame = CFRAME
677
			end
678
			for LOOP = 1, TIME do
679
				Swait()
680
				MSH.Scale = MSH.Scale - GROWTH/TIME
681
				if TYPE == "Wave" then
682
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
683
				end
684
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
685
				if TYPE == "Block" then
686
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
687
				else
688
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
689
				end
690
				if MOVEDIRECTION ~= nil then
691
					local ORI = EFFECT.Orientation
692
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
693
					EFFECT.Orientation = ORI
694-
				SpawnBulletHole(CF(AIMPOS,AIMPOS+NORMAL)*ANGLES(RAD(90),RAD(0),RAD(0)))
694+
695
			end
696
			if PLAYSSOUND == false then
697
				EFFECT:remove()
698
			else
699
				repeat Swait() until SOUND.Playing == false
700
				EFFECT:remove()
701
			end
702
		else
703
			if PLAYSSOUND == false then
704
				EFFECT:remove()
705-
local Hair = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Hair", VT(1,1,1),false)
705+
706
				repeat Swait() until SOUND.Playing == false
707
				EFFECT:remove()
708
			end
709-
local Hair = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Hair", VT(1,1,1),false)
709+
710-
local HairWeld2 = CreateWeldOrSnapOrMotor("Weld", Hair, Head, Hair, CF(0,0.15,0.1) * ANGLES(RAD(-20), RAD(0), RAD(70)), CF(0, 0, 0))
710+
711
end
712
713
function SpawnTrail(FROM,TO)
714-
for i = 1, 6 do
714+
715-
	local Hair = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Hair", VT(1,1,1),false)
715+
716-
	local HairWeld = CreateWeldOrSnapOrMotor("Weld", Hair, Head, Hair, CF(0,0.15,0.1) * ANGLES(RAD(-20), RAD(-125+(15*i)), RAD(70)), CF(0, i/(3+i/8), 0) * ANGLES(RAD(0), RAD(90),RAD(0)))
716+
717-
	CreateMesh("SpecialMesh", Hair, "FileMesh", "12212520", "", VT(1,2,1)*(1.02-(i/10)), VT(0,0,0))
717+
718-
	Hair.Color = C3(0,0,0)
718+
719
	coroutine.resume(coroutine.create(function()
720
		for i = 1, 5 do
721-
local Gun1 = CreatePart(3, Weapon, "Marble", 0, 0, "Mid gray", "Right Gun", VT(2.05, 1.05, 0.2),false)
721+
722
			TRAIL.Transparency = TRAIL.Transparency + 0.1
723
		end
724
		TRAIL:remove()
725
	end))
726
end
727
728
function MakeForm(PART,TYPE)
729-
local Eye = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Eye", VT(0.3,0.5,0.3)/2.5,false)
729+
730-
MakeForm(Eye,"Ball")
730+
731-
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.05,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.575) * ANGLES(RAD(0), RAD(0), RAD(45)))
731+
732
		local MSH = IT("SpecialMesh",PART)
733-
	local top = Instance.new("Shirt")
733+
734-
	top.ShirtTemplate = "rbxassetid://764933308"
734+
735
		local MSH = IT("SpecialMesh",PART)
736
		MSH.MeshType = "Wedge"
737
	end
738-
	bottom.PantsTemplate = "rbxassetid://238651628"
738+
739
740
Debris = game:GetService("Debris")
741
742-
local Radio = CreatePart(3, Weapon, "Marble", 0, 0, "Pearl", "RAD-io", VT(1.01,0.2,1.01),false)
742+
743
    return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
744
end
745
746
function CastProperRay(StartPos, EndPos, Distance, Ignore)
747
	local DIRECTION = CF(StartPos,EndPos).lookVector
748
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
749
end
750
751
function turnto(position)
752
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
753
end
754
755
function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
756
	if FLOOR ~= nil then
757
		coroutine.resume(coroutine.create(function()
758
			local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
759
			PART.CFrame = CF(POSITION)
760
			for i = 1, 45 do
761
				local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
762
				RingPiece.Material = FLOOR.Material
763
				RingPiece.Color = FLOOR.Color
764
				RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
765
				Debris:AddItem(RingPiece,SWAIT)
766
			end
767
			PART:remove()
768
		end))
769
	end
770-
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Nexus Barrage", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 2")
770+
771-
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Heartstroke", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 3")
771+
772-
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[X] Blind Star", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 4")
772+
773
	if FLOOR ~= nil then
774
		for i = 1, AMOUNT do
775
			local DEBREE = CreatePart(3, Effects, "Neon", 0, 0, "Peal", "Debree", BLOCKSIZE, false)
776
			DEBREE.Material = FLOOR.Material
777
			DEBREE.Color = FLOOR.Color
778
			DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
779
			if DOES360 == true then
780
				DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
781
			else
782
				DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),STRENGTH,MRANDOM(-STRENGTH,STRENGTH))
783
			end
784
			coroutine.resume(coroutine.create(function()
785
				Swait(15)
786
				DEBREE.Parent = workspace
787
				DEBREE.CanCollide = true
788
				Debris:AddItem(DEBREE,SWAIT)
789
			end))
790
		end
791
	end
792
end
793
794
795
796
local asd = Instance.new("ParticleEmitter")
797
asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
798
asd.LightEmission = .1
799
asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
800
aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 2)})
801
bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
802
asd.Transparency = bbb
803
asd.Size = aaa
804
asd.ZOffset = .9
805
asd.Acceleration = Vector3.new(0, -15, 0)
806
asd.LockedToPart = false
807
asd.EmissionDirection = "Back"
808
asd.Lifetime = NumberRange.new(1, 2)
809
asd.Rotation = NumberRange.new(-100, 100)
810
asd.RotSpeed = NumberRange.new(-100, 100)
811
asd.Speed = NumberRange.new(10)
812
asd.Enabled = false
813
asd.VelocitySpread = 999
814
815-
function ApplyDamage(Humanoid,Damage,TorsoPart)
815+
816-
	if Humanoid ~= nil then
816+
817-
		Damage = Damage * DAMAGEMULTIPLIER
817+
818-
		if Humanoid.Health ~= 0 then
818+
819-
			local CritChance = MRANDOM(1,100)
819+
820-
			if Damage > Humanoid.Health then
820+
821-
				Damage = math.ceil(Humanoid.Health)
821+
822-
				if Damage == 0 then
822+
823-
					Damage = 0.1
823+
824
	CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
825
	CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
826-
			CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], TorsoPart, 10, (math.random(8,12)/10),false)
826+
827
	local prtcl = asd:Clone()
828-
			StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(1,1,1))
828+
829
	prtcl:Emit(amount*10)
830
end
831
832
function BulletDetection(FROM,TO)
833
	local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character)
834
	if AIMHIT ~= nil then
835
		if AIMHIT.Parent ~= Character and AIMHIT.Parent ~= Weapon and AIMHIT.Parent ~= Weapon then
836
			if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
837
				if AIMHIT.Name ~= "Head" and AIMHIT.Parent.ClassName ~= "Accessory" then
838
					ApplyDamage(AIMHIT.Parent:FindFirstChildOfClass("Humanoid"),MRANDOM(15,25),AIMHIT)
839
				elseif AIMHIT.Name == "Head" or AIMHIT.Parent.ClassName == "Accessory" then
840
					if AIMHIT.Parent.ClassName == "Accessory" then
841
						if AIMHIT:FindFirstChild("HatAttachment") or AIMHIT:FindFirstChild("FaceFrontAttachment") or AIMHIT:FindFirstChild("HairAttachment") then
842
							AIMHIT.Parent.Parent:BreakJoints()
843
							if AIMHIT.Parent.Parent:FindFirstChild("Head") then
844
								getbloody(AIMHIT.Parent.Parent.Head,15)
845
								AIMHIT.Parent.Parent.Head:remove()
846
								StatLabel(AIMHIT.CFrame * CF(0, 0 + (AIMHIT.Size.z - 1), 0), "Headshot!", C3(1,0,0))
847
							end
848
						else
849
							ApplyDamage(AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid"),MRANDOM(15,25),AIMHIT)
850
						end
851
					elseif AIMHIT.Name == "Head" then
852
						getbloody(AIMHIT,15)
853
						AIMHIT.Parent:BreakJoints()
854
						AIMHIT:remove()
855
						StatLabel(AIMHIT.CFrame * CF(0, 0 + (AIMHIT.Size.z - 1), 0), "Headshot!", C3(1,0,0))
856
					end
857
				end
858
			else
859
				CreateFlyingDebree(AIMHIT,CF(AIMPOS),7,VT(0.1,0.1,0.1),5,35,true)
860
			end
861
		end
862
	end
863
	return AIMHIT,AIMPOS,NORMAL
864
end
865
function Needle()
866
    ATTACK = true
867
    Rooted = true
868
    local GYRO = IT("BodyGyro",RootPart)
869
    GYRO.D = 2
870
    GYRO.P = 2000
871
    GYRO.MaxTorque = VT(0,4000000,0)
872
    local NEEDGYRO = true
873-
	local STOP = false
873+
    coroutine.resume(coroutine.create(function()
874-
	repeat
874+
        repeat
875
            Swait()
876-
			if COMBO == 1 then
876+
            GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
877-
				COMBO = 2
877+
        until NEEDGYRO == false
878-
				for i=0, 0.3, 0.1 / Animation_Speed do
878+
        GYRO:Remove()
879-
					Swait()
879+
    end))
880-
					turnto(Mouse.Hit.p)
880+
    for i=0, 0.3, 0.1 / Animation_Speed do
881-
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(86)), 2 / Animation_Speed)
881+
        Swait()
882-
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-86)), 2 / Animation_Speed)
882+
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
883-
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(86)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
883+
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
884-
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
884+
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
885-
					if HITFLOOR == true then
885+
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
886-
						RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(25), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
886+
        RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
887-
						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)), 2 / Animation_Speed)
887+
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, 0) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
888-
					elseif HITFLOOR == false then
888+
    end
889-
						RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed)
889+
    for i=0, 1, 0.1 / Animation_Speed do
890-
						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)
890+
        Swait()
891
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
892
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(15), RAD(-45)), 1 / Animation_Speed)
893-
				AMMO = AMMO - 1
893+
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
894-
				local AIMHIT,AIMPOS,NORMAL = BulletDetection(Gun1.Position,Mouse.Hit.p)
894+
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
895-
				SpawnTrail(Gun1.CFrame*CF(1.25,0.2,0).p,AIMPOS)
895+
        RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
896-
				CreateSound(FireSound, Gun1, 5, 1, false)
896+
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, 0) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
897-
				for i=0, 0.1, 0.1 / Animation_Speed do
897+
    end
898-
					Swait()
898+
    local HIT,POS = CastProperRay(RightArm.CFrame*CF(0,-1,0).p,Mouse.Hit.p,300,Character)
899-
					turnto(AIMPOS)
899+
    WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(5,1,5), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 90655239, SoundPitch = 1, SoundVolume = 2})
900-
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(86)), 2 / Animation_Speed)
900+
    NEEDGYRO = false
901-
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-86)), 2 / Animation_Speed)
901+
    if HIT then
902-
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(86)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
902+
        local NEEDLE = IT("Model",Effects)
903-
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
903+
        local BASE = CreatePart(3, NEEDLE, "Glass", 0, 0.5, "Pearl", "Part", VT(0.3,0.6,0.3), false)
904-
					if HITFLOOR == true then
904+
        MakeForm(BASE,"Cyl")
905-
						RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(25), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
905+
        BASE.CFrame = CF(POS,RightArm.CFrame*CF(0,-1,0).p) * ANGLES(RAD(90), RAD(0), RAD(0))*CF(0,-0.35,0)
906-
						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)), 2 / Animation_Speed)
906+
        weldBetween(BASE,HIT)
907-
					elseif HITFLOOR == false then
907+
        local FLUID = CreatePart(3, NEEDLE, "Neon", 0, 0, "Royal purple", "Part", VT(0.28,0.58,0.28), false)
908-
						RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed)
908+
        MakeForm(FLUID,"Cyl")
909-
						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)
909+
        FLUID.CFrame = BASE.CFrame
910
        weldBetween(BASE,FLUID)
911
        local PART = CreatePart(3, NEEDLE, "Metal", 0, 0, "Pearl", "Part", VT(0,0.2,0), false)
912-
			elseif COMBO == 2 then
912+
        PART.CFrame = BASE.CFrame*CF(0,0.4,0)
913-
				COMBO = 1
913+
        weldBetween(BASE,PART)
914-
				for i=0, 0.3, 0.1 / Animation_Speed do
914+
        local PART = CreatePart(3, NEEDLE, "Metal", 0, 0, "Pearl", "Part", VT(0.1,0.1,0.1), false)
915-
					Swait()
915+
        PART.CFrame = BASE.CFrame*CF(0,-0.35,0)
916-
					turnto(Mouse.Hit.p)
916+
        weldBetween(BASE,PART)
917-
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 2 / Animation_Speed)
917+
        local PART = CreatePart(3, NEEDLE, "Metal", 0, 0, "Pearl", "Part", VT(0.2,0.1,0.2), false)
918-
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 2 / Animation_Speed)
918+
        PART.CFrame = BASE.CFrame*CF(0,-0.4,0)
919-
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
919+
        weldBetween(BASE,PART)
920-
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
920+
        Debris:AddItem(NEEDLE,7)
921-
					if HITFLOOR == true then
921+
        if HIT.Parent:FindFirstChildOfClass("Humanoid") then
922-
						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)), 2 / Animation_Speed)
922+
            local HUMAN = HIT.Parent:FindFirstChildOfClass("Humanoid")
923-
						LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
923+
            coroutine.resume(coroutine.create(function()
924-
					elseif HITFLOOR == false then
924+
                for i = 1, 500 do
925-
						RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed)
925+
                    HUMAN.Health = HUMAN.Health - MRANDOM(1,6)/5
926-
						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)
926+
                    if HUMAN.Health == 0 then
927
                        break
928
                    end
929-
				AMMO = AMMO - 1	
929+
                    Swait(2)
930-
				local AIMHIT,AIMPOS,NORMAL = BulletDetection(Gun2.Position,Mouse.Hit.p)
930+
                end
931-
				CreateSound(FireSound, Gun2, 5, 1, false)
931+
                if HUMAN.Health == 0 then
932-
				SpawnTrail(Gun2.CFrame*CF(1.25,0.2,0).p,AIMPOS)
932+
                    local CHILD = HUMAN.Parent
933-
				for i=0, 0.1, 0.1 / Animation_Speed do
933+
                    if CHILD:FindFirstChild("Torso") then
934-
					Swait()
934+
                        CHILD:FindFirstChild("Torso").CFrame = CHILD:FindFirstChild("Torso").CFrame * ANGLES(RAD(2), RAD(0), RAD(0))
935-
					turnto(AIMPOS)
935+
                        Ragdoll(CHILD,Torso,true)
936-
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 2 / Animation_Speed)
936+
                    elseif CHILD:FindFirstChild("UpperTorso") then
937-
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 2 / Animation_Speed)
937+
                        R15Ragdoll(CHILD,true)
938-
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
938+
                    end
939-
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
939+
                end
940-
					if HITFLOOR == true then
940+
            end))
941-
						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)), 2 / Animation_Speed)
941+
        end
942-
						LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
942+
    end
943-
					elseif HITFLOOR == false then
943+
    for i=0, 1, 0.1 / Animation_Speed do
944-
						RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed)
944+
        Swait()
945-
						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)
945+
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
946
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(15), RAD(-45)), 1 / Animation_Speed)
947
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
948
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
949
        RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
950
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, 0) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
951-
			STOP = true
951+
    end
952
    ATTACK = false
953-
	until KEYHOLD == false or STOP == true
953+
    Rooted = false
954
end
955
956
function Chatter(Text,Timer)
957
	local chat = coroutine.wrap(function()
958-
function NEXUS_BARRAGE()
958+
		if Character:FindFirstChild("SpeechBoard")~= nil then
959
			Character:FindFirstChild("SpeechBoard"):destroy()
960-
	Rooted = true
960+
961-
	local BULLETS = {}
961+
		local naeeym2 = IT("BillboardGui",Character)
962-
	for FIRE = 1, 3 do
962+
		naeeym2.Size = UD2(0,100,0,40)
963
		naeeym2.StudsOffset = Vector3.new(0,2,0)
964
		naeeym2.Adornee = Character.Head
965
		naeeym2.Name = "SpeechBoard"
966-
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed)
966+
		naeeym2.AlwaysOnTop = true
967-
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(55+15*FIRE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
967+
		local tecks2 = IT("TextLabel",naeeym2)
968-
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-55-15*FIRE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
968+
		tecks2.BackgroundTransparency = 1
969-
			if HITFLOOR then
969+
		tecks2.BorderSizePixel = 0
970-
				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)), 2 / Animation_Speed)
970+
		tecks2.Text = ""
971-
				LeftHip.C0 = Clerp(LeftHip.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)), 2 / Animation_Speed)
971+
		tecks2.Font = "Legacy"
972-
			elseif HITFLOOR == nil then
972+
		tecks2.TextSize = 15
973-
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed)
973+
		tecks2.TextStrokeTransparency = 0
974-
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed)
974+
		tecks2.TextColor3 = Color3.new(1,1,1)
975
		tecks2.TextStrokeColor3 = Color3.new(0,0,0)
976
		tecks2.Size = UDim2.new(1,0,0.5,0)
977-
		CreateSound(FireSound, Gun1, 5, 1, false)
977+
		for i = 1,string.len(Text),1 do
978-
		CreateSound(FireSound, Gun2, 5, 1, false)
978+
			CreateSound(418252437, Head, 3, MRANDOM(8,12)/15, false)
979-
		local BULLET = CreatePart(3, Effects, "Metal", 0, 0, "Mid gray", "Bullet", VT(0.3,0,0))
979+
			tecks2.Text = string.sub(Text,1,i)
980-
		BULLET.CFrame = Gun1.CFrame*CF(3,0.2,0)
980+
			wait(Timer)
981-
		SpawnTrail(Gun1.CFrame*CF(1.25,0.2,0).p,BULLET.Position)
981+
982-
		table.insert(BULLETS,BULLET)
982+
		wait(1)
983-
		local BULLET = CreatePart(3, Effects, "Metal", 0, 0, "Mid gray", "Bullet", VT(0.3,0,0))
983+
		naeeym2:Destroy()
984-
		BULLET.CFrame = Gun2.CFrame*CF(3,0.2,0)
984+
985-
		SpawnTrail(Gun2.CFrame*CF(1.25,0.2,0).p,BULLET.Position)
985+
	chat()
986-
		table.insert(BULLETS,BULLET)
986+
987-
		AMMO = AMMO - 2
987+
988-
		for i=0, 0.1, 0.1 / Animation_Speed do
988+
--||         RAGDOLL STUFF
989
--\\=================================//
990
 
991-
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed)
991+
function recurse(root,callback,i)
992-
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(35*FIRE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
992+
    i= i or 0
993-
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-35*FIRE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
993+
    for _,v in pairs(root:GetChildren()) do
994-
			if HITFLOOR then
994+
        i = i + 1
995-
				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)), 2 / Animation_Speed)
995+
        callback(i,v)
996-
				LeftHip.C0 = Clerp(LeftHip.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)), 2 / Animation_Speed)
996+
       
997-
			elseif HITFLOOR == nil then
997+
        if #v:GetChildren() > 0 then
998-
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed)
998+
            i = recurse(v,callback,i)
999-
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed)
999+
        end
1000
    end
1001
   
1002
    return i
1003
end
1004
 
1005
function ragdollJoint(character, part0, part1, attachmentName, className, properties)
1006-
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
1006+
    attachmentName = attachmentName.."RigAttachment"
1007
    local constraint = Instance.new(className.."Constraint")
1008-
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1008+
    constraint.Attachment0 = part0:FindFirstChild(attachmentName)
1009-
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1009+
    constraint.Attachment1 = part1:FindFirstChild(attachmentName)
1010
    constraint.Name = "RagdollConstraint"..part1.Name
1011
   
1012
    for _,propertyData in next,properties or {} do
1013
        constraint[propertyData[1]] = propertyData[2]
1014
    end
1015
   
1016
    constraint.Parent = character
1017
end
1018
 
1019-
		for BULLET = 1, #BULLETS do
1019+
function getAttachment0(character, attachmentName)
1020-
			if BULLETS[BULLET] ~= nil then
1020+
    for _,child in next,character:GetChildren() do
1021-
				Swait(5)
1021+
        local attachment = child:FindFirstChild(attachmentName)
1022-
				local FIRE = BULLETS[BULLET]
1022+
        if attachment then
1023-
				local AIMHIT,AIMPOS,NORMAL = BulletDetection(FIRE.Position,Mouse.Hit.p)
1023+
            return attachment
1024-
				SpawnTrail(FIRE.Position,AIMPOS)
1024+
        end
1025-
				FIRE:remove()
1025+
    end
1026
end
1027
 
1028
function ArtificialHitbox(Part)
1029
    local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false)
1030
    HITBOX.CanCollide = true
1031-
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
1031+
    HITBOX.CFrame = Part.CFrame
1032
    weldBetween(Part,HITBOX)
1033-
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.2) * ANGLES(RAD(90), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1033+
1034-
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(90), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1034+
1035
function R15Ragdoll(character,KeepArms)
1036
    character:BreakJoints()
1037
    coroutine.resume(coroutine.create(function()
1038
        recurse(character, function(_,v)
1039
            if v:IsA("Attachment") then
1040
                v.Axis = Vector3.new(0, 1, 0)
1041
                v.SecondaryAxis = Vector3.new(0, 0, 1)
1042
                v.Rotation = Vector3.new(0, 0, 0)
1043
            end
1044
        end)
1045
        for _,child in next,character:GetChildren() do
1046
            if child:IsA("Accoutrement") then
1047-
function HEARTSTROKE()
1047+
                for _,part in next,child:GetChildren() do
1048
                    if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
1049
                        local attachment1 = part:FindFirstChildOfClass("Attachment")
1050-
	CreateSound(1112042117, Torso, 5, 1, false)
1050+
                        local attachment0 = getAttachment0(character,attachment1.Name)
1051-
	for i = 1, 50 do
1051+
                        if attachment0 and attachment1 then
1052-
		local DASHTHROUGH = Raycast(RootPart.Position, RootPart.CFrame.lookVector, 4, Character)
1052+
                            local constraint = Instance.new("HingeConstraint")
1053-
		RootPart.CFrame = RootPart.CFrame*CF(0,0,-2)
1053+
                            constraint.Attachment0 = attachment0
1054-
		if DASHTHROUGH ~= nil then
1054+
                            constraint.Attachment1 = attachment1
1055-
			if DASHTHROUGH.Parent:FindFirstChildOfClass("Humanoid") then
1055+
                            constraint.LimitsEnabled = true
1056-
				local HUM = DASHTHROUGH.Parent:FindFirstChildOfClass("Humanoid")
1056+
                            constraint.UpperAngle = 0
1057-
				local TORSO = DASHTHROUGH.Parent:FindFirstChild("Torso") or DASHTHROUGH.Parent:FindFirstChild("UpperTorso") 
1057+
                            constraint.LowerAngle = 0
1058-
				if TORSO ~= nil and DASHTHROUGH.Parent:FindFirstChildOfClass("Humanoid").Health > 0 then
1058+
                            constraint.Parent = character
1059-
					Rooted = true
1059+
                        end
1060-
					local SOUND = CreateSound("147758746", TORSO, 10, 1,false)
1060+
                        ArtificialHitbox(part)
1061-
					RootPart.CFrame = RootPart.CFrame*CF(0,0,-12)
1061+
                    elseif part.Name == "HumanoidRootPart" then
1062-
					RootPart.CFrame = CF(RootPart.Position,TORSO.Position)*ANGLES(RAD(0),RAD(180),RAD(0))
1062+
                        part:remove()
1063-
					for i=0, 0.5, 0.1 / Animation_Speed do
1063+
                    end
1064-
						Swait()
1064+
                end
1065-
						TORSO.Anchored = true
1065+
            end
1066-
						RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 3 / Animation_Speed)
1066+
        end
1067-
						Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed)
1067+
       
1068-
						RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, 0.5) * ANGLES(RAD(-35), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
1068+
        ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
1069-
						LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, 0.5) * ANGLES(RAD(-40), RAD(0), RAD(15)) * LEFTSHOULDERC0, 3 / Animation_Speed)
1069+
            {"LimitsEnabled",true};
1070-
						RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -1) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 3 / Animation_Speed)
1070+
            {"UpperAngle",5};
1071-
						LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.3, -1) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed)
1071+
        })
1072
        if character:FindFirstChild("Head") then
1073-
					TORSO.Anchored = false
1073+
            ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
1074-
					TORSO.Parent:BreakJoints()
1074+
                {"LimitsEnabled",true};
1075-
					if TORSO.Parent:FindFirstChild("Head") then
1075+
                {"UpperAngle",15};
1076-
						getbloody(TORSO.Parent:FindFirstChild("Head"),15)
1076+
            })
1077-
						SpawnTrail(Gun1.CFrame*CF(1.25,0.2,0).p,TORSO.Parent:FindFirstChild("Head").Position)
1077+
        end
1078-
						TORSO.Parent:FindFirstChild("Head"):remove()
1078+
       
1079-
						CreateSound(FireSound, Gun1, 5, 1, false)
1079+
        local handProperties = {
1080-
						AMMO = AMMO - 1
1080+
            {"LimitsEnabled", true};
1081
            {"UpperAngle",0};
1082-
					SOUND:remove()
1082+
            {"LowerAngle",0};
1083-
					SpawnTrail(Gun2.CFrame*CF(1.25,0.2,0).p,TORSO.Position)
1083+
        }
1084-
					CreateSound(FireSound, Gun2, 5, 1, false)
1084+
        ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
1085-
					StatLabel(TORSO.CFrame * CF(0, 0 + (TORSO.Size.z - 1), 0), "Heartstruck!", C3(1,0,0))
1085+
        ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
1086-
					AMMO = AMMO - 1
1086+
       
1087-
					for i=0, 0.1, 0.1 / Animation_Speed do
1087+
        local shinProperties = {
1088-
						Swait()
1088+
            {"LimitsEnabled", true};
1089-
						RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 3 / Animation_Speed)
1089+
            {"UpperAngle", 0};
1090-
						Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed)
1090+
            {"LowerAngle", -75};
1091-
						RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, 0.5) * ANGLES(RAD(-35), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
1091+
        }
1092-
						LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, 0.5) * ANGLES(RAD(-40), RAD(0), RAD(15)) * LEFTSHOULDERC0, 3 / Animation_Speed)
1092+
        ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
1093-
						RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -1) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 3 / Animation_Speed)
1093+
        ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
1094-
						LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.3, -1) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed)
1094+
       
1095
        local footProperties = {
1096
            {"LimitsEnabled", true};
1097
            {"UpperAngle", 15};
1098-
			break
1098+
            {"LowerAngle", -45};
1099
        }
1100
        ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
1101
        ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
1102
        if KeepArms == true then
1103
            ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
1104
            ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
1105-
function BLIND_STAR()
1105+
            ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
1106
            ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
1107-
	Rooted = true
1107+
        end
1108
        ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
1109
        ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
1110-
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1110+
        Debris:AddItem(character,5)
1111-
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1111+
    end))
1112-
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1112+
1113-
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-180)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1113+
1114
function Ragdoll(Character2,CharTorso,KeepArms)
1115
    coroutine.resume(coroutine.create(function()
1116
        Character2:BreakJoints()
1117
        local hum = Character2:findFirstChild("Humanoid")
1118
        hum:remove()
1119
        local function Scan(ch)
1120
            local e
1121
            for e = 1,#ch do
1122-
	for i = 1, 8 do
1122+
                Scan(ch[e]:GetChildren())
1123
                if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
1124
                    ch[e]:remove()
1125-
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1125+
                end
1126-
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1126+
            end
1127-
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.15, 0) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1127+
        end
1128-
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-180)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * LEFTSHOULDERC0, 0.7 / Animation_Speed)
1128+
        local NEWHUM = IT("Humanoid")
1129-
			if HITFLOOR then
1129+
        NEWHUM.Name = "Corpse"
1130-
				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)), 2 / Animation_Speed)
1130+
        NEWHUM.Health = 0
1131-
				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)), 2 / Animation_Speed)
1131+
        NEWHUM.MaxHealth = 0
1132-
			elseif HITFLOOR == nil then
1132+
        NEWHUM.PlatformStand = true
1133-
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed)
1133+
        NEWHUM.Parent = Character2
1134-
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed)
1134+
        NEWHUM.DisplayDistanceType = "None"
1135
   
1136
        local ch = Character2:GetChildren()
1137-
		AMMO = AMMO - 1
1137+
        local i
1138-
		SpawnTrail(Gun1.CFrame*CF(1.25,0.2,0).p,Gun1.CFrame*CF(2000,0.2,0).p)
1138+
        for i = 1,#ch do
1139-
		CreateSound(FireSound, Gun1, 5, 1, false)
1139+
            if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
1140
                ch[i]:remove()
1141
            end
1142-
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1142+
        end
1143-
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1143+
   
1144-
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.7 / Animation_Speed)
1144+
        local Torso2 = Character2.Torso
1145-
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, 0) * ANGLES(RAD(0), RAD(0), RAD(-180)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1145+
        local movevector = Vector3.new()
1146-
			if HITFLOOR then
1146+
   
1147-
				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)), 2 / Animation_Speed)
1147+
        if Torso2 then
1148-
				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)), 2 / Animation_Speed)
1148+
            movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
1149-
			elseif HITFLOOR == nil then
1149+
            local Head = Character2:FindFirstChild("Head")
1150-
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed)
1150+
            if Head then
1151-
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed)
1151+
                local Neck = Instance.new("Weld")
1152
                Neck.Name = "Neck"
1153
                Neck.Part0 = Torso2
1154-
		AMMO = AMMO - 1
1154+
                Neck.Part1 = Head
1155-
		SpawnTrail(Gun2.CFrame*CF(1.25,0.2,0).p,Gun2.CFrame*CF(2000,0.2,0).p)
1155+
                Neck.C0 = CFrame.new(0, 1.5, 0)
1156-
		CreateSound(FireSound, Gun2, 5, 1, false)
1156+
                Neck.C1 = CFrame.new()
1157
                Neck.Parent = Torso2
1158-
	local AIMPOS = Mouse.Hit.p
1158+
   
1159-
	local AIM,AIMPOS = CastProperRay(AIMPOS+VT(0,1,0),AIMPOS,10000,Character)
1159+
            end
1160
            local Limb = Character2:FindFirstChild("Right Arm")
1161-
		local RAYS = {}
1161+
            if Limb and KeepArms == true then
1162-
		for i = 1, 4 do
1162+
   
1163-
			local RAY = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Ray", VT(15,2000,15))
1163+
                Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
1164-
			MakeForm(RAY,"Cyl")
1164+
                local Joint = Instance.new("Glue")
1165-
			RAY.Mesh.Scale = VT(1,1.1,1)
1165+
                Joint.Name = "RightShoulder"
1166-
			table.insert(RAYS,RAY)
1166+
                Joint.Part0 = Torso2
1167
                Joint.Part1 = Limb
1168-
		CreateSound(348663022, Effects, 2, 1.2, false)
1168+
                Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1169-
		for i = 1, 100 do
1169+
                Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1170
                Joint.Parent = Torso2
1171-
			for e = 1, #RAYS do
1171+
   
1172-
				if RAYS[e] ~= nil then
1172+
                local B = Instance.new("Part")
1173-
					local RAY = RAYS[e]
1173+
                B.TopSurface = 0
1174-
					RAY.CFrame = CF(AIMPOS+VT(0,1000,0))*ANGLES(RAD(0),RAD(90*e),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(50-(i/2)))*CF(0,-1000,0)
1174+
                B.BottomSurface = 0
1175-
					RAY.Transparency = RAY.Transparency - 0.01
1175+
                B.formFactor = "Symmetric"
1176
                B.Size = Vector3.new(1, 1, 1)
1177
                B.Transparency = 1
1178
                B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1179-
		for i = 1, 20 do
1179+
                B.Parent = Character2
1180
                local W = Instance.new("Weld")
1181-
			for e = 1, #RAYS do
1181+
                W.Part0 = Limb
1182-
				if RAYS[e] ~= nil then
1182+
                W.Part1 = B
1183-
					local RAY = RAYS[e]
1183+
                W.C0 = CFrame.new(0, -0.5, 0)
1184-
					RAY.Mesh.Scale = RAY.Mesh.Scale - VT(1/20,0,1/20)
1184+
                W.Parent = Limb
1185
   
1186
            end
1187
            local Limb = Character2:FindFirstChild("Left Arm")
1188-
		wait(0.3)
1188+
            if Limb and KeepArms == true then
1189-
		for i = 1, 16 do
1189+
   
1190-
			local POS = CF(AIMPOS)*ANGLES(RAD(0),RAD(0,360),RAD(0))*CF(0,0,MRANDOM(0,5)).p
1190+
                Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
1191-
			SpawnTrail(POS+VT(0,200,0),POS)
1191+
                local Joint = Instance.new("Glue")
1192
                Joint.Name = "LeftShoulder"
1193-
		for i = 1, 4 do
1193+
                Joint.Part0 = Torso2
1194-
			CreateDebreeRing(AIM,AIMPOS-VT(0,3,0),5*i,VT(5,5,5)*i,5)
1194+
                Joint.Part1 = Limb
1195
                Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1196-
		CreateFlyingDebree(AIM,CF(AIMPOS),7,VT(3,3,3),5,185,false)
1196+
                Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1197-
		CreateFlyingDebree(AIM,CF(AIMPOS),7,VT(6,6,6),5,285,false)
1197+
                Joint.Parent = Torso2
1198-
		CreateSound(130972023, Effects, 2, 1, false)
1198+
   
1199-
		ApplyAoE(AIMPOS,25,0,0,100,true)
1199+
                local B = Instance.new("Part")
1200
                B.TopSurface = 0
1201-
		ApplyAoE(AIMPOS,85,80,99,45,false)
1201+
                B.BottomSurface = 0
1202
                B.formFactor = "Symmetric"
1203
                B.Size = Vector3.new(1, 1, 1)
1204
                B.Transparency = 1
1205
                B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1206
                B.Parent = Character2
1207
                local W = Instance.new("Weld")
1208
                W.Part0 = Limb
1209
                W.Part1 = B
1210
                W.C0 = CFrame.new(0, -0.5, 0)
1211
                W.Parent = Limb
1212
   
1213
            end
1214
            local Limb = Character2:FindFirstChild("Right Leg")
1215
            if Limb then
1216
   
1217
                Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
1218
                local Joint = Instance.new("Glue")
1219
                Joint.Name = "RightHip"
1220
                Joint.Part0 = Torso2
1221
                Joint.Part1 = Limb
1222
                Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1223
                Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1224
                Joint.Parent = Torso2
1225
   
1226
                local B = Instance.new("Part")
1227
                B.TopSurface = 0
1228
                B.BottomSurface = 0
1229
                B.formFactor = "Symmetric"
1230
                B.Size = Vector3.new(1, 1, 1)
1231
                B.Transparency = 1
1232
                B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1233
                B.Parent = Character2
1234
                local W = Instance.new("Weld")
1235
                W.Part0 = Limb
1236
                W.Part1 = B
1237
                W.C0 = CFrame.new(0, -0.5, 0)
1238
                W.Parent = Limb
1239
   
1240
            end
1241
            local Limb = Character2:FindFirstChild("Left Leg")
1242
            if Limb then
1243
   
1244
                Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
1245
                local Joint = Instance.new("Glue")
1246
                Joint.Name = "LeftHip"
1247
                Joint.Part0 = Torso2
1248
                Joint.Part1 = Limb
1249
                Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1250
                Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1251
                Joint.Parent = Torso2
1252
   
1253
                local B = Instance.new("Part")
1254
                B.TopSurface = 0
1255
                B.BottomSurface = 0
1256
                B.formFactor = "Symmetric"
1257
                B.Size = Vector3.new(1, 1, 1)
1258
                B.Transparency = 1
1259
                B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1260
                B.Parent = Character2
1261
                local W = Instance.new("Weld")
1262
                W.Part0 = Limb
1263
                W.Part1 = B
1264
                W.C0 = CFrame.new(0, -0.5, 0)
1265
                W.Parent = Limb
1266
   
1267
            end
1268
            --[
1269
            local Bar = Instance.new("Part")
1270
            Bar.TopSurface = 0
1271
            Bar.BottomSurface = 0
1272
            Bar.formFactor = "Symmetric"
1273
            Bar.Size = Vector3.new(1, 1, 1)
1274
            Bar.Transparency = 1
1275
            Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
1276
            Bar.Parent = Character2
1277
            local Weld = Instance.new("Weld")
1278
            Weld.Part0 = Torso2
1279
            Weld.Part1 = Bar
1280
            Weld.C0 = CFrame.new(0, 0.5, 0)
1281
            Weld.Parent = Torso2
1282
            --]]
1283
        end
1284
        Character2.Parent = workspace
1285
        Debris:AddItem(Character2,5)
1286
   
1287
        return Character2,Torso2
1288
    end))
1289
end
1290
1291
--//=================================\\
1292
--||	     WEAPON CREATION
1293
--\\=================================//
1294
1295
1296
local Hair = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hair", VT(1,1,1),false)
1297
local HairWeld1 = CreateWeldOrSnapOrMotor("Weld", Hair, Head, Hair, CF(0,0.15,0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1298
CreateMesh("SpecialMesh", Hair, "FileMesh", "375815502", "", VT(1,1,1)*1.02, VT(0,0,0))
1299
Hair.Color = C3(0,0,0)
1300
1301
local Gun1 = CreatePart(3, Weapon, "Marble", 0, 0, "Really black", "Right Gun", VT(2.05, 1.05, 0.2),false)
1302
local Gun1Weld = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Gun1, CF(0, -1.9, -0.3) * ANGLES(RAD(0), RAD(90), RAD(-90)), CF(0, 0, 0))
1303
CreateMesh("SpecialMesh", Gun1, "FileMesh", "430286482", "", VT(1,1,1)/20, VT(0,0,0))
1304
1305
local Gun2 = CreatePart(3, Weapon, "Marble", 0, 0, "Mid gray", "Left Gun", VT(2.05, 1.05, 0.2),false)
1306
local Gun2Weld = CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Gun2, CF(0, -1.9, -0.3) * ANGLES(RAD(0), RAD(90), RAD(-90)), CF(0, 0, 0))
1307
CreateMesh("SpecialMesh", Gun2, "FileMesh", "430286482", "", VT(1,1,1)/20, VT(0,0,0))
1308
1309
local BLADE = CreatePart(3, Effects, "Fabric", 0, 0, BRICKC("Really black"), "Abyssal_Sword", VT(1, 7.6, 1), true)
1310
CreateMesh("SpecialMesh", BLADE, "FileMesh", "93117521", "1015990846", VT(1,1,1), VT(0,0,0))
1311
BLADE.CFrame = RootPart.CFrame * CF(0.4,1,4) * ANGLES(RAD(195), RAD(15), RAD(15))
1312
1313
local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "FaceGradient", VT(0.6,0.1,1)/2,false)
1314
MakeForm(EYE,"Ball")
1315
CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
1316
local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "FaceGradient", VT(0.6,0.1,1)/2,false)
1317
MakeForm(EYE,"Ball")
1318
CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
1319
local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "FaceGradient", VT(0.1,1,1)/2,false)
1320
MakeForm(EYE,"Ball")
1321
CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
1322
local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "FaceGradient", VT(0.1,1,1)/2,false)
1323
MakeForm(EYE,"Ball")
1324
CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
1325
    
1326
    local top = Instance.new("Shirt")
1327
	top.ShirtTemplate = "rbxassetid://2276760724"
1328
	top.Parent = Character
1329
	top.Name = "Cloth"
1330-
			if Key == "z" and ATTACK == false then
1330+
1331
	bottom.PantsTemplate = "rbxassetid://770508500"
1332
	bottom.Parent = Character
1333
	bottom.Name = "Cloth"
1334-
			if Key == "b" and AMMO >= 6 and ATTACK == false then
1334+
1335-
				NEXUS_BARRAGE()
1335+
local Radio = CreatePart(3, Character, "Marble", 0, 0, "Pearl", "RAD-io", VT(1.01,0.2,1.01),false)
1336
CreateWeldOrSnapOrMotor("Weld", Radio, RightLeg, Radio, CF(0.5, 0.75, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)), CF(0, 0, 0))
1337
local RADIOMESH = CreateMesh("SpecialMesh", Radio, "FileMesh", "212302951", "212303049", VT(0.5,0.5,0.5), VT(0,0,0))
1338-
			if Key == "c" and AMMO > 1 and ATTACK == false then
1338+
1339-
				HEARTSTROKE()
1339+
1340
	if c.ClassName == "Part" then
1341
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1342-
			if Key == "x" and AMMO == 16 and ATTACK == false then
1342+
1343-
				BLIND_STAR()
1343+
1344
1345
local SKILLTEXTCOLOR = C3(1,1,1)
1346
local SKILLFONT = "SciFi"
1347
local SKILLTEXTSIZE = 7
1348
1349
Weapon.Parent = Character
1350
1351
Humanoid.Died:connect(function()
1352
	ATTACK = true
1353
end)
1354
1355
local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.18, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
1356
local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.55, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
1357
local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.18, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
1358
local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.55, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
1359
local AMMOFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.85, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Ammo Frame")
1360
local RELOADFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Reload Frame")
1361
1362
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Bullet Shot", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 1")
1363
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Sword", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 2")
1364
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Limb Rip", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 3")
1365
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[X] Needle", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 4")
1366
local AMMOTEXT = CreateLabel(AMMOFRAME, "[16]", SKILLTEXTCOLOR, 12, SKILLFONT, 0, 2, 0.5, "Ammo")
1367
local RELOAD = CreateLabel(RELOADFRAME, "[R] Reload", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "How2ReloadForDummies")
1368
1369
1370
--//=================================\\
1371
--||	     DAMAGE FUNCTIONS
1372
--\\=================================//
1373
1374
function StatLabel(CFRAME, TEXT, COLOR)
1375
	local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
1376
	STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
1377
	local BODYGYRO = IT("BodyGyro", STATPART)
1378
	game:GetService("Debris"):AddItem(STATPART ,5)
1379
	local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
1380
	BILLBOARDGUI.Adornee = STATPART
1381
	BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
1382
	BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
1383
	BILLBOARDGUI.AlwaysOnTop = false
1384
	local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
1385
	TEXTLABEL.BackgroundTransparency = 1
1386
	TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
1387
	TEXTLABEL.Text = TEXT
1388
	TEXTLABEL.Font = SKILLFONT
1389
	TEXTLABEL.FontSize="Size42"
1390
	TEXTLABEL.TextColor3 = COLOR
1391
	TEXTLABEL.TextStrokeTransparency = 0
1392
	TEXTLABEL.TextScaled = true
1393
	TEXTLABEL.TextWrapped = true
1394
	coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
1395
		for i = 1, 50 do
1396
			Swait()
1397
			STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
1398
			TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
1399
			TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextStrokeTransparency + (1/50)
1400
		end
1401
		THEPART.Parent = nil
1402
	end),STATPART, TEXTLABEL)
1403
end
1404
1405
--//=================================\\
1406
--||			DAMAGING
1407
--\\=================================//
1408
1409
function ApplyDamage(Humanoid,Damage)
1410
	Damage = Damage * DAMAGEMULTIPLIER
1411
	if Humanoid.Health < 2000 then
1412
		if Humanoid.Health - Damage > 0 then
1413
			Humanoid.Health = Humanoid.Health - Damage
1414
		else
1415
			Humanoid.Parent:BreakJoints()
1416
		end
1417
	else
1418
		Humanoid.Parent:BreakJoints()
1419
	end
1420
end
1421
1422
function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
1423
	local CHILDREN = workspace:GetDescendants()
1424
	for index, CHILD in pairs(CHILDREN) do
1425
		if CHILD.ClassName == "Model" and CHILD ~= Character then
1426
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1427
			if HUM then
1428
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1429
				if TORSO then
1430
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
1431
						if INSTAKILL == true then
1432
							CHILD:BreakJoints()
1433
						else
1434
							local DMG = MRANDOM(MINDMG,MAXDMG)
1435
							ApplyDamage(HUM,DMG,TORSO)
1436
						end
1437
						if FLING > 0 then
1438
							for _, c in pairs(CHILD:GetChildren()) do
1439
								if c:IsA("BasePart") then
1440
									local bv = Instance.new("BodyVelocity") 
1441
									bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1442
									bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
1443
									bv.Parent = c
1444
									Debris:AddItem(bv,0.05)
1445
								end
1446
							end
1447
						end
1448
					end
1449
				end
1450
			end
1451
		end
1452-
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.25 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (1) / Animation_Speed)
1452+
1453-
		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 * (1) / Animation_Speed)
1453+
1454-
		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(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1454+
1455-
		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(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1455+
1456-
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or Rooted == true then
1456+
1457-
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1457+
1458-
		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)
1458+
1459-
		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)
1459+
function Warp()
1460-
		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)
1460+
    local HITFLOOR,HITPOS = Raycast(Mouse.Hit.p+VT(0,1,0), (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 100, Character)
1461
    if HITFLOOR then
1462
        CharacterFade(C3(0.5,0,0),50)
1463
        HITPOS = HITPOS + VT(0,3.5,0)
1464
        local POS = RootPart.Position
1465
        RootPart.CFrame = CF(HITPOS,CF(POS,HITPOS)*CF(0,0,-100000).p)
1466
        CreateSound(289556450,Torso,2,MRANDOM(8,13)/10,false)
1467
    end
1468
end
1469
1470
function BULLET_SHOT()
1471
    ATTACK = true
1472
    Rooted = false
1473
    local STOP = false
1474
    repeat
1475
        if AMMO > 0 then
1476
            if COMBO == 1 then
1477
                COMBO = 2
1478
                for i=0, 0.3, 0.1 / Animation_Speed do
1479
                    Swait()
1480
                    turnto(Mouse.Hit.p)
1481
                    RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(86)), 2 / Animation_Speed)
1482
                    Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-86)), 2 / Animation_Speed)
1483
                    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(86)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1484
                    LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1485
                    if HITFLOOR == true then
1486
                        RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(25), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
1487
                        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)), 2 / Animation_Speed)
1488
                    elseif HITFLOOR == false then
1489
                        RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed)
1490
                        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)
1491
                    end
1492
                end
1493
                AMMO = AMMO - 1
1494
                local AIMHIT,AIMPOS,NORMAL = BulletDetection(Gun1.Position,Mouse.Hit.p)
1495
                SpawnTrail(Gun1.CFrame*CF(1.25,0.2,0).p,AIMPOS)
1496
                CreateSound(FireSound, Gun1, 5, 1, false)
1497-
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
1497+
                for i=0, 0.1, 0.1 / Animation_Speed do
1498-
		ANIM = "Idle"
1498+
                    Swait()
1499-
		if DOUBLEJUMP == true then
1499+
                    turnto(AIMPOS)
1500-
			DOUBLEJUMP = false
1500+
                    RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(86)), 2 / Animation_Speed)
1501
                    Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-86)), 2 / Animation_Speed)
1502-
		if READYTODOUBLE == true then
1502+
                    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(86)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1503-
			READYTODOUBLE = false
1503+
                    LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1504
                    if HITFLOOR == true then
1505
                        RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(25), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
1506-
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.5 / Animation_Speed)
1506+
                        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)), 2 / Animation_Speed)
1507-
			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.5 / Animation_Speed)
1507+
                    elseif HITFLOOR == false then
1508-
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1508+
                        RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed)
1509-
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1509+
                        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)
1510-
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1510+
                    end
1511-
			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.5 / Animation_Speed)
1511+
                end
1512
            elseif COMBO == 2 then
1513-
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
1513+
                COMBO = 1
1514-
		ANIM = "Walk"
1514+
                for i=0, 0.3, 0.1 / Animation_Speed do
1515-
		if DOUBLEJUMP == true then
1515+
                    Swait()
1516-
			DOUBLEJUMP = false
1516+
                    turnto(Mouse.Hit.p)
1517
                    RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 2 / Animation_Speed)
1518-
		if READYTODOUBLE == true then
1518+
                    Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 2 / Animation_Speed)
1519-
			READYTODOUBLE = false
1519+
                    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1520
                    LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1521
                    if HITFLOOR == true then
1522-
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1522+
                        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)), 2 / Animation_Speed)
1523-
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1523+
                        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
1524-
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
1524+
                    elseif HITFLOOR == false then
1525-
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
1525+
                        RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed)
1526-
			RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
1526+
                        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)
1527-
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
1527+
                    end
1528
                end
1529
                AMMO = AMMO - 1
1530-
	unanchor()
1530+
                local AIMHIT,AIMPOS,NORMAL = BulletDetection(Gun2.Position,Mouse.Hit.p)
1531
                CreateSound(FireSound, Gun2, 5, 1, false)
1532
                SpawnTrail(Gun2.CFrame*CF(1.25,0.2,0).p,AIMPOS)
1533
                for i=0, 0.1, 0.1 / Animation_Speed do
1534
                    Swait()
1535
                    turnto(AIMPOS)
1536
                    RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 2 / Animation_Speed)
1537
                    Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 2 / Animation_Speed)
1538
                    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1539
                    LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1540
                    if HITFLOOR == true then
1541
                        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)), 2 / Animation_Speed)
1542
                        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
1543
                    elseif HITFLOOR == false then
1544
                        RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed)
1545
                        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)
1546
                    end
1547
                end
1548
            end
1549
        else
1550
            Reload()
1551
            STOP = true
1552
        end
1553
    until KEYHOLD == false or STOP == true
1554
    ATTACK = false
1555
    Rooted = false
1556
end
1557
1558-
	AMMOTEXT.Text = "["..AMMO.."]"
1558+
function Melee()
1559
	ATTACK = true
1560
	BLADE.CanCollide = true
1561
	Rooted = false
1562
	EQUIPPED = true
1563
	local HIT = function()
1564
		local HITS = {}
1565
		local TOUCH = BLADE.Touched:Connect(function(hit)
1566
			if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent ~= Character then
1567
				local HUM = hit.Parent:FindFirstChildOfClass("Humanoid")
1568
				local TORSO = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
1569
				if TORSO and HUM.Health > 0 then
1570
					local PASS = true
1571
					for i = 1, #HITS do
1572
						if HITS[i] == hit.Parent then
1573
							PASS = false
1574
						end
1575
					end
1576
					table.insert(HITS,hit.Parent)
1577
						if PASS == true then
1578
						ApplyDamage(HUM,MRANDOM(15,25))
1579
					end
1580
				end
1581
			end
1582
		end)
1583
		return TOUCH
1584
	end
1585
	if COMBO == 1 then
1586
		for i=0, 0.35, 0.1 / Animation_Speed do
1587
			Swait()
1588
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed)
1589
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed)
1590
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1591
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35, -0.6) * ANGLES(RAD(0), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1592
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.6 - 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(-25)), 1 / Animation_Speed)
1593
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-5), RAD(-70), RAD(0)) * ANGLES(RAD(1), RAD(0), RAD(0)), 1 / Animation_Speed)
1594
			BLADE.CFrame = Clerp(BLADE.CFrame,RightArm.CFrame*CF(0,-8,0) * ANGLES(RAD(180), RAD(90), RAD(0)),0.4)
1595
		end
1596
		CreateSound(1489705211,BLADE,MRANDOM(7,8),MRANDOM(8,13)/12,false)
1597
		local TOUCHED = HIT()
1598
		for i=0, 0.5, 0.1 / Animation_Speed do
1599
			Swait()
1600
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), 1 / Animation_Speed)
1601
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-35)), 0.9 / Animation_Speed)
1602
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.8, 0.5, -0.7) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(15), RAD(180), RAD(0)) * RIGHTSHOULDERC0, 0.6 / Animation_Speed)
1603
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35, -0.6) * ANGLES(RAD(0), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1604
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.6 - 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(-25)), 1 / Animation_Speed)
1605
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-5), RAD(-70), RAD(0)) * ANGLES(RAD(1), RAD(0), RAD(0)), 1 / Animation_Speed)
1606
			BLADE.CFrame = Clerp(BLADE.CFrame,RightArm.CFrame*CF(0,-8,0) * ANGLES(RAD(180), RAD(90), RAD(0)),0.4)
1607
		end
1608
		TOUCHED:Disconnect()
1609
		COMBO = 2
1610
	elseif COMBO == 2 then
1611
		for i=0, 0.35, 0.1 / Animation_Speed do
1612
			Swait()
1613
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1614
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
1615
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(160), RAD(0), RAD(-5)) * ANGLES(RAD(5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1616
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35, -0.6) * ANGLES(RAD(0), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1617
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.6 - 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(-25)), 1 / Animation_Speed)
1618
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-5), RAD(-70), RAD(0)) * ANGLES(RAD(1), RAD(0), RAD(0)), 1 / Animation_Speed)
1619
			BLADE.CFrame = Clerp(BLADE.CFrame,RightArm.CFrame*CF(0,-8,0) * ANGLES(RAD(180), RAD(90), RAD(0)),0.4)
1620
		end
1621
		CreateSound(1489705211,BLADE,MRANDOM(7,8),MRANDOM(8,13)/12,false)
1622
		local TOUCHED = HIT()
1623
		for i=0, 0.35, 0.1 / Animation_Speed do
1624
			Swait()
1625
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed)
1626
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 0.8 / Animation_Speed)
1627
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.25, -0.5) * ANGLES(RAD(85), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1628
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35, -0.6) * ANGLES(RAD(0), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1629
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.6 - 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(-25)), 1 / Animation_Speed)
1630
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-5), RAD(-70), RAD(0)) * ANGLES(RAD(1), RAD(0), RAD(0)), 1 / Animation_Speed)
1631
			BLADE.CFrame = Clerp(BLADE.CFrame,RightArm.CFrame*CF(0,-8,0) * ANGLES(RAD(180), RAD(90), RAD(0)),0.4)
1632
		end
1633
		TOUCHED:Disconnect()
1634
		for i=0, 0.2, 0.1 / Animation_Speed do
1635
			Swait()
1636
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed)
1637
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 0.8 / Animation_Speed)
1638
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.25, -0.5) * ANGLES(RAD(85), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1639
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35, -0.6) * ANGLES(RAD(0), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1640
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.6 - 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(-25)), 1 / Animation_Speed)
1641
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-5), RAD(-70), RAD(0)) * ANGLES(RAD(1), RAD(0), RAD(0)), 1 / Animation_Speed)
1642
			BLADE.CFrame = Clerp(BLADE.CFrame,RootPart.CFrame*CF(4,0.3,0) * ANGLES(RAD(195), RAD(-25), RAD(15)),0.4)
1643
		end
1644
		COMBO = 1
1645
	end
1646
	coroutine.resume(coroutine.create(function()
1647
		for i = 1, 50 do
1648
			Swait()
1649
			if ATTACK == true then
1650
				break
1651
			end
1652
		end
1653
		if ATTACK == false then
1654
			COMBO = 1
1655
		end
1656
	end))
1657
	BLADE.CanCollide = false
1658
	ATTACK = false
1659
	Rooted = false
1660
	EQUIPPED = false
1661
end
1662
1663
function LimbRip()
1664
    ATTACK = true
1665
    Rooted = false
1666
    local TARGET = nil
1667
    local ROOT = nil
1668
    local HUMAN = nil
1669
    local DIST = 4
1670
    Speed = 12
1671
    for i=0, 1, 0.1 / Animation_Speed do
1672
        Swait()
1673
        local CHILDREN = workspace:GetDescendants()
1674
        for index, CHILD in pairs(CHILDREN) do
1675
            if CHILD.ClassName == "Model" and CHILD ~= Character then
1676
                local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1677
                if HUM then
1678
                    local TORSO = CHILD:FindFirstChild("HumanoidRootPart") or CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1679
                    if TORSO and HUM.Health > 0 then
1680
                        if (TORSO.Position - RightArm.Position).Magnitude <= DIST then
1681
                            DIST = (TORSO.Position - RightArm.Position).Magnitude
1682
                            ROOT = TORSO
1683
                            HUMAN = HUM
1684
                            TARGET = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1685
                        end
1686
                    end
1687
                end
1688
            end
1689
        end
1690
        if ROOT then
1691
            break
1692
        end
1693
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
1694
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10), RAD(0), RAD(-25)), 1 / Animation_Speed)
1695
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1696
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1697
        RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1698
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1699
    end
1700
    Speed = 45
1701
    if ROOT then
1702
        CreateSound(305685800,Torso,5,1.3,false)
1703
        Rooted = true
1704
        local GORED = false
1705
        coroutine.resume(coroutine.create(function()
1706
            repeat
1707
                Swait()
1708
                ROOT.Anchored = true
1709
            until GORED == true
1710
            ROOT.Anchored = false
1711
        end))
1712
        RootPart.CFrame = ROOT.CFrame*CF(0,0,2.25)
1713
        if TARGET.Name == "Torso" then
1714
            local RARM = TARGET.Parent:FindFirstChild("Right Arm")
1715
            local LARM = TARGET.Parent:FindFirstChild("Left Arm")
1716
            if RARM and LARM then
1717
                for i=0, 1, 0.1 / Animation_Speed do
1718
                    Swait()
1719
                    RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1720
                    Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
1721
                    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1722
                    LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1723
                    RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1724
                    LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1725
                end
1726
                for _, c in pairs(TARGET.Parent:GetDescendants()) do
1727
                    if c:IsA("JointInstance") then
1728
                        if c.Part1 == RARM or c.Part1 == LARM or c.Part0 == RARM or c.Part0 == LARM then
1729
                            c:remove()
1730
                        end
1731
                    end
1732
                end
1733
                CreateSound(363808674, TARGET, 3, MRANDOM(7,9)/10, false)
1734
                CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RARM, CF(0,-1.35,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1735
                CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, LARM, CF(0,-1.35,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1736
                for i=0, 1, 0.1 / Animation_Speed do
1737
                    Swait()
1738
                    RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1739
                    Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
1740
                    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1741
                    LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1742
                    RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1743
                    LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1744
                end
1745
                for i=0, 1, 0.1 / Animation_Speed do
1746
                    Swait()
1747
                    RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.25) * ANGLES(RAD(-25), RAD(0), RAD(80)), 1 / Animation_Speed)
1748
                    Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed)
1749
                    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1750
                    LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1751
                    RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,1.5,0), 1 / Animation_Speed)
1752
                    LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
1753
                end
1754
                for i=0, 0.1, 0.1 / Animation_Speed do
1755
                    Swait()
1756
                    RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed)
1757
                    Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed)
1758
                    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1759
                    LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1760
                    RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed)
1761
                    LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
1762
                end
1763
                GORED = true
1764
                Ragdoll(TARGET.Parent,Torso)
1765
                if ROOT.Name ~= "Torso" then
1766
                    ROOT:remove()
1767
                end
1768
                local RGRAB = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RARM, CF(0,-1.35,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1769
                local LGRAB = CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, LARM, CF(0,-1.35,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1770
                local bv = Instance.new("BodyVelocity",TARGET)
1771
                bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1772
                bv.velocity = TARGET.CFrame.lookVector*75
1773
                Debris:AddItem(bv,0.05)
1774
                CreateSound(621557962, RightLeg, 1, MRANDOM(7,9)/10, false)
1775
                for i=0, 0.5, 0.1 / Animation_Speed do
1776
                    Swait()
1777
                    RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed)
1778
                    Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed)
1779
                    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1780
                    LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1781
                    RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed)
1782
                    LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
1783
                end
1784
                for i=0, 1, 0.1 / Animation_Speed do
1785
                    Swait()
1786
                    RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1787
                    Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
1788
                    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.6 / Animation_Speed)
1789
                    LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.6 / Animation_Speed)
1790
                    RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1791
                    LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1792
                end
1793
                local HITBOX = CreatePart(3, RARM, "Metal", 0, 1, "Really black", "Part", RARM.Size, false)
1794
                HITBOX.CFrame = RARM.CFrame
1795
                HITBOX.CanCollide = true
1796
                weldBetween(RARM,HITBOX)
1797
                local HITBOX = CreatePart(3, LARM, "Metal", 0, 1, "Really black", "Part", RARM.Size, false)
1798
                HITBOX.CFrame = LARM.CFrame
1799
                HITBOX.CanCollide = true
1800
                weldBetween(LARM,HITBOX)
1801
                RGRAB:remove()
1802
                LGRAB:remove()
1803
                for i=0, 0.4, 0.1 / Animation_Speed do
1804
                    Swait()
1805
                    RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1806
                    Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
1807
                    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(0), RAD(0), RAD(110)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1808
                    LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(0), RAD(0), RAD(-110)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1809
                    RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1810
                    LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1811
                end
1812
            end
1813
        elseif TARGET.Name == "UpperTorso" then
1814
            if TARGET.Parent:FindFirstChild("RightUpperArm") and TARGET.Parent:FindFirstChild("LeftUpperArm") then
1815
                for i=0, 0.3, 0.1 / Animation_Speed do
1816
                    Swait()
1817
                    RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
1818
                    Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
1819
                    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.5) * ANGLES(RAD(140), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(25), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1820
                    LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1821
                    RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1822
                    LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1823
                end
1824
                local SAWBLADE = CreatePart(3, Weapon, "Neon", 0, 0.5, "Really red", "Part", VT(0,0,0),false)
1825
                local WELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, SAWBLADE, CF(0,-1,0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
1826
                local BLADE = true
1827
                CreateMesh("SpecialMesh", SAWBLADE, "FileMesh", "74322089", "", VT(1,1,1), VT(0,0,0))
1828
                coroutine.resume(coroutine.create(function()
1829
                    repeat
1830
                        Swait()
1831
                        WELD.C1 = WELD.C1 * ANGLES(RAD(0), RAD(0), RAD(25))
1832
                    until BLADE == false
1833
                    SAWBLADE:remove()
1834
                end))
1835
                CreateSound(1165167936, SAWBLADE, 2, 1, true)
1836
                for i=0, 1, 0.1 / Animation_Speed do
1837
                    Swait()
1838
                    RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
1839
                    Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
1840
                    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.5) * ANGLES(RAD(140), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(25), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1841
                    LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1842
                    RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1843
                    LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1844
                end
1845
                for i=0, 3, 0.1 / Animation_Speed do
1846
                    Swait()
1847
                    RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
1848
                    Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
1849
                    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.5) * ANGLES(RAD(15), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(-25), RAD(0)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed)
1850
                    LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1851
                    RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1852
                    LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1853
                end
1854
                CreateSound(363808674, TARGET, 3, MRANDOM(7,9)/10, false)
1855
                TARGET.Parent:FindFirstChild("RightUpperArm").RightShoulder:remove()
1856
                for i=0, 1, 0.1 / Animation_Speed do
1857
                    Swait()
1858
                    RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(1, 0, 0.3) * ANGLES(RAD(0), RAD(0), RAD(90)), 1 / Animation_Speed)
1859
                    Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-80)), 1 / Animation_Speed)
1860
                    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, 0) * ANGLES(RAD(140), RAD(0), RAD(90)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1861
                    LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1862
                    RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1863
                    LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1864
                end
1865
                for i=0, 3, 0.1 / Animation_Speed do
1866
                    Swait()
1867
                    RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(1, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 1 / Animation_Speed)
1868
                    Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-80)), 1 / Animation_Speed)
1869
                    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(15)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed)
1870
                    LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1871
                    RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1872
                    LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1873
                end
1874
                CreateSound(363808674, TARGET, 3, MRANDOM(7,9)/10, false)
1875
                TARGET.Parent:FindFirstChild("LeftUpperArm").LeftShoulder:remove()
1876
                BLADE = false
1877
                for i=0, 0.5, 0.1 / Animation_Speed do
1878
                    Swait()
1879
                    RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.25) * ANGLES(RAD(-25), RAD(0), RAD(80)), 1 / Animation_Speed)
1880
                    Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed)
1881
                    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1882
                    LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1883
                    RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,1.5,0), 1 / Animation_Speed)
1884
                    LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
1885
                end
1886
                for i=0, 0.1, 0.1 / Animation_Speed do
1887
                    Swait()
1888
                    RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed)
1889
                    Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed)
1890
                    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-32), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1891
                    LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1892
                    RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed)
1893
                    LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
1894
                end
1895
                GORED = true
1896
                TARGET.Parent:BreakJoints()
1897
                R15Ragdoll(TARGET.Parent)
1898
                if ROOT.Name ~= "Torso" then
1899
                    ROOT:remove()
1900
                end
1901
                local bv = Instance.new("BodyVelocity",TARGET)
1902
                bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1903
                bv.velocity = TARGET.CFrame.lookVector*75
1904
                Debris:AddItem(bv,0.05)
1905
                CreateSound(621557962, RightLeg, 1, MRANDOM(7,9)/10, false)
1906
                for i=0, 0.3, 0.1 / Animation_Speed do
1907
                    Swait()
1908
                    RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed)
1909
                    Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed)
1910
                    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-32), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1911
                    LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1912
                    RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed)
1913
                    LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
1914
                end
1915
            end
1916
        end
1917
    end
1918
    ATTACK = false
1919
    Rooted = false
1920
end
1921
1922
function Needle()
1923
    ATTACK = true
1924
    Rooted = true
1925
    local GYRO = IT("BodyGyro",RootPart)
1926
    GYRO.D = 2
1927
    GYRO.P = 2000
1928
    GYRO.MaxTorque = VT(0,4000000,0)
1929
    local NEEDGYRO = true
1930
    coroutine.resume(coroutine.create(function()
1931
        repeat
1932
            Swait()
1933
            GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
1934
        until NEEDGYRO == false
1935
        GYRO:Remove()
1936
    end))
1937
    for i=0, 0.3, 0.1 / Animation_Speed do
1938
        Swait()
1939
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
1940
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
1941
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1942
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1943
        RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1944
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, 0) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1945
    end
1946
    for i=0, 1, 0.1 / Animation_Speed do
1947
        Swait()
1948
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
1949
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(15), RAD(-45)), 1 / Animation_Speed)
1950
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1951
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1952
        RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1953
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, 0) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1954
    end
1955
    local HIT,POS = CastProperRay(RightArm.CFrame*CF(0,-1,0).p,Mouse.Hit.p,300,Character)
1956
    WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(5,1,5), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 90655239, SoundPitch = 1, SoundVolume = 2})
1957
    NEEDGYRO = false
1958
    if HIT then
1959
        local NEEDLE = IT("Model",Effects)
1960
        local BASE = CreatePart(3, NEEDLE, "Glass", 0, 0.5, "Pearl", "Part", VT(0.3,0.6,0.3), false)
1961
        MakeForm(BASE,"Cyl")
1962
        BASE.CFrame = CF(POS,RightArm.CFrame*CF(0,-1,0).p) * ANGLES(RAD(90), RAD(0), RAD(0))*CF(0,-0.35,0)
1963
        weldBetween(BASE,HIT)
1964
        local FLUID = CreatePart(3, NEEDLE, "Neon", 0, 0, "Royal purple", "Part", VT(0.28,0.58,0.28), false)
1965
        MakeForm(FLUID,"Cyl")
1966
        FLUID.CFrame = BASE.CFrame
1967
        weldBetween(BASE,FLUID)
1968
        local PART = CreatePart(3, NEEDLE, "Metal", 0, 0, "Pearl", "Part", VT(0,0.2,0), false)
1969
        PART.CFrame = BASE.CFrame*CF(0,0.4,0)
1970
        weldBetween(BASE,PART)
1971
        local PART = CreatePart(3, NEEDLE, "Metal", 0, 0, "Pearl", "Part", VT(0.1,0.1,0.1), false)
1972
        PART.CFrame = BASE.CFrame*CF(0,-0.35,0)
1973
        weldBetween(BASE,PART)
1974
        local PART = CreatePart(3, NEEDLE, "Metal", 0, 0, "Pearl", "Part", VT(0.2,0.1,0.2), false)
1975
        PART.CFrame = BASE.CFrame*CF(0,-0.4,0)
1976
        weldBetween(BASE,PART)
1977
        Debris:AddItem(NEEDLE,7)
1978
        if HIT.Parent:FindFirstChildOfClass("Humanoid") then
1979
            local HUMAN = HIT.Parent:FindFirstChildOfClass("Humanoid")
1980
            coroutine.resume(coroutine.create(function()
1981
                for i = 1, 500 do
1982
                    HUMAN.Health = HUMAN.Health - MRANDOM(1,6)/5
1983
                    if HUMAN.Health == 0 then
1984
                        break
1985
                    end
1986
                    Swait(2)
1987
                end
1988
                if HUMAN.Health == 0 then
1989
                    local CHILD = HUMAN.Parent
1990
                    if CHILD:FindFirstChild("Torso") then
1991
                        CHILD:FindFirstChild("Torso").CFrame = CHILD:FindFirstChild("Torso").CFrame * ANGLES(RAD(2), RAD(0), RAD(0))
1992
                        Ragdoll(CHILD,Torso,true)
1993
                    elseif CHILD:FindFirstChild("UpperTorso") then
1994
                        R15Ragdoll(CHILD,true)
1995
                    end
1996
                end
1997
            end))
1998
        end
1999
    end
2000
    for i=0, 1, 0.1 / Animation_Speed do
2001
        Swait()
2002
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
2003
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(15), RAD(-45)), 1 / Animation_Speed)
2004
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2005
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2006
        RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2007
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, 0) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2008
    end
2009
    ATTACK = false
2010
    Rooted = false
2011
end
2012
2013
function Reload()
2014
	ATTACK = true
2015
	Rooted = false
2016
	for i=0, 0.3, 0.1 / Animation_Speed do
2017
		Swait()
2018
		if ANIM == "Walk" then
2019
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed)
2020
		else
2021
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
2022
		end
2023
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed)
2024
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.15, -1) * ANGLES(RAD(150), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
2025
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -1) * ANGLES(RAD(140), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
2026
		if HITFLOOR then
2027
			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)), 2 / Animation_Speed)
2028
			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)), 2 / Animation_Speed)
2029
		elseif HITFLOOR == nil then
2030
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed)
2031
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed)
2032
		end
2033
	end
2034
	for i=0, 0.1, 0.1 / Animation_Speed do
2035
		Swait()
2036
		if ANIM == "Walk" then
2037
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed)
2038
		else
2039
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
2040
		end
2041
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed)
2042
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
2043
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 2 / Animation_Speed)
2044
		if HITFLOOR then
2045
			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)), 2 / Animation_Speed)
2046
			LeftHip.C0 = Clerp(LeftHip.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)), 2 / Animation_Speed)
2047
		elseif HITFLOOR == nil then
2048
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed)
2049
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed)
2050
		end
2051
	end
2052
	local FakeGun1 = Gun1:Clone()
2053
	FakeGun1.Parent = Effects
2054
	FakeGun1.CanCollide = true
2055
	Debris:AddItem(FakeGun1,5)
2056
	local FakeGun2 = Gun2:Clone()
2057
	FakeGun2.Parent = Effects
2058
	FakeGun2.CanCollide = true
2059
	Debris:AddItem(FakeGun2,5)
2060
	local bv = Instance.new("BodyVelocity") 
2061
	bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
2062
	bv.velocity = CF(Torso.Position,FakeGun1.Position).lookVector*25
2063
	bv.Parent = FakeGun1
2064
	Debris:AddItem(bv,0.05)
2065
	local bv = Instance.new("BodyVelocity") 
2066
	bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
2067
	bv.velocity = CF(Torso.Position,FakeGun2.Position).lookVector*25
2068
	bv.Parent = FakeGun2
2069
	Debris:AddItem(bv,0.05)
2070
	Gun1.Transparency = 1
2071
	Gun2.Transparency = 1
2072
	CreateSound(1112042117, FakeGun1, 5, 1, false)
2073
	CreateSound(1112042117, FakeGun2, 5, 1, false)
2074
	FakeGun1.CustomPhysicalProperties = PhysicalProperties.new(0.7, 0.5, 0.5, 1, 1)
2075
	FakeGun2.CustomPhysicalProperties = PhysicalProperties.new(0.7, 0.5, 0.5, 1, 1)
2076
	for i=0, 0.2, 0.1 / Animation_Speed do
2077
		Swait()
2078
		if ANIM == "Walk" then
2079
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed)
2080
		else
2081
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
2082
		end
2083
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed)
2084
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
2085
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 2 / Animation_Speed)
2086
		if HITFLOOR then
2087
			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)), 2 / Animation_Speed)
2088
			LeftHip.C0 = Clerp(LeftHip.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)), 2 / Animation_Speed)
2089
		elseif HITFLOOR == nil then
2090
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed)
2091
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed)
2092
		end
2093
	end
2094
	for i=0, 0.2, 0.1 / Animation_Speed do
2095
		Swait()
2096
		if ANIM == "Walk" then
2097
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed)
2098
		else
2099
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
2100
		end
2101
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed)
2102
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, 0.5) * ANGLES(RAD(-25), RAD(0), RAD(-20)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
2103
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, 0.5) * ANGLES(RAD(-25), RAD(0), RAD(20)) * LEFTSHOULDERC0, 2 / Animation_Speed)
2104
		if HITFLOOR then
2105
			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)), 2 / Animation_Speed)
2106
			LeftHip.C0 = Clerp(LeftHip.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)), 2 / Animation_Speed)
2107
		elseif HITFLOOR == nil then
2108
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed)
2109
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed)
2110
		end
2111
	end
2112
	Gun1.Transparency = 0
2113
	Gun2.Transparency = 0
2114
	AMMO = 16
2115
	ATTACK = false
2116
	Rooted = false
2117
end
2118
2119
--//=================================\\
2120
--||	  ASSIGN THINGS TO KEYS
2121
--\\=================================//
2122
2123
function MouseDown(Mouse)
2124
	if ATTACK == false then
2125
	end
2126
end
2127
2128
function MouseUp(Mouse)
2129
HOLD = false
2130
end
2131
2132
function KeyDown(Key)
2133
	KEYHOLD = true
2134
	if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then
2135
		if AMMO > 0 then
2136
			if Key == "m" and ATTACK == false then
2137
				Warp()
2138
			end
2139
            if Key == "z" and ATTACK == false then
2140
				BULLET_SHOT()
2141
			end
2142
		
2143
			 if Key == "b" and ATTACK == false then
2144
				Melee()
2145
			end
2146
		
2147
			if Key == "c" and ATTACK == false then
2148
                LimbRip()
2149
            end
2150
		
2151
			if Key == "t" and ATTACK == false then
2152
			Chatter("Dont dare touch my boss!",0.01)
2153
		    end
2154
2155
           
2156
            if Key == "x" and AMMO == 16 and ATTACK == false then
2157
				Needle()
2158
			end
2159
2160
			if Key == "r" and ATTACK == false then
2161
				Reload()
2162
			end
2163
		elseif ATTACK == false then
2164
			Reload()
2165
		end
2166
	end
2167
	if Key == "q" then
2168
		if Radio:FindFirstChild("EdgySong") == nil then
2169
			local SONGS = {188988878,214614192,343137910,590071128}
2170
			SONG = CreateSound(SONGS[MRANDOM(1,#SONGS)], Radio, 3, 1, true)
2171
			SONG.Name = "EdgySong"
2172
		else
2173
			Radio.EdgySong:remove()
2174
			SONG = nil
2175
		end
2176
	end
2177
	if string.byte(Key) == 32 and READYTODOUBLE == true and ATTACK == false and Humanoid.Jump == true and DOUBLEJUMP == false then
2178
		DOUBLEJUMP = true
2179
		Torso.Velocity = Vector3.new(0,125,0)
2180
		CreateSound(159882477, Head, 4, 1, false)
2181
		CreateSound(1112042117, Torso, 2, 1, false)
2182
	end
2183
end
2184
2185
Humanoid.Changed:connect(function(Jump)
2186
	if Jump == "Jump" and (Disable_Jump == false) then
2187
		wait(0.1)
2188
		READYTODOUBLE = true
2189
	end
2190
end)
2191
2192
function KeyUp(Key)
2193
	if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then
2194
		KEYHOLD = false
2195
	end
2196
end
2197
2198
	Mouse.Button1Down:connect(function(NEWKEY)
2199
		MouseDown(NEWKEY)
2200
	end)
2201
	Mouse.Button1Up:connect(function(NEWKEY)
2202
		MouseUp(NEWKEY)
2203
	end)
2204
	Mouse.KeyDown:connect(function(NEWKEY)
2205
		KeyDown(NEWKEY)
2206
	end)
2207
	Mouse.KeyUp:connect(function(NEWKEY)
2208
		KeyUp(NEWKEY)
2209
	end)
2210
2211
--//=================================\\
2212
--\\=================================//
2213
2214
2215
function unanchor()
2216
	if UNANCHOR == true then
2217
		RootPart.Anchored = false
2218
	end
2219
	g = Character:GetChildren()
2220
	for i = 1, #g do
2221
		if g[i].ClassName == "Part" and g[i] ~= RootPart then
2222
			g[i].Anchored = false
2223
		end
2224
	end
2225
	g = Weapon:GetChildren()
2226
	for i = 1, #g do
2227
		if g[i].ClassName == "Part" then
2228
			g[i].Anchored = false
2229
		end
2230
	end
2231
end
2232
2233
2234
--//=================================\\
2235
--||	WRAP THE WHOLE SCRIPT UP
2236
--\\=================================//
2237
2238
Humanoid.Changed:connect(function(Jump)
2239
	if Jump == "Jump" and (Disable_Jump == true) then
2240
		Humanoid.Jump = false
2241
	end
2242
end)
2243
2244
Humanoid.JumpPower = 75
2245
2246
local FF = IT("ForceField",Character)
2247
FF.Visible = false
2248
local LOOP = 0
2249
2250
while true do
2251
	Swait()
2252
	script.Parent = WEAPONGUI
2253
	Character.Parent = workspace
2254
	Humanoid.Parent = Character
2255
	ANIMATE.Parent = nil
2256
	if Humanoid then
2257
		local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
2258
		IDLEANIMATION:Play()
2259
	end
2260
	SINE = SINE + CHANGE
2261
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
2262
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
2263
	HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
2264
	local WALKSPEEDVALUE = 3
2265
	if ANIM == "Walk" and TORSOVELOCITY > 1 and Rooted == false then
2266
		 RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.25 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (1) / Animation_Speed)
2267
        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 * (1) / Animation_Speed)
2268
        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(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2269
        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(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2270
    elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or Rooted == true then
2271
        RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2272
        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)
2273
        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)
2274
        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)
2275
	end
2276
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
2277
		if ANIM ~= "Jump" then
2278
			LOOP = 0
2279
		end
2280
		ANIM = "Jump"
2281
		if DOUBLEJUMP == false then
2282
			if ATTACK == false then
2283
				RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2284
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2285
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(76)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
2286
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(-76)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2287
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed)
2288
				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)
2289
		    end
2290
		elseif DOUBLEJUMP == true then
2291
			if ATTACK == false then
2292
				LOOP = LOOP + 1
2293
				RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(LOOP*45), RAD(0), RAD(0)), 2.5 / Animation_Speed)
2294
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2295
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
2296
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2297
				RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
2298
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, 0, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
2299
			end
2300
		end
2301
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
2302
		ANIM = "Fall"
2303
		if ATTACK == false then
2304
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2305
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2306
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(80)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
2307
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-80)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2308
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed)
2309
			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)
2310
		end
2311
	 elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
2312
        ANIM = "Idle"
2313
        if DOUBLEJUMP == true then
2314
            DOUBLEJUMP = false
2315
        end
2316
        if READYTODOUBLE == true then
2317
            READYTODOUBLE = false
2318
        end
2319
        if ATTACK == false then
2320
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.5 / Animation_Speed)
2321
            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.5 / Animation_Speed)
2322
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2323
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2324
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2325
            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.5 / Animation_Speed)
2326
        end
2327
    elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
2328
        ANIM = "Walk"
2329
        if DOUBLEJUMP == true then
2330
            DOUBLEJUMP = false
2331
        end
2332
        if READYTODOUBLE == true then
2333
            READYTODOUBLE = false
2334
        end
2335
        if ATTACK == false then
2336
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2337
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2338
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
2339
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
2340
            RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
2341
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
2342
        end
2343
    end
2344
	if EQUIPPED == false then
2345
		if TORSOVELOCITY > 1 then
2346
			BLADE.CFrame = Clerp(BLADE.CFrame,RootPart.CFrame * CF(0.2,1.5 + 0.15 * SIN(SINE / 12),4) * ANGLES(RAD(195), RAD(15), RAD(15)),0.04)
2347
		else
2348
			BLADE.CFrame = Clerp(BLADE.CFrame,RootPart.CFrame * CF(1,1.5 + 0.15 * SIN(SINE / 12),4) * ANGLES(RAD(195), RAD(-25), RAD(15)),0.1)
2349
		end
2350
	end
2351
    unanchor()
2352
	Humanoid.MaxHealth = "inf"
2353
	Humanoid.Health = "inf"
2354
	if Rooted == false then
2355
		Disable_Jump = false
2356
		Humanoid.WalkSpeed = Speed
2357
	elseif Rooted == true then
2358
		Disable_Jump = true
2359
		Humanoid.WalkSpeed = 0
2360
	end
2361
	for _, c in pairs(Character:GetChildren()) do
2362
		if c.ClassName == "Part" and c.Name ~= "Eye" then
2363
			c.Material = "Neon"
2364
			if c:FindFirstChildOfClass("ParticleEmitter") then
2365
				c:FindFirstChildOfClass("ParticleEmitter"):remove()
2366
			end
2367
			c.Color = C3(255/255, 230/255, 194/255)
2368
			if c == Head then
2369
				if c:FindFirstChild("face") then
2370
					c.face:remove()
2371
				end
2372
			end
2373
		elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
2374
			c:remove()
2375
		elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
2376
			c:remove()
2377
		end
2378
	end
2379
    sick.SoundId = "rbxassetid://259554386"
2380
	sick.Looped = true
2381
	sick.Pitch = 1
2382
	sick.Volume = 8
2383
	sick.Playing = true
2384
    AMMOTEXT.Text = "["..AMMO.."]"
2385
	Humanoid.Name = "Gunslinger"
2386
	script.Parent = WEAPONGUI
2387
	if SONG ~= nil then
2388
		RADIOMESH.Scale = VT(1,1,1)+(VT(0.3,0.3,0.3)*SONG.PlaybackLoudness/500)
2389
	else
2390
		RADIOMESH.Scale = VT(1,1,1)
2391
	end
2392
end
2393
2394
--//=================================\\
2395
--\\=================================//
2396
2397
2398
2399
2400
2401
--//====================================================\\--
2402
--||			  		 END OF SCRIPT
2403
--\\====================================================//--