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