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