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