View difference between Paste ID: ffXdaVsS and dSaykJb5
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
3
do
4
	print("FE Compatibility code by Mokiros")
5
	script.Parent = Player.Character
6
7
	--RemoteEvent for communicating
8
	local Event = Instance.new("RemoteEvent")
9
	Event.Name = "UserInput_Event"
10
11
	--Fake event to make stuff like Mouse.KeyDown work
12
	local function fakeEvent()
13
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
14
		t.connect = t.Connect
15
		return t
16
	end
17
18
	--Creating fake input objects with fake variables
19
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
20
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
21
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
22
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
23
	end}
24
	--Merged 2 functions into one by checking amount of arguments
25
	CAS.UnbindAction = CAS.BindAction
26
27
	--This function will trigger the events that have been :Connect()'ed
28
	local function te(self,ev,...)
29
		local t = m[ev]
30
		if t and t._fakeEvent and t.Function then
31
			t.Function(...)
32
		end
33
	end
34
	m.TrigEvent = te
35
	UIS.TrigEvent = te
36
37
	Event.OnServerEvent:Connect(function(plr,io)
38
	    if plr~=Player then return end
39
		if io.isMouse then
40
			m.Target = io.Target
41
			m.Hit = io.Hit
42
		else
43
			local b = io.UserInputState == Enum.UserInputState.Begin
44
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
45
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
46
			end
47
			for _,t in pairs(CAS.Actions) do
48
				for _,k in pairs(t.Keys) do
49
					if k==io.KeyCode then
50
						t.Function(t.Name,io.UserInputState,io)
51
					end
52
				end
53
			end
54
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
55
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
56
	    end
57
	end)
58
	Event.Parent = NLS([==[
59
	local Player = game:GetService("Players").LocalPlayer
60
	local Event = script:WaitForChild("UserInput_Event")
61
62
	local UIS = game:GetService("UserInputService")
63
	local input = function(io,a)
64
		if a then return end
65
		--Since InputObject is a client-side instance, we create and pass table instead
66
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
67
	end
68
	UIS.InputBegan:Connect(input)
69
	UIS.InputEnded:Connect(input)
70
71
	local Mouse = Player:GetMouse()
72
	local h,t
73
	--Give the server mouse data 30 times every second, but only if the values changed
74
	--If player is not moving their mouse, client won't fire events
75
	while wait(1/30) do
76
		if h~=Mouse.Hit or t~=Mouse.Target then
77
			h,t=Mouse.Hit,Mouse.Target
78
			Event:FireServer({isMouse=true,Target=t,Hit=h})
79
		end
80
	end]==],Player.Character)
81
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
82
end
83
84
script.Name = "Banisher Gun V3 / 1"
85
--//====================================================\\--
86
--||			   CREATED BY SHACKLUSTER
87
--\\====================================================//--
88
89
wait(0.2)
90
91
Player = Owner
92-
PlayerGui = Owner.OwnerGui
92+
93
Backpack = Player.Backpack
94
Character = Player.Character
95
Humanoid = Character.Humanoid
96
RootPart = Character["HumanoidRootPart"]
97
Torso = Character["Torso"]
98
Head = Character["Head"]
99
RightArm = Character["Right Arm"]
100
LeftArm = Character["Left Arm"]
101
RightLeg = Character["Right Leg"]
102
LeftLeg = Character["Left Leg"]
103
RootJoint = RootPart["RootJoint"]
104
Neck = Torso["Neck"]
105
RightShoulder = Torso["Right Shoulder"]
106
LeftShoulder = Torso["Left Shoulder"]
107
RightHip = Torso["Right Hip"]
108
LeftHip = Torso["Left Hip"]
109
local sick = Instance.new("Sound",Torso)
110
sick.SoundId = "rbxassetid://1138145518"
111
sick.Looped = true
112
sick.Pitch = 1
113
sick.Volume = 2
114
sick.TimePosition = 110
115
Character.Archivable = true
116
Humanoid.DisplayDistanceType = "None"
117
118
local naeeym2 = Instance.new("BillboardGui",Character)
119
naeeym2.AlwaysOnTop = true
120
naeeym2.Size = UDim2.new(5,35,2,35)
121
naeeym2.StudsOffset = Vector3.new(0,3,0)
122
naeeym2.Adornee = Character.Head
123
naeeym2.Name = "Name"
124
local tecks2 = Instance.new("TextLabel",naeeym2)
125
tecks2.BackgroundTransparency = 1
126
tecks2.TextScaled = true
127
tecks2.BorderSizePixel = 0
128
tecks2.Text = "Its Ya Daily Skid Police"
129
tecks2.Font = "Code"
130
tecks2.TextSize = 30
131
tecks2.TextTransparency = 1
132
tecks2.TextStrokeTransparency = 1
133
tecks2.TextColor3 = Color3.new(1/0,0/1,1/0)
134
tecks2.Size = UDim2.new(1,0,0.5,0)
135
tecks2.Parent = naeeym2
136
137
IT = Instance.new
138
CF = CFrame.new
139
VT = Vector3.new
140
RAD = math.rad
141
C3 = Color3.new
142
UD2 = UDim2.new
143
BRICKC = BrickColor.new
144
ANGLES = CFrame.Angles
145
EULER = CFrame.fromEulerAnglesXYZ
146
COS = math.cos
147
ACOS = math.acos
148
SIN = math.sin
149
ASIN = math.asin
150
ABS = math.abs
151
MRANDOM = math.random
152
FLOOR = math.floor
153
154
--//=================================\\
155
--|| 	      USEFUL VALUES
156
--\\=================================//
157
158
Animation_Speed = 3
159
local FORCERESET = false
160
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
161
local Speed = 16
162
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
163
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
164
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
165
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
166
local DAMAGEMULTIPLIER = 1
167
local ANIM = "Idle"
168
local ATTACK = false
169
local EQUIPPED = false
170
local HOLD = false
171
local COMBO = 1
172
local Rooted = false
173
local INTRO = false
174
local Gun = IT("Model")
175
Gun.Name = "Gun"
176
local SINE = 0
177
local KEYHOLD = false
178
local CHANGE = 2 / Animation_Speed
179
local WALKINGANIM = false
180
local VALUE1 = false
181
local VALUE2 = false
182
local ROBLOXIDLEANIMATION = IT("Animation")
183
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
184
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
185
--ROBLOXIDLEANIMATION.Parent = Humanoid
186
local WEAPONGUI = IT("ScreenGui", PlayerGui)
187
WEAPONGUI.Name = "BanishV3Gui"
188
local Weapon = IT("Model")
189
Weapon.Name = "Adds"
190
local Effects = IT("Folder", Weapon)
191
Effects.Name = "Effects"
192
local ANIMATOR = Humanoid.Animator
193
local ANIMATE = Character:FindFirstChild("Animate")
194
local UNANCHOR = true
195
local TOBANISH = {}
196
script.Parent = PlayerGui
197
198
--//=================================\\
199
--\\=================================//
200
201
202
--//=================================\\
203
--||		  CUSTOMIZATION
204
--\\=================================//
205
206
Class_Name = "Sharpshooter"
207
Weapon_Name = "Add-ons"
208
209
	Custom_Color_1 = BRICKC("Really black"); --1st color for the weapon.
210
	Custom_Color_2 = BRICKC("Maroon"); --2nd color for the weapon.
211
212
	Custom_Color_3 = BRICKC("Really red"); --Color for the abilities.
213
	Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
214
	Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
215
	Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
216
	Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
217
218
	Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
219
	Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
220
	Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
221
	Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
222
	Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
223
224
225
Player_Size = 1 --Size of the player.
226
Animation_Speed = 3
227
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
228
229
local Speed = 16
230
local Effects2 = {}
231
232
--//=================================\\
233
--|| 	  END OF CUSTOMIZATION
234
--\\=================================//
235
236
237
--//=================================\\
238
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
239
--\\=================================//
240
241
ArtificialHB = Instance.new("BindableEvent", script)
242
ArtificialHB.Name = "ArtificialHB"
243
244
script:WaitForChild("ArtificialHB")
245
246
frame = Frame_Speed
247
tf = 0
248
allowframeloss = false
249
tossremainder = false
250
lastframe = tick()
251
script.ArtificialHB:Fire()
252
253
game:GetService("RunService").Heartbeat:connect(function(s, p)
254
	tf = tf + s
255
	if tf >= frame then
256
		if allowframeloss then
257
			script.ArtificialHB:Fire()
258
			lastframe = tick()
259
		else
260
			for i = 1, math.floor(tf / frame) do
261
				script.ArtificialHB:Fire()
262
			end
263
		lastframe = tick()
264
		end
265
		if tossremainder then
266
			tf = 0
267
		else
268
			tf = tf - frame * math.floor(tf / frame)
269
		end
270
	end
271
end)
272
273
--//=================================\\
274
--\\=================================//
275
276
--//=================================\\
277
--|| 	      SOME FUNCTIONS
278
--\\=================================//
279
280
function Clerp(a, b, t)
281
	local qa = {QuaternionFromCFrame(a)}
282
	local qb = {QuaternionFromCFrame(b)}
283
	local ax, ay, az = a.x, a.y, a.z
284
	local bx, by, bz = b.x, b.y, b.z
285
	local _t = 1 - t
286
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
287
end
288
289
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
290
	local frame = IT("Frame")
291
	frame.BackgroundTransparency = TRANSPARENCY
292
	frame.BorderSizePixel = BORDERSIZEPIXEL
293
	frame.Position = POSITION
294
	frame.Size = SIZE
295
	frame.BackgroundColor3 = COLOR
296
	frame.BorderColor3 = BORDERCOLOR
297
	frame.Name = NAME
298
	frame.Parent = PARENT
299
	return frame
300
end
301
302
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
303
	local label = IT("TextLabel")
304
	label.BackgroundTransparency = 1
305
	label.Size = UD2(1, 0, 1, 0)
306
	label.Position = UD2(0, 0, 0, 0)
307
	label.TextColor3 = TEXTCOLOR
308
	label.TextStrokeTransparency = STROKETRANSPARENCY
309
	label.TextTransparency = TRANSPARENCY
310
	label.FontSize = TEXTFONTSIZE
311
	label.Font = TEXTFONT
312
	label.BorderSizePixel = BORDERSIZEPIXEL
313
	label.TextScaled = false
314
	label.Text = TEXT
315
	label.Name = NAME
316
	label.Parent = PARENT
317
	return label
318
end
319
320
function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
321
	if FLOOR ~= nil then
322
		coroutine.resume(coroutine.create(function()
323
			local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
324
			PART.CFrame = CF(POSITION)
325
			for i = 1, 45 do
326
				local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
327
				RingPiece.Material = FLOOR.Material
328
				RingPiece.Color = FLOOR.Color
329
				RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
330
				Debris:AddItem(RingPiece,SWAIT)
331
			end
332
			PART:remove()
333
		end))
334
	end
335
end
336
337
function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
338
	if FLOOR ~= nil then
339
		for i = 1, AMOUNT do
340
			local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
341
			DEBREE.Material = FLOOR.Material
342
			DEBREE.Color = FLOOR.Color
343
			DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
344
			DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
345
			coroutine.resume(coroutine.create(function()
346
				Swait(15)
347
				DEBREE.Parent = workspace
348
				DEBREE.CanCollide = true
349
				Debris:AddItem(DEBREE,SWAIT)
350
			end))
351
		end
352
	end
353
end
354
355
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
356
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
357
end
358
359
function PositiveAngle(NUMBER)
360
	if NUMBER >= 0 then
361
		NUMBER = 0
362
	end
363
	return NUMBER
364
end
365
366
function NegativeAngle(NUMBER)
367
	if NUMBER <= 0 then
368
		NUMBER = 0
369
	end
370
	return NUMBER
371
end
372
373
function Swait(NUMBER)
374
	if NUMBER == 0 or NUMBER == nil then
375
		ArtificialHB.Event:wait()
376
	else
377
		for i = 1, NUMBER do
378
			ArtificialHB.Event:wait()
379
		end
380
	end
381
end
382
383
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
384
	local NEWMESH = IT(MESH)
385
	if MESH == "SpecialMesh" then
386
		NEWMESH.MeshType = MESHTYPE
387
		if MESHID ~= "nil" and MESHID ~= "" then
388
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
389
		end
390
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
391
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
392
		end
393
	end
394
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
395
	NEWMESH.Scale = SCALE
396
	NEWMESH.Parent = PARENT
397
	return NEWMESH
398
end
399
400
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
401
	local NEWPART = IT("Part")
402
	NEWPART.formFactor = FORMFACTOR
403
	NEWPART.Reflectance = REFLECTANCE
404
	NEWPART.Transparency = TRANSPARENCY
405
	NEWPART.CanCollide = false
406
	NEWPART.Locked = true
407
	NEWPART.Anchored = true
408
	if ANCHOR == false then
409
		NEWPART.Anchored = false
410
	end
411
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
412
	NEWPART.Name = NAME
413
	NEWPART.Size = SIZE
414
	NEWPART.Position = Torso.Position
415
	NEWPART.Material = MATERIAL
416
	NEWPART:BreakJoints()
417
	NEWPART.Parent = PARENT
418
	return NEWPART
419
end
420
421
	local function weldBetween(a, b)
422
	    local weldd = Instance.new("ManualWeld")
423
	    weldd.Part0 = a
424
	    weldd.Part1 = b
425
	    weldd.C0 = CFrame.new()
426
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
427
	    weldd.Parent = a
428
	    return weldd
429
	end
430
431
432
function QuaternionFromCFrame(cf)
433
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
434
	local trace = m00 + m11 + m22
435
	if trace > 0 then 
436
		local s = math.sqrt(1 + trace)
437
		local recip = 0.5 / s
438
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
439
	else
440
		local i = 0
441
		if m11 > m00 then
442
			i = 1
443
		end
444
		if m22 > (i == 0 and m00 or m11) then
445
			i = 2
446
		end
447
		if i == 0 then
448
			local s = math.sqrt(m00 - m11 - m22 + 1)
449
			local recip = 0.5 / s
450
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
451
		elseif i == 1 then
452
			local s = math.sqrt(m11 - m22 - m00 + 1)
453
			local recip = 0.5 / s
454
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
455
		elseif i == 2 then
456
			local s = math.sqrt(m22 - m00 - m11 + 1)
457
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
458
		end
459
	end
460
end
461
 
462
function QuaternionToCFrame(px, py, pz, x, y, z, w)
463
	local xs, ys, zs = x + x, y + y, z + z
464
	local wx, wy, wz = w * xs, w * ys, w * zs
465
	local xx = x * xs
466
	local xy = x * ys
467
	local xz = x * zs
468
	local yy = y * ys
469
	local yz = y * zs
470
	local zz = z * zs
471
	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))
472
end
473
 
474
function QuaternionSlerp(a, b, t)
475
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
476
	local startInterp, finishInterp;
477
	if cosTheta >= 0.0001 then
478
		if (1 - cosTheta) > 0.0001 then
479
			local theta = ACOS(cosTheta)
480
			local invSinTheta = 1 / SIN(theta)
481
			startInterp = SIN((1 - t) * theta) * invSinTheta
482
			finishInterp = SIN(t * theta) * invSinTheta
483
		else
484
			startInterp = 1 - t
485
			finishInterp = t
486
		end
487
	else
488
		if (1 + cosTheta) > 0.0001 then
489
			local theta = ACOS(-cosTheta)
490
			local invSinTheta = 1 / SIN(theta)
491
			startInterp = SIN((t - 1) * theta) * invSinTheta
492
			finishInterp = SIN(t * theta) * invSinTheta
493
		else
494
			startInterp = t - 1
495
			finishInterp = t
496
		end
497
	end
498
	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
499
end
500
501
function Clerp(a, b, t)
502
	local qa = {QuaternionFromCFrame(a)}
503
	local qb = {QuaternionFromCFrame(b)}
504
	local ax, ay, az = a.x, a.y, a.z
505
	local bx, by, bz = b.x, b.y, b.z
506
	local _t = 1 - t
507
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
508
end
509
510
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
511
	local frame = IT("Frame")
512
	frame.BackgroundTransparency = TRANSPARENCY
513
	frame.BorderSizePixel = BORDERSIZEPIXEL
514
	frame.Position = POSITION
515
	frame.Size = SIZE
516
	frame.BackgroundColor3 = COLOR
517
	frame.BorderColor3 = BORDERCOLOR
518
	frame.Name = NAME
519
	frame.Parent = PARENT
520
	return frame
521
end
522
523
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
524
	local label = IT("TextLabel")
525
	label.BackgroundTransparency = 1
526
	label.Size = UD2(1, 0, 1, 0)
527
	label.Position = UD2(0, 0, 0, 0)
528
	label.TextColor3 = TEXTCOLOR
529
	label.TextStrokeTransparency = STROKETRANSPARENCY
530
	label.TextTransparency = TRANSPARENCY
531
	label.FontSize = TEXTFONTSIZE
532
	label.Font = TEXTFONT
533
	label.BorderSizePixel = BORDERSIZEPIXEL
534
	label.TextScaled = false
535
	label.Text = TEXT
536
	label.Name = NAME
537
	label.Parent = PARENT
538
	return label
539
end
540
541
function NoOutlines(PART)
542
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
543
end
544
545
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
546
	local NEWWELD = IT(TYPE)
547
	NEWWELD.Part0 = PART0
548
	NEWWELD.Part1 = PART1
549
	NEWWELD.C0 = C0
550
	NEWWELD.C1 = C1
551
	NEWWELD.Parent = PARENT
552
	return NEWWELD
553
end
554
555
local S = IT("Sound")
556
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
557
	local NEWSOUND = nil
558
	coroutine.resume(coroutine.create(function()
559
		NEWSOUND = S:Clone()
560
		NEWSOUND.Parent = PARENT
561
		NEWSOUND.Volume = VOLUME
562
		NEWSOUND.Pitch = PITCH
563
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
564
		NEWSOUND:play()
565
		if DOESLOOP == true then
566
			NEWSOUND.Looped = true
567
		else
568
			repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
569
			NEWSOUND:remove()
570
		end
571
	end))
572
	return NEWSOUND
573
end
574
575
function CFrameFromTopBack(at, top, back)
576
	local right = top:Cross(back)
577
	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)
578
end
579
580
--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})
581
function WACKYEFFECT(Table)
582
	local TYPE = (Table.EffectType or "Sphere")
583
	local SIZE = (Table.Size or VT(1,1,1))
584
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
585
	local TRANSPARENCY = (Table.Transparency or 0)
586
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
587
	local CFRAME = (Table.CFrame or Torso.CFrame)
588
	local MOVEDIRECTION = (Table.MoveToPos or nil)
589
	local ROTATION1 = (Table.RotationX or 0)
590
	local ROTATION2 = (Table.RotationY or 0)
591
	local ROTATION3 = (Table.RotationZ or 0)
592
	local MATERIAL = (Table.Material or "Neon")
593
	local COLOR = (Table.Color or C3(1,1,1))
594
	local TIME = (Table.Time or 45)
595
	local SOUNDID = (Table.SoundID or nil)
596
	local SOUNDPITCH = (Table.SoundPitch or nil)
597
	local SOUNDVOLUME = (Table.SoundVolume or nil)
598
	coroutine.resume(coroutine.create(function()
599
		local PLAYSSOUND = false
600
		local SOUND = nil
601
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
602
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
603
			PLAYSSOUND = true
604
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
605
		end
606
		EFFECT.Color = COLOR
607
		local MSH = nil
608
		if TYPE == "Sphere" then
609
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
610
		elseif TYPE == "Block" then
611
			MSH = IT("BlockMesh",EFFECT)
612
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
613
		elseif TYPE == "Wave" then
614
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
615
		elseif TYPE == "Ring" then
616
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
617
		elseif TYPE == "Slash" then
618
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
619
		elseif TYPE == "Round Slash" then
620
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
621
		elseif TYPE == "Swirl" then
622
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
623
		elseif TYPE == "Skull" then
624
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
625
		elseif TYPE == "Crystal" then
626
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
627
		end
628
		if MSH ~= nil then
629
			local MOVESPEED = nil
630
			if MOVEDIRECTION ~= nil then
631
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
632
			end
633
			local GROWTH = SIZE - ENDSIZE
634
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
635
			if TYPE == "Block" then
636
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
637
			else
638
				EFFECT.CFrame = CFRAME
639
			end
640
			for LOOP = 1, TIME+1 do
641
				Swait()
642
				MSH.Scale = MSH.Scale - GROWTH/TIME
643
				if TYPE == "Wave" then
644
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
645
				end
646
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
647
				if TYPE == "Block" then
648
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
649
				else
650
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
651
				end
652
				if MOVEDIRECTION ~= nil then
653
					local ORI = EFFECT.Orientation
654
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
655
					EFFECT.Orientation = ORI
656
				end
657
			end
658
			if PLAYSSOUND == false then
659
				EFFECT:remove()
660
			else
661
				SOUND.Stopped:Connect(function()
662
					EFFECT:remove()
663
				end)
664
			end
665
		else
666
			if PLAYSSOUND == false then
667
				EFFECT:remove()
668
			else
669
				repeat Swait() until SOUND.Playing == false
670
				EFFECT:remove()
671
			end
672
		end
673
	end))
674
end
675
676
local DECAL = IT("Decal")
677
function MakeRing()
678
	local RING = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Really red"), "MagicRing", VT(0, 0, 0), true)
679
	local MSH = IT("BlockMesh", RING)
680
	local TOP = DECAL:Clone()
681
	local BOTTOM = DECAL:Clone()
682
	TOP.Parent = RING
683
	BOTTOM.Parent = RING
684
	TOP.Face = "Top"
685
	BOTTOM.Face = "Bottom"
686
	TOP.Texture = "http://www.roblox.com/asset/?id=127817121"
687
	BOTTOM.Texture = "http://www.roblox.com/asset/?id=127817121"
688
	local function REMOVE()
689
		coroutine.resume(coroutine.create(function()
690
			local SIZE = MSH.Scale.X
691
			for i = 1, 35 do
692
				Swait()
693
				MSH.Scale = MSH.Scale - VT(SIZE, 0, SIZE) / 60
694
				TOP.Transparency = TOP.Transparency + 0.02857142857142857
695
				BOTTOM.Transparency = BOTTOM.Transparency + 0.02857142857142857
696
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(-5), RAD(0))
697
			end
698
			RING:remove()
699
		end))
700
	end
701
	return RING, MSH, REMOVE
702
end
703
704
function MakeForm(PART,TYPE)
705
	if TYPE == "Cyl" then
706
		local MSH = IT("CylinderMesh",PART)
707
	elseif TYPE == "Ball" then
708
		local MSH = IT("SpecialMesh",PART)
709
		MSH.MeshType = "Sphere"
710
	elseif TYPE == "Wedge" then
711
		local MSH = IT("SpecialMesh",PART)
712
		MSH.MeshType = "Wedge"
713
	end
714
end
715
716
function SpawnTrail(FROM,TO,BIG)
717
	local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
718
	MakeForm(TRAIL,"Cyl")
719
	local DIST = (FROM - TO).Magnitude
720
	if BIG == true then
721
		TRAIL.Size = VT(0.5,DIST,0.5)
722
	else
723
		TRAIL.Size = VT(0.25,DIST,0.25)
724
	end
725
	TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
726
	coroutine.resume(coroutine.create(function()
727
		for i = 1, 5 do
728
			Swait()
729
			TRAIL.Transparency = TRAIL.Transparency + 0.1
730
		end
731
		TRAIL:remove()
732
	end))
733
end
734
--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})
735
function WACKYEFFECT(Table)
736
	local TYPE = (Table.EffectType or "Sphere")
737
	local SIZE = (Table.Size or VT(1,1,1))
738
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
739
	local TRANSPARENCY = (Table.Transparency or 0)
740
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
741
	local CFRAME = (Table.CFrame or Torso.CFrame)
742
	local MOVEDIRECTION = (Table.MoveToPos or nil)
743
	local ROTATION1 = (Table.RotationX or 0)
744
	local ROTATION2 = (Table.RotationY or 0)
745
	local ROTATION3 = (Table.RotationZ or 0)
746
	local MATERIAL = (Table.Material or "Neon")
747
	local COLOR = (Table.Color or C3(1,1,1))
748
	local TIME = (Table.Time or 45)
749
	local SOUNDID = (Table.SoundID or nil)
750
	local SOUNDPITCH = (Table.SoundPitch or nil)
751
	local SOUNDVOLUME = (Table.SoundVolume or nil)
752
	coroutine.resume(coroutine.create(function()
753
		local PLAYSSOUND = false
754
		local SOUND = nil
755
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Really red"), "Effect", VT(1,1,1), true)
756
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
757
			PLAYSSOUND = true
758
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
759
		end
760
		EFFECT.Color = COLOR
761
		local MSH = nil
762
		if TYPE == "Sphere" then
763
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
764
		elseif TYPE == "Block" then
765
			MSH = IT("BlockMesh",EFFECT)
766
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
767
		elseif TYPE == "Wave" then
768
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
769
		elseif TYPE == "Ring" then
770
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
771
		elseif TYPE == "Slash" then
772
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
773
		elseif TYPE == "Round Slash" then
774
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
775
		elseif TYPE == "Swirl" then
776
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
777
		elseif TYPE == "Skull" then
778
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
779
		elseif TYPE == "Crystal" then
780
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
781
		end
782
		if MSH ~= nil then
783
			local MOVESPEED = nil
784
			if MOVEDIRECTION ~= nil then
785
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
786
			end
787
			local GROWTH = SIZE - ENDSIZE
788
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
789
			if TYPE == "Block" then
790
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
791
			else
792
				EFFECT.CFrame = CFRAME
793
			end
794
			for LOOP = 1, TIME+1 do
795
				Swait()
796
				MSH.Scale = MSH.Scale - GROWTH/TIME
797
				if TYPE == "Wave" then
798
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
799
				end
800
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
801
				if TYPE == "Block" then
802
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
803
				else
804
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
805
				end
806
				if MOVEDIRECTION ~= nil then
807
					local ORI = EFFECT.Orientation
808
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
809
					EFFECT.Orientation = ORI
810
				end
811
			end
812
			if PLAYSSOUND == false then
813
				EFFECT:remove()
814
			else
815
				SOUND.Stopped:Connect(function()
816
					EFFECT:remove()
817
				end)
818
			end
819
		else
820
			if PLAYSSOUND == false then
821
				EFFECT:remove()
822
			else
823
				repeat Swait() until SOUND.Playing == false
824
				EFFECT:remove()
825
			end
826
		end
827
	end))
828
end
829
830
function MakeForm(PART,TYPE)
831
	if TYPE == "Cyl" then
832
		local MSH = IT("CylinderMesh",PART)
833
	elseif TYPE == "Ball" then
834
		local MSH = IT("SpecialMesh",PART)
835
		MSH.MeshType = "Sphere"
836
	elseif TYPE == "Wedge" then
837
		local MSH = IT("SpecialMesh",PART)
838
		MSH.MeshType = "Wedge"
839
	end
840
end
841
842
function SpawnTrail(FROM,TO,BIG)
843
	local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
844
	MakeForm(TRAIL,"Cyl")
845
	local DIST = (FROM - TO).Magnitude
846
	if BIG == true then
847
		TRAIL.Size = VT(0.5,DIST,0.5)
848
	else
849
		TRAIL.Size = VT(0.25,DIST,0.25)
850
	end
851
	TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
852
	coroutine.resume(coroutine.create(function()
853
		for i = 1, 5 do
854
			Swait()
855
			TRAIL.Transparency = TRAIL.Transparency + 0.1
856
		end
857
		TRAIL:remove()
858
	end))
859
end
860
861
function SHAKECAM(POSITION, RANGE, INTENSITY, TIME)
862
	local TORSO = Torso
863
	local HUM = Humanoid
864
	if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
865
		coroutine.wrap(function()
866
			VT = Vector3.new
867
			MRANDOM = math.random
868
			local A = TIME
869
			local B = INTENSITY
870
			local C = true
871
			local HUMANOID = Humanoid
872
			local TIMER = A or 35
873
			local SHAKE = B or 5
874
			local FADE = C or true
875
			if HUMANOID then
876
				local FADER = SHAKE / TIMER
877
				for i = 1, TIMER do
878
					wait()
879
					HUMANOID.CameraOffset = VT(MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10)
880
				end
881
				HUMANOID.CameraOffset = VT(0, 0, 0)
882
			end
883
884
		end)()
885
	end
886
end
887
888
function chatfunc(text)
889
	local chat = coroutine.wrap(function()
890
	if Character:FindFirstChild("TalkingBillBoard")~= nil then
891
		Character:FindFirstChild("TalkingBillBoard"):destroy()
892
	end
893
	local Bill = Instance.new("BillboardGui",Character)
894
	Bill.Size = UDim2.new(0,100,0,40)
895
	Bill.StudsOffset = Vector3.new(0,3,0)
896
	Bill.Adornee = Character.Head
897
	Bill.Name = "TalkingBillBoard"
898
	local Hehe = Instance.new("TextLabel",Bill)
899
	Hehe.BackgroundTransparency = 1
900
	Hehe.BorderSizePixel = 0
901
	Hehe.Text = ""
902
	Hehe.Font = "Bodoni"
903
	Hehe.TextSize = 40
904
	Hehe.TextStrokeTransparency = 0
905
	Hehe.Size = UDim2.new(1,0,0.5,0)
906
	coroutine.resume(coroutine.create(function()
907
		while Hehe ~= nil do
908
			Swait()	
909
			Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))	
910
			Hehe.Rotation = math.random(-2.5,2.5)
911
			Hehe.TextColor3 = Color3.new(MRANDOM(55,255),0,0)
912
			Hehe.TextStrokeColor3 = Color3.new(0,0,0)
913
		end
914
	end))
915
	for i = 1,string.len(text),1 do
916
		Swait()
917
		Hehe.Text = string.sub(text,1,i)
918
	end
919
	Swait(90)--Re[math.random(1, 93)]
920
	for i = 0, 1, .025 do
921
		Swait()
922
		Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
923
		Hehe.TextStrokeTransparency = i
924
		Hehe.TextTransparency = i
925
	end
926
	Bill:Destroy()
927
	end)
928
chat()
929
end
930
931
Debris = game:GetService("Debris")
932
933
function CastProperRay(StartPos, EndPos, Distance, Ignore)
934
	local DIRECTION = CF(StartPos,EndPos).lookVector
935
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
936
end
937
938
function turnto(position)
939
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
940
end
941
942
--//=================================\\
943
--||	     RAGDOLL STUFF
944
--\\=================================//
945
946
function recurse(root,callback,i)
947
	i= i or 0
948
	for _,v in pairs(root:GetChildren()) do
949
		i = i + 1
950
		callback(i,v)
951
		
952
		if #v:GetChildren() > 0 then
953
			i = recurse(v,callback,i)
954
		end
955
	end
956
	
957
	return i
958
end
959
960
function ragdollJoint(character, part0, part1, attachmentName, className, properties)
961
	attachmentName = attachmentName.."RigAttachment"
962
	local constraint = Instance.new(className.."Constraint")
963
	constraint.Attachment0 = part0:FindFirstChild(attachmentName)
964
	constraint.Attachment1 = part1:FindFirstChild(attachmentName)
965
	constraint.Name = "RagdollConstraint"..part1.Name
966
	
967
	for _,propertyData in next,properties or {} do
968
		constraint[propertyData[1]] = propertyData[2]
969
	end
970
	
971
	constraint.Parent = character
972
end
973
974
function getAttachment0(character, attachmentName)
975
	for _,child in next,character:GetChildren() do
976
		local attachment = child:FindFirstChild(attachmentName)
977
		if attachment then
978
			return attachment
979
		end
980
	end
981
end
982
983
function ArtificialHitbox(Part)
984
	local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false)
985
	HITBOX.CanCollide = true
986
	HITBOX.CFrame = Part.CFrame
987
	weldBetween(Part,HITBOX)
988
end
989
990
function R15Ragdoll(character,KeepArms)
991
	character:BreakJoints()
992
	coroutine.resume(coroutine.create(function()
993
		recurse(character, function(_,v)
994
			if v:IsA("Attachment") then
995
				v.Axis = Vector3.new(0, 1, 0)
996
				v.SecondaryAxis = Vector3.new(0, 0, 1)
997
				v.Rotation = Vector3.new(0, 0, 0)
998
			end
999
		end)
1000
		for _,child in next,character:GetChildren() do
1001
			if child:IsA("Accoutrement") then
1002
				for _,part in next,child:GetChildren() do
1003
					if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
1004
						local attachment1 = part:FindFirstChildOfClass("Attachment")
1005
						local attachment0 = getAttachment0(character,attachment1.Name)
1006
						if attachment0 and attachment1 then
1007
							local constraint = Instance.new("HingeConstraint")
1008
							constraint.Attachment0 = attachment0
1009
							constraint.Attachment1 = attachment1
1010
							constraint.LimitsEnabled = true
1011
							constraint.UpperAngle = 0
1012
							constraint.LowerAngle = 0
1013
							constraint.Parent = character
1014
						end
1015
						ArtificialHitbox(part)
1016
					elseif part.Name == "HumanoidRootPart" then
1017
						part:remove()
1018
					end
1019
				end
1020
			end
1021
		end
1022
		
1023
		ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
1024
			{"LimitsEnabled",true};
1025
			{"UpperAngle",5};
1026
		})
1027
		if character:FindFirstChild("Head") then
1028
			ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
1029
				{"LimitsEnabled",true};
1030
				{"UpperAngle",15};
1031
			})
1032
		end
1033
		
1034
		local handProperties = {
1035
			{"LimitsEnabled", true};
1036
			{"UpperAngle",0};
1037
			{"LowerAngle",0};
1038
		}
1039
		ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
1040
		ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
1041
		
1042
		local shinProperties = {
1043
			{"LimitsEnabled", true};
1044
			{"UpperAngle", 0};
1045
			{"LowerAngle", -75};
1046
		}
1047
		ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
1048
		ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
1049
		
1050
		local footProperties = {
1051
			{"LimitsEnabled", true};
1052
			{"UpperAngle", 15};
1053
			{"LowerAngle", -45};
1054
		}
1055
		ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
1056
		ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
1057
		if KeepArms == true then
1058
			ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
1059
			ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
1060
			ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
1061
			ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
1062
		end
1063
		ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
1064
		ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
1065
		Debris:AddItem(character,5)
1066
	end))
1067
end
1068
1069
function Ragdoll(Character2,CharTorso,KeepArms)
1070
	coroutine.resume(coroutine.create(function()
1071
		Character2:BreakJoints()
1072
		local hum = Character2:findFirstChild("Humanoid")
1073
		hum:remove()
1074
		local function Scan(ch)
1075
			local e
1076
			for e = 1,#ch do
1077
				Scan(ch[e]:GetChildren())
1078
				if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
1079
					ch[e]:remove()
1080
				end
1081
			end
1082
		end
1083
		local NEWHUM = IT("Humanoid")
1084
		NEWHUM.Name = "Corpse"
1085
		NEWHUM.Health = 0
1086
		NEWHUM.MaxHealth = 0
1087
		NEWHUM.PlatformStand = true
1088
		NEWHUM.Parent = Character2
1089
		NEWHUM.DisplayDistanceType = "None"
1090
	
1091
		local ch = Character2:GetChildren()
1092
		local i
1093
		for i = 1,#ch do
1094
			if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
1095
				ch[i]:remove()
1096
			end
1097
		end
1098
	
1099
		local Torso2 = Character2.Torso
1100
		local movevector = Vector3.new()
1101
	
1102
		if Torso2 then
1103
			movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
1104
			local Head = Character2:FindFirstChild("Head")
1105
			if Head then
1106
				local Neck = Instance.new("Weld")
1107
				Neck.Name = "Neck"
1108
				Neck.Part0 = Torso2
1109
				Neck.Part1 = Head
1110
				Neck.C0 = CFrame.new(0, 1.5, 0)
1111
				Neck.C1 = CFrame.new()
1112
				Neck.Parent = Torso2
1113
	
1114
			end
1115
			local Limb = Character2:FindFirstChild("Right Arm")
1116
			if Limb and KeepArms == true then
1117
	
1118
				Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
1119
				local Joint = Instance.new("Glue")
1120
				Joint.Name = "RightShoulder"
1121
				Joint.Part0 = Torso2
1122
				Joint.Part1 = Limb
1123
				Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1124
				Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1125
				Joint.Parent = Torso2
1126
	
1127
				local B = Instance.new("Part")
1128
				B.TopSurface = 0
1129
				B.BottomSurface = 0
1130
				B.formFactor = "Symmetric"
1131
				B.Size = Vector3.new(1, 1, 1)
1132
				B.Transparency = 1
1133
				B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1134
				B.Parent = Character2
1135
				local W = Instance.new("Weld")
1136
				W.Part0 = Limb
1137
				W.Part1 = B
1138
				W.C0 = CFrame.new(0, -0.5, 0)
1139
				W.Parent = Limb
1140
	
1141
			end
1142
			local Limb = Character2:FindFirstChild("Left Arm")
1143
			if Limb and KeepArms == true then
1144
	
1145
				Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
1146
				local Joint = Instance.new("Glue")
1147
				Joint.Name = "LeftShoulder"
1148
				Joint.Part0 = Torso2
1149
				Joint.Part1 = Limb
1150
				Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1151
				Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1152
				Joint.Parent = Torso2
1153
	
1154
				local B = Instance.new("Part")
1155
				B.TopSurface = 0
1156
				B.BottomSurface = 0
1157
				B.formFactor = "Symmetric"
1158
				B.Size = Vector3.new(1, 1, 1)
1159
				B.Transparency = 1
1160
				B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1161
				B.Parent = Character2
1162
				local W = Instance.new("Weld")
1163
				W.Part0 = Limb
1164
				W.Part1 = B
1165
				W.C0 = CFrame.new(0, -0.5, 0)
1166
				W.Parent = Limb
1167
	
1168
			end
1169
			local Limb = Character2:FindFirstChild("Right Leg")
1170
			if Limb then
1171
	
1172
				Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
1173
				local Joint = Instance.new("Glue")
1174
				Joint.Name = "RightHip"
1175
				Joint.Part0 = Torso2
1176
				Joint.Part1 = Limb
1177
				Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1178
				Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1179
				Joint.Parent = Torso2
1180
	
1181
				local B = Instance.new("Part")
1182
				B.TopSurface = 0
1183
				B.BottomSurface = 0
1184
				B.formFactor = "Symmetric"
1185
				B.Size = Vector3.new(1, 1, 1)
1186
				B.Transparency = 1
1187
				B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1188
				B.Parent = Character2
1189
				local W = Instance.new("Weld")
1190
				W.Part0 = Limb
1191
				W.Part1 = B
1192
				W.C0 = CFrame.new(0, -0.5, 0)
1193
				W.Parent = Limb
1194
	
1195
			end
1196
			local Limb = Character2:FindFirstChild("Left Leg")
1197
			if Limb then
1198
	
1199
				Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
1200
				local Joint = Instance.new("Glue")
1201
				Joint.Name = "LeftHip"
1202
				Joint.Part0 = Torso2
1203
				Joint.Part1 = Limb
1204
				Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1205
				Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1206
				Joint.Parent = Torso2
1207
	
1208
				local B = Instance.new("Part")
1209
				B.TopSurface = 0
1210
				B.BottomSurface = 0
1211
				B.formFactor = "Symmetric"
1212
				B.Size = Vector3.new(1, 1, 1)
1213
				B.Transparency = 1
1214
				B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1215
				B.Parent = Character2
1216
				local W = Instance.new("Weld")
1217
				W.Part0 = Limb
1218
				W.Part1 = B
1219
				W.C0 = CFrame.new(0, -0.5, 0)
1220
				W.Parent = Limb
1221
	
1222
			end
1223
			--[
1224
			local Bar = Instance.new("Part")
1225
			Bar.TopSurface = 0
1226
			Bar.BottomSurface = 0
1227
			Bar.formFactor = "Symmetric"
1228
			Bar.Size = Vector3.new(1, 1, 1)
1229
			Bar.Transparency = 1
1230
			Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
1231
			Bar.Parent = Character2
1232
			local Weld = Instance.new("Weld")
1233
			Weld.Part0 = Torso2
1234
			Weld.Part1 = Bar
1235
			Weld.C0 = CFrame.new(0, 0.5, 0)
1236
			Weld.Parent = Torso2
1237
			--]]
1238
		end
1239
		Character2.Parent = workspace
1240
		Debris:AddItem(Character2,5)
1241
	
1242
		return Character2,Torso2
1243
	end))
1244
end
1245
1246
--//=================================\\
1247
--||	     WEAPON CREATION
1248
--\\=================================//
1249
1250
local Particle = IT("ParticleEmitter",nil)
1251
Particle.Enabled = false
1252
Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
1253
Particle.LightEmission = 0.5
1254
Particle.Rate = 150
1255
Particle.ZOffset = 0.2
1256
Particle.Rotation = NumberRange.new(-180, 180)
1257
Particle.RotSpeed = NumberRange.new(-180, 180)
1258
Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
1259
Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
1260
1261
--ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
1262
function ParticleEmitter(Table)
1263
	local PRTCL = Particle:Clone()
1264
	local Speed = Table.Speed or 5
1265
	local Drag = Table.Drag or 0
1266
	local Size1 = Table.Size1 or 1
1267
	local Size2 = Table.Size2 or 5
1268
	local Lifetime1 = Table.Lifetime1 or 1
1269
	local Lifetime2 = Table.Lifetime2 or 1.5
1270
	local Parent = Table.Parent or Torso
1271
	local Emit = Table.Emit or 100
1272
	local Offset = Table.Offset or 360
1273
	local Acel = Table.Acel or VT(0,0,0)
1274
	local Enabled = Table.Enabled or false
1275
	PRTCL.Parent = Parent
1276
	PRTCL.Size = NumberSequence.new(Size1,Size2)
1277
	PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
1278
	PRTCL.Speed = NumberRange.new(Speed)
1279
	PRTCL.VelocitySpread = Offset
1280
	PRTCL.Drag = Drag
1281
	PRTCL.Acceleration = Acel
1282
	if Enabled == false then
1283
		PRTCL:Emit(Emit)
1284
		Debris:AddItem(PRTCL,Lifetime2)
1285
	else
1286
		PRTCL.Enabled = true
1287
	end
1288
	return PRTCL
1289
end
1290
1291
local Handle = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
1292
local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
1293
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
1294
MakeForm(Part,"Wedge")
1295
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
1296
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
1297
MakeForm(Part,"Wedge")
1298
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
1299
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
1300
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1301
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
1302
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1303
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
1304
MakeForm(Part,"Cyl")
1305
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1306
for i = 1, 8 do
1307
	local Piece = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
1308
	CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
1309
end
1310
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
1311
MakeForm(Part,"Cyl")
1312
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1313
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
1314
MakeForm(Part,"Ball")
1315
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1316
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
1317
MakeForm(Part,"Wedge")
1318
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
1319
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
1320
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1321
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
1322
MakeForm(Part,"Cyl")
1323
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1324
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
1325
MakeForm(Part,"Cyl")
1326
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1327
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
1328
MakeForm(Part,"Cyl")
1329
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1330
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
1331
MakeForm(Part,"Wedge")
1332
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
1333
local LASTPART = Handle
1334
for i = 1, 10 do
1335
	if LASTPART == Handle then
1336
		local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
1337
		LASTPART = Part
1338
		CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1339
	else
1340
		local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
1341
		CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
1342
		LASTPART = Part
1343
	end
1344
end
1345
1346
local Barrel = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,4,0.15),false)
1347
MakeForm(Barrel,"Cyl")
1348
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.85) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1349
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,2,0.25),false)
1350
MakeForm(Part,"Cyl")
1351
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.2, 0), CF(0, 0, 0))
1352
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
1353
MakeForm(Part,"Wedge")
1354
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
1355
local Hole = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
1356
MakeForm(Hole,"Cyl")
1357
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 2, 0), CF(0, 0, 0))
1358
local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
1359
local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
1360
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
1361
local Part = CreatePart(3, Gun, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
1362
local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
1363
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
1364
coroutine.resume(coroutine.create(function()
1365
	while wait() do
1366
		GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(sick.PlaybackLoudness/60 + 0.05))
1367
		GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-sick.PlaybackLoudness/60 - 0.05))
1368
	end
1369
end))
1370
1371
ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
1372
--ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
1373
1374
for _, c in pairs(Gun:GetDescendants()) do
1375
	if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
1376
		c.Material = "Glass"
1377
		c.Color = C3(0,0,0)
1378
	elseif c.ClassName == "Part" and c.Name == "Eye" then
1379
		c.Color = C3(1,0,0)
1380
		c.Material = "Neon"
1381
	end
1382
end
1383
1384
Weapon.Parent = Character
1385
for _, c in pairs(Weapon:GetChildren()) do
1386
	if c.ClassName == "Part" then
1387
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1388
	end
1389
end
1390
1391
Weapon.Parent = Character
1392
Gun.Parent = nil
1393
1394
for _, c in pairs(Gun:GetChildren()) do
1395
	if c.ClassName == "Part" then
1396
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1397
	end
1398
end
1399
1400
for _, c in pairs(Weapon:GetChildren()) do
1401
	if c.ClassName == "Part" then
1402
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1403
	end
1404
end
1405
1406
local SKILLTEXTCOLOR = C3(1,0,0)
1407
local SKILLFONT = "Antique"
1408
local SKILLTEXTSIZE = 7
1409
1410
Humanoid.Died:connect(function()
1411
	ATTACK = true
1412
end)
1413
1414
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")
1415
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")
1416
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")
1417
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")
1418
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")
1419
1420
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banish", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
1421
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[V] Kill", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
1422
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[X] Sleep", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
1423
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[C] Ultimate", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
1424
local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[T] Taunt", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
1425
1426
function printbye(Name)
1427
	local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
1428
	warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")	
1429
end
1430
	if INTRO == false and INSTANT == false then
1431
		INTRO = true
1432
		coroutine.resume(coroutine.create(function()
1433
			sick:Play()
1434
			Intro()
1435
		end))
1436
	end
1437
1438
workspace.ChildAdded:connect(function(instance)
1439
    for BANISH = 1, #TOBANISH do
1440
		if TOBANISH[BANISH] ~= nil then
1441
			if instance.Name == TOBANISH[BANISH] then
1442
				coroutine.resume(coroutine.create(function()
1443
					printbye(instance.Name)
1444
					instance:ClearAllChildren()
1445
					Debris:AddItem(instance,0.0005)
1446
				end))
1447
			end
1448
		end
1449
	end
1450
end)
1451
1452
--//=================================\\
1453
--||			DAMAGING
1454
--\\=================================//
1455
1456
function ApplyDamage(Humanoid,Damage,OneShot)
1457
	Damage = Damage * DAMAGEMULTIPLIER
1458
	local DEAD = false
1459
	if Humanoid.Health < 2000 and OneShot == false then
1460
		if Humanoid.Health - Damage > 0 then
1461
			Humanoid.Health = Humanoid.Health - Damage
1462
		else
1463
			Humanoid.Parent:BreakJoints()
1464
			DEAD = true
1465
		end
1466
	else
1467
		DEAD = true
1468
		Humanoid.Parent:BreakJoints()
1469
	end
1470
	if DEAD == true then
1471
		local PARTS = {}
1472
		for index, CHILD in pairs(Humanoid.Parent:GetChildren()) do
1473
			if CHILD:IsA("BasePart") then
1474
				table.insert(PARTS,CHILD)
1475
			end
1476
		end
1477
		coroutine.resume(coroutine.create(function()
1478
			wait(2)
1479
			repeat
1480
				Swait()
1481
				local PIECE = nil
1482
				if MRANDOM(1,5) == 1 then
1483
					for E = 1, #PARTS do
1484
						if MRANDOM(1,5) == 1 then
1485
							PIECE = PARTS[E]
1486
							table.remove(PARTS,E)
1487
							break
1488
						end
1489
					end
1490
				end
1491
				if PIECE ~= nil then
1492
					if PIECE.Name == "Head" then
1493
						WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z), Size2 = (VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z))*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), RotationX = MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0.4,0,0), SoundID = 3264923, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2})
1494
					else
1495
						WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = PIECE.Size, Size2 = PIECE.Size*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0.4,0,0), SoundID = 3264923, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2})
1496
					end
1497
					PIECE:remove()
1498
				end
1499
			until #PARTS == 0
1500
		end))
1501
	end
1502
end
1503
1504
1505
function ApplyDamage3(Humanoid,Damage,TorsoPart)
1506
	local defence = Instance.new("BoolValue",Humanoid.Parent)
1507
	defence.Name = ("HitBy"..Player.Name)
1508
	game:GetService("Debris"):AddItem(defence, 0.001)
1509
	Damage = Damage * DAMAGEMULTIPLIER
1510
	if Humanoid.Health ~= 0 then
1511
		local CritChance = MRANDOM(1,100)
1512
		if Damage > Humanoid.Health then
1513
			Damage = math.ceil(Humanoid.Health)
1514
			if Damage == 0 then
1515
				Damage = 0.1
1516
			end
1517
		end
1518
		Humanoid.Health = Humanoid.Health - Damage
1519
	end
1520
end
1521
1522
function ApplyDamage3(Humanoid,Damage,TorsoPart)
1523
	local defence = Instance.new("BoolValue",Humanoid.Parent)
1524
	defence.Name = ("HitBy"..Player.Name)
1525
	game:GetService("Debris"):AddItem(defence, 0.001)
1526
	Damage = Damage * DAMAGEMULTIPLIER
1527
	if Humanoid.Health ~= 0 then
1528
		local CritChance = MRANDOM(1,100)
1529
		if Damage > Humanoid.Health then
1530
			Damage = math.ceil(Humanoid.Health)
1531
			if Damage == 0 then
1532
				Damage = 0.1
1533
			end
1534
		end
1535
		Humanoid.Health = Humanoid.Health - Damage
1536
	end
1537
end
1538
1539
function ApplyAoE3(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
1540
	local CHILDREN = workspace:GetDescendants()
1541
	for index, CHILD in pairs(CHILDREN) do
1542
		if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
1543
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1544
			if HUM then
1545
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1546
				if TORSO then
1547
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
1548
						if INSTAKILL == true then
1549
							CHILD:BreakJoints()
1550
						else
1551
							local DMG = MRANDOM(MINDMG,MAXDMG)
1552
							ApplyDamage(HUM,DMG,TORSO)
1553
						end
1554
						if FLING > 0 then
1555
							for _, c in pairs(CHILD:GetChildren()) do
1556
								if c:IsA("BasePart") then
1557
									local bv = Instance.new("BodyVelocity") 
1558
									bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1559
									bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
1560
									bv.Parent = c
1561
									Debris:AddItem(bv,0.05)
1562
								end
1563
							end
1564
						end
1565
					end
1566
				end
1567
			end
1568
		end
1569
	end
1570
end
1571
1572
function CameraEnshaking(Length, Intensity)
1573
	coroutine.resume(coroutine.create(function()
1574
		local intensity = 1 * Intensity
1575
		local rotM = 0.01 * Intensity
1576
		for i = 0, Length, 0.1 do
1577
			Swait()
1578
			intensity = intensity - 0.05 * Intensity / Length
1579
			rotM = rotM - 5.0E-4 * Intensity / Length
1580
			Humanoid.CameraOffset = Vector3.new(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)))
1581
			Cam.CFrame = Cam.CFrame * CF(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity))) * EULER(RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM)
1582
		end
1583
		Humanoid.CameraOffset = Vector3.new(0, 0, 0)
1584
	end))
1585
end
1586
1587
function KillChildren(v)
1588
	v:BreakJoints()
1589
	for _, c in pairs(v:GetChildren()) do
1590
		if c:IsA("BasePart") then
1591
			if c.Transparency < 1 then
1592
				if c:FindFirstChildOfClass("Decal") then
1593
					c:FindFirstChildOfClass("Decal"):remove()
1594
				end
1595
				particles(c)
1596
				c.PE.Enabled = true
1597
				c.Parent = Effects
1598
				c.CanCollide = false
1599
				c.Material = "Neon"
1600
				c.Color = C3(1,0,0)
1601
				c.Transparency = 1
1602
				local grav = Instance.new("BodyPosition",c)
1603
				grav.P = 20000
1604
				grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1605
				grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))
1606
				grav.Name = "GravityForce"
1607
				coroutine.resume(coroutine.create(function()
1608
					for i = 1, 20 do
1609
						Swait()
1610
						c.Transparency = c.Transparency + 1/20
1611
					end
1612
					c.PE.Enabled = false
1613
					Debris:AddItem(c,2)
1614
				end))
1615
			end
1616
		end
1617
	end
1618
end
1619
1620
function ApplyAoE(POSITION,RANGE)
1621
	local CHILDREN = workspace:GetDescendants()
1622
	for index, CHILD in pairs(CHILDREN) do
1623
		if CHILD.ClassName == "Model" and CHILD ~= Character then
1624
			local LISTED = false
1625
			for LIST = 1, #WHITELIST do
1626
				if WHITELIST[LIST] ~= nil then
1627
					if CHILD.Name == WHITELIST[LIST] then
1628
						LISTED = true
1629
					end
1630
				end
1631
			end
1632
			if LISTED == false then
1633
				local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1634
				if HUM then
1635
					local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1636
					if TORSO then
1637
						if (TORSO.Position - POSITION).Magnitude <= RANGE+TORSO.Size.Magnitude then
1638
							KillChildren(CHILD)
1639
						end
1640
					end
1641
				end
1642
			end
1643
		end
1644
	end
1645
end
1646
1647
function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS)
1648
	coroutine.resume(coroutine.create(function()
1649
		local METEOR = IT("Model",Effects)
1650
		METEOR.Name = "Meteorite"
1651
		local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
1652
		METEOR.PrimaryPart = CENTER
1653
		local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
1654
		PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
1655
		for i = 1, 15 do
1656
			local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "Really red", "Fire", VT(5.1,1,5.1)*SIZE)
1657
			FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
1658
		end
1659
		if ISDEBREE ~= true then
1660
			METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
1661
		else
1662
			METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
1663
		end
1664
		local IMPACT = false
1665
		CreateSound(463593339, CENTER, 10, 0.6)
1666
		if SIZE >= 3.5 then
1667
			for i = 1, MRANDOM(3,7) do
1668
				SpawnMeteor(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SIZE*15).p)
1669
			end
1670
		end
1671
		for i = 1, 200 do
1672
			Swait()
1673
			local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character)
1674
			if HITFLOOR == nil then
1675
				local ORI = CENTER.Orientation
1676
				METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
1677
			else
1678
				if HITFLOOR.Anchored == true then
1679
					CreateDebreeRing(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5)
1680
					CreateFlyingDebree(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175)
1681
				end
1682
				IMPACT = true
1683
				break
1684
			end
1685
		end
1686
		if IMPACT == true then
1687
			WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
1688
			WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5})
1689
			WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
1690
			ApplyAoE(CENTER.Position,30*SIZE)
1691
		end
1692
		METEOR:remove()
1693
	end))
1694
end
1695
1696
function ApplyAoE4(POSITION,RANGE,BRUTAL)
1697
	local CHILDREN = workspace:GetDescendants()
1698
	for index, CHILD in pairs(CHILDREN) do
1699
		if CHILD.ClassName == "Model" and CHILD ~= Character then
1700
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1701
			if HUM then
1702
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1703
				if TORSO then
1704
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
1705
						if BRUTAL == true then
1706
							Kill(CHILD)
1707
						else
1708
							CHILD:BreakJoints()
1709
						end
1710
					end
1711
				end
1712
			end
1713
		end
1714
	end
1715
end
1716
1717
function Kill(Char)
1718
	local NewCharacter = IT("Model",Effects)
1719
	NewCharacter.Name = "Ow im ded ;-;"
1720
	for _, c in pairs(Char:GetDescendants()) do
1721
		if c:IsA("BasePart") and c.Transparency == 0 then
1722
			c:BreakJoints()
1723
			c.Material = "Glass"
1724
			c.Color = C3(1,0,0)
1725
			c.CanCollide = true
1726
			c.Transparency = 0.3
1727
			if c:FindFirstChildOfClass("SpecialMesh") then
1728
				c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
1729
			end
1730
			if c.Name == "Head" then
1731
				c:ClearAllChildren()
1732
				c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
1733
			end
1734
			if c.ClassName == "MeshPart" then
1735
				c.TextureID = ""
1736
			end
1737
			if c:FindFirstChildOfClass("BodyPosition") then
1738
				c:FindFirstChildOfClass("BodyPosition"):remove()
1739
			end
1740
			if c:FindFirstChildOfClass("ParticleEmitter") then
1741
				c:FindFirstChildOfClass("ParticleEmitter"):remove()
1742
			end
1743
			c.Parent = NewCharacter
1744
			c.Name = "DeadPart"
1745
			c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
1746
			c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
1747
		end
1748
	end
1749
	Char:remove()
1750
	Debris:AddItem(NewCharacter,5)
1751
end
1752
1753
function ApplyAoE(POSITION,RANGE,BRUTAL)
1754
	local CHILDREN = workspace:GetDescendants()
1755
	for index, CHILD in pairs(CHILDREN) do
1756
		if CHILD.ClassName == "Model" and CHILD ~= Character then
1757
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1758
			if HUM then
1759
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1760
				if TORSO then
1761
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
1762
						if BRUTAL == true then
1763
							Kill(CHILD)
1764
						else
1765
							CHILD:BreakJoints()
1766
						end
1767
					end
1768
				end
1769
			end
1770
		end
1771
	end
1772
end
1773
1774
function ApplyAoE(POSITION,RANGE,BRUTAL)
1775
	local CHILDREN = workspace:GetDescendants()
1776
	for index, CHILD in pairs(CHILDREN) do
1777
		if CHILD.ClassName == "Model" and CHILD ~= Character then
1778
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1779
			if HUM then
1780
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1781
				if TORSO then
1782
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
1783
						if BRUTAL == true then
1784
							Kill(CHILD)
1785
						else
1786
							CHILD:BreakJoints()
1787
						end
1788
					end
1789
				end
1790
			end
1791
		end
1792
	end
1793
end
1794
1795
function Banish(Foe)
1796
	if Foe then
1797
		coroutine.resume(coroutine.create(function()
1798
			--if game.Players:FindFirstChild(Foe.Name) then
1799
				table.insert(TOBANISH,Foe.Name)
1800
				printbye(Foe.Name)
1801
			--end
1802
			Foe.Archivable = true
1803
			local CLONE = Foe:Clone()
1804
			Foe:Destroy()
1805
			CLONE.Parent = Effects
1806
			CLONE:BreakJoints()
1807
			local MATERIALS = {"Glass","Neon"}
1808
			for _, c in pairs(CLONE:GetDescendants()) do
1809
				if c:IsA("BasePart") then
1810
					if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
1811
 						CreateSound(138271815, c, 10, 1, false)
1812
					end
1813
					c.Anchored = true
1814
					c.Transparency = c.Transparency + 0.2
1815
					c.Material = MATERIALS[MRANDOM(1,2)]
1816
					c.Color = C3(1,0,0)
1817
					if c.ClassName == "MeshPart" then
1818
						c.TextureID = ""
1819
					end
1820
					if c:FindFirstChildOfClass("SpecialMesh") then
1821
						c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
1822
					end
1823
					if c:FindFirstChildOfClass("Decal") then
1824
						c:FindFirstChildOfClass("Decal"):remove()
1825
					end
1826
					c.Name = "Banished"
1827
					c.CanCollide = false
1828
				else
1829
					c:remove()
1830
				end
1831
			end
1832
			local A = false
1833
			for i = 1, 35 do
1834
				if A == false then
1835
					A = true
1836
				elseif A == true then
1837
					A = false
1838
				end
1839
				for _, c in pairs(CLONE:GetDescendants()) do
1840
					if c:IsA("BasePart") then
1841
						c.Anchored = true
1842
						c.Material = MATERIALS[MRANDOM(1,2)]
1843
						c.Transparency = c.Transparency + 0.8/35
1844
						if A == false then
1845
							c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
1846
						elseif A == true then
1847
							c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)						
1848
						end
1849
					end
1850
				end
1851
				Swait()
1852
			end
1853
			CLONE:remove()
1854
		end))
1855
	end
1856
end
1857
1858
1859
function ApplyAoE(POSITION,RANGE,ISBANISH)
1860
	local CHILDREN = workspace:GetDescendants()
1861
	for index, CHILD in pairs(CHILDREN) do
1862
		if CHILD.ClassName == "Model" and CHILD ~= Character then
1863
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1864
			if HUM then
1865
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1866
				if TORSO then
1867
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
1868
						if ISBANISH == true then
1869
							Banish(CHILD)
1870
						else
1871
							if ISBANISH == "Gravity" then
1872
								HUM.PlatformStand = true
1873
								if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
1874
									local grav = Instance.new("BodyPosition",TORSO)
1875
									grav.D = 15
1876
									grav.P = 20000
1877
									grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1878
									grav.position = TORSO.Position
1879
									grav.Name = "V3BanishForce"..Player.Name
1880
								else
1881
									TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
1882
									TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
1883
								end
1884
							else
1885
								HUM.PlatformStand = false
1886
							end
1887
						end
1888
					elseif ISBANISH == "Gravity" then
1889
						if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
1890
							TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
1891
							HUM.PlatformStand = false
1892
						end
1893
					end
1894
				end
1895
			end
1896
		end
1897
	end
1898
end
1899
1900
function SpawnSmite(POS)
1901
	local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character)
1902
	local EMITPOS = HITPOS
1903
	if HITFLOOR ~= nil then
1904
		if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
1905
			HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent)
1906
			EMITPOS = HITPOS
1907
		elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
1908
			HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent)
1909
			EMITPOS = HITPOS
1910
		end
1911
	end
1912
	if HITFLOOR ~= nil then
1913
		ApplyAoE(EMITPOS,10)
1914
		WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
1915
		WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
1916
		WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
1917
		for i = 1, 5 do
1918
			local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12)
1919
			WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
1920
		end
1921
	end
1922
end
1923
1924
--//=================================\\
1925
--||	ATTACK FUNCTIONS AND STUFF
1926
--\\=================================//
1927
1928
function eh()
1929
	ATTACK = true
1930
	Rooted = false
1931
	Speed = 20
1932
		Swait()
1933
		local CHILDREN = workspace:GetDescendants()
1934
		for index, CHILD in pairs(CHILDREN) do
1935
			if CHILD.ClassName == "Model" and CHILD ~= Character then
1936
				local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1937
				if HUM then
1938
					local TORSO = CHILD:FindFirstChild("Head")
1939
					if TORSO then
1940
						if (TORSO.Position - Head.Position).Magnitude <= 25 then
1941
							WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1942
							TORSO:remove()
1943
							if CHILD:FindFirstChild("Torso") then
1944
								Ragdoll(CHILD,Torso,true)
1945
							elseif CHILD:FindFirstChild("UpperTorso") then
1946
								R15Ragdoll(CHILD,true)
1947
							end
1948
						end
1949
					end
1950
				end
1951
			end
1952
		end
1953
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.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})
1954
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1})
1955
	for i=0, 0.3, 0.1 / Animation_Speed do
1956
		Swait()
1957
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)	
1958
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
1959
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
1960
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
1961
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
1962
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
1963
end
1964
	Speed = 20
1965
	ATTACK = false
1966
	Rooted = false
1967
end
1968
1969
function Taunt()
1970
	ATTACK = true
1971
	Rooted = true
1972
	        CreateSound("1238240145", Torso, 6, 0.9)
1973
		for i=0, 0.6, 0.1 / Animation_Speed do
1974
			Swait()
1975
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1976
Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
1977
RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(34), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1978
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1979
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1980
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1981
		end
1982
		for i=0, 0.6, 0.1 / Animation_Speed do
1983
			Swait()
1984
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1985
Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
1986
RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1987
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(15), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1988
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1989
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1990
		end
1991
		for i=0, 0.6, 0.1 / Animation_Speed do
1992
			Swait()
1993
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1994
Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
1995
RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(34), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1996
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1997
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1998
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1999
		end
2000
		for i=0, 0.6, 0.1 / Animation_Speed do
2001
			Swait()
2002
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2003
Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
2004
RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2005
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(15), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
2006
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2007
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2008
		end
2009
		for i=0, 0.6, 0.1 / Animation_Speed do
2010
			Swait()
2011
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2012
Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
2013
RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(34), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2014
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
2015
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2016
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2017
		end
2018
		for i=0, 0.6, 0.1 / Animation_Speed do
2019
			Swait()
2020
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2021
Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
2022
RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2023
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(15), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
2024
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2025
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2026
		end
2027
	ATTACK = false
2028
	Rooted = false
2029
end
2030
2031
function TakeOnMe()
2032
	Speed = 16
2033
	local MEME = CreateSound(1171341451, Effects, 2, 1, false)
2034
	ATTACK = true
2035
	Rooted = false
2036
	local DANCE = true
2037
	local KEY = Mouse.KeyDown:connect(function(NEWKEY)
2038
		if NEWKEY == "p" then
2039
			DANCE = false
2040
		end
2041
	end)
2042
	PLAYSONG = false
2043
	while true do
2044
		for i = 1, 15 do
2045
			Swait()
2046
			MEME.Parent = Effects
2047
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2048
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2049
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2050
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
2051
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2052
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2053
		end
2054
		if DANCE == false then
2055
			break
2056
		end
2057
		for i = 1, 15 do
2058
			Swait()
2059
			MEME.Parent = Effects
2060
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2061
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
2062
			if MRANDOM(1,7) == 1 then
2063
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
2064
			end			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(150), RAD(65), RAD(85)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2065
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(150), RAD(65), RAD(85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
2066
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2067
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2068
		end
2069
	end
2070
	PLAYSONG = true
2071
	KEY:Disconnect()
2072
	MEME:remove()
2073
	Speed = 25
2074
	ATTACK = false
2075
	Rooted = false
2076
end
2077
2078
function Intro()
2079
	ATTACK = true
2080
	Rooted = true
2081
	repeat 
2082
		Swait() 
2083
		WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0) * ANGLES(RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 0})
2084
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2085
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(-3.5 * COS(SINE / 12)), RAD(-45), RAD(12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2086
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.8 / Animation_Speed)
2087
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
2088
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(2.5 * COS(SINE / 12))), 0.8 / Animation_Speed)
2089
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(5), RAD(15-2.5 * COS(SINE / 12))), 0.8 / Animation_Speed)
2090
	until sick.TimePosition > 114
2091
	repeat 
2092
		Swait()
2093
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
2094
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
2095
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2096
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2097
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2098
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2099
	until sick.TimePosition > 116
2100
	repeat 
2101
		Swait() 
2102
		WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0.2,0.2), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0) * ANGLES(RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 0})
2103
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
2104
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
2105
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(45), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2106
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-90), RAD(45), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2107
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2108
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2109
	until sick.TimePosition >119
2110
	Gun.Parent = Character
2111
	tecks2.TextTransparency = 0
2112
	for i = 1, 100 do
2113
		Swait()
2114
		for _, c in pairs(Character:GetChildren()) do
2115
			if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then
2116
				c.Transparency = 0
2117
			end
2118
		end
2119
		for _, c in pairs(Weapon:GetChildren()) do
2120
			if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then
2121
				c.Transparency = 0
2122
			end
2123
		end
2124
for _, c in pairs(Weapon:GetDescendants()) do
2125
	if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
2126
		c.Material = "Glass"
2127
		c.Color = C3(0,0,0)
2128
	elseif c.ClassName == "Part" and c.Name == "Eye" then
2129
		c.Color = C3(1,0,0)
2130
		c.Material = "Neon"
2131
	end
2132
end
2133
	end
2134
	TRANSFORMED = true
2135
	ATTACK = false
2136
	Rooted = false
2137
end
2138
2139
function Shot()
2140
	ATTACK = true
2141
	Rooted = false
2142
	for i=0, 0.2, 0.05 / Animation_Speed do
2143
		Swait()
2144
		turnto(Mouse.Hit.p)
2145
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
2146
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
2147
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2148
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2149
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2150
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2151
	end
2152
	repeat
2153
		for i=0, 0.2, 0.05 / Animation_Speed do
2154
			Swait()
2155
			turnto(Mouse.Hit.p)
2156
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
2157
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
2158
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2159
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2160
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2161
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2162
		end
2163
		local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
2164
		SpawnTrail(Hole.Position,POS)
2165
		if HIT ~= nil then
2166
			if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
2167
				Banish(HIT.Parent)
2168
			end
2169
		end
2170
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.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})
2171
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2172
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2173
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2174
	Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30
2175
		for i=0, 0.2, 0.05 / Animation_Speed do
2176
			Swait()
2177
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
2178
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
2179
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2180
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2181
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2182
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2183
		end
2184
	until KEYHOLD == false
2185
	ATTACK = false
2186
	Rooted = false
2187
end
2188
2189
function Shot2()
2190
	ATTACK = true
2191
	Rooted = false
2192
	for i=0, 0.2, 0.05 / Animation_Speed do
2193
		Swait()
2194
		turnto(Mouse.Hit.p)
2195
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
2196
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
2197
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2198
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2199
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2200
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2201
	end
2202
	repeat
2203
		for i=0, 0.2, 0.05 / Animation_Speed do
2204
			Swait()
2205
			turnto(Mouse.Hit.p)
2206
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
2207
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
2208
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2209
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2210
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2211
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2212
		end
2213
		local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
2214
		SpawnTrail(Hole.Position,POS)
2215
		if HIT ~= nil then
2216
			if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
2217
				Kill(HIT.Parent)
2218
			end
2219
		end
2220
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.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})
2221
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2222
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2223
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2224
	Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30
2225
		for i=0, 0.2, 0.05 / Animation_Speed do
2226
			Swait()
2227
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
2228
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
2229
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2230
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2231
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2232
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2233
		end
2234
	until KEYHOLD == false
2235
	ATTACK = false
2236
	Rooted = false
2237
end
2238
2239
function AttackTemplate()
2240
	ATTACK = true
2241
	Rooted = false
2242
	for i=0, 1, 0.1 / Animation_Speed do
2243
		Swait()
2244
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
2245
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
2246
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2247
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2248
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2249
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2250
	end
2251
	ATTACK = false
2252
	Rooted = false
2253
end
2254
2255
function Finisher()
2256
	local TARGET = Mouse.Target
2257
	if TARGET ~= nil then
2258
		if TARGET.Parent:FindFirstChildOfClass("Humanoid") then
2259
			local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid")
2260
			local ROOT = TARGET.Parent:FindFirstChild("HumanoidRootPart") or TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso")
2261
			if ROOT and HUM.Health > 0 then
2262
				local FOE = Mouse.Target.Parent
2263
				ATTACK = true
2264
				Rooted = true
2265
				RootPart.CFrame = ROOT.CFrame*CF(-1.35,0,4)
2266
				ROOT.Anchored = true
2267
				CreateSound(670796769, Torso, 9999, 0.6, false)
2268
				CreateSound(159882598, Torso, 5, 0.9, false)
2269
				for i=0, 0.4, 0.1 / Animation_Speed do
2270
					Swait()
2271
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2272
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2273
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2274
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2275
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2276
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2277
				end
2278
				HUM.PlatformStand = true
2279
				ROOT.CFrame = ROOT.CFrame * CF(0,-2*ROOT.Size.Z,0) * ANGLES(RAD(-90), RAD(0), RAD(0))
2280
				coroutine.resume(coroutine.create(function()
2281
					Swait()
2282
					ROOT.Anchored = true
2283
				end))
2284
				RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.6)
2285
				for i=0, 0.2, 0.1 / Animation_Speed do
2286
					Swait()
2287
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
2288
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
2289
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2290
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2291
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2292
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
2293
				end
2294
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.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})
2295
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2296
				for i=0, 0.2, 0.1 / Animation_Speed do
2297
					Swait()
2298
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed)
2299
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed)
2300
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2301
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2302
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2303
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2304
				end
2305
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.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})
2306
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2307
				local AMMO = 6
2308
				local FIRING = true
2309
				local SHOOTING = false
2310
				local TIMER = 70
2311
				CreateSound(147722227, GunPoint, 6, 1.3, false)
2312
				for i=0, 0.2, 0.1 / Animation_Speed do
2313
					Swait()
2314
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
2315
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
2316
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2317
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2318
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2319
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
2320
				end
2321
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.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})
2322
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2323
				for i = 1, 6 do
2324
					local GUNPOS = Hole.CFrame*CF(0, 0, 0).p
2325
					local DISTANCE = (FOE.Head.Position - GUNPOS).Magnitude
2326
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.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})
2327
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2328
					HUM.Health = HUM.Health/1.5
2329
					for i=0, 0.2, 0.1 / Animation_Speed do
2330
						Swait()
2331
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
2332
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
2333
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2334
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2335
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2336
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
2337
				end
2338
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.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})
2339
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2340
					for i=0, 0.2, 0.1 / Animation_Speed do
2341
						Swait()
2342
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
2343
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
2344
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2345
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2346
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2347
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
2348
					end
2349
				end
2350
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.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})
2351
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
2352
				ApplyDamage(HUM,0,true)
2353
				FOE:BreakJoints()
2354
				ROOT.Anchored = false
2355
				for i=0, 0.3, 0.1 / Animation_Speed do
2356
					Swait()
2357
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2358
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed)
2359
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2360
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2361
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2362
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2363
				end
2364
				ATTACK = false
2365
				Rooted = false
2366
			end
2367
		end
2368
	end
2369
end
2370
2371
2372
--//=================================\\
2373
--||	  ASSIGN THINGS TO KEYS
2374
--\\=================================//
2375
2376
function MouseDown(Mouse)
2377
	if ATTACK == false then
2378
	end
2379
end
2380
2381
function MouseUp(Mouse)
2382
HOLD = false
2383
end
2384
2385
function KeyDown(Key)
2386
	KEYHOLD = true
2387
	if Key == "z" and ATTACK == false then
2388
		Shot()
2389
	end
2390
2391
	if Key == "v" and ATTACK == false then
2392
		Shot2()
2393
	end
2394
2395
	if Key == "x" and ATTACK == false then
2396
                Finisher()
2397
	end
2398
2399
	if Key == "t" and ATTACK == false then
2400
               Taunt()
2401
	end
2402
2403
	if Key == "c" and ATTACK == false then
2404
                eh()
2405
	end
2406
end
2407
2408
function KeyUp(Key)
2409
	KEYHOLD = false
2410
end
2411
2412
	Mouse.Button1Down:connect(function(NEWKEY)
2413
		MouseDown(NEWKEY)
2414
	end)
2415
	Mouse.Button1Up:connect(function(NEWKEY)
2416
		MouseUp(NEWKEY)
2417
	end)
2418
	Mouse.KeyDown:connect(function(NEWKEY)
2419
		KeyDown(NEWKEY)
2420
	end)
2421
	Mouse.KeyUp:connect(function(NEWKEY)
2422
		KeyUp(NEWKEY)
2423
	end)
2424
2425
--//=================================\\
2426
--\\=================================//
2427
2428
2429
function unanchor()
2430
	if UNANCHOR == true then
2431
		g = Character:GetChildren()
2432
		for i = 1, #g do
2433
			if g[i].ClassName == "Part" then
2434
				g[i].Anchored = false
2435
			end
2436
		end
2437
	end
2438
end
2439
2440
2441
--//=================================\\
2442
--||	WRAP THE WHOLE SCRIPT UP
2443
--\\=================================//
2444
2445
Humanoid.Changed:connect(function(Jump)
2446
	if Jump == "Jump" and (Disable_Jump == true) then
2447
		Humanoid.Jump = false
2448
	end
2449
end)
2450
2451
local FF = IT("ForceField",Character)
2452
FF.Visible = false
2453
2454
INSTANT = false
2455
Speed = 20
2456
2457
while true do
2458
	Swait()
2459
	SINE = SINE + CHANGE
2460
		ANIMATE.Parent = nil
2461
		local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
2462
		IDLEANIMATION:Play()
2463
		if TRANSFORMED == true then
2464
			tecks2.TextTransparency = 0
2465
			for _, c in pairs(Character:GetChildren()) do
2466
				if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then
2467
					c.Anchored = false
2468
					c.Transparency = 0
2469
				end
2470
			end
2471
			for _, c in pairs(Weapon:GetChildren()) do
2472
				if c.ClassName == "Part" then
2473
					c.Transparency = 0
2474
				end
2475
			end
2476
			local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
2477
			local TORSOVERTICALVELOCITY = RootPart.Velocity.y
2478
			local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
2479
			local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
2480
			local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
2481
			if ATTACK == false and VALUE2 == false then
2482
                            end
2483
			if ANIM == "Walk" and TORSOVELOCITY > 1 then
2484
				RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2485
				Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2486
				RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2487
				LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2488
			elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
2489
				RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2490
				Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2491
				RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2492
				LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2493
			end
2494
			if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
2495
				ANIM = "Jump"
2496
				if ATTACK == false then
2497
					RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2498
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2499
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
2500
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2501
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
2502
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
2503
			       end
2504
			elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
2505
				ANIM = "Fall"
2506
				if ATTACK == false then
2507
					RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2508
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2509
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
2510
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2511
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
2512
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
2513
				end
2514
			elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
2515
				ANIM = "Idle"
2516
				if ATTACK == false then
2517
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
2518
			if MRANDOM(1,7) == 1 then
2519
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
2520
			end		
2521
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
2522
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
2523
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
2524
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
2525
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
2526
				end
2527
			elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
2528
				ANIM = "Walk"
2529
				if ATTACK == false then
2530
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2531
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
2532
			if MRANDOM(1,7) == 1 then
2533
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
2534
			end
2535
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(0), RAD(180), RAD(180)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2536
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
2537
					RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
2538
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
2539
				end
2540
			end
2541
		end
2542
	--end
2543
	Humanoid.DisplayDistanceType = "None"
2544
	unanchor()
2545
	tecks2.TextColor3 = BrickColor.Random().Color
2546
	tecks2.TextStrokeColor3 = BrickColor.Random().Color
2547
	Humanoid.MaxHealth = "inf"
2548
	Humanoid.Health = "inf"
2549
	if Rooted == false then
2550
		Disable_Jump = false
2551
		Humanoid.WalkSpeed = Speed
2552
	elseif Rooted == true then
2553
		Disable_Jump = true
2554
		Humanoid.WalkSpeed = 0
2555
	end
2556
	if Head:FindFirstChild("face") then
2557
		Head.face.Texture = "rbxassetid://403870689"
2558
	end
2559
	local MATHS = {"0","1"}
2560
	Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]
2561
	Humanoid.PlatformStand = false
2562
	if INTRO == false and INSTANT == false then
2563
		INTRO = true
2564
		coroutine.resume(coroutine.create(function()
2565
			sick:Play()
2566
			Intro()
2567
		end))
2568
	end
2569
	if INSTANT == true then
2570
		if TRANSFORMED == false then
2571
			sick.TimePosition = 60
2572
			sick:Play()
2573
		end
2574
		TRANSFORMED = true
2575
	end
2576
	script.Parent = PlayerGui
2577
	Character.Parent = workspace
2578
	Humanoid.Parent = Character
2579
end
2580
--//=================================\\
2581
--\\=================================//
2582
2583
2584
2585
2586
2587
--//====================================================\\--
2588
--||			  		 END OF SCRIPT
2589
--\\====================================================//--