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