View difference between Paste ID: H6KnH3p5 and Ht5XPCfB
SHOW: | | - or go back to the newest paste.
1
--//====================================================\\--
2
--||            GUNJOURER BY SHACKLUSTER
3
--\\====================================================//--
4
if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
5
do
6
	script.Parent = owner.Character
7
	local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
8
	local function NewFakeEvent()
9
		local Bind = Instance.new("BindableEvent")
10
		local Fake;Fake = {Connections = {},
11
		fakeEvent=true;
12
		Connect=function(self,Func)
13
			Bind.Event:connect(Func)
14
			self.Connections[Bind] = true
15
			return setmetatable({Connected = true},{
16
			__index = function (self,Index)
17
				if Index:lower() == "disconnect" then
18
					return function() Fake.Connections[Bind] = false;self.Connected = false end
19
				end
20
				return Fake[Index]
21
			end;
22
			__tostring = function() return "Connection" end;
23
		})
24
		end}
25
		Fake.connect = Fake.Connect;return Fake;
26
	end
27
	local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
28
	local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
29
	local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
30
		self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
31
	end};ContextActionService.UnBindAction = ContextActionService.BindAction
32
	local function TriggerEvent(self,Event,...)
33
		local Trigger = Mouse[Event]
34
		if Trigger and Trigger.fakeEvent and Trigger.Connections then
35
			for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
36
		end
37
	end
38
	Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
39
	Event.OnServerEvent:Connect(function(FiredBy,Input)
40
		if FiredBy.Name ~= owner.Name then return end
41
		if Input.MouseEvent then
42
			Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
43
		else
44
			local Begin = Input.UserInputState == Enum.UserInputState.Begin
45
			if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
46
			for _,Action in pairs(ContextActionService.Actions) do
47
				for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
48
			end
49
			Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
50
			UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
51
		end
52
	end)
53
	InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
54
	Event.Parent = NLS([[
55
		local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
56
		local Input = function(Input,gameProcessedEvent)
57
			if gameProcessedEvent then return end
58
			Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
59
		end
60
		UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
61
		local Hit,Target
62
		while wait(1/30) do
63
			if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
64
				Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
65
			end
66
		end
67
	]],owner.Character)
68
end
69
RealGame = game;game = setmetatable({},{
70
	__index = function (self,Index)
71
		local Sandbox = function (Thing)
72
			if Thing:IsA("Player") then
73
				local RealPlayer = Thing
74
				return setmetatable({},{
75
					__index = function (self,Index)
76
						local Type = type(RealPlayer[Index])
77
						if Type == "function" then
78
							if Index:lower() == "getmouse" or Index:lower() == "mouse" then
79
								return function (self)return InternalData["Mouse"] end
80
							end
81
							return function (self,...)return RealPlayer[Index](RealPlayer,...) end
82
						end
83
						return RealPlayer[Index]
84
					end;
85
					__tostring = function(self) return RealPlayer.Name end
86
				})
87
			end
88
		end
89
		if RealGame[Index] then
90
			local Type = type(RealGame[Index])
91
			if Type == "function" then
92
				if Index:lower() == "getservice" or Index:lower() == "service" then
93
					return function (self,Service)
94
						local FakeServices = {
95
							["players"] = function()
96
								return setmetatable({},{
97
									__index = function (self2,Index2)
98
										local RealService = RealGame:GetService(Service)
99
										local Type2 = type(Index2)
100
										if Type2 == "function" then
101
											return function (self,...) return RealService[Index2](RealService,...)end
102
										else
103
											if Index2:lower() == "localplayer" then return Sandbox(owner) end
104
											return RealService[Index2]
105
										end
106
									end;
107
									__tostring = function(self) return RealGame:GetService(Service).Name end
108
								})
109
							end;
110
							["contextactionservice"] = function() return InternalData["ContextActionService"] end;
111
							["userinputservice"] = function() return InternalData["UserInputService"] end;
112
							["runservice"] = function()
113
								return setmetatable({},{
114
									__index = function(self2,Index2)
115
										local RealService = RealGame:GetService(Service)
116
										local Type2 = type(Index2)
117
										if Type2 == "function" then
118
											return function (self,...) return RealService[Index2](RealService,...) end
119
										else
120
											local RunServices = {
121
												["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
122
												["renderstepped"] = function() return RealService["Stepped"] end
123
											}
124
											if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
125
											return RealService[Index2]
126
										end
127
									end
128
								})
129
							end
130
						}
131
						if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
132
						return RealGame:GetService(Service)
133
					end
134
				end
135
				return function (self,...) return RealGame[Index](RealGame,...) end
136
			else
137
				if game:GetService(Index) then return game:GetService(Index) end
138
				return RealGame[Index]
139
			end
140
		end
141
		return nil
142
	end
143
});Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
144
145
146
147
wait(0.2)
148
149
Player = game:GetService("Players").LocalPlayer
150
PlayerGui = Player.PlayerGui
151
Cam = workspace.CurrentCamera
152
Backpack = Player.Backpack
153
Character = Player.Character
154
Humanoid = Character.Humanoid
155
Mouse = Player:GetMouse()
156
RootPart = Character["HumanoidRootPart"]
157
Torso = Character["Torso"]
158
Head = Character["Head"]
159
RightArm = Character["Right Arm"]
160
LeftArm = Character["Left Arm"]
161
RightLeg = Character["Right Leg"]
162
LeftLeg = Character["Left Leg"]
163
RootJoint = RootPart["RootJoint"]
164
Neck = Torso["Neck"]
165
RightShoulder = Torso["Right Shoulder"]
166
LeftShoulder = Torso["Left Shoulder"]
167
RightHip = Torso["Right Hip"]
168
LeftHip = Torso["Left Hip"]
169
170
IT = Instance.new
171
CF = CFrame.new
172
VT = Vector3.new
173
RAD = math.rad
174
C3 = Color3.new
175
UD2 = UDim2.new
176
BRICKC = BrickColor.new
177
ANGLES = CFrame.Angles
178
EULER = CFrame.fromEulerAnglesXYZ
179
COS = math.cos
180
ACOS = math.acos
181
SIN = math.sin
182
ASIN = math.asin
183
ABS = math.abs
184
MRANDOM = math.random
185
FLOOR = math.floor
186
187
--//=================================\\
188
--|| 	      USEFUL VALUES
189
--\\=================================//
190
191
Animation_Speed = 3
192
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
193
local Speed = 35
194
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
195
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
196
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
197
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
198
local DAMAGEMULTIPLIER = 1
199
local ANIM = "Idle"
200
local ATTACK = false
201
local EQUIPPED = false
202
local HOLD = false
203
local COMBO = 1
204
local Rooted = false
205
local SINE = 0
206
local KEYHOLD = false
207
local CHANGE = 2 / Animation_Speed
208
local WALKINGANIM = false
209
local VALUE1 = false
210
local VALUE2 = false
211
local ROBLOXIDLEANIMATION = IT("Animation")
212
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
213
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
214
--ROBLOXIDLEANIMATION.Parent = Humanoid
215
local WEAPONGUI = IT("ScreenGui", PlayerGui)
216
WEAPONGUI.Name = "GUNJOURER_GUI_SHACKLUSTER"
217
local Effects = IT("Folder", Character)
218
Effects.Name = "Effects"
219
local ANIMATOR = Humanoid.Animator
220
local ANIMATE = Character.Animate
221
local UNANCHOR = true
222
local TRIPWIRE = false
223
224
--//=================================\\
225
--\\=================================//
226
227
228
--//=================================\\
229
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
230
--\\=================================//
231
232
ArtificialHB = Instance.new("BindableEvent", script)
233
ArtificialHB.Name = "ArtificialHB"
234
235
script:WaitForChild("ArtificialHB")
236
237
frame = Frame_Speed
238
tf = 0
239
allowframeloss = false
240
tossremainder = false
241
lastframe = tick()
242
script.ArtificialHB:Fire()
243
244
game:GetService("RunService").Heartbeat:connect(function(s, p)
245
	tf = tf + s
246
	if tf >= frame then
247
		if allowframeloss then
248
			ArtificialHB:Fire()
249
			lastframe = tick()
250
		else
251
			for i = 1, math.floor(tf / frame) do
252
				ArtificialHB:Fire()
253
			end
254
			lastframe = tick()
255
		end
256
		if tossremainder then
257
			tf = 0
258
		else
259
			tf = tf - frame * math.floor(tf / frame)
260
		end
261
	end
262
end)
263
264
--//=================================\\
265
--\\=================================//
266
267
--//=================================\\
268
--|| 	      SOME FUNCTIONS
269
--\\=================================//
270
271
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
272
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
273
end
274
275
function PositiveAngle(NUMBER)
276
	if NUMBER >= 0 then
277
		NUMBER = 0
278
	end
279
	return NUMBER
280
end
281
282
function NegativeAngle(NUMBER)
283
	if NUMBER <= 0 then
284
		NUMBER = 0
285
	end
286
	return NUMBER
287
end
288
289
function Swait(NUMBER)
290
	if NUMBER == 0 or NUMBER == nil then
291
		ArtificialHB.Event:wait()
292
	else
293
		for i = 1, NUMBER do
294
			ArtificialHB.Event:wait()
295
		end
296
	end
297
end
298
299
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
300
	local NEWMESH = IT(MESH)
301
	if MESH == "SpecialMesh" then
302
		NEWMESH.MeshType = MESHTYPE
303
		if MESHID ~= "nil" and MESHID ~= "" then
304
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
305
		end
306
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
307
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
308
		end
309
	end
310
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
311
	NEWMESH.Scale = SCALE
312
	NEWMESH.Parent = PARENT
313
	return NEWMESH
314
end
315
316
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
317
	local NEWPART = IT("Part")
318
	NEWPART.formFactor = FORMFACTOR
319
	NEWPART.Reflectance = REFLECTANCE
320
	NEWPART.Transparency = TRANSPARENCY
321
	NEWPART.CanCollide = false
322
	NEWPART.Locked = true
323
	NEWPART.Anchored = true
324
	if ANCHOR == false then
325
		NEWPART.Anchored = false
326
	end
327
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
328
	NEWPART.Name = NAME
329
	NEWPART.Size = SIZE
330
	NEWPART.Position = Torso.Position
331
	NEWPART.Material = MATERIAL
332
	NEWPART:BreakJoints()
333
	NEWPART.Parent = PARENT
334
	return NEWPART
335
end
336
337
	local function weldBetween(a, b)
338
	    local weldd = Instance.new("ManualWeld")
339
	    weldd.Part0 = a
340
	    weldd.Part1 = b
341
	    weldd.C0 = CFrame.new()
342
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
343
	    weldd.Parent = a
344
	    return weldd
345
	end
346
347
348
function QuaternionFromCFrame(cf)
349
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
350
	local trace = m00 + m11 + m22
351
	if trace > 0 then 
352
		local s = math.sqrt(1 + trace)
353
		local recip = 0.5 / s
354
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
355
	else
356
		local i = 0
357
		if m11 > m00 then
358
			i = 1
359
		end
360
		if m22 > (i == 0 and m00 or m11) then
361
			i = 2
362
		end
363
		if i == 0 then
364
			local s = math.sqrt(m00 - m11 - m22 + 1)
365
			local recip = 0.5 / s
366
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
367
		elseif i == 1 then
368
			local s = math.sqrt(m11 - m22 - m00 + 1)
369
			local recip = 0.5 / s
370
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
371
		elseif i == 2 then
372
			local s = math.sqrt(m22 - m00 - m11 + 1)
373
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
374
		end
375
	end
376
end
377
 
378
function QuaternionToCFrame(px, py, pz, x, y, z, w)
379
	local xs, ys, zs = x + x, y + y, z + z
380
	local wx, wy, wz = w * xs, w * ys, w * zs
381
	local xx = x * xs
382
	local xy = x * ys
383
	local xz = x * zs
384
	local yy = y * ys
385
	local yz = y * zs
386
	local zz = z * zs
387
	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))
388
end
389
 
390
function QuaternionSlerp(a, b, t)
391
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
392
	local startInterp, finishInterp;
393
	if cosTheta >= 0.0001 then
394
		if (1 - cosTheta) > 0.0001 then
395
			local theta = ACOS(cosTheta)
396
			local invSinTheta = 1 / SIN(theta)
397
			startInterp = SIN((1 - t) * theta) * invSinTheta
398
			finishInterp = SIN(t * theta) * invSinTheta
399
		else
400
			startInterp = 1 - t
401
			finishInterp = t
402
		end
403
	else
404
		if (1 + cosTheta) > 0.0001 then
405
			local theta = ACOS(-cosTheta)
406
			local invSinTheta = 1 / SIN(theta)
407
			startInterp = SIN((t - 1) * theta) * invSinTheta
408
			finishInterp = SIN(t * theta) * invSinTheta
409
		else
410
			startInterp = t - 1
411
			finishInterp = t
412
		end
413
	end
414
	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
415
end
416
417
function Clerp(a, b, t)
418
	local qa = {QuaternionFromCFrame(a)}
419
	local qb = {QuaternionFromCFrame(b)}
420
	local ax, ay, az = a.x, a.y, a.z
421
	local bx, by, bz = b.x, b.y, b.z
422
	local _t = 1 - t
423
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
424
end
425
426
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
427
	local frame = IT("Frame")
428
	frame.BackgroundTransparency = TRANSPARENCY
429
	frame.BorderSizePixel = BORDERSIZEPIXEL
430
	frame.Position = POSITION
431
	frame.Size = SIZE
432
	frame.BackgroundColor3 = COLOR
433
	frame.BorderColor3 = BORDERCOLOR
434
	frame.Name = NAME
435
	frame.Parent = PARENT
436
	return frame
437
end
438
439
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
440
	local label = IT("TextLabel")
441
	label.BackgroundTransparency = 1
442
	label.Size = UD2(1, 0, 1, 0)
443
	label.Position = UD2(0, 0, 0, 0)
444
	label.TextColor3 = TEXTCOLOR
445
	label.TextStrokeTransparency = STROKETRANSPARENCY
446
	label.TextTransparency = TRANSPARENCY
447
	label.FontSize = TEXTFONTSIZE
448
	label.Font = TEXTFONT
449
	label.BorderSizePixel = BORDERSIZEPIXEL
450
	label.TextScaled = false
451
	label.Text = TEXT
452
	label.Name = NAME
453
	label.Parent = PARENT
454
	return label
455
end
456
457
function NoOutlines(PART)
458
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
459
end
460
461
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
462
	local NEWWELD = IT(TYPE)
463
	NEWWELD.Part0 = PART0
464
	NEWWELD.Part1 = PART1
465
	NEWWELD.C0 = C0
466
	NEWWELD.C1 = C1
467
	NEWWELD.Parent = PARENT
468
	return NEWWELD
469
end
470
471
local S = IT("Sound")
472
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
473
	local NEWSOUND = nil
474
	coroutine.resume(coroutine.create(function()
475
		NEWSOUND = S:Clone()
476
		NEWSOUND.Parent = PARENT
477
		NEWSOUND.Volume = VOLUME
478
		NEWSOUND.Pitch = PITCH
479
		NEWSOUND.SoundId = "rbxassetid://"..ID
480
		NEWSOUND:play()
481
		if DOESLOOP == true then
482
			NEWSOUND.Looped = true
483
		else
484
			repeat wait(1) until NEWSOUND.Playing == false
485
			NEWSOUND:remove()
486
		end
487
	end))
488
	return NEWSOUND
489
end
490
491
function CFrameFromTopBack(at, top, back)
492
	local right = top:Cross(back)
493
	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)
494
end
495
496
--WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
497
function WACKYEFFECT(Table)
498
	local TYPE = (Table.EffectType or "Sphere")
499
	local SIZE = (Table.Size or VT(1,1,1))
500
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
501
	local TRANSPARENCY = (Table.Transparency or 0)
502
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
503
	local CFRAME = (Table.CFrame or Torso.CFrame)
504
	local MOVEDIRECTION = (Table.MoveToPos or nil)
505
	local ROTATION1 = (Table.RotationX or 0)
506
	local ROTATION2 = (Table.RotationY or 0)
507
	local ROTATION3 = (Table.RotationZ or 0)
508
	local MATERIAL = (Table.Material or "Neon")
509
	local COLOR = (Table.Color or C3(1,1,1))
510
	local TIME = (Table.Time or 45)
511
	local SOUNDID = (Table.SoundID or nil)
512
	local SOUNDPITCH = (Table.SoundPitch or nil)
513
	local SOUNDVOLUME = (Table.SoundVolume or nil)
514
	local USEBOOMERANGMATH = (Table.UseBoomerangMath or false)
515
	local BOOMERANG = (Table.Boomerang or 0)
516
	local SIZEBOOMERANG = (Table.SizeBoomerang or 0)
517
	coroutine.resume(coroutine.create(function()
518
		local PLAYSSOUND = false
519
		local SOUND = nil
520
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
521
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
522
			PLAYSSOUND = true
523
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
524
		end
525
		EFFECT.Color = COLOR
526
		local MSH = nil
527
		if TYPE == "Sphere" then
528
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
529
		elseif TYPE == "Block" or TYPE == "Box" then
530
			MSH = IT("BlockMesh",EFFECT)
531
			MSH.Scale = SIZE
532
		elseif TYPE == "Wave" then
533
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
534
		elseif TYPE == "Ring" then
535
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
536
		elseif TYPE == "Slash" then
537
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
538
		elseif TYPE == "Round Slash" then
539
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
540
		elseif TYPE == "Swirl" then
541
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "168892432", "", SIZE, VT(0,0,0))
542
		elseif TYPE == "Skull" then
543
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
544
		elseif TYPE == "Crystal" then
545
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
546
		end
547
		if MSH ~= nil then
548
			local BOOMR1 = 1+BOOMERANG/50
549
			local BOOMR2 = 1+SIZEBOOMERANG/50
550
			local MOVESPEED = nil
551
			if MOVEDIRECTION ~= nil then
552
				if USEBOOMERANGMATH == true then
553
					MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1
554
				else
555
					MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)
556
				end
557
			end
558
			local GROWTH = nil
559
			if USEBOOMERANGMATH == true then
560
				GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1)
561
			else
562
				GROWTH = (SIZE - ENDSIZE)
563
			end
564
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
565
			if TYPE == "Block" then
566
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
567
			else
568
				EFFECT.CFrame = CFRAME
569
			end
570
			if USEBOOMERANGMATH == true then
571
				for LOOP = 1, TIME+1 do
572
					Swait()
573
					MSH.Scale = MSH.Scale - (VT((GROWTH.X)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Y)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Z)*((1 - (LOOP/TIME)*BOOMR2)))*BOOMR2)/TIME
574
					if TYPE == "Wave" then
575
						MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
576
					end
577
					EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
578
					if TYPE == "Block" then
579
						EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
580
					else
581
						EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
582
					end
583
					if MOVEDIRECTION ~= nil then
584
						local ORI = EFFECT.Orientation
585
						EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-(MOVESPEED)*((1 - (LOOP/TIME)*BOOMR1)))
586
						EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
587
					end
588
				end
589
			else
590
				for LOOP = 1, TIME+1 do
591
					Swait()
592
					MSH.Scale = MSH.Scale - GROWTH/TIME
593
					if TYPE == "Wave" then
594
						MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
595
					end
596
					EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
597
					if TYPE == "Block" then
598
						EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
599
					else
600
						EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
601
					end
602
					if MOVEDIRECTION ~= nil then
603
						local ORI = EFFECT.Orientation
604
						EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
605
						EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
606
					end
607
				end
608
			end
609
			EFFECT.Transparency = 1
610
			if PLAYSSOUND == false then
611
				EFFECT:remove()
612
			else
613
				repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
614
				EFFECT:remove()
615
			end
616
		else
617
			if PLAYSSOUND == false then
618
				EFFECT:remove()
619
			else
620
				repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
621
				EFFECT:remove()
622
			end
623
		end
624
	end))
625
end
626
627
function MakeForm(PART,TYPE)
628
	if TYPE == "Cyl" then
629
		local MSH = IT("CylinderMesh",PART)
630
	elseif TYPE == "Ball" then
631
		local MSH = IT("SpecialMesh",PART)
632
		MSH.MeshType = "Sphere"
633
	elseif TYPE == "Wedge" then
634
		local MSH = IT("SpecialMesh",PART)
635
		MSH.MeshType = "Wedge"
636
	end
637
end
638
639
Debris = game:GetService("Debris")
640
641
function CastProperRay(StartPos, EndPos, Distance, Ignore)
642
	local DIRECTION = CF(StartPos,EndPos).lookVector
643
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
644
end
645
646
function OhnoItsAShotgun()
647
	local SHOOTgun = CreatePart(3, Effects, "Fabric", 0, 1, BRICKC("Black"), "OhNoItsAShotgun", VT(0.25, 0.5, 5), true)
648
	CreateMesh("SpecialMesh", SHOOTgun, "FileMesh", "3835506", "", VT(0.9, 1.13, 1), VT(0,-0.3,0))
649
	return SHOOTgun
650
end
651
652
function CamShake(SHAKE,TIMER)
653
	coroutine.resume(coroutine.create(function()
654
		local FADER = SHAKE/TIMER
655
		for i = 1, TIMER do
656
			wait()
657
			Humanoid.CameraOffset = VT(MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10,MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10,MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10)
658
		end
659
		Humanoid.CameraOffset = VT(0,0,0)
660
	end))
661
end
662
663
--//=================================\\
664
--||	    GUIS AND MISC
665
--\\=================================//
666
667
local SKILLTEXTCOLOR = C3(1,1,1)
668
local SKILLFONT = "SciFi"
669
local SKILLTEXTSIZE = 4
670
671
local ATTACKS = {"Conjour - C","Aerial Bombardament - V","Point Blank - B","Tripwire - F","Mend - M"}
672
673
for i = 1, #ATTACKS do
674
	local SKILLFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.74, 0, 0.97-(0.04*i), 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill Frame")
675
	local SKILLTEXT = CreateLabel(SKILLFRAME, "["..ATTACKS[i].."]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Skill text")
676
	SKILLTEXT.TextXAlignment = "Right"
677
	SKILLTEXT.Rotation = i*3
678
end
679
680
local BMUSIC = IT("Sound",RootPart)
681
local VOLUME = 3
682
local PITCH = 1
683
local SONGID = 554435540
684
685
local HEALTHBAR = CreateFrame(WEAPONGUI, 0.5, 1, UD2(1-0.20, 0, 0.75, 0), UD2(0.20, 0, 0.02, 0), C3(0,0,0), C3(0, 0, 0),"Health Bar") 
686
local HEALTHCOVER = CreateFrame(HEALTHBAR, 0, 0, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), BRICKC"Shamrock".Color, C3(0, 0, 0),"Health Cover")
687
local HEALTHTEXT = CreateLabel(HEALTHBAR, Humanoid.Health.."/"..Humanoid.MaxHealth, SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "HP")
688
Character.Health:remove()
689
HEALTHBAR.Rotation = (#ATTACKS*3)+3
690
local WHOAMI = CreateFrame(WEAPONGUI, 1, 1, UD2(1-0.26, 0, 0.69, 0), UD2(0.26, 0, 0.02, 0), C3(0,0,0), C3(0, 0, 0),"Ban") 
691
WHOAMI.Rotation = (#ATTACKS*3)+3
692
CreateLabel(WHOAMI, "Gunjourer", SKILLTEXTCOLOR, SKILLTEXTSIZE+4, SKILLFONT, 0, 2, 0, "Yes")
693
694
Humanoid.MaxHealth = 450
695
Humanoid.Health = 450
696
697
Humanoid.Died:Connect(function()
698
	RootPart:remove()
699
	CreateSound(160718677, Head, 4, 1, false)
700
	BMUSIC:remove()
701
	Effects:remove()
702
	WEAPONGUI:remove()
703
end)
704
local GRUNTS = {1146556975,1146556706,1278006076}
705
706
--//=================================\\
707
--||			DAMAGING
708
--\\=================================//
709
710
function ApplyDamage(Humanoid,Damage)
711
	Damage = Damage * DAMAGEMULTIPLIER
712
	if Humanoid.Health < 2000 then
713
		if Humanoid.Health - Damage > 0 then
714
			Humanoid.Health = Humanoid.Health - Damage
715
		else
716
			Humanoid.Parent:BreakJoints()
717
		end
718
	else
719
		Humanoid.Parent:BreakJoints()
720
	end
721
end
722
723
function PAW_HAHA(LOC,AIMTO,OUCH)
724
	WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(1.4,1.4,1.4), Transparency = 0, Transparency2 = 1, CFrame = CF(LOC), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = 138083993, SoundPitch = MRANDOM(8,12)/13, SoundVolume = 2})
725
	for i = 1, 4 do
726
		local POS1 = CF(LOC,AIMTO)*CF(0,0,-45).p
727
		local AIMPOS = CF(LOC,POS1) * CF(0,0,-45) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))*CF(0,0,MRANDOM(5,75)/10).p
728
		local HIT,POS = CastProperRay(LOC,AIMPOS,1000,Character)
729
		local DISTANCE = (POS - LOC).Magnitude
730
		if HIT then
731
			local HUM = nil
732
			if HIT.Parent:FindFirstChildOfClass("Humanoid") then
733
				HUM = HIT.Parent:FindFirstChildOfClass("Humanoid")
734
			elseif HIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
735
				HUM = HIT.Parent.Parent:FindFirstChildOfClass("Humanoid")
736
			end
737
			if HUM then
738
				ApplyDamage(HUM,OUCH+MRANDOM(-3,3))
739
			end
740
		end
741
		WACKYEFFECT({Time = 20, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = nil, SoundPitch = 1, SoundVolume = 4})
742
		WACKYEFFECT({Time = 20, EffectType = "Box", Size = VT(0,0,DISTANCE), Size2 = VT(0.7,0.7,DISTANCE), Transparency = 0.6, Transparency2 = 1, CFrame = CF(LOC,POS)*CF(0,0,-DISTANCE/2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
743
	end
744
end
745
746
--//=================================\\
747
--||	ATTACK FUNCTIONS AND STUFF
748
--\\=================================//
749
750
function Conjour()
751
	local SHOOT = OhnoItsAShotgun()
752
	local CFRAME = CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,MRANDOM(15,25)/3,MRANDOM(15,25)/3)
753
	local ORI = 90
754
	SHOOT.CFrame = CF(CFRAME.p,Mouse.Hit.p) * ANGLES(RAD(0), RAD(ORI), RAD(0))
755
	local GOODRIDDANCE = false
756
	CreateSound(233856115, SHOOT, 2, (MRANDOM(8,12)/10)+0.3, false)
757
	coroutine.resume(coroutine.create(function()
758
		repeat
759
			SHOOT.CFrame = Clerp(SHOOT.CFrame,CF(CFRAME.p,Mouse.Hit.p) * ANGLES(RAD(ORI), RAD(0), RAD(0)),0.25)
760
			Swait()
761
		until GOODRIDDANCE == true
762
		SHOOT.CFrame = SHOOT.CFrame * ANGLES(RAD(45), RAD(0), RAD(0))
763
		SHOOT.CanCollide = true
764
		SHOOT.Anchored = false
765
		SHOOT.Parent = workspace
766
		local bv = Instance.new("BodyVelocity",SHOOT) 
767
		bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
768
		bv.velocity = CF(SHOOT.Position,SHOOT.CFrame*CF(0,2.5,2).p).lookVector*45
769
		Debris:AddItem(bv,0.1)
770
		wait(5)
771
		for i = 1, 45 do
772
			Swait()
773
			SHOOT.Transparency = SHOOT.Transparency + 1/45
774
		end
775
		SHOOT:remove()
776
	end))
777
	for i = 1, 15 do
778
		Swait()
779
		SHOOT.Transparency = SHOOT.Transparency - 1/15
780
		ORI = ORI - 3
781
	end
782
	for i = 1, 15 do
783
		Swait()
784
		ORI = ORI - 3
785
	end
786
	wait(MRANDOM(2,8)/10)
787
	PAW_HAHA(SHOOT.CFrame*CF(0,0,-SHOOT.Size.Z/2).p,Mouse.Hit.p,14)
788
	CamShake(4,4)
789
	GOODRIDDANCE = true
790
end
791
function Aerial_Bombardament()
792
	local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
793
	if HITFLOOR then
794
		ATTACK = true
795
		Rooted = true
796
		local bv = Instance.new("BodyVelocity") 
797
		bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
798
		bv.velocity = CF(RootPart.Position,RootPart.CFrame*CF(0,1.5,-2).p).lookVector*175
799
		bv.Parent = RootPart
800
		local GYRO = IT("BodyGyro",RootPart)
801
		GYRO.D = 2
802
		GYRO.P = 20000
803
		GYRO.MaxTorque = VT(0,4000000,0)
804
		GYRO.CFrame = CF(RootPart.Position,RootPart.CFrame*CF(0,0,-5).p)
805
		CreateSound(145486992,Torso,10,0.85,false)
806
		for i=0, 0.05, 0.1 / Animation_Speed do
807
			Swait()
808
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(65), RAD(0), RAD(-10)), 1 / Animation_Speed)
809
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(10)), 1 / Animation_Speed)
810
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(50), RAD(-20), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
811
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15), RAD(20), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
812
			if ANIM == "Fall" or ANIM == "Jump" then
813
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(1), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
814
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
815
			else
816
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-5), RAD(80), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
817
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
818
			end
819
		end
820
		bv:Remove()
821
		local E = 360/15
822
		for i = 1, 15 do
823
			Swait()
824
			WACKYEFFECT({Time = 10, EffectType = "Wave", Size = VT(8,1,8), Size2 = VT(2,15,2), Transparency = 0.9, Transparency2 = 1, CFrame = CF(RootPart.Position,HITPOS) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
825
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(i*E), RAD(0), RAD(0)), 2 / Animation_Speed)
826
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
827
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(5), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
828
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-5), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
829
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(-35), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
830
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
831
		end
832
		WACKYEFFECT({EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(20,20,20), Transparency = 0.5, Transparency2 = 1, CFrame = CF(Torso.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(17/255,17/255,17/255), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
833
		for i = 1, 15 do
834
			coroutine.resume(coroutine.create(function()
835
				Conjour()
836
			end))
837
		end
838
		local LANDED = nil
839
		local POS = nil
840
		coroutine.resume(coroutine.create(function()
841
			repeat
842
				Swait()
843
				RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
844
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
845
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35 - 4 * COS(SINE / 6)), RAD(0), RAD(45 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
846
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
847
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
848
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
849
			until LANDED ~= nil
850
		end))
851
		repeat
852
			Swait()
853
			local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4.2, Character)
854
			if HITFLOOR then
855
				LANDED = HITFLOOR
856
				POS = HITPOS
857
			end
858
		until LANDED ~= nil
859
		GYRO:remove()
860
		CamShake(6,3)
861
		CreateSound(765590102, Torso, 2, (MRANDOM(8,12)/10)+0.3, false)
862
		ATTACK = false
863
		Rooted = false
864
	end
865
end
866
function Point_Blank()
867
	ATTACK = true
868
	Rooted = true
869
	local HIT = nil
870
	local HUMAN = nil
871
	local ROOT = nil
872
	CreateSound(145486992,Torso,10,0.85,false)
873
	for i=0, 0.5, 0.1 / Animation_Speed do
874
		Swait()
875
		if HIT ~= nil then
876
			break
877
		end
878
		for index, CHILD in pairs(workspace:GetDescendants()) do
879
			if CHILD.ClassName == "Model" and CHILD ~= Character then
880
				local HUM = CHILD:FindFirstChildOfClass("Humanoid")
881
				if HUM then
882
					local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
883
					if TORSO and HUM.Health > 0 then
884
						if (TORSO.Position - RootPart.CFrame*CF(0,0,-2).p).Magnitude <= 2 then
885
							ROOT = TORSO
886
							HUMAN = HUM
887
							HIT = CHILD
888
						end
889
					end
890
				end
891
			end
892
		end
893
		RootPart.CFrame = Clerp(RootPart.CFrame, RootPart.CFrame, 0.07) * CF(0,0,-1)
894
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.75) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed)
895
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
896
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
897
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(135), RAD(0), RAD(12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
898
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
899
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-5), RAD(-80), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
900
	end
901
	if HIT then
902
		local bv = Instance.new("BodyVelocity") 
903
		bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
904
		bv.velocity = CF(RootPart.Position,RootPart.CFrame*CF(0,1.5,2).p).lookVector*75
905
		bv.Parent = RootPart
906
		Debris:AddItem(bv,0.1)
907
		coroutine.resume(coroutine.create(function()
908
			local GUNS = {}
909
			for i = 1, 4 do
910
				local SHOOT = OhnoItsAShotgun()
911
				local CFRAME = CF(ROOT.Position) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,MRANDOM(15,25)/3,MRANDOM(15,25)/3)
912
				SHOOT.CFrame = CF(CFRAME.p,ROOT.Position)
913
				CreateSound(233856115, SHOOT, 2, (MRANDOM(8,12)/10)+0.3, false)
914
				table.insert(GUNS,SHOOT)
915
			end
916
			for i = 1, 25 do
917
				Swait()
918
				for E = 1, #GUNS do
919
					GUNS[E].Transparency = GUNS[E].Transparency - 1/25
920
				end
921
			end
922
			wait(0.1)
923
			CamShake(8,15)
924
			for E = 1, #GUNS do
925
				local SHOOT = GUNS[E]
926
				coroutine.resume(coroutine.create(function()
927
					PAW_HAHA(SHOOT.CFrame*CF(0,0,-SHOOT.Size.Z/2).p,SHOOT.CFrame*CF(0,0,-15).p,17)
928
					SHOOT.CFrame = SHOOT.CFrame * ANGLES(RAD(45), RAD(0), RAD(0))
929
					SHOOT.CanCollide = true
930
					SHOOT.Anchored = false
931
					SHOOT.Parent = workspace
932
					local bv = Instance.new("BodyVelocity",SHOOT) 
933
					bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
934
					bv.velocity = CF(SHOOT.Position,SHOOT.CFrame*CF(0,2.5,2).p).lookVector*45
935
					Debris:AddItem(bv,0.1)
936
					wait(5)
937
					for i = 1, 45 do
938
						Swait()
939
						SHOOT.Transparency = SHOOT.Transparency + 1/45
940
					end
941
				end))
942
				wait()
943
			end
944
		end))
945
		CreateSound(GRUNTS[MRANDOM(1,#GRUNTS)], Torso, 6, 1.1, false)
946
		for i=0, 1, 0.1 / Animation_Speed do
947
			Swait()
948
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
949
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
950
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
951
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
952
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
953
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
954
		end
955
	end
956
	ATTACK = false
957
	Rooted = false
958
end
959
function Tripwire()
960
	ATTACK = true
961
	Rooted = true
962
	TRIPWIRE = true
963
	coroutine.resume(coroutine.create(function()
964
		repeat
965
			Swait()
966
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed)
967
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
968
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-100)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
969
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(5), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
970
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
971
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
972
		until ATTACK == false
973
	end))
974
	local SHOOT = OhnoItsAShotgun()
975
	local CFRAME = CF(-1.5,0,1.5) * ANGLES(RAD(0), RAD(45), RAD(0))
976
	SHOOT.CFrame = Torso.CFrame*CFRAME
977
	coroutine.resume(coroutine.create(function()
978
		repeat
979
			SHOOT.CFrame = Clerp(SHOOT.CFrame,Torso.CFrame*CFRAME,0.1)
980
			Swait()
981
		until HOLD == true
982
		TRIPWIRE = false
983
		local LOC = SHOOT.CFrame*CF(0,3,0).p
984
		for i = 1, 15 do
985
			Swait()
986
			SHOOT.Transparency = SHOOT.Transparency - 1/15
987
			SHOOT.CFrame = Clerp(SHOOT.CFrame,CF(LOC,Mouse.Hit.p),0.3)
988
		end
989
		SHOOT.Transparency = 0
990
		for i = 1, 2 do
991
			Swait()
992
			SHOOT.CFrame = Clerp(SHOOT.CFrame,CF(LOC,Mouse.Hit.p),0.5)
993
		end
994
		PAW_HAHA(SHOOT.CFrame*CF(0,0,-SHOOT.Size.Z/2).p,Mouse.Hit.p,10)
995
		CamShake(8,9)
996
		SHOOT.CFrame = SHOOT.CFrame * ANGLES(RAD(45), RAD(0), RAD(0))
997
		SHOOT.CanCollide = true
998
		SHOOT.Anchored = false
999
		SHOOT.Parent = workspace
1000
		local bv = Instance.new("BodyVelocity",SHOOT) 
1001
		bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1002
		bv.velocity = CF(SHOOT.Position,SHOOT.CFrame*CF(0,2.5,2).p).lookVector*45
1003
		Debris:AddItem(bv,0.1)
1004
		wait(5)
1005
		for i = 1, 45 do
1006
			Swait()
1007
			SHOOT.Transparency = SHOOT.Transparency + 1/45
1008
		end
1009
	end))
1010
	CreateSound(233856115, SHOOT, 1.2, (MRANDOM(8,12)/10)-0.3, false)
1011
	for i = 1, 15 do
1012
		Swait()
1013
		SHOOT.Transparency = SHOOT.Transparency - 1/150
1014
	end
1015
	ATTACK = false
1016
	Rooted = false
1017
end
1018
function Mend()
1019
	if Humanoid.Health < Humanoid.MaxHealth - 150 then
1020
		ATTACK = true
1021
		Rooted = true
1022
		for i=0, 0.25, 0.1 / Animation_Speed do
1023
			Swait()
1024
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
1025
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-25)), 1 / Animation_Speed)
1026
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1027
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1028
			RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.2, -1) * ANGLES(RAD(-25), RAD(90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
1029
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, -0.5) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
1030
		end
1031
		local LOOP = 0
1032
		repeat
1033
			LOOP = LOOP + 1
1034
			Swait()
1035
			Humanoid.Health = Humanoid.Health + 1
1036
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
1037
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
1038
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.4) * ANGLES(RAD(55), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1039
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.7 - 0.4 * SIN(LOOP / 4)) * ANGLES(RAD(50 + 25 * COS(LOOP / 4)), RAD(0), RAD(65)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1040
			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)
1041
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, -0.5) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1042
		until KEYHOLD == false or Humanoid.Health == Humanoid.MaxHealth
1043
		for i=0, 0.15, 0.1 / Animation_Speed do
1044
			Swait()
1045
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
1046
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-25)), 1 / Animation_Speed)
1047
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1048
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1049
			RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.2, -1) * ANGLES(RAD(-25), RAD(90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
1050
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, -0.5) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
1051
		end
1052
		ATTACK = false
1053
		Rooted = false
1054
	end
1055
end
1056
function Taunt()
1057
	ATTACK = true
1058
	Rooted = true
1059
	local L = CreateSound(1278007556,Head,8,1.1,false)
1060
	L.EmitterSize = 25
1061
	for i = 1, 20 do
1062
		Swait()
1063
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed)
1064
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
1065
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-110)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1066
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.3, -0.35) * ANGLES(RAD(0), RAD(0), RAD(80)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1067
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
1068
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
1069
	end
1070
	for i = 1, 40 do
1071
		Swait()
1072
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.17, -0.075 + 0.1 * SIN(i / 3)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
1073
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-3), RAD(15 * SIN(i / 1.5)), RAD(0)), 1 / Animation_Speed)
1074
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(-5), RAD(120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1075
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(5), RAD(-120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1076
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
1077
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
1078
	end
1079
	ATTACK = false
1080
	Rooted = false
1081
end
1082
function DoubleJump()
1083
	ATTACK = true
1084
	Rooted = false
1085
	Torso.Velocity = Vector3.new(Torso.Velocity.X,125,Torso.Velocity.Z)
1086
	CreateSound(159882477, Head, 4, 1, false)
1087
	CreateSound(1112042117, Torso, 2, 1, false)
1088
	local E = 360/12
1089
	for i=1, 12 do
1090
		Swait()
1091
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(i*E), RAD(0), RAD(0)), 2.5 / Animation_Speed)
1092
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1093
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1094
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1095
		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)
1096
		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)
1097
	end
1098
	ATTACK = false
1099
	Rooted = false
1100
end
1101
1102
--//=================================\\
1103
--||	  ASSIGN THINGS TO KEYS
1104
--\\=================================//
1105
1106
function MouseDown(Mouse)
1107
	HOLD = true
1108
	if ATTACK == false then
1109
	end
1110
end
1111
1112
function MouseUp(Mouse)
1113
HOLD = false
1114
end
1115
1116
local READYTODOUBLE = false
1117
local DOUBLED = false
1118
1119
function KeyDown(Key)
1120
	KEYHOLD = true
1121
	if Key == "c" and ATTACK == false then
1122
		Conjour()
1123
	end
1124
1125
	if Key == "v" and ATTACK == false then
1126
		Aerial_Bombardament()
1127
	end
1128
1129
	if Key == "b" and ATTACK == false then
1130
		Point_Blank()
1131
	end
1132
1133
	if Key == "f" and ATTACK == false and TRIPWIRE == false and ANIM == "Idle" then
1134
		Tripwire()
1135
	end
1136
1137
	if Key == "m" and ATTACK == false then
1138
		Mend()
1139
	end
1140
1141
	if Key == "t" and ATTACK == false then
1142
		Taunt()
1143
	end
1144
1145
	if string.byte(Key) == 32 and READYTODOUBLE == true and ATTACK == false and Humanoid.Jump == true and DOUBLED == false then
1146
		READYTODOUBLE = false
1147
		DOUBLED = true
1148
		DoubleJump()
1149
	end
1150
end
1151
1152
function KeyUp(Key)
1153
	KEYHOLD = false
1154
end
1155
1156
	Mouse.Button1Down:connect(function(NEWKEY)
1157
		MouseDown(NEWKEY)
1158
	end)
1159
	Mouse.Button1Up:connect(function(NEWKEY)
1160
		MouseUp(NEWKEY)
1161
	end)
1162
	Mouse.KeyDown:connect(function(NEWKEY)
1163
		KeyDown(NEWKEY)
1164
	end)
1165
	Mouse.KeyUp:connect(function(NEWKEY)
1166
		KeyUp(NEWKEY)
1167
	end)
1168
1169
--//=================================\\
1170
--\\=================================//
1171
1172
function unanchor()
1173
	for _, c in pairs(Character:GetChildren()) do
1174
		if c:IsA("BasePart") and c ~= RootPart then
1175
			c.Anchored = false
1176
		end
1177
	end
1178
	if UNANCHOR == true then
1179
		RootPart.Anchored = false
1180
	else
1181
		RootPart.Anchored = true
1182
	end
1183
end
1184
1185
--//=================================\\
1186
--||	WRAP THE WHOLE SCRIPT UP
1187
--\\=================================//
1188
1189
Humanoid.Changed:connect(function(Jump)
1190
	if Jump == "Jump" and (Disable_Jump == true) then
1191
		Humanoid.Jump = false
1192
	elseif Jump == "Jump" and (Disable_Jump == false) and DOUBLED == false then
1193
		wait(0.1)
1194
		READYTODOUBLE = true
1195
	end
1196
end)
1197
1198
while true do
1199
	Swait()
1200
	script.Parent = WEAPONGUI
1201
	ANIMATE.Parent = nil
1202
	for _,v in next, Humanoid:GetPlayingAnimationTracks() do
1203
	    v:Stop();
1204
	end
1205
	SINE = SINE + CHANGE
1206
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1207
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1208
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
1209
	local WALKSPEEDVALUE = 8 / (Humanoid.WalkSpeed / 16)
1210
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
1211
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0.1 * COS(SINE / (WALKSPEEDVALUE/2))) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1212
		Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1213
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.25 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10+50 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
1214
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.25 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-10+50 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
1215
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
1216
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1217
		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)
1218
		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.7 / Animation_Speed)
1219
		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.7 / Animation_Speed)
1220
	end
1221
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
1222
		ANIM = "Jump"
1223
		if ATTACK == false then
1224
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
1225
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
1226
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(25 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1227
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(-25 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1228
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(1), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
1229
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
1230
		end
1231
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
1232
		ANIM = "Fall"
1233
		if ATTACK == false then
1234
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
1235
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
1236
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(45 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1237
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1238
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
1239
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
1240
		end
1241
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
1242
		ANIM = "Idle"
1243
		DOUBLED = false
1244
		READYTODOUBLE = false
1245
		if ATTACK == false then
1246
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1 + 0.05 * SIN(SINE / 12)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed)
1247
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(7 * COS(SINE / 24)), RAD(0)), 1 / Animation_Speed)
1248
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(0), RAD(-100)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1249
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.3 + 0.05 * SIN(SINE / 12), -0.35) * ANGLES(RAD(0), RAD(0), RAD(70)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1250
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
1251
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
1252
		end
1253
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
1254
		ANIM = "Walk"
1255
		DOUBLED = false
1256
		READYTODOUBLE = false
1257
		if ATTACK == false then
1258
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.05) * ANGLES(RAD(15), RAD(0), RAD(-7 * COS(SINE / (WALKSPEEDVALUE)))), 1 / Animation_Speed)
1259
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(7 * COS(SINE / (WALKSPEEDVALUE)))), 1 / Animation_Speed)
1260
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(-5), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1261
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(5), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1262
			RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
1263
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
1264
		end
1265
	end
1266
	unanchor()
1267
	if Rooted == false then
1268
		Disable_Jump = false
1269
		Humanoid.WalkSpeed = Speed
1270
	elseif Rooted == true then
1271
		Disable_Jump = true
1272
		Humanoid.WalkSpeed = 0
1273
	end
1274
	BMUSIC.SoundId = "rbxassetid://"..SONGID
1275
	BMUSIC.Looped = true
1276
	BMUSIC.Pitch = PITCH
1277
	BMUSIC.Volume = VOLUME
1278
	BMUSIC.Playing = true
1279
	if BMUSIC.Parent ~= RootPart then
1280
		BMUSIC = IT("Sound",RootPart)
1281
	end
1282
	Humanoid.Name = "NONHUM"
1283
	HEALTHCOVER:TweenSize(UD2(1 * (Humanoid.Health / Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", 0.1, 0.1)
1284
	HEALTHTEXT.Text = math.ceil(Humanoid.Health).."/"..Humanoid.MaxHealth
1285
end
1286
1287
--//=================================\\
1288
--\\=================================//
1289
1290
1291
1292
1293
1294
--//====================================================\\--
1295
--||			  		 END OF SCRIPT
1296
--\\====================================================//--