View difference between Paste ID: PeSNG0z6 and AvXSLEZW
SHOW: | | - or go back to the newest paste.
1-
--https://github.com/Mokiros/roblox-FE-compatibility
1+
-- This script has been converted to FE by iPxter
2
3-
local Player,game,owner = owner,game
3+
4-
local RealPlayer = Player
4+
5
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
6-
	print("FE Compatibility code by Mokiros")
6+
7-
	local rp = RealPlayer
7+
	print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
8-
	script.Parent = rp.Character
8+
	script.Parent = Player.Character
9-
	
9+
10
	--RemoteEvent for communicating
11
	local Event = Instance.new("RemoteEvent")
12
	Event.Name = "UserInput_Event"
13
14
	--Fake event to make stuff like Mouse.KeyDown work
15
	local function fakeEvent()
16-
		local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
16+
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
17
		t.connect = t.Connect
18
		return t
19
	end
20
21
	--Creating fake input objects with fake variables
22-
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
22+
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
23
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
24
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
25
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
26
	end}
27
	--Merged 2 functions into one by checking amount of arguments
28
	CAS.UnbindAction = CAS.BindAction
29
30
	--This function will trigger the events that have been :Connect()'ed
31
	local function te(self,ev,...)
32
		local t = m[ev]
33-
		if t and t._fakeEvent then
33+
		if t and t._fakeEvent and t.Function then
34-
			for _,f in pairs(t.Functions) do
34+
			t.Function(...)
35-
				f(...)
35+
36
	end
37
	m.TrigEvent = te
38
	UIS.TrigEvent = te
39
40
	Event.OnServerEvent:Connect(function(plr,io)
41
	    if plr~=Player then return end
42
		if io.isMouse then
43-
	    if plr~=rp then return end
43+
			m.Target = io.Target
44-
		m.Target = io.Target
44+
			m.Hit = io.Hit
45-
		m.Hit = io.Hit
45+
46-
		if not io.isMouse then
46+
47
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
			end
50
			for _,t in pairs(CAS.Actions) do
51-
			if io.UserInputType == Enum.UserInputType.MouseButton2 then
51+
52-
				return m:TrigEvent(b and "Button2Down" or "Button2Up")
52+
53
						t.Function(t.Name,io.UserInputState,io)
54
					end
55
				end
56
			end
57
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
	    end
60
	end)
61
	Event.Parent = NLS([==[
62
	local Player = game:GetService("Players").LocalPlayer
63
	local Event = script:WaitForChild("UserInput_Event")
64
65
	local UIS = game:GetService("UserInputService")
66
	local input = function(io,a)
67
		if a then return end
68
		--Since InputObject is a client-side instance, we create and pass table instead
69
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
70
	end
71
	UIS.InputBegan:Connect(input)
72
	UIS.InputEnded:Connect(input)
73
74-
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
74+
75
	local h,t
76
	--Give the server mouse data 30 times every second, but only if the values changed
77
	--If player is not moving their mouse, client won't fire events
78
	while wait(1/30) do
79
		if h~=Mouse.Hit or t~=Mouse.Target then
80
			h,t=Mouse.Hit,Mouse.Target
81
			Event:FireServer({isMouse=true,Target=t,Hit=h})
82
		end
83
	end]==],Player.Character)
84
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
85
end
86
--//====================================================\\--
87
--||         GOOD COP BAD COP BY SHACKLUSTER
88
--\\====================================================//--
89-
	----Sandboxed game object that allows the usage of client-side methods and services
89+
90-
	--Real game object
90+
91-
	local _rg = game
91+
92
Player = owner
93-
	--Metatable for fake service
93+
94-
	local fsmt = {
94+
95-
		__index = function(self,k)
95+
96-
			local s = rawget(self,"_RealService")
96+
97-
			if s then
97+
98-
				return typeof(s[k])=="function"
98+
99-
				and function(_,...)return s[k](s,...)end or s[k]
99+
100
Head = Character["Head"]
101-
		end,
101+
102-
		__newindex = function(self,k,v)
102+
103-
			local s = rawget(self,"_RealService")
103+
104-
			if s then s[k]=v end
104+
105
RootJoint = RootPart["RootJoint"]
106-
	}
106+
107-
	local function FakeService(t,RealService)
107+
108-
		t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
108+
109-
		return setmetatable(t,fsmt)
109+
110
LeftHip = Torso["Left Hip"]
111
local sick = Instance.new("Sound",RootPart)
112-
	--Fake game object
112+
113-
	local g = {
113+
114-
		GetService = function(self,s)
114+
115-
			return self[s]
115+
116-
		end,
116+
117-
		Players = FakeService({
117+
118-
			LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
118+
119-
		},"Players"),
119+
120-
		UserInputService = FakeService(UIS,"UserInputService"),
120+
121-
		ContextActionService = FakeService(CAS,"ContextActionService"),
121+
122-
	}
122+
123-
	rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
123+
124-
	g.service = g.GetService
124+
125-
	
125+
126-
	g.RunService = FakeService({
126+
127-
		RenderStepped = _rg:GetService("RunService").Heartbeat,
127+
128-
		BindToRenderStep = function(self,name,_,fun)
128+
129-
			self._btrs[name] = self.Heartbeat:Connect(fun)
129+
130-
		end,
130+
131-
		UnbindFromRenderStep = function(self,name)
131+
132-
			self._btrs[name]:Disconnect()
132+
133-
		end,
133+
134-
	},"RunService")
134+
135
Animation_Speed = 3
136-
	setmetatable(g,fsmt)
136+
137-
	--Changing owner to fake player object to support owner:GetMouse()
137+
138-
	game,owner = g,g.Players.LocalPlayer
138+
139
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
140
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
141
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
142
local DAMAGEMULTIPLIER = 1
143
local ANIM = "Idle"
144
local ATTACK = false
145
local EQUIPPED = false
146-
Player = game:GetService("Players").LocalPlayer
146+
147
local COMBO = 1
148
local Rooted = false
149
local SINE = 0
150
local KEYHOLD = false
151
local CHANGE = 2 / Animation_Speed
152-
Mouse = Player:GetMouse()
152+
153
local VALUE1 = false
154
local VALUE2 = false
155
local ROBLOXIDLEANIMATION = IT("Animation")
156
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
157
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
158
--ROBLOXIDLEANIMATION.Parent = Humanoid
159
local WEAPONGUI = IT("ScreenGui", PlayerGui)
160
WEAPONGUI.Name = "Weapon GUI"
161
local Weapon = IT("Model")
162
Weapon.Name = "Adds"
163
local Effects = IT("Folder", Weapon)
164
Effects.Name = "Effects"
165
local ANIMATOR = Humanoid.Animator
166
local ANIMATE = Character.Animate
167
local UNANCHOR = true
168
local MODE = "GoodCop"
169
local BOLTSOUNDS = {168586621,168586586,178452241}
170
171
--//=================================\\
172
--\\=================================//
173
174
175
--//=================================\\
176
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
177
--\\=================================//
178
179
ArtificialHB = Instance.new("BindableEvent", script)
180
ArtificialHB.Name = "ArtificialHB"
181
182
script:WaitForChild("ArtificialHB")
183
184
frame = Frame_Speed
185
tf = 0
186
allowframeloss = false
187
tossremainder = false
188
lastframe = tick()
189
script.ArtificialHB:Fire()
190
191
game:GetService("RunService").Heartbeat:connect(function(s, p)
192
	tf = tf + s
193
	if tf >= frame then
194
		if allowframeloss then
195
			script.ArtificialHB:Fire()
196
			lastframe = tick()
197
		else
198
			for i = 1, math.floor(tf / frame) do
199
				script.ArtificialHB:Fire()
200
			end
201
		lastframe = tick()
202
		end
203
		if tossremainder then
204
			tf = 0
205
		else
206
			tf = tf - frame * math.floor(tf / frame)
207
		end
208
	end
209
end)
210
211
--//=================================\\
212
--\\=================================//
213
214
--//=================================\\
215
--|| 	      SOME FUNCTIONS
216
--\\=================================//
217
218
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
219
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
220
end
221
222
function PositiveAngle(NUMBER)
223
	if NUMBER >= 0 then
224
		NUMBER = 0
225
	end
226
	return NUMBER
227
end
228
229
function NegativeAngle(NUMBER)
230
	if NUMBER <= 0 then
231
		NUMBER = 0
232
	end
233
	return NUMBER
234
end
235
236
function Swait(NUMBER)
237
	if NUMBER == 0 or NUMBER == nil then
238
		ArtificialHB.Event:wait()
239
	else
240
		for i = 1, NUMBER do
241
			ArtificialHB.Event:wait()
242
		end
243
	end
244
end
245
246
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
247
	local NEWMESH = IT(MESH)
248
	if MESH == "SpecialMesh" then
249
		NEWMESH.MeshType = MESHTYPE
250
		if MESHID ~= "nil" and MESHID ~= "" then
251
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
252
		end
253
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
254
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
255
		end
256
	end
257
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
258
	NEWMESH.Scale = SCALE
259
	NEWMESH.Parent = PARENT
260
	return NEWMESH
261
end
262
263
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
264
	local NEWPART = IT("Part")
265
	NEWPART.formFactor = FORMFACTOR
266
	NEWPART.Reflectance = REFLECTANCE
267
	NEWPART.Transparency = TRANSPARENCY
268
	NEWPART.CanCollide = false
269
	NEWPART.Locked = true
270
	NEWPART.Anchored = true
271
	if ANCHOR == false then
272
		NEWPART.Anchored = false
273
	end
274
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
275
	NEWPART.Name = NAME
276
	NEWPART.Size = SIZE
277
	NEWPART.Position = Torso.Position
278
	NEWPART.Material = MATERIAL
279
	NEWPART:BreakJoints()
280
	NEWPART.Parent = PARENT
281
	return NEWPART
282
end
283
284
	local function weldBetween(a, b)
285
	    local weldd = Instance.new("ManualWeld")
286
	    weldd.Part0 = a
287
	    weldd.Part1 = b
288
	    weldd.C0 = CFrame.new()
289
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
290
	    weldd.Parent = a
291
	    return weldd
292
	end
293
294
295
function QuaternionFromCFrame(cf)
296
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
297
	local trace = m00 + m11 + m22
298
	if trace > 0 then 
299
		local s = math.sqrt(1 + trace)
300
		local recip = 0.5 / s
301
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
302
	else
303
		local i = 0
304
		if m11 > m00 then
305
			i = 1
306
		end
307
		if m22 > (i == 0 and m00 or m11) then
308
			i = 2
309
		end
310
		if i == 0 then
311
			local s = math.sqrt(m00 - m11 - m22 + 1)
312
			local recip = 0.5 / s
313
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
314
		elseif i == 1 then
315
			local s = math.sqrt(m11 - m22 - m00 + 1)
316
			local recip = 0.5 / s
317
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
318
		elseif i == 2 then
319
			local s = math.sqrt(m22 - m00 - m11 + 1)
320
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
321
		end
322
	end
323
end
324
 
325
function QuaternionToCFrame(px, py, pz, x, y, z, w)
326
	local xs, ys, zs = x + x, y + y, z + z
327
	local wx, wy, wz = w * xs, w * ys, w * zs
328
	local xx = x * xs
329
	local xy = x * ys
330
	local xz = x * zs
331
	local yy = y * ys
332
	local yz = y * zs
333
	local zz = z * zs
334
	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))
335
end
336
 
337
function QuaternionSlerp(a, b, t)
338
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
339
	local startInterp, finishInterp;
340
	if cosTheta >= 0.0001 then
341
		if (1 - cosTheta) > 0.0001 then
342
			local theta = ACOS(cosTheta)
343
			local invSinTheta = 1 / SIN(theta)
344
			startInterp = SIN((1 - t) * theta) * invSinTheta
345
			finishInterp = SIN(t * theta) * invSinTheta
346
		else
347
			startInterp = 1 - t
348
			finishInterp = t
349
		end
350
	else
351
		if (1 + cosTheta) > 0.0001 then
352
			local theta = ACOS(-cosTheta)
353
			local invSinTheta = 1 / SIN(theta)
354
			startInterp = SIN((t - 1) * theta) * invSinTheta
355
			finishInterp = SIN(t * theta) * invSinTheta
356
		else
357
			startInterp = t - 1
358
			finishInterp = t
359
		end
360
	end
361
	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
362
end
363
364
function Clerp(a, b, t)
365
	local qa = {QuaternionFromCFrame(a)}
366
	local qb = {QuaternionFromCFrame(b)}
367
	local ax, ay, az = a.x, a.y, a.z
368
	local bx, by, bz = b.x, b.y, b.z
369
	local _t = 1 - t
370
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
371
end
372
373
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
374
	local frame = IT("Frame")
375
	frame.BackgroundTransparency = TRANSPARENCY
376
	frame.BorderSizePixel = BORDERSIZEPIXEL
377
	frame.Position = POSITION
378
	frame.Size = SIZE
379
	frame.BackgroundColor3 = COLOR
380
	frame.BorderColor3 = BORDERCOLOR
381
	frame.Name = NAME
382
	frame.Parent = PARENT
383
	return frame
384
end
385
386
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
387
	local label = IT("TextLabel")
388
	label.BackgroundTransparency = 1
389
	label.Size = UD2(1, 0, 1, 0)
390
	label.Position = UD2(0, 0, 0, 0)
391
	label.TextColor3 = TEXTCOLOR
392
	label.TextStrokeTransparency = STROKETRANSPARENCY
393
	label.TextTransparency = TRANSPARENCY
394
	label.FontSize = TEXTFONTSIZE
395
	label.Font = TEXTFONT
396
	label.BorderSizePixel = BORDERSIZEPIXEL
397
	label.TextScaled = false
398
	label.Text = TEXT
399
	label.Name = NAME
400
	label.Parent = PARENT
401
	return label
402
end
403
404
function NoOutlines(PART)
405
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
406
end
407
408
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
409
	local NEWWELD = IT(TYPE)
410
	NEWWELD.Part0 = PART0
411
	NEWWELD.Part1 = PART1
412
	NEWWELD.C0 = C0
413
	NEWWELD.C1 = C1
414
	NEWWELD.Parent = PARENT
415
	return NEWWELD
416
end
417
418
local S = IT("Sound")
419
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
420
	local NEWSOUND = nil
421
	coroutine.resume(coroutine.create(function()
422
		NEWSOUND = S:Clone()
423
		NEWSOUND.Parent = PARENT
424
		NEWSOUND.Volume = VOLUME
425
		NEWSOUND.Pitch = PITCH
426
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
427
		NEWSOUND:play()
428
		if DOESLOOP == true then
429
			NEWSOUND.Looped = true
430
		else
431
			repeat wait(1) until NEWSOUND.Playing == false
432
			NEWSOUND:remove()
433
		end
434
	end))
435
	return NEWSOUND
436
end
437
438
function CFrameFromTopBack(at, top, back)
439
	local right = top:Cross(back)
440
	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)
441
end
442
443
--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})
444
function WACKYEFFECT(Table)
445
	local TYPE = (Table.EffectType or "Sphere")
446
	local SIZE = (Table.Size or VT(1,1,1))
447
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
448
	local TRANSPARENCY = (Table.Transparency or 0)
449
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
450
	local CFRAME = (Table.CFrame or Torso.CFrame)
451
	local MOVEDIRECTION = (Table.MoveToPos or nil)
452
	local ROTATION1 = (Table.RotationX or 0)
453
	local ROTATION2 = (Table.RotationY or 0)
454
	local ROTATION3 = (Table.RotationZ or 0)
455
	local MATERIAL = (Table.Material or "Neon")
456
	local COLOR = (Table.Color or C3(1,1,1))
457
	local TIME = (Table.Time or 45)
458
	local SOUNDID = (Table.SoundID or nil)
459
	local SOUNDPITCH = (Table.SoundPitch or nil)
460
	local SOUNDVOLUME = (Table.SoundVolume or nil)
461
	coroutine.resume(coroutine.create(function()
462
		local PLAYSSOUND = false
463
		local SOUND = nil
464
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
465
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
466
			PLAYSSOUND = true
467
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
468
		end
469
		EFFECT.Color = COLOR
470
		local MSH = nil
471
		if TYPE == "Sphere" then
472
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
473
		elseif TYPE == "Block" or TYPE == "Box" then
474
			MSH = IT("BlockMesh",EFFECT)
475
			MSH.Scale = SIZE
476
		elseif TYPE == "Wave" then
477
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
478
		elseif TYPE == "Ring" then
479
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
480
		elseif TYPE == "Slash" then
481
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
482
		elseif TYPE == "Round Slash" then
483
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
484
		elseif TYPE == "Swirl" then
485
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
486
		elseif TYPE == "Skull" then
487
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
488
		elseif TYPE == "Crystal" then
489
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
490
		end
491
		if MSH ~= nil then
492
			local MOVESPEED = nil
493
			if MOVEDIRECTION ~= nil then
494
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
495
			end
496
			local GROWTH = SIZE - ENDSIZE
497
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
498
			if TYPE == "Block" then
499
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
500
			else
501
				EFFECT.CFrame = CFRAME
502
			end
503
			for LOOP = 1, TIME+1 do
504
				Swait()
505
				MSH.Scale = MSH.Scale - GROWTH/TIME
506
				if TYPE == "Wave" then
507
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
508
				end
509
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
510
				if TYPE == "Block" then
511
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
512
				else
513
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
514
				end
515
				if MOVEDIRECTION ~= nil then
516
					local ORI = EFFECT.Orientation
517
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
518
					EFFECT.Orientation = ORI
519
				end
520
			end
521
			if PLAYSSOUND == false then
522
				EFFECT:remove()
523
			else
524
				repeat Swait() until SOUND.Playing == false
525
				EFFECT:remove()
526
			end
527
		else
528
			if PLAYSSOUND == false then
529
				EFFECT:remove()
530
			else
531
				repeat Swait() until SOUND.Playing == false
532
				EFFECT:remove()
533
			end
534
		end
535
	end))
536
end
537
538
function MakeForm(PART,TYPE)
539
	if TYPE == "Cyl" then
540
		local MSH = IT("CylinderMesh",PART)
541
	elseif TYPE == "Ball" then
542
		local MSH = IT("SpecialMesh",PART)
543
		MSH.MeshType = "Sphere"
544
	elseif TYPE == "Wedge" then
545
		local MSH = IT("SpecialMesh",PART)
546
		MSH.MeshType = "Wedge"
547
	elseif TYPE == "Head" then
548
		local MSH = IT("SpecialMesh",PART)
549
		MSH.Scale = VT(1.25,1.25,1.25)
550
	end
551
end
552
553
554
555
function CastProperRay(StartPos, EndPos, Distance, Ignore)
556
	local DIRECTION = CF(StartPos,EndPos).lookVector
557
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
558
end
559
560
function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
561
    PLAYMAINANIM = false
562
    if WhichPose == "Cast1" then
563
        for i=0, Time, 0.1 / Animation_Speed do
564
            Swait()
565
            if Magic == true then
566
                WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
567
            end
568
            if Gyro ~= nil and Gyro ~= false then
569
                Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
570
            end
571
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed)
572
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed)
573
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
574
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
575
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
576
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
577
        end
578
    elseif WhichPose == "Cast2" then
579
        for i=0, Time, 0.1 / Animation_Speed do
580
            Swait()
581
            if Magic == true then
582
                WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
583
                WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
584
            end
585
            if Gyro ~= nil and Gyro ~= false then
586
                Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
587
            end
588
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
589
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
590
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
591
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
592
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
593
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
594
        end
595
    elseif WhichPose == "RightArmUp" then
596
        for i=0, Time, 0.1 / Animation_Speed do
597
            Swait()
598
            if Magic == true then
599
                WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
600
            end
601
            if Gyro ~= nil and Gyro ~= false then
602
                Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
603
            end
604
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed)
605
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed)
606
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
607
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
608
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
609
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
610
        end
611
    elseif WhichPose == "Taunt" then
612
        for i=0, Time, 0.1 / Animation_Speed do
613
            Swait()
614
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
615
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
616
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
617
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
618
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
619
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
620
        end
621
        HATWELD.Part0 = RightArm
622
        HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
623
        CreateSound(221057812,Torso,10,1,false)
624
        for i=0, Time*2, 0.1 / Animation_Speed do
625
            Swait()
626
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
627
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
628
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
629
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
630
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
631
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
632
        end
633
        for i=0, Time, 0.1 / Animation_Speed do
634
            Swait()
635
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
636
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
637
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
638
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
639
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
640
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
641
            HATWELD.C0 = Clerp(HATWELD.C0, CF(-0.5,-1.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(35), RAD(0), RAD(35)), Speed / Animation_Speed)
642
        end
643
        HATWELD.Part0 = Head
644
        HATWELD.C0 = CF(0,0.35,0)
645
    elseif WhichPose == "Prepare key" then
646
        for i=0, Time, 0.1 / Animation_Speed do
647
            Swait()
648
            if Gyro ~= nil and Gyro ~= false then
649
                Gyro.cframe = CF(RootPart.Position,Tors.Position)
650
            end
651
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed)
652
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed)
653
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
654
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
655
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
656
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
657
        end
658
    elseif WhichPose == "Turn key" then
659
        for i=0, Time, 0.1 / Animation_Speed do
660
            Swait()
661
            if Gyro ~= nil and Gyro ~= false then
662
                Gyro.cframe = CF(RootPart.Position,Tors.Position)
663
            end
664
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed)
665
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed)
666
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
667
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
668
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
669
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
670
        end
671
    end
672
    PLAYMAINANIM = true
673
end
674
675
function CharacterFade(COLOR,TIMER)
676
	coroutine.resume(coroutine.create(function()
677
		local FADE = IT("Model",Effects)
678
		FADE.Name = "FadingEffect"
679
		for _, c in pairs(Character:GetChildren()) do
680
			if c.ClassName == "Part" and c ~= RootPart then
681
				local FADER = c:Clone()
682
				FADER.Color = COLOR
683
				FADER.CFrame = c.CFrame
684-
local HAT1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2,0.2,2),false)
684+
685-
MakeForm(HAT1,"Cyl")
685+
686-
HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.35,0), CF(0, 0, 0))
686+
687-
local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2.01,0.15,2.01),false)
687+
688-
BELT.Color = C3(15/255,15/255,15/255)
688+
689-
MakeForm(BELT,"Cyl")
689+
690-
CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0,0), CF(0, 0, 0))
690+
691-
local HAT2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,2.2,1.3),false)
691+
692-
MakeForm(HAT2,"Cyl")
692+
693-
CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0))
693+
694-
local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.2,1.31),false)
694+
695-
BELT.Color = C3(15/255,15/255,15/255)
695+
696-
MakeForm(BELT,"Cyl")
696+
697-
CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0,0), CF(0, 0, 0))
697+
698-
local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Gem", VT(0.25,0.25,0.1),false)
698+
699-
MakeForm(GEM,"Ball")
699+
700-
CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0))
700+
701-
local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Gem", VT(0.25,0.25,0.1),false)
701+
702-
MakeForm(GEM,"Ball")
702+
703-
CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0))
703+
704-
local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Gem", VT(0.1,0.25,0.25),false)
704+
705-
MakeForm(GEM,"Ball")
705+
706-
CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0))
706+
707-
local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Gem", VT(0.1,0.25,0.25),false)
707+
708-
MakeForm(GEM,"Ball")
708+
709-
CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0))
709+
710-
local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
710+
711-
BELT.Color = C3(15/255,15/255,15/255)
711+
712-
MakeForm(BELT,"Cyl")
712+
713-
CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.7,0), CF(0, 0, 0))
713+
714-
local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
714+
715-
BELT.Color = C3(15/255,15/255,15/255)
715+
716-
MakeForm(BELT,"Cyl")
716+
717-
CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.7,0), CF(0, 0, 0))
717+
718-
local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
718+
719-
BELT.Color = C3(15/255,15/255,15/255)
719+
720-
MakeForm(BELT,"Cyl")
720+
721-
CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.35,0), CF(0, 0, 0))
721+
722-
local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
722+
723-
BELT.Color = C3(15/255,15/255,15/255)
723+
724-
MakeForm(BELT,"Cyl")
724+
725-
CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.35,0), CF(0, 0, 0))
725+
726-
local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,0.5,1.3),false)
726+
727-
MakeForm(BELT,"Ball")
727+
728-
CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,HAT2.Size.Y/2,0), CF(0, 0, 0))
728+
729-
local FACE = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Face mask", VT(1.001,1.001,1.001),false)
729+
730-
CreateWeldOrSnapOrMotor("Weld", FACE, Head, FACE, CF(0.02,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
730+
731-
MakeForm(FACE,"Head")
731+
732-
local EYE = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0.1,0.25,0.2),false)
732+
733-
CreateWeldOrSnapOrMotor("Weld", EYE, Head, EYE, CF(0.15,0.25,-0.53) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0))
733+
734
		end
735
		wait(1)
736
		naeeym2:Destroy()
737
	end)
738
	chat()
739
end
740
741
--// Start Stuff for Banishing \\--
742
 
743
Debris = game:GetService("Debris")
744-
CreateMesh("SpecialMesh", BATON, "FileMesh", "155403991", "", VT(1,1,1), VT(0,0,0))
744+
745
local TOBANISH = {}
746
 
747
function CastProperRay(StartPos, EndPos, Distance, Ignore)
748
    local DIRECTION = CF(StartPos,EndPos).lookVector
749
    return Raycast(StartPos, DIRECTION, Distance, Ignore)
750
end
751
 
752
function turnto(position)
753
    RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
754
end
755
 
756
757
function printbye(Name)
758
    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 life 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, "}
759
    chatfunc(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
760
end
761
 
762
function Banish(Foe)
763
    if Foe then
764
        coroutine.resume(coroutine.create(function()
765
            --if game.Players:FindFirstChild(Foe.Name) then
766
                table.insert(TOBANISH,Foe.Name)
767
                printbye(Foe.Name)
768
            --end
769
            Foe.Archivable = true
770
            local CLONE = Foe:Clone()
771
            Foe:Destroy()
772
            CLONE.Parent = Effects
773
            CLONE:BreakJoints()
774-
local ATTACKSGOODCOP = {"Mouse - Warning","Q - Baton Stun","E - Cuffs"}
774+
            local MATERIALS = {"Glass","Neon"}
775-
local ATTACKSBADCOP = {"Mouse - Silence","Q - Baton Breaker","E - The Right to remain silent"}
775+
            for _, c in pairs(CLONE:GetDescendants()) do
776
                if c:IsA("BasePart") then
777
                    if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
778
                        CreateSound(340722848, c, 10, 1, false)
779
                    end
780
                    c.Anchored = true
781
                    c.Transparency = c.Transparency + 0.2
782
                    c.Material = MATERIALS[MRANDOM(1,2)]
783
                    c.Color = C3(0,255,0)
784
                    if c.ClassName == "MeshPart" then
785
                        c.TextureID = ""
786
                    end
787
                    if c:FindFirstChildOfClass("SpecialMesh") then
788
                        c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
789
                    end
790
                    if c:FindFirstChildOfClass("Decal") then
791
                        c:FindFirstChildOfClass("Decal"):remove()
792
                    end
793
                    c.Name = "Banished"
794-
local SKILLTEXT = CreateLabel(SKILLFRAME, "[F - Switch]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Skill text")
794+
                    c.CanCollide = false
795
                else
796
                    c:remove()
797
                end
798
            end
799
            local A = false
800
            for i = 1, 35 do
801
                if A == false then
802
                    A = true
803
                elseif A == true then
804
                    A = false
805
                end
806
                for _, c in pairs(CLONE:GetDescendants()) do
807
                    if c:IsA("BasePart") then
808
                        c.Anchored = true
809
                        c.Material = MATERIALS[MRANDOM(1,2)]
810
                        c.Transparency = c.Transparency + 0.8/35
811
                        if A == false then
812
                            c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
813
                        elseif A == true then
814
                            c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)                       
815
                        end
816-
			local TEXTS = {"I'm simply laying down the law.","YOU BE DEAD FROM MY GANG","IM NOT A FOOL!!!!!"}
816+
                    end
817
                end
818-
		elseif MODE == "BadCop" then
818+
                Swait()
819-
			local TEXTS = {"Criminals should leave this world!","YOU LIKE THIS?","HA HA HA HA HA HA HA"}
819+
            end
820
            CLONE:remove()
821
        end))
822
    end
823
end
824
 
825
function BANNEAREST(POS,RANGE)
826
    for i,v in ipairs(workspace:GetChildren()) do
827
    local body = v:GetChildren()
828
        for part = 1, #body do
829
            if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
830
                if(body[part].Position - POS).Magnitude < RANGE then
831
                    if v:FindFirstChildOfClass("Humanoid") then
832
                        Banish(v)
833
                        if game.Players:FindFirstChild(v.Name) then
834
                            local Value = IT("BoolValue",Delete)
835
                            Value.Name = v.Name
836
                        end
837
                    end
838
                end
839
            end
840
        end
841
    end
842
end
843
 
844
workspace.ChildAdded:connect(function(instance)
845
    for BANISH = 1, #TOBANISH do
846
        if TOBANISH[BANISH] ~= nil then
847
            if instance.Name == TOBANISH[BANISH] then
848
                coroutine.resume(coroutine.create(function()
849
                    printbye(instance.Name)
850
                    instance:ClearAllChildren()
851
                    Debris:AddItem(instance,0.0005)
852
                end))
853
            end
854
        end
855
    end
856
end)
857
 
858
function SpawnTrail(FROM,TO,BIG)
859
    local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
860
    MakeForm(TRAIL,"Cyl")
861
    local DIST = (FROM - TO).Magnitude
862
    if BIG == true then
863
        TRAIL.Size = VT(10,DIST,10)
864
    else
865
        TRAIL.Size = VT(0.25,DIST,0.25)
866
    end
867
    TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
868
    coroutine.resume(coroutine.create(function()
869
        for i = 1, 5 do
870
            Swait()
871
            TRAIL.Transparency = TRAIL.Transparency + 0.1
872
        end
873
        TRAIL:remove()
874
    end))
875
end
876
 
877
function WACKYEFFECT(Table)
878
    local TYPE = (Table.EffectType or "Sphere")
879
    local SIZE = (Table.Size or VT(1,1,1))
880
    local ENDSIZE = (Table.Size2 or VT(0,0,0))
881
    local TRANSPARENCY = (Table.Transparency or 0)
882
    local ENDTRANSPARENCY = (Table.Transparency2 or 1)
883
    local CFRAME = (Table.CFrame or Torso.CFrame)
884
    local MOVEDIRECTION = (Table.MoveToPos or nil)
885
    local ROTATION1 = (Table.RotationX or 0)
886
    local ROTATION2 = (Table.RotationY or 0)
887
    local ROTATION3 = (Table.RotationZ or 0)
888
    local MATERIAL = (Table.Material or "Neon")
889
    local COLOR = (Table.Color or C3(0,255,0))
890
    local TIME = (Table.Time or 45)
891
    local SOUNDID = (Table.SoundID or nil)
892
    local SOUNDPITCH = (Table.SoundPitch or nil)
893-
function Warning()
893+
    local SOUNDVOLUME = (Table.SoundVolume or nil)
894
    coroutine.resume(coroutine.create(function()
895
        local PLAYSSOUND = false
896
        local SOUND = nil
897
        local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
898-
			local LEG = TARGET.Parent:FindFirstChild("Right Leg") or TARGET.Parent:FindFirstChild("RightLowerLeg")
898+
        if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
899-
			if LEG and HUM.Health > 0 then
899+
            PLAYSSOUND = true
900-
				Speed = 6
900+
            SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
901
        end
902
        EFFECT.Color = COLOR
903-
				local GYRO = IT("BodyGyro",RootPart)
903+
        local MSH = nil
904-
				GYRO.D = 2
904+
        if TYPE == "Sphere" then
905-
				GYRO.P = 2000
905+
            MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
906-
				GYRO.MaxTorque = VT(0,4000000,0)
906+
        elseif TYPE == "Block" then
907
            MSH = IT("BlockMesh",EFFECT)
908-
					repeat
908+
            MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
909-
						Swait()
909+
        elseif TYPE == "Wave" then
910-
						GYRO.CFrame = CF(RootPart.Position,LEG.Position)
910+
            MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
911-
					until ATTACK == false
911+
        elseif TYPE == "Ring" then
912-
					GYRO:Remove()
912+
            MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
913
        elseif TYPE == "Slash" then
914-
				local HIT,POS = CastProperRay(RootPart.Position,LEG.Position,1000,Character)
914+
            MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
915
        elseif TYPE == "Round Slash" then
916-
				for i=0, 0.2, 0.1 / Animation_Speed do
916+
            MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
917
        elseif TYPE == "Swirl" then
918-
					HIT,POS = CastProperRay(RootPart.Position,LEG.Position,1000,Character)
918+
            MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
919-
					if HIT == nil then
919+
        elseif TYPE == "Skull" then
920
            MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
921-
						break
921+
        elseif TYPE == "Crystal" then
922-
					else
922+
            MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
923-
						if HIT.Parent ~= TARGET.Parent then
923+
        end
924-
							PASS = false
924+
        if MSH ~= nil then
925-
							break
925+
            local MOVESPEED = nil
926
            if MOVEDIRECTION ~= nil then
927
                MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
928-
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
928+
            end
929-
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed)
929+
            local GROWTH = SIZE - ENDSIZE
930-
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
930+
            local TRANS = TRANSPARENCY - ENDTRANSPARENCY
931-
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
931+
            if TYPE == "Block" then
932-
					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)
932+
                EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
933
            else
934
                EFFECT.CFrame = CFRAME
935-
				CreateSound(147722227, GUN, 6, 1.3, false)
935+
            end
936-
				GUNWELD.Part0 = LeftArm
936+
            for LOOP = 1, TIME+1 do
937-
				GUNWELD.C0 = CF(0,-1.5,0) * ANGLES(RAD(0), RAD(90), RAD(-90))
937+
                Swait()
938-
				for i=0, 0.4, 0.1 / Animation_Speed do
938+
                MSH.Scale = MSH.Scale - GROWTH/TIME
939
                if TYPE == "Wave" then
940-
					HIT,POS = CastProperRay(RootPart.Position,LEG.Position,1000,Character)
940+
                    MSH.Offset = VT(0,0,-MSH.Scale.X/8)
941-
					if HIT == nil then
941+
                end
942
                EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
943-
						break
943+
                if TYPE == "Block" then
944-
					else
944+
                    EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
945-
						if HIT.Parent ~= TARGET.Parent then
945+
                else
946-
							PASS = false
946+
                    EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
947-
							break
947+
                end
948
                if MOVEDIRECTION ~= nil then
949
                    local ORI = EFFECT.Orientation
950-
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
950+
                    EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
951-
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
951+
                    EFFECT.Orientation = ORI
952-
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
952+
                end
953-
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
953+
            end
954-
					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)
954+
            if PLAYSSOUND == false then
955-
					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)
955+
                EFFECT:remove()
956
            else
957
                SOUND.Stopped:Connect(function()
958-
					local GUNPOS = GUN.CFrame*CF(1.2, 0.5, 0).p
958+
                    EFFECT:remove()
959-
					local DISTANCE = (LEG.Position - GUNPOS).Magnitude
959+
                end)
960-
					CreateSound(160432334, LEG, 10, 1, false)
960+
            end
961-
					local HEAD = HUM.Parent:FindFirstChild("Head")
961+
        else
962-
					if HEAD then
962+
            if PLAYSSOUND == false then
963-
						CreateSound(535690488, HEAD, 7, 1, false)
963+
                EFFECT:remove()
964
            else
965-
					ApplyDamage(HUM,15)
965+
                repeat Swait() until SOUND.Playing == false
966-
					HUM.WalkSpeed = HUM.WalkSpeed - 3
966+
                EFFECT:remove()
967
            end
968
        end
969-
						wait(0.1)
969+
    end))
970
end
971
 
972
-- \\ End Stuff for Banishing //--
973
974-
					WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(0.3,0.3,0.3), Transparency = 0, Transparency2 = 1, CFrame = CF(GUNPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = 330704232, SoundPitch = 1, SoundVolume = 4})
974+
function Trail(Part)
975-
					WACKYEFFECT({Time = 6, EffectType = "Box", Size = VT(0,0,DISTANCE), Size2 = VT(0.1,0.1,DISTANCE), Transparency = 0, Transparency2 = 1, CFrame = CF(GUNPOS,LEG.Position)*CF(0,0,-DISTANCE/2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
975+
    local TRAIL = Part:Clone()
976-
					for i=0, 1, 0.1 / Animation_Speed do
976+
    TRAIL.CanCollide = false
977-
						Swait()
977+
    TRAIL.Anchored = true
978-
						RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
978+
    TRAIL.Parent = Effects
979-
						Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(45)), 1 / Animation_Speed)
979+
    TRAIL.Name = "Trail"
980-
						RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
980+
    local TRANS = Part.Transparency
981-
						LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
981+
    coroutine.resume(coroutine.create(function()
982-
						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)
982+
        for i = 1, 20 do
983-
						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)
983+
            Swait()
984
            TRAIL.Transparency = TRAIL.Transparency + ((1-TRANS)/20)
985
        end
986-
				for i=0, 0.3, 0.1 / Animation_Speed do
986+
        TRAIL:remove()
987
    end))
988-
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
988+
989-
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed)
989+
990-
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
990+
function MagicBlock(SIZE,WAIT,CFRAME,COLOR,GROW)
991-
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
991+
    local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true)
992-
					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)
992+
    local mesh = IT("BlockMesh",wave)
993
    wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
994
    coroutine.resume(coroutine.create(function(PART)
995-
				GUNWELD.Part0 = Torso
995+
        for i = 1, WAIT do
996-
				GUNWELD.C0 = CF(-1.1,-1.1,0) * ANGLES(RAD(0), RAD(90), RAD(-90))
996+
            Swait()
997
            mesh.Scale = mesh.Scale + GROW
998
            wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
999-
				Speed = 20
999+
            wave.Transparency = wave.Transparency + (0.5/WAIT)
1000
            if wave.Transparency > 0.99 then
1001
                wave:remove()
1002
            end
1003
        end
1004
    end))
1005
end
1006
1007
function MagicSphere(size,waitt,cframe,color)
1008
    local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1))
1009
    local mesh = IT("SpecialMesh",wave)
1010
    mesh.MeshType = "Sphere"
1011
    mesh.Scale = VT(size,size,size)
1012
    mesh.Offset = VT(0,0,0)
1013
    wave.CFrame = cframe
1014
    coroutine.resume(coroutine.create(function(PART)
1015
        for i = 1, waitt do
1016
            Swait()
1017
            mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
1018
            wave.Transparency = wave.Transparency + (1/waitt)
1019
            if wave.Transparency > 0.99 then
1020
                wave:remove()
1021
            end
1022
        end
1023
    end))
1024
end
1025
 
1026
function MagicSphere2(size,waitt,cframe,color)
1027
    local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1))
1028
    local mesh = IT("SpecialMesh",wave)
1029
    mesh.MeshType = "Sphere"
1030
    mesh.Scale = VT(size,size,size)
1031
    mesh.Offset = VT(0,0,0)
1032
    wave.CFrame = cframe
1033
    coroutine.resume(coroutine.create(function(PART)
1034
        for i = 1, waitt do
1035
            Swait()
1036
            mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt)
1037
            wave.Transparency = wave.Transparency - (1/waitt)
1038
        end
1039
        wave:remove()
1040
    end))
1041
end
1042
1043
--Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false})
1044
function Lightning(Table)
1045
    local Color = Table.Color or C3(1,1,1)
1046
    local StartPos = Table.Start or Torso.Position
1047
    local EndPos = Table.End or Mouse.Hit.p
1048
    local SegmentLength = Table.SegmentL or 2
1049
    local Thickness = Table.Thickness or 0.1
1050
    local Dissapear = Table.DoesFade or false
1051
    local Parent = Table.Ignore or Character
1052
    local MaxDist = Table.MaxDist or 400
1053
    local Branches = Table.Branches or false
1054
    local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
1055
    local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
1056
    local LIGHTNINGMODEL = IT("Model",Effects)
1057
    LIGHTNINGMODEL.Name = "Lightning"
1058
    local LastBolt = nil
1059
    for E = 1, DISTANCE do
1060
        local ExtraSize = (DISTANCE-E)/15
1061
        local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Crimson"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
1062
        PART.Color = Color
1063-
						Chatter("Let that be a warning.",0)
1063+
        MakeForm(PART,"Cyl")
1064
        if LastBolt == nil then
1065
            PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
1066
        else
1067
            PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SegmentLength/3+(DISTANCE-E)).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
1068
        end
1069
        LastBolt = PART
1070
        if Branches == true then
1071
            local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
1072
            if CHOICE == 1 then
1073
                local LASTBRANCH = nil
1074
                for i = 1, MRANDOM(2,5) do
1075
                    local ExtraSize2 = ((DISTANCE-E)/25)/i
1076
                    local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Crimson"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
1077
                    PART.Color = Color
1078
                    MakeForm(PART,"Cyl")
1079
                    if LASTBRANCH == nil then
1080
                        PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
1081
                    else
1082
                        PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
1083
                    end
1084
                    LASTBRANCH = PART
1085
                end
1086
            end
1087
        end
1088
    end
1089
    if Dissapear == true then
1090
        coroutine.resume(coroutine.create(function()
1091
            for i = 1, 10 do
1092
                Swait()
1093
                for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
1094
                    if c.ClassName == "Part" then
1095
                        c.Transparency = i/10
1096
                    end
1097
                end
1098
            end
1099
            LIGHTNINGMODEL:remove()
1100
        end))
1101
    elseif Dissapear == false then
1102
        Debris:AddItem(LIGHTNINGMODEL,0.1)
1103
    end
1104
    return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
1105
end
1106
1107
--//=================================\\
1108
--||         RAGDOLL STUFF
1109
--\\=================================//
1110
 
1111
function recurse(root,callback,i)
1112-
				Chatter("GOTCHA FOOL!",0)
1112+
    i= i or 0
1113
    for _,v in pairs(root:GetChildren()) do
1114
        i = i + 1
1115
        callback(i,v)
1116
       
1117
        if #v:GetChildren() > 0 then
1118
            i = recurse(v,callback,i)
1119
        end
1120
    end
1121
   
1122
    return i
1123
end
1124
 
1125
function ragdollJoint(character, part0, part1, attachmentName, className, properties)
1126
    attachmentName = attachmentName.."RigAttachment"
1127
    local constraint = Instance.new(className.."Constraint")
1128
    constraint.Attachment0 = part0:FindFirstChild(attachmentName)
1129
    constraint.Attachment1 = part1:FindFirstChild(attachmentName)
1130
    constraint.Name = "RagdollConstraint"..part1.Name
1131
   
1132
    for _,propertyData in next,properties or {} do
1133
        constraint[propertyData[1]] = propertyData[2]
1134
    end
1135
   
1136
    constraint.Parent = character
1137
end
1138
 
1139
function getAttachment0(character, attachmentName)
1140
    for _,child in next,character:GetChildren() do
1141
        local attachment = child:FindFirstChild(attachmentName)
1142
        if attachment then
1143
            return attachment
1144
        end
1145
    end
1146
end
1147
 
1148
function ArtificialHitbox(Part)
1149
    local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false)
1150
    HITBOX.CanCollide = true
1151
    HITBOX.CFrame = Part.CFrame
1152
    weldBetween(Part,HITBOX)
1153
end
1154
 
1155
function R15Ragdoll(character,KeepArms)
1156
    character:BreakJoints()
1157
    coroutine.resume(coroutine.create(function()
1158
        recurse(character, function(_,v)
1159
            if v:IsA("Attachment") then
1160
                v.Axis = Vector3.new(0, 1, 0)
1161
                v.SecondaryAxis = Vector3.new(0, 0, 1)
1162
                v.Rotation = Vector3.new(0, 0, 0)
1163
            end
1164
        end)
1165
        for _,child in next,character:GetChildren() do
1166
            if child:IsA("Accoutrement") then
1167
                for _,part in next,child:GetChildren() do
1168
                    if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
1169
                        local attachment1 = part:FindFirstChildOfClass("Attachment")
1170
                        local attachment0 = getAttachment0(character,attachment1.Name)
1171
                        if attachment0 and attachment1 then
1172
                            local constraint = Instance.new("HingeConstraint")
1173
                            constraint.Attachment0 = attachment0
1174
                            constraint.Attachment1 = attachment1
1175
                            constraint.LimitsEnabled = true
1176
                            constraint.UpperAngle = 0
1177
                            constraint.LowerAngle = 0
1178
                            constraint.Parent = character
1179
                        end
1180
                        ArtificialHitbox(part)
1181
                    elseif part.Name == "HumanoidRootPart" then
1182
                        part:remove()
1183
                    end
1184-
				Chatter("YOU BE CAUGHT BY VS GIRL GANG",0)
1184+
                end
1185
            end
1186
        end
1187
       
1188
        ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
1189
            {"LimitsEnabled",true};
1190
            {"UpperAngle",5};
1191
        })
1192
        if character:FindFirstChild("Head") then
1193
            ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
1194
                {"LimitsEnabled",true};
1195
                {"UpperAngle",15};
1196
            })
1197
        end
1198
       
1199
        local handProperties = {
1200
            {"LimitsEnabled", true};
1201
            {"UpperAngle",0};
1202
            {"LowerAngle",0};
1203
        }
1204
        ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
1205
        ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
1206-
	Speed = 6
1206+
       
1207
        local shinProperties = {
1208
            {"LimitsEnabled", true};
1209-
	local GYRO = IT("BodyGyro",RootPart)
1209+
            {"UpperAngle", 0};
1210-
	GYRO.D = 2
1210+
            {"LowerAngle", -75};
1211-
	GYRO.P = 20000
1211+
        }
1212-
	GYRO.MaxTorque = VT(0,4000000,0)
1212+
        ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
1213
        ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
1214
       
1215
        local footProperties = {
1216-
			GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
1216+
            {"LimitsEnabled", true};
1217-
		until ATTACK == false
1217+
            {"UpperAngle", 15};
1218-
		GYRO:Remove()
1218+
            {"LowerAngle", -45};
1219
        }
1220
        ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
1221
        ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
1222
        if KeepArms == true then
1223-
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed)
1223+
            ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
1224-
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1224+
            ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
1225-
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1225+
            ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
1226
            ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
1227
        end
1228
        ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
1229-
	local AMMO = 6
1229+
        ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
1230-
	local FIRING = true
1230+
        Debris:AddItem(character,5)
1231-
	local SHOOTING = false
1231+
    end))
1232-
	local TIMER = 70
1232+
1233-
	CreateSound(147722227, GUN, 6, 1.3, false)
1233+
1234-
	GUNWELD.Part0 = LeftArm
1234+
function Ragdoll(Character2,CharTorso,KeepArms)
1235-
	GUNWELD.C0 = CF(0,-1.5,0) * ANGLES(RAD(0), RAD(90), RAD(-90))
1235+
    coroutine.resume(coroutine.create(function()
1236-
	local MOUSE = Mouse.Button1Down:connect(function(NEWKEY)
1236+
        Character2:BreakJoints()
1237-
		if SHOOTING == false and AMMO > 0 then
1237+
        local hum = Character2:findFirstChild("Humanoid")
1238-
			SHOOTING = true
1238+
        hum:remove()
1239-
			AMMO = AMMO - 1
1239+
        local function Scan(ch)
1240-
			local GUNPOS = GUN.CFrame*CF(1.2, 0.5, 0).p
1240+
            local e
1241-
			local HIT,POS = CastProperRay(GUNPOS,Mouse.Hit.p,1000,Character)
1241+
            for e = 1,#ch do
1242-
			local DISTANCE = (POS - GUNPOS).Magnitude
1242+
                Scan(ch[e]:GetChildren())
1243-
			if HIT then
1243+
                if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
1244-
				if HIT.Parent:FindFirstChildOfClass("Humanoid") then
1244+
                    ch[e]:remove()
1245-
					if HIT.Parent:FindFirstChildOfClass("Humanoid").Health > 0 then
1245+
                end
1246-
						CreateSound(160432334, HIT, 10, 1, false)
1246+
            end
1247-
						ApplyDamage(HIT.Parent:FindFirstChildOfClass("Humanoid"),35)
1247+
        end
1248
        local NEWHUM = IT("Humanoid")
1249
        NEWHUM.Name = "Corpse"
1250
        NEWHUM.Health = 0
1251-
			TIMER = 55
1251+
        NEWHUM.MaxHealth = 0
1252-
			WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(0.3,0.3,0.3), Transparency = 0, Transparency2 = 1, CFrame = CF(GUNPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = 330704232, SoundPitch = 1, SoundVolume = 4})
1252+
        NEWHUM.PlatformStand = true
1253-
			WACKYEFFECT({Time = 6, EffectType = "Box", Size = VT(0,0,DISTANCE), Size2 = VT(0.1,0.1,DISTANCE), Transparency = 0, Transparency2 = 1, CFrame = CF(GUNPOS,POS)*CF(0,0,-DISTANCE/2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1253+
        NEWHUM.Parent = Character2
1254-
			for i=0, 0.3, 0.1 / Animation_Speed do
1254+
        NEWHUM.DisplayDistanceType = "None"
1255
   
1256-
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
1256+
        local ch = Character2:GetChildren()
1257-
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
1257+
        local i
1258-
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1258+
        for i = 1,#ch do
1259-
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(100), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1259+
            if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
1260-
				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)
1260+
                ch[i]:remove()
1261-
				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)
1261+
            end
1262
        end
1263-
			if AMMO <= 0 then
1263+
   
1264-
				FIRING = false
1264+
        local Torso2 = Character2.Torso
1265
        local movevector = Vector3.new()
1266-
			SHOOTING = false
1266+
   
1267
        if Torso2 then
1268
            movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
1269-
	repeat
1269+
            local Head = Character2:FindFirstChild("Head")
1270
            if Head then
1271-
		if SHOOTING == false then
1271+
                local Neck = Instance.new("Weld")
1272-
			TIMER = TIMER - 1
1272+
                Neck.Name = "Neck"
1273-
			if TIMER <= 0 then
1273+
                Neck.Part0 = Torso2
1274-
				FIRING = false
1274+
                Neck.Part1 = Head
1275
                Neck.C0 = CFrame.new(0, 1.5, 0)
1276-
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
1276+
                Neck.C1 = CFrame.new()
1277-
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
1277+
                Neck.Parent = Torso2
1278-
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1278+
   
1279-
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1279+
            end
1280-
			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)
1280+
            local Limb = Character2:FindFirstChild("Right Arm")
1281-
			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)
1281+
            if Limb and KeepArms == true then
1282
   
1283-
	until FIRING == false and SHOOTING == false
1283+
                Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
1284-
	MOUSE:Disconnect()
1284+
                local Joint = Instance.new("Glue")
1285-
	for i=0, 0.3, 0.1 / Animation_Speed do
1285+
                Joint.Name = "RightShoulder"
1286
                Joint.Part0 = Torso2
1287
                Joint.Part1 = Limb
1288-
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed)
1288+
                Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1289-
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1289+
                Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1290-
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1290+
                Joint.Parent = Torso2
1291
   
1292
                local B = Instance.new("Part")
1293
                B.TopSurface = 0
1294-
	GUNWELD.Part0 = Torso
1294+
                B.BottomSurface = 0
1295-
	GUNWELD.C0 = CF(-1.1,-1.1,0) * ANGLES(RAD(0), RAD(90), RAD(-90))
1295+
                B.formFactor = "Symmetric"
1296
                B.Size = Vector3.new(1, 1, 1)
1297
                B.Transparency = 1
1298
                B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1299
                B.Parent = Character2
1300
                local W = Instance.new("Weld")
1301
                W.Part0 = Limb
1302
                W.Part1 = B
1303
                W.C0 = CFrame.new(0, -0.5, 0)
1304-
	Chatter("I'll break you!",0)
1304+
                W.Parent = Limb
1305
   
1306
            end
1307
            local Limb = Character2:FindFirstChild("Left Arm")
1308
            if Limb and KeepArms == true then
1309
   
1310
                Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
1311
                local Joint = Instance.new("Glue")
1312
                Joint.Name = "LeftShoulder"
1313
                Joint.Part0 = Torso2
1314
                Joint.Part1 = Limb
1315
                Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1316-
	for i=0, 0.5, 0.1 / Animation_Speed do
1316+
                Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1317
                Joint.Parent = Torso2
1318
   
1319
                local B = Instance.new("Part")
1320-
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.1) * ANGLES(RAD(-20), RAD(-40), RAD(25)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1320+
                B.TopSurface = 0
1321
                B.BottomSurface = 0
1322
                B.formFactor = "Symmetric"
1323
                B.Size = Vector3.new(1, 1, 1)
1324
                B.Transparency = 1
1325-
	Speed = 30
1325+
                B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1326-
	CreateSound(147722227, BATON, 6, 1, false)
1326+
                B.Parent = Character2
1327
                local W = Instance.new("Weld")
1328
                W.Part0 = Limb
1329
                W.Part1 = B
1330
                W.C0 = CFrame.new(0, -0.5, 0)
1331
                W.Parent = Limb
1332
   
1333
            end
1334
            local Limb = Character2:FindFirstChild("Right Leg")
1335
            if Limb then
1336
   
1337
                Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
1338
                local Joint = Instance.new("Glue")
1339
                Joint.Name = "RightHip"
1340
                Joint.Part0 = Torso2
1341
                Joint.Part1 = Limb
1342
                Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1343
                Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1344-
					CreateSound(260430079, BATON, 6, 0.8, false)
1344+
                Joint.Parent = Torso2
1345
   
1346-
					TORSO.Anchored = true
1346+
                local B = Instance.new("Part")
1347-
					local POS = TORSO.CFrame
1347+
                B.TopSurface = 0
1348
                B.BottomSurface = 0
1349-
						for i = 1, 15 do
1349+
                B.formFactor = "Symmetric"
1350-
							Swait()
1350+
                B.Size = Vector3.new(1, 1, 1)
1351-
							TORSO.CFrame = POS*CF(MRANDOM(-2,2)/10,MRANDOM(-2,2)/10,MRANDOM(-2,2)/10)
1351+
                B.Transparency = 1
1352
                B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1353-
						local HEAD = HUM.Parent:FindFirstChild("Head")
1353+
                B.Parent = Character2
1354-
						HUM.Parent:BreakJoints()
1354+
                local W = Instance.new("Weld")
1355-
						if HEAD then
1355+
                W.Part0 = Limb
1356-
							CreateSound(363808674, HEAD, 10, 0.8, false)
1356+
                W.Part1 = B
1357-
							local bv = Instance.new("BodyVelocity",TORSO) 
1357+
                W.C0 = CFrame.new(0, -0.5, 0)
1358-
							bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1358+
                W.Parent = Limb
1359-
							bv.velocity = CF(Torso.Position-VT(0,5,0),HEAD.Position).lookVector*70
1359+
   
1360-
							Debris:AddItem(bv,0.05)
1360+
            end
1361-
							local TEXTS = {"Criminals should leave this world!","And stay down!"}
1361+
            local Limb = Character2:FindFirstChild("Left Leg")
1362-
							Chatter(TEXTS[MRANDOM(1,#TEXTS)],0)
1362+
            if Limb then
1363
   
1364-
						TORSO.Anchored = false
1364+
                Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
1365
                local Joint = Instance.new("Glue")
1366
                Joint.Name = "LeftHip"
1367
                Joint.Part0 = Torso2
1368
                Joint.Part1 = Limb
1369
                Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1370-
	for i=0, 0.45, 0.1 / Animation_Speed do
1370+
                Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1371
                Joint.Parent = Torso2
1372-
		RootPart.CFrame = RootPart.CFrame * CF(0,0,-0.15)
1372+
   
1373
                local B = Instance.new("Part")
1374-
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(15)), 1 / Animation_Speed)
1374+
                B.TopSurface = 0
1375-
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-15)), 1 / Animation_Speed)
1375+
                B.BottomSurface = 0
1376-
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.6) * ANGLES(RAD(140), RAD(-25), RAD(-41)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1376+
                B.formFactor = "Symmetric"
1377
                B.Size = Vector3.new(1, 1, 1)
1378-
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(15), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1378+
                B.Transparency = 1
1379
                B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1380
                B.Parent = Character2
1381
                local W = Instance.new("Weld")
1382
                W.Part0 = Limb
1383
                W.Part1 = B
1384
                W.C0 = CFrame.new(0, -0.5, 0)
1385
                W.Parent = Limb
1386
   
1387
            end
1388
            --[
1389
            local Bar = Instance.new("Part")
1390
            Bar.TopSurface = 0
1391
            Bar.BottomSurface = 0
1392
            Bar.formFactor = "Symmetric"
1393
            Bar.Size = Vector3.new(1, 1, 1)
1394
            Bar.Transparency = 1
1395
            Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
1396
            Bar.Parent = Character2
1397
            local Weld = Instance.new("Weld")
1398
            Weld.Part0 = Torso2
1399
            Weld.Part1 = Bar
1400
            Weld.C0 = CFrame.new(0, 0.5, 0)
1401
            Weld.Parent = Torso2
1402
            --]]
1403
        end
1404
        Character2.Parent = workspace
1405
        Debris:AddItem(Character2,5)
1406
   
1407
        return Character2,Torso2
1408
    end))
1409
end
1410
1411
--//=================================\\
1412
--||	     WEAPON CREATION
1413
--\\=================================//
1414-
				Chatter("You are to remain silent and DEAD!",0)
1414+
1415-
				for i=0, 0.4, 0.1 / Animation_Speed do
1415+
local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Wistband part", VT(1.015,0.15,1.015),false)
1416
local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1417-
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1417+
local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", "Wistband part", VT(1.035,0.1,1.035),false)
1418-
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1418+
local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, -0.35, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1419
local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", "Wistband part", VT(1.035,0.1,1.035),false)
1420-
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1420+
local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, -0.45, 0) * ANGLES(RAD(0), RAD(180), RAD(180)) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
1421-
					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)
1421+
MakeForm(part,"Wedge")
1422
local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", "Wistband part", VT(1.025,0.05,1.025),false)
1423
local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, -0.22, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1424
local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", "Wistband part", VT(1.025,0.1,1.025),false)
1425-
				ROOT.CFrame = ROOT.CFrame * CF(0,-2*ROOT.Size.Z,0) * ANGLES(RAD(-90), RAD(0), RAD(0))
1425+
local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, -0.15, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
1426-
				CreateSound(260430117, ROOT, 6, 1.3, false)
1426+
MakeForm(part,"Wedge")
1427
local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", "Wistband part", VT(0.8,0.05,0.8),false)
1428
local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.5, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
1429-
					ROOT.Anchored = true
1429+
MakeForm(part,"Cyl")
1430
local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Wistband part", VT(0.81,0.05,0.81),false)
1431-
				RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.6)
1431+
local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.49, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
1432-
				for i=0, 0.2, 0.1 / Animation_Speed do
1432+
MakeForm(part,"Cyl")
1433
local part = CreatePart(3, Weapon, "Marble", 0, 0, "Really red", "Wistband part", VT(0.5,0.05,0.5),false)
1434-
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed)
1434+
local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.51, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
1435-
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed)
1435+
MakeForm(part,"Cyl")
1436-
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1436+
local blade = CreatePart(3, Weapon, "Marble", 0, 0, "Really black", "Wistband part", VT(0.5,0.05,0.5),false)
1437-
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1437+
local armweld = CreateWeldOrSnapOrMotor("Weld", blade, RightArm, blade, CF(0.52, -0.306, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
1438-
					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)
1438+
CreateMesh("SpecialMesh", blade, "FileMesh", "340607397", "", VT(0.35,0.35,0.35), VT(-0.015, 0, -0.05))
1439
local part = CreatePart(3, Weapon, "Marble", 0, 0, "Pearl", "Wistband part", VT(0.2,0.05,0.2),false)
1440
local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.52, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
1441-
				local OOFS = {959679286}
1441+
MakeForm(part,"Ball")
1442-
				CreateSound(OOFS[MRANDOM(1,#OOFS)], ROOT, 6, 1, false)
1442+
local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", "Wistband part", VT(0.15,0.06,0.15),false)
1443-
				for i=0, 0.2, 0.1 / Animation_Speed do
1443+
local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.52, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
1444
MakeForm(part,"Ball")
1445-
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.65) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed)
1445+
local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Wistband part", VT(0.1,0.07,0.1),false)
1446-
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 1 / Animation_Speed)
1446+
local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.52, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
1447-
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(80), RAD(0), RAD(-10)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1447+
MakeForm(part,"Ball")
1448-
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1448+
local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false)
1449-
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.45) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1449+
PRT.Color = C3(0,0,0)
1450-
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
1450+
local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0))
1451
CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0))
1452-
				local AMMO = 6
1452+
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Deep orange", "Scarf", VT(1,1,1),false)
1453-
				local FIRING = true
1453+
PRT.Color = C3(0/255,0/255,255/255)
1454-
				local SHOOTING = false
1454+
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.05) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0))
1455-
				local TIMER = 70
1455+
CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0))
1456-
				CreateSound(147722227, GUN, 6, 1.3, false)
1456+
for i = 1, 16 do
1457-
				GUNWELD.Part0 = LeftArm
1457+
    local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/16.2, "Dark stone grey", "FaceGradient", VT(1.01,0.65,1.01),false)
1458-
				GUNWELD.C0 = CF(0,-1.5,0) * ANGLES(RAD(0), RAD(90), RAD(-90))
1458+
    FACE.Color = C3(0,0,0)
1459-
				for i=0, 0.2, 0.1 / Animation_Speed do
1459+
    Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
1460
    CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.45-(i-1)/25,0), CF(0, 0, 0))
1461-
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.65) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed)
1461+
1462-
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 1 / Animation_Speed)
1462+
local EYE = CreatePart(3, BALL, "Neon", 0, 0, "Navy blue", "Eyeball", VT(0.1,0.25,0.1),false)
1463-
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(80), RAD(0), RAD(-10)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1463+
1464-
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.4, 0.55, 0.4) * ANGLES(RAD(100), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1464+
EYE.Color = C3(0/255,0/255,255/255)
1465-
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.45) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1465+
CreateWeldOrSnapOrMotor("Weld", BALL, Head, EYE, CF(0.15,0.26,-0.55), CF(0, 0, 0))
1466-
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
1466+
local EYE2 = CreatePart(3, BALL, "Neon", 0, 0, "Navy blue", "Eyeball", VT(0.1,0.25,0.1),false)
1467
MakeForm(EYE2,"Ball")
1468-
				for i = 1, 6 do
1468+
EYE2.Color = C3(0/255,0/255,255/255)
1469-
					local GUNPOS = GUN.CFrame*CF(1.2, 0.5, 0).p
1469+
1470-
					local DISTANCE = (FOE.Head.Position - GUNPOS).Magnitude
1470+
CreateWeldOrSnapOrMotor("Weld", BALL, Head, EYE2, CF(-0.15,0.26,-0.55), CF(0, 0, 0))
1471-
					WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(0.3,0.3,0.3), Transparency = 0, Transparency2 = 1, CFrame = CF(GUNPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = 330704232, SoundPitch = 1, SoundVolume = 4})
1471+
1472-
					WACKYEFFECT({Time = 6, EffectType = "Box", Size = VT(0,0,DISTANCE), Size2 = VT(0.1,0.1,DISTANCE), Transparency = 0, Transparency2 = 1, CFrame = CF(GUNPOS,FOE.Head.Position)*CF(0,0,-DISTANCE/2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1472+
local LASTPART = Head
1473-
					HUM.Health = HUM.Health/1.5
1473+
for i = 1, 20 do
1474-
					for i=0, 0.2, 0.1 / Animation_Speed do
1474+
    local MATH = (1-(i/25))
1475-
						Swait()
1475+
    if LASTPART == Head then
1476-
						RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.65) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed)
1476+
        local Horn = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
1477-
						Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 1 / Animation_Speed)
1477+
        CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0))
1478-
						RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(80), RAD(0), RAD(-10)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1478+
        LASTPART = Horn
1479-
						LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.4, 0.55, 0.6) * ANGLES(RAD(130), RAD(0), RAD(20)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1479+
        Horn.Color = C3((i*3-3)/0,0,0)
1480-
						RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.45) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1480+
    else
1481-
						LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
1481+
        local Horn = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
1482
        CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0))
1483-
					for i=0, 0.2, 0.1 / Animation_Speed do
1483+
        LASTPART = Horn
1484-
						Swait()
1484+
        Horn.Color = C3((i*3-3)/0,0,0)
1485-
						RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.65) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed)
1485+
1486-
						Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 1 / Animation_Speed)
1486+
1487-
						RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(80), RAD(0), RAD(-10)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1487+
local LASTPART = Head
1488-
						LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.4, 0.55, 0.6) * ANGLES(RAD(100), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1488+
for i = 1, 20 do
1489-
						RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.45) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1489+
    local MATH = (1-(i/25))
1490-
						LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
1490+
    if LASTPART == Head then
1491
        local Horn = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
1492
        CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0))
1493-
				FOE:BreakJoints()
1493+
        LASTPART = Horn
1494
        Horn.Color = C3((i*3-3)/0,0,0)
1495-
				for i=0, 0.3, 0.1 / Animation_Speed do
1495+
    else
1496
        local Horn = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
1497-
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1497+
        CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0))
1498-
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed)
1498+
        LASTPART = Horn
1499-
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1499+
        Horn.Color = C3((i*3-3)/0,0,0)
1500-
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1500+
1501-
					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)
1501+
1502
 
1503
local Hair = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hair", VT(1,1,1),false)
1504-
				GUNWELD.Part0 = Torso
1504+
local HairWeld1 = CreateWeldOrSnapOrMotor("Weld", Hair, Head, Hair, CF(0,0.1,-0.25) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1505-
				GUNWELD.C0 = CF(-1.1,-1.1,0) * ANGLES(RAD(0), RAD(90), RAD(-90))
1505+
Hair.Color = C3(0/255,0/255,255/255)
1506
CreateMesh("SpecialMesh", Hair, "FileMesh", "873651376", "", VT(0.025, 0.025, 0.02), VT(0,0,0))
1507
local Hair2 = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hair", VT(1,1,1),false)
1508
local Hair2Weld2 = CreateWeldOrSnapOrMotor("Weld", Hair2, Head, Hair2, CF(0,0.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1509
Hair2.Color = C3(0/255,0/255,255/255)
1510
CreateMesh("SpecialMesh", Hair2, "FileMesh", "873651376", "", VT(0.03, 0.015, 0.01), VT(0,0,-0.1))
1511
local top = Instance.new("Shirt")
1512
top.ShirtTemplate = "rbxassetid://230449737"
1513
top.Parent = Character
1514
top.Name = "Cloth"
1515
local bottom = Instance.new("Pants")
1516
bottom.PantsTemplate = "rbxassetid://338750779"
1517
bottom.Parent = Character
1518-
	if ATTACK == false then
1518+
1519
local BATON = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Baton", VT(1, 0.8, 3),false)
1520-
			Warning()
1520+
CreateMesh("SpecialMesh", BATON, "FileMesh", "11820238", "", VT(1,1,1), VT(0,0,0))
1521-
		elseif MODE == "BadCop" then
1521+
1522-
			Silence()
1522+
1523
local B = IT("Attachment",BATON)
1524
B.Position = VT(0,0,-0.4)
1525
A.Position = VT(0,0,1)
1526
local Trail = IT("Trail",BATON)
1527
Trail.Attachment0 = A
1528
Trail.Attachment1 = B
1529
Trail.Lifetime = 0.1
1530
Trail.Color = ColorSequence.new(C3(0,0,0))
1531
Trail.Transparency = NumberSequence.new(0, 1)
1532
Trail.Enabled = false
1533
Trail.Texture = "http://www.roblox.com/asset/?id=1831500579"
1534
local GUN = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gun", VT(1, 0.8, 3),false)
1535
CreateMesh("SpecialMesh", GUN, "FileMesh", "623102664", "623102879", VT(0.01, 0.01, 0.01), VT(0,0,0))
1536-
		elseif MODE == "BadCop" then
1536+
1537
1538
local GUN2 = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gun2", VT(1, 0.8, 3),false)
1539
CreateMesh("SpecialMesh", GUN2, "FileMesh", "94219391", "94219470", VT(0.01, 0.01, 0.01), VT(0,0,0))
1540
local GUN2WELD = CreateWeldOrSnapOrMotor("Weld", GUN2, Torso, GUN2, CF(-1.1,-1.1,0) * ANGLES(RAD(0), RAD(90), RAD(-90)), CF(0, 0, 0))
1541
 
1542
1543
for _, c in pairs(Weapon:GetChildren()) do
1544-
		elseif MODE == "BadCop" then
1544+
1545
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1546
	end
1547
end
1548
1549-
	if Key == "t" and ATTACK == false then
1549+
1550
1551-
			Chatter("MY GANG RULE THE WORLD",0.01)
1551+
1552-
		elseif MODE == "BadCop" then
1552+
1553-
			Chatter("YOU BE DEAD NOW",0.01)
1553+
1554
1555
Humanoid.Died:connect(function()
1556
    Humanoid.Parent = nil
1557
    Humanoid.MaxHealth = "inf"
1558
    Humanoid.Health = "inf"
1559
    refit()
1560
    Humanoid.Parent = Character
1561
    CreateSound("907330011", Head, 10, 0.8)
1562
end)
1563
1564
1565
local ATTACKSGOODCOP = {"Mouse - Punch","Q - Baton Stun","E - Cuffs"}
1566
local ATTACKSBADCOP = {"Mouse - Ban laser","Q - Baton Breaker","E - The Right to remain silent"}
1567
local GOODUI = {}
1568
local BADUI = {}
1569
1570
for i = 1, #ATTACKSGOODCOP do
1571
	local SKILLFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.73, 0, 0.7-(0.04*i), 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill Frame")
1572
	local SKILLTEXT = CreateLabel(SKILLFRAME, "["..ATTACKSGOODCOP[i].."]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Skill text")
1573
	SKILLTEXT.TextXAlignment = "Right"
1574
	table.insert(GOODUI,SKILLTEXT)
1575
end
1576
1577
for i = 1, #ATTACKSBADCOP do
1578
	local SKILLFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.01, 0, 0.7-(0.04*i), 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill Frame")
1579
	local SKILLTEXT = CreateLabel(SKILLFRAME, "["..ATTACKSBADCOP[i].."]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Skill text")
1580
	SKILLTEXT.TextXAlignment = "Left"
1581
	table.insert(BADUI,SKILLTEXT)
1582
end
1583
1584
local SKILLFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill Frame")
1585
local SKILLTEXT = CreateLabel(SKILLFRAME, "[F,G - Switch]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Skill text")
1586
1587
--//=================================\\
1588
--||			DAMAGING
1589
--\\=================================//
1590
1591
function killnearest(position, range, maxstrength)
1592
    for i, v in ipairs(workspace:GetChildren()) do
1593
        do
1594
            local body = v:GetChildren()
1595
            for part = 1, #body do
1596
                if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude then
1597
                    if v.ClassName == "Model" then
1598
                        v:BreakJoints()
1599
                    end
1600
                    local bv = Instance.new("BodyVelocity")
1601
                    bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
1602
                    bv.velocity = CF(position, body[part].Position).lookVector * maxstrength
1603
                    bv.Parent = body[part]
1604
                    Debris:AddItem(bv, 0.2)
1605
                    body[part].Parent = Effects
1606
                    body[part].Material = "Neon"
1607
                    body[part].Color = C3(0, 0, 0)
1608
                    body[part].CanCollide = true
1609
                    coroutine.resume(coroutine.create(function()
1610
                        wait(5)
1611
                        if body[part].Parent == Effects then
1612
                            body[part]:remove()
1613
                        end
1614
                    end))
1615
                end
1616
            end
1617
            if v.ClassName == "Part" and v.Anchored == false and range > (v.Position - position).Magnitude then
1618
                v.Velocity = CFrame.new(position, v.Position).lookVector * 5 * maxstrength
1619
            end
1620
        end
1621
    end
1622
end
1623
function CreateRing(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW)
1624
    local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
1625
    wave.Color = COLOR
1626
    local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0, 0, 0))
1627
    wave.CFrame = CFRAME
1628
    coroutine.resume(coroutine.create(function(PART)
1629
        for i = 1, WAIT do
1630
            Swait()
1631
            mesh.Scale = mesh.Scale + GROW
1632
            if DOESROT == true then
1633
                wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
1634
            end
1635
            wave.Transparency = wave.Transparency + 0.5 / WAIT
1636
            if wave.Transparency > 0.99 then
1637
                wave:remove()
1638
            end
1639
        end
1640
    end))
1641
end
1642
function ApplyAoE3(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
1643
    local CHILDREN = workspace:GetDescendants()
1644
    for index, CHILD in pairs(CHILDREN) do
1645
        if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
1646
            local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1647
            if HUM then
1648
                local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1649
                if TORSO then
1650
                    if (TORSO.Position - POSITION).Magnitude <= RANGE then
1651
                        if INSTAKILL == true then
1652
                            CHILD:BreakJoints()
1653
                        else
1654
                            local DMG = MRANDOM(MINDMG,MAXDMG)
1655
                            ApplyDamage(HUM,DMG,TORSO)
1656
                        end
1657
                        if FLING > 0 then
1658
                            for _, c in pairs(CHILD:GetChildren()) do
1659
                                if c:IsA("BasePart") then
1660
                                    local bv = Instance.new("BodyVelocity")
1661
                                    bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1662
                                    bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
1663-
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0.05 * COS(SINE / 12), 0, 0 + 0.05 * SIN(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1663+
                                    bv.Parent = c
1664-
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed)
1664+
                                    Debris:AddItem(bv,0.05)
1665-
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0.3) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1665+
                                end
1666-
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(-40), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1666+
                            end
1667-
				RightHip.C0 = Clerp(RightHip.C0, CF(1 + 0.05 * COS(SINE / 12), -1 - 0.05 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1667+
                        end
1668-
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 + 0.05 * COS(SINE / 12), -1 - 0.05 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1668+
                    end
1669-
			elseif MODE == "BadCop" then
1669+
                end
1670
            end
1671
        end
1672
    end
1673
end
1674
function refit()
1675
    RootJoint.Parent = RootPart
1676
    Neck.Parent = Torso
1677
    RightShoulder.Parent = Torso
1678
    LeftShoulder.Parent = Torso
1679
    RightHip.Parent = Torso
1680
    LeftHip.Parent = Torso
1681
    RootPart.Parent = Character
1682
    LeftArm.Parent = Character
1683
    RightArm.Parent = Character
1684
    RightLeg.Parent = Character
1685
    LeftLeg.Parent = Character
1686-
			elseif MODE == "BadCop" then
1686+
    Torso.Parent = Character
1687
    Head.Parent = Character
1688
end
1689
function ApplyAoE2(POSITION,RANGE,ISBANISH)
1690
    local CHILDREN = workspace:GetDescendants()
1691
    for index, CHILD in pairs(CHILDREN) do
1692
        if CHILD.ClassName == "Model" and CHILD ~= Character then
1693
            local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1694
            if HUM then
1695
                local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1696
                if TORSO then
1697
                    if (TORSO.Position - POSITION).Magnitude <= RANGE then
1698
                        if ISBANISH == true then
1699
                            Banish(CHILD)
1700
                        else
1701
                            if ISBANISH == "Gravity" then
1702
                                HUM.PlatformStand = true
1703
                                if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
1704
                                    local grav = Instance.new("BodyPosition",TORSO)
1705
                                    grav.D = 15
1706
                                    grav.P = 20000
1707
                                    grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1708
                                    grav.position = TORSO.Position
1709
                                    grav.Name = "V3BanishForce"..Player.Name
1710
                                else
1711
                                    TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
1712-
	sick.SoundId = "rbxassetid://517661079"
1712+
                                    TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
1713
                                end
1714
                            else
1715
                                HUM.PlatformStand = false
1716
                            end
1717
                        end
1718
                    elseif ISBANISH == "Gravity" then
1719
                        if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
1720
                            TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
1721
                            HUM.PlatformStand = false
1722
                        end
1723
                    end
1724
                end
1725
            end
1726
        end
1727
    end
1728
end
1729
 
1730
function ApplyAoE(POSITION,RANGE,FLING,BURN)
1731
    local CHILDREN = workspace:GetDescendants()
1732
    for index, CHILD in pairs(CHILDREN) do
1733
        if CHILD.ClassName == "Model" and CHILD ~= Character then
1734
            local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1735
            if HUM then
1736
                local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1737
                if TORSO then
1738
                    if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
1739
                        CHILD:BreakJoints()
1740
                        if FLING ~= 0 then
1741
                            for _, c in pairs(CHILD:GetChildren()) do
1742
                                if c:IsA("BasePart") and c.Transparency == 0 then
1743
                                    if BURN == true then
1744
                                        Fire(c)
1745
                                    end
1746
                                    local bv = Instance.new("BodyVelocity")
1747
                                    bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1748
                                    bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
1749
                                    bv.Parent = c
1750
                                    Debris:AddItem(bv,0.05)
1751
                                end
1752
                            end
1753
                        end
1754
                    end
1755
                end
1756
            end
1757
        end
1758
    end
1759
end
1760
function ApplyDamage(Humanoid,Damage)
1761
	Damage = Damage * DAMAGEMULTIPLIER
1762
	local DEAD = false
1763
	if Humanoid.Health < 2000 then
1764
		if Humanoid.Health - Damage > 0 then
1765
			Humanoid.Health = Humanoid.Health - Damage
1766
		else
1767
			DEAD = true
1768
			Humanoid.Parent:BreakJoints()
1769
		end
1770
	else
1771
		DEAD = true
1772
		Humanoid.Parent:BreakJoints()
1773
	end
1774
	if DEAD == true then
1775
		if MODE == "GoodCop" then
1776
			local TEXTS = {"Im just make my work","Criminals should be in jail","Brrrrr some much criminals..."}
1777
			Chatter(TEXTS[MRANDOM(1,#TEXTS)],0)
1778
		elseif MODE == "TomYum" then	
1779
            local TEXTS = {"Hello!","Lets dance!","Be are good guy!"}
1780
			Chatter(TEXTS[MRANDOM(1,#TEXTS)],0)
1781
        elseif MODE == "BadCop" then	
1782
            local TEXTS = {"Im do it for my girl!","Want problems?","Whoops =)"}
1783
			Chatter(TEXTS[MRANDOM(1,#TEXTS)],0)
1784
		end
1785
	end
1786
end
1787
1788
function ManualDamage(Humanoid,Damage,TorsoPart)
1789
    local defence = Instance.new("BoolValue",Humanoid.Parent)
1790
    defence.Name = ("HitBy"..Player.Name)
1791
    game:GetService("Debris"):AddItem(defence, 0.001)
1792
    Damage = Damage * DAMAGEMULTIPLIER
1793
    if Humanoid.Health ~= 0 then
1794
        local CritChance = MRANDOM(1,100)
1795
        if Damage > Humanoid.Health then
1796
            Damage = math.ceil(Humanoid.Health)
1797
            if Damage == 0 then
1798
                Damage = 0.1
1799
            end
1800
        end
1801
        Humanoid.Health = Humanoid.Health - Damage
1802
    end
1803
end
1804
 
1805
function ManualAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
1806
    local CHILDREN = workspace:GetDescendants()
1807
    for index, CHILD in pairs(CHILDREN) do
1808
        if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
1809
            local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1810
            if HUM then
1811
                local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1812
                if TORSO then
1813
                    if (TORSO.Position - POSITION).Magnitude <= RANGE then
1814
                        if INSTAKILL == true then
1815
                            CHILD:BreakJoints()
1816
                        else
1817
                            local DMG = MRANDOM(MINDMG,MAXDMG)
1818
                            ManualDamage(HUM,DMG,TORSO)
1819
                        end
1820
                        if FLING > 0 then
1821
                            for _, c in pairs(CHILD:GetChildren()) do
1822
                                if c:IsA("BasePart") then
1823
                                    local bv = Instance.new("BodyVelocity")
1824
                                    bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1825
                                    bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
1826
                                    bv.Parent = c
1827
                                    Debris:AddItem(bv,0.05)
1828
                                end
1829
                            end
1830
                        end
1831
                    end
1832
                end
1833
            end
1834
        end
1835
    end
1836
end
1837
 
1838
function MeleeDMG(Humanoid,Damage)
1839
    Damage = Damage * DAMAGEMULTIPLIER
1840
    if Humanoid.Health < 2000 then
1841
        if Humanoid.Health - Damage > 0 then
1842
            Humanoid.Health = Humanoid.Health - Damage
1843
        else
1844
            Humanoid.Parent:BreakJoints()
1845
        end
1846
    else
1847
        Humanoid.Parent:BreakJoints()
1848
    end
1849
end
1850
1851
--//=================================\\
1852
--||	    TRANSFORMATIONS
1853
--\\=================================//
1854
1855
function Switch2()
1856
	ATTACK = true
1857
	Rooted = true
1858
	if MODE == "GoodCop" then
1859
		for i=0, 0.3, 0.1 / Animation_Speed do
1860
			Swait()
1861
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1862
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1863
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1864
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1865
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1866
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1867
		end
1868
		for i=0, 1, 0.1 / Animation_Speed do
1869
			Swait()
1870
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1871
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
1872
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1873
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1874
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1875
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1876
		end
1877
		CreateSound(363808674, Torso, 6, 1, false)
1878
		for i=0, 0.6, 0.1 / Animation_Speed do
1879
			Swait()
1880
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1881
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed)
1882
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1883
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1884
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1885
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1886
		end
1887
		CreateSound(363808674, Torso, 6, 1, false)
1888
		for i=0, 0.6, 0.1 / Animation_Speed do
1889
			Swait()
1890
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1891
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed)
1892
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1893
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1894
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1895
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1896
		end
1897
		MODE = "TomYum"
1898
	elseif MODE == "TomYum" then
1899
		CreateSound(147722227, Torso, 4, 1.3, false)
1900
		for i=0, 0.3, 0.1 / Animation_Speed do
1901
			Swait()
1902
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1903
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
1904
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1905
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1906
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1907
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1908
		end
1909
		MODE = "GoodCop"
1910
	end
1911
	ATTACK = false
1912
	Rooted = false
1913
end
1914
1915
1916
function Switch()
1917
	ATTACK = true
1918
	Rooted = true
1919
	if MODE == "GoodCop" then
1920
		for i=0, 0.3, 0.1 / Animation_Speed do
1921
			Swait()
1922
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1923
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1924
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1925
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1926
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1927
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1928
		end
1929
		for i=0, 1, 0.1 / Animation_Speed do
1930
			Swait()
1931
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1932
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
1933
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1934
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1935
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1936
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1937
		end
1938
		CreateSound(363808674, Torso, 6, 1, false)
1939
		for i=0, 0.6, 0.1 / Animation_Speed do
1940
			Swait()
1941
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1942
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed)
1943
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1944
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1945
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1946
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1947
		end
1948
		CreateSound(363808674, Torso, 6, 1, false)
1949
		for i=0, 0.6, 0.1 / Animation_Speed do
1950
			Swait()
1951
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1952
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed)
1953
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1954
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1955
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1956
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1957
		end
1958
		MODE = "BadCop"
1959
	elseif MODE == "BadCop" then
1960
		CreateSound(147722227, Torso, 4, 1.3, false)
1961
		for i=0, 0.3, 0.1 / Animation_Speed do
1962
			Swait()
1963
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1964
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
1965
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1966
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1967
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1968
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1969
		end
1970
		MODE = "GoodCop"
1971
	end
1972
	ATTACK = false
1973
	Rooted = false
1974
end
1975
1976
--//=================================\\
1977
--||	   ATTACK GOOD COP
1978
--\\=================================//
1979
1980
function Punch()
1981
    ATTACK = true
1982
    Rooted = false
1983
    for i=0, 0.2, 0.1 / Animation_Speed do
1984
        Swait()
1985
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1986
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1987
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0+ 0.15 * COS(SINE / 12), -0.2) * ANGLES(RAD(150), RAD(35), RAD(-5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1988
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0 + 0.15 * COS(SINE / 12), -0.2) * ANGLES(RAD(130), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1989
        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)), 1 / Animation_Speed)
1990
        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)), 1 / Animation_Speed)
1991
    end
1992
    VALUE1 = true
1993
    if COMBO == 1 then
1994
        COMBO = 2
1995
        CreateSound("199150686", Torso, 1, MRANDOM(11,13)/10)
1996
        ApplyAoE3(LeftArm.Position,3,5,30,15,false)
1997
        for i=0, 0.3, 0.1 / Animation_Speed do
1998
            Swait()
1999
            RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.1)
2000
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 2 / Animation_Speed)
2001
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(65)), 2 / Animation_Speed)
2002
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
2003
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(25)) * LEFTSHOULDERC0, 2 / Animation_Speed)
2004
            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)), 2 / Animation_Speed)
2005
            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)), 2 / Animation_Speed)
2006
        end
2007
    elseif COMBO == 2 then
2008
        COMBO = 1
2009
        CreateSound("199150686", Torso, 1, MRANDOM(11,13)/10)
2010
        ApplyAoE3(RightArm.Position,3,5,30,15,false)
2011
        for i=0, 0.3, 0.1 / Animation_Speed do
2012
            Swait()
2013
            RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.1)
2014
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(85)), 2 / Animation_Speed)
2015
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-80)), 2 / Animation_Speed)
2016
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
2017
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
2018
            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)), 2 / Animation_Speed)
2019
            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)), 2 / Animation_Speed)
2020
        end
2021
    end
2022
    VALUE1 = false
2023
    ATTACK = false
2024
    Rooted = false
2025
end
2026
function BatonStun()
2027
	ATTACK = true
2028
	Rooted = false
2029
	Speed = 4
2030
	for i=0, 0.2, 0.1 / Animation_Speed do
2031
		Swait()
2032
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2033
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-15)), 1 / Animation_Speed)
2034
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2035
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2036
		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)
2037
		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)
2038
	end
2039
	BATONWELD.Part0 = RightArm
2040
	BATONWELD.C0 = CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)) * CF(0,0,1)
2041
	for i=0, 0.2, 0.1 / Animation_Speed do
2042
		Swait()
2043
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), 1 / Animation_Speed)
2044
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(25)), 1 / Animation_Speed)
2045
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.1) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2046
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2047
		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)
2048
		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)
2049
	end
2050
	Speed = 25
2051
	CreateSound(147722227, BATON, 6, 1.2, false)
2052
	Trail.Enabled = true
2053
	BATON.CanCollide = true
2054
	local SPEAKING = false
2055
	local HITS = {}
2056
	local TOUCH = BATON.Touched:Connect(function(hit)
2057
		if hit.Parent:FindFirstChildOfClass("Humanoid") then
2058
			local HUM = hit.Parent:FindFirstChildOfClass("Humanoid")
2059
			local TORSO = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
2060
			if TORSO and HUM.Health > 0 then
2061
				local PASS = true
2062
				for i = 1, #HITS do
2063
					if HITS[i] == hit.Parent then
2064
						PASS = false
2065
					end
2066
				end
2067
				table.insert(HITS,hit.Parent)
2068
				if PASS == true then
2069
					HUM.PlatformStand = true
2070
					ApplyDamage(HUM,20)
2071
					local bv = Instance.new("BodyVelocity",TORSO) 
2072
					bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
2073
					bv.velocity = CF(Torso.Position-VT(0,5,0),TORSO.Position).lookVector*70
2074
					Debris:AddItem(bv,0.05)
2075
					CreateSound(260430079, BATON, 6, 1, false)
2076
					WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position,BATON.Position)*CF(0,0,-0.5), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Glass = C3(1,1,1), SoundID = nil, SoundPitch = 1, SoundVolume = 4})
2077
					coroutine.resume(coroutine.create(function()
2078
						wait(1)
2079
						if HUM.WalkSpeed > 0 then
2080
							HUM.PlatformStand = false
2081
						end
2082
					end))
2083
					if SPEAKING == false and MRANDOM(1,5) == 1 then
2084
						SPEAKING = true
2085
						CreateSound("907330011", Head, 10, 1)
2086
                        Chatter("Beatiful.",0)
2087
					end
2088
				end
2089
			end
2090
		end
2091
	end)
2092
	for i=0, 0.35, 0.1 / Animation_Speed do
2093
		Swait()
2094
		BATONWELD.C0 = Clerp(BATONWELD.C0,CF(0,-1,0) * ANGLES(RAD(120), RAD(0), RAD(0)) * CF(0,0,1), 1 / Animation_Speed)
2095
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed)
2096
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed)
2097
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.6) * ANGLES(RAD(140), RAD(0), RAD(-31)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2098
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-3)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2099
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2100
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
2101
	end
2102
	TOUCH:Disconnect()
2103
	BATON.CanCollide = false
2104
	Speed = 20
2105
	Trail.Enabled = false
2106
	for i=0, 0.2, 0.1 / Animation_Speed do
2107
		Swait()
2108
		BATONWELD.C0 = Clerp(BATONWELD.C0,CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)) * CF(0,0,1), 2 / Animation_Speed)
2109
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2110
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-15)), 1 / Animation_Speed)
2111
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2112
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2113
		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)
2114
		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)
2115
	end
2116
	BATONWELD.Part0 = Torso
2117
	BATONWELD.C0 = CF(1,-0.8,0.75) * ANGLES(RAD(0), RAD(0), RAD(0))
2118
	ATTACK = false
2119
	Rooted = false
2120
end
2121
function Cuffs()
2122
	local TARGET = Mouse.Target
2123
	if TARGET ~= nil then
2124
		if TARGET.Parent:FindFirstChildOfClass("Humanoid") then
2125
			local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid")
2126
			local ROOT = TARGET.Parent:FindFirstChild("HumanoidRootPart") or TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso")
2127
			if ROOT and HUM.Health > 0 then
2128
				local FOE = Mouse.Target.Parent
2129
				ATTACK = true
2130
				Rooted = true
2131
				CharacterFade(C3(1,1,1),70)
2132
				RootPart.CFrame = ROOT.CFrame*CF(0,0,2)
2133
				ROOT.Anchored = true
2134
				CreateSound(289556450, RootPart, 5, 1.4, false)
2135
				Chatter("Dont dare redusing!",0)
2136
				for i=0, 2, 0.1 / Animation_Speed do
2137
					Swait()
2138
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
2139
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
2140
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2141
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2142
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(15), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2143
					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)
2144
				end
2145
				local RIGHTCUFF = nil
2146
				local LEFTCUFF = nil
2147
				local ChainLink = nil
2148
				CreateSound(1279090548, ROOT, 10, 1.4, false)
2149
				for _, c in pairs(FOE:GetChildren()) do
2150
					if c.Name == "Left Arm" or c.Name == "LeftLowerArm" then
2151
						LEFTCUFF = CreatePart(3, FOE, "Metal", 0, 0, "Mid gray", "Cuff", VT(c.Size.X+0.1, 0.1, c.Size.Z+0.1),false)
2152
						LEFTCUFF.CFrame = c.CFrame
2153
						weldBetween(c,LEFTCUFF)
2154
					end
2155
				end
2156
				for _, c in pairs(FOE:GetChildren()) do
2157
					if c.Name == "Right Arm" or c.Name == "RightLowerArm" then
2158
						RIGHTCUFF = CreatePart(3, FOE, "Metal", 0, 0, "Mid gray", "Cuff", VT(c.Size.X+0.1, 0.1, c.Size.Z+0.1),false)
2159
						RIGHTCUFF.CFrame = c.CFrame
2160
						weldBetween(c,RIGHTCUFF)
2161
					end
2162
				end
2163
				if RIGHTCUFF and LEFTCUFF then
2164
					local A = IT("Attachment",RIGHTCUFF)
2165
					local B = IT("Attachment",LEFTCUFF)
2166
					ChainLink = IT("Beam",FOE)
2167
					ChainLink.Texture = "rbxassetid://73042633"
2168
					ChainLink.Color = ColorSequence.new(C3(0.8,0.8,0.8))
2169
					ChainLink.TextureSpeed = 0
2170
					ChainLink.Width0 = 1
2171
					ChainLink.Width1 = 1
2172
					ChainLink.Segments = 25
2173
					ChainLink.TextureLength = 3
2174
					ChainLink.Attachment0 = B
2175
					ChainLink.Attachment1 = A
2176
					ChainLink.FaceCamera = true
2177
					ChainLink.Transparency = NumberSequence.new(0)
2178
				end
2179
				coroutine.resume(coroutine.create(function()
2180
					wait(4)
2181
					if RIGHTCUFF and LEFTCUFF then
2182
						RIGHTCUFF:remove()
2183
						LEFTCUFF:remove()
2184
						ChainLink:remove()
2185
						local bv = Instance.new("BodyVelocity",ROOT) 
2186
						bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
2187
						bv.velocity = CF(ROOT.Position-VT(0,5,0),ROOT.Position).lookVector*70
2188
						Debris:AddItem(bv,0.05)
2189
						ApplyDamage(HUM,70)
2190
						HUM.PlatformStand = false
2191
						WACKYEFFECT({Time = 50, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(6,6,6), Transparency = 0, Transparency2 = 1, CFrame = CF(RIGHTCUFF.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Glass = C3(1,1,1), SoundID = 174580476, SoundPitch = 1, SoundVolume = 7})
2192
						WACKYEFFECT({Time = 50, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(6,6,6), Transparency = 0, Transparency2 = 1, CFrame = CF(LEFTCUFF.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Glass = C3(1,1,1), SoundID = 174580476, SoundPitch = 1, SoundVolume = 7})
2193
					end
2194
				end))
2195
				for i=0, 1.5, 0.1 / Animation_Speed do
2196
					Swait()
2197
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
2198
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(5), RAD(0)), 1 / Animation_Speed)
2199
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(70), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2200
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(70), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2201
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(15), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2202
					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)
2203
				end
2204
				HUM.PlatformStand = true
2205
				ROOT.CFrame = ROOT.CFrame * ANGLES(RAD(15), RAD(0), RAD(0))
2206
				ROOT.Anchored = false
2207
				Chatter("You get caught by Pandora",0)
2208
				for i=0, 3, 0.1 / Animation_Speed do
2209
					Swait()
2210
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(-35)), 1 / Animation_Speed)
2211
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed)
2212
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-1), RAD(0), RAD(3)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2213
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-1), RAD(0), RAD(-3)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2214
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-12), RAD(80), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
2215
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-60), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
2216
				end
2217
				ATTACK = false
2218
				Rooted = false
2219
			end
2220
		end
2221
	end
2222
end
2223
2224
--//=================================\\
2225
--||	    ATTACK BAD COP
2226
--\\=================================//
2227
2228
2229
function BatonBreaker()
2230
    ATTACK = true
2231
    Rooted = false
2232
    Speed = 4
2233
    CreateSound(1690476035,Torso,10,1,false)
2234
   Chatter("ARRRRRRRGGGGGHHHHHHHHHHHH",0)
2235
    for i=0, 0.2, 0.1 / Animation_Speed do
2236
        Swait()
2237
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2238
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-15)), 1 / Animation_Speed)
2239
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2240
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2241
        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)
2242
        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)
2243
    end
2244
    BATONWELD.Part0 = RightArm
2245
    BATONWELD.C0 = CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)) * CF(0,0,1)
2246
    for i=0, 0.5, 0.1 / Animation_Speed do
2247
        Swait()
2248
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), 1 / Animation_Speed)
2249
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(25)), 1 / Animation_Speed)
2250
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.1) * ANGLES(RAD(-20), RAD(-40), RAD(25)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
2251
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2252
        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)
2253
        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)
2254
    end
2255
    Speed = 30
2256
    CreateSound(147722227, BATON, 6, 1, false)
2257
    Trail.Enabled = true
2258
    BATON.CanCollide = true
2259
    local SPEAKING = false
2260
    local HITS = {}
2261
    local TOUCH = BATON.Touched:Connect(function(hit)
2262
        if hit.Parent:FindFirstChildOfClass("Humanoid") then
2263
            local HUM = hit.Parent:FindFirstChildOfClass("Humanoid")
2264
            local TORSO = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
2265
            if TORSO and HUM.Health > 0 then
2266
                local PASS = true
2267
                for i = 1, #HITS do
2268
                    if HITS[i] == hit.Parent then
2269
                        PASS = false
2270
                    end
2271
                end
2272
                table.insert(HITS,hit.Parent)
2273
                if PASS == true then
2274
                    CreateSound(260430079, BATON, 6, 0.8, false)
2275
                    WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position,BATON.Position)*CF(0,0,-0.5), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Glass = C3(1,1,1), SoundID = nil, SoundPitch = 1, SoundVolume = 4})
2276
                    TORSO.Anchored = true
2277
                    local POS = TORSO.CFrame
2278
                    coroutine.resume(coroutine.create(function()
2279
                        for i = 1, 15 do
2280
                            Swait()
2281
                            TORSO.CFrame = POS*CF(MRANDOM(-2,2)/10,MRANDOM(-2,2)/10,MRANDOM(-2,2)/10)
2282
                        end
2283
                        local HEAD = HUM.Parent:FindFirstChild("Head")
2284
                        HUM.Parent:BreakJoints()
2285
                        if HEAD then
2286
                            CreateSound(363808674, HEAD, 10, 0.8, false)
2287
                            local bv = Instance.new("BodyVelocity",TORSO)
2288
                            bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
2289
                            bv.velocity = CF(Torso.Position-VT(0,5,0),HEAD.Position).lookVector*70
2290
                            Debris:AddItem(bv,0.05)
2291
                            local TEXTS = {"Leave me alone...","Again criminal is eliminated!"}
2292
                            Chatter(TEXTS[MRANDOM(1,#TEXTS)],0)
2293
                        end
2294
                        TORSO.Anchored = false
2295
                    end))
2296
                end
2297
            end
2298
        end
2299
    end)
2300
    for i=0, 0.45, 0.1 / Animation_Speed do
2301
        Swait()
2302
        RootPart.CFrame = RootPart.CFrame * CF(0,0,-0.15)
2303
        BATONWELD.C0 = Clerp(BATONWELD.C0,CF(0,-1,0) * ANGLES(RAD(120), RAD(0), RAD(0)) * CF(0,0,1), 1 / Animation_Speed)
2304
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(15)), 1 / Animation_Speed)
2305
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-15)), 1 / Animation_Speed)
2306
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.6) * ANGLES(RAD(140), RAD(-25), RAD(-41)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2307
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-3)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2308
        RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(15), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2309
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
2310
    end
2311
    TOUCH:Disconnect()
2312
    BATON.CanCollide = false
2313
    Speed = 20
2314
    Trail.Enabled = false
2315
    for i=0, 0.2, 0.1 / Animation_Speed do
2316
        Swait()
2317
        BATONWELD.C0 = Clerp(BATONWELD.C0,CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)) * CF(0,0,1), 2 / Animation_Speed)
2318
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2319
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-15)), 1 / Animation_Speed)
2320
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2321
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2322
        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)
2323
        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)
2324
    end
2325
    BATONWELD.Part0 = Torso
2326
    BATONWELD.C0 = CF(1,-0.8,0.75) * ANGLES(RAD(0), RAD(0), RAD(0))
2327
    ATTACK = false
2328
    Rooted = false
2329
end
2330
function Limit_Bomb()
2331
    local CENTER = CreatePart(3, Effects, "SmoothPlastic", 0, 1, SKILLTEXTCOLOR, "CenterPart", VT(0, 0, 0))
2332
    local RAY = CreatePart(3, Effects, "Neon", 0, 1, C3(0, 0, 0), "Laser01", VT(25, 25, 25))
2333
    RAY.Color = SKILLTEXTCOLOR
2334
    MakeForm(RAY, "Ball")
2335
    local ECH = Mouse.Hit.p
2336
    CENTER.CFrame = CF(Mouse.Hit.p)
2337
    RAY.CFrame = CENTER.CFrame
2338
    for i = 1, 120 do
2339
        Swait()
2340
        RAY.Size = RAY.Size * 0.99
2341
        RAY.Transparency = RAY.Transparency - 0.016666666666666666
2342
    end
2343
    killnearest(ECH, 35, 250)
2344
    MagicSphere(VT(0, 0, 0), 45, CF(ECH), C3(0, 0, 0), VT(2, 2, 2))
2345
    CreateRing(VT(0, 0, 0.1), false, 0, 45, CF(ECH) * ANGLES(RAD(90), RAD(0), RAD(0)), C3(0, 0, 0), VT(0.2, 0.2, 0))
2346
    CreateSound("178452217", CENTER, 10, 1)
2347
    Debris:AddItem(CENTER, 5)
2348
    RAY:remove()
2349
end
2350
function TheRightToRemainSilent()
2351
    local TARGET = Mouse.Target
2352
    if TARGET ~= nil then
2353
        if TARGET.Parent:FindFirstChildOfClass("Humanoid") then
2354
            local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid")
2355
            local ROOT = TARGET.Parent:FindFirstChild("HumanoidRootPart") or TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso")
2356
            if ROOT and HUM.Health > 0 then
2357
                local FOE = Mouse.Target.Parent
2358
                ATTACK = true
2359
                Rooted = true
2360
                CharacterFade(C3(1,1,1),70)
2361
                RootPart.CFrame = ROOT.CFrame*CF(0,0,2)
2362
                ROOT.Anchored = true
2363
                CreateSound(289556450, RootPart, 5, 1.4, false)
2364
                Chatter("You are to remain silent and DEAD!",0)
2365
                for i=0, 0.4, 0.1 / Animation_Speed do
2366
                    Swait()
2367
                    RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2368
                    Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2369
                    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2370
                    LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2371
                    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)
2372
                    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)
2373
                end
2374
                HUM.PlatformStand = true
2375
                ROOT.CFrame = ROOT.CFrame * CF(0,-2*ROOT.Size.Z,0) * ANGLES(RAD(-90), RAD(0), RAD(0))
2376
                CreateSound(260430117, ROOT, 6, 1.3, false)
2377
                coroutine.resume(coroutine.create(function()
2378
                    Swait()
2379
                    ROOT.Anchored = true
2380
                end))
2381
                RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.6)
2382
                for i=0, 0.2, 0.1 / Animation_Speed do
2383
                    Swait()
2384
                    RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed)
2385
                    Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed)
2386
                    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2387
                    LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2388
                    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)
2389
                    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)
2390
                end
2391
                local OOFS = {959679286}
2392
                CreateSound(OOFS[MRANDOM(1,#OOFS)], ROOT, 6, 1, false)
2393
                for i=0, 0.2, 0.1 / Animation_Speed do
2394
                    Swait()
2395
                    RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.65) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed)
2396
                    Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 1 / Animation_Speed)
2397
                    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(80), RAD(0), RAD(-10)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2398
                    LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2399
                    RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.45) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2400
                    LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
2401
                end
2402
                local AMMO = 6
2403
                local FIRING = true
2404
                local SHOOTING = false
2405
                local TIMER = 70
2406
                CreateSound(147722227, GUN, 6, 1.3, false)
2407
                GUNWELD.Part0 = LeftArm
2408
                GUNWELD.C0 = CF(0,-1.5,0) * ANGLES(RAD(0), RAD(90), RAD(-90))
2409
                for i=0, 0.2, 0.1 / Animation_Speed do
2410
                    Swait()
2411
                    RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.65) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed)
2412
                    Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 1 / Animation_Speed)
2413
                    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(80), RAD(0), RAD(-10)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2414
                    LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.4, 0.55, 0.4) * ANGLES(RAD(100), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2415
                    RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.45) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2416
                    LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
2417
                end
2418
                for i = 1, 6 do
2419
                    local GUNPOS = GUN.CFrame*CF(1.2, 0.5, 0).p
2420
                    local DISTANCE = (FOE.Head.Position - GUNPOS).Magnitude
2421
                    WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(0.3,0.3,0.3), Transparency = 0, Transparency2 = 1, CFrame = CF(GUNPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = 330704232, SoundPitch = 1, SoundVolume = 4})
2422
                    WACKYEFFECT({Time = 6, EffectType = "Box", Size = VT(0,0,DISTANCE), Size2 = VT(0.1,0.1,DISTANCE), Transparency = 0, Transparency2 = 1, CFrame = CF(GUNPOS,FOE.Head.Position)*CF(0,0,-DISTANCE/2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2423
                    HUM.Health = HUM.Health/1.5
2424
                    for i=0, 0.2, 0.1 / Animation_Speed do
2425
                        Swait()
2426
                        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.65) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed)
2427
                        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 1 / Animation_Speed)
2428
                        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(80), RAD(0), RAD(-10)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2429
                        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.4, 0.55, 0.6) * ANGLES(RAD(130), RAD(0), RAD(20)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2430
                        RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.45) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2431
                        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
2432
                    end
2433
                    for i=0, 0.2, 0.1 / Animation_Speed do
2434
                        Swait()
2435
                        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.65) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed)
2436
                        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 1 / Animation_Speed)
2437
                        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(80), RAD(0), RAD(-10)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2438
                        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.4, 0.55, 0.6) * ANGLES(RAD(100), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2439
                        RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.45) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2440
                        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
2441
                    end
2442
                end
2443
                FOE:BreakJoints()
2444
                ROOT.Anchored = false
2445
                for i=0, 0.3, 0.1 / Animation_Speed do
2446
                    Swait()
2447
                    RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2448
                    Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed)
2449
                    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2450
                    LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2451
                    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)
2452
                    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)
2453
                end
2454
                GUNWELD.Part0 = Torso
2455
                GUNWELD.C0 = CF(-1.1,-1.1,0) * ANGLES(RAD(0), RAD(90), RAD(-90))
2456
                ATTACK = false
2457
                Rooted = false
2458
            end
2459
        end
2460
    end
2461
end
2462
function Prison_Key()
2463
    if Mouse.Target ~= nil then
2464
        if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
2465
            local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
2466
            local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
2467
            local GYRO = IT("BodyGyro",RootPart)
2468
            GYRO.D = 750
2469
            GYRO.P = 20000
2470
            GYRO.MaxTorque = VT(0,40000000,0)
2471
            local grav = Instance.new("BodyPosition",TORSO)
2472
            grav.D = 15
2473
            grav.P = 20000
2474
            grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
2475
            grav.position = TORSO.Position
2476
            local GYRO2 = IT("BodyGyro",TORSO)
2477
            GYRO2.D = 750
2478
            GYRO2.P = 20000
2479
            GYRO2.MaxTorque = VT(0,40000000,0)
2480
            GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
2481
            grav.Name = "Jail"
2482
            local LOCKPARTS = {}
2483
            ATTACK = true
2484
            Rooted = false
2485
            local LOCK = IT("Model",Effects)
2486
            LOCK.Name = "Lock"
2487
            local LOCK2 = IT("Model",LOCK)
2488
            LOCK2.Name = "Metal"
2489
            --CREATE LOCK--
2490
                local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1))
2491
                LOCK.PrimaryPart = BASE
2492
                BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
2493
                local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3))
2494
                PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
2495
                MakeForm(PRT,"Cyl")
2496
                local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1))
2497
                PRT.Color = C3(0,0,0)
2498
                PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
2499
                MakeForm(PRT,"Cyl")
2500
                local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1))
2501
                PRT.Color = C3(0,0,0)
2502
                PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
2503
                for i = 1, 45 do
2504
                    local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
2505
                    PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
2506
                end
2507
                local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
2508
                PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
2509
                LOCK2.PrimaryPart = PRT
2510
            ---------------
2511
            local CHILDREN = LOCK:GetDescendants()
2512
            for index, CHILD in pairs(CHILDREN) do
2513
                if CHILD:IsA("BasePart") then
2514
                    CHILD.Transparency = 1
2515
                end
2516
            end
2517
            for i = 1, 75 do
2518
                LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
2519
                Swait()
2520
                GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
2521
                GYRO.cframe = CF(RootPart.Position,TORSO.Position)
2522
                local CHILDREN = LOCK:GetDescendants()
2523
                for index, CHILD in pairs(CHILDREN) do
2524
                    if CHILD:IsA("BasePart") then
2525
                        CHILD.Transparency = CHILD.Transparency - 1/75
2526
                    end
2527
                end
2528
            end
2529
            HUM.DisplayDistanceType = "None"
2530
            local KEY = IT("Model",Effects)
2531
            KEY.Name = "Key"
2532
            --CREATE KEY--
2533
                local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Really red", "KeyBase", VT(0.1, 1, 0.1),false)
2534
                KEY.PrimaryPart = KBASE
2535
                KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
2536
                local WLD = weldBetween(RightArm,KBASE)
2537
                for i = 1, 45 do
2538
                    local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really red", "Key", VT(0.1, 0.1, 0.1),false)
2539
                    PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
2540
                    weldBetween(KBASE,PRT)
2541
                end
2542
                local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really red", "Key", VT(0.3, 0.1, 0.1),false)
2543
                PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
2544
                weldBetween(KBASE,PRT)
2545
                local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really red", "Key", VT(0.3, 0.1, 0.1),false)
2546
                PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
2547
                weldBetween(KBASE,PRT)
2548
            --------------
2549
            Rooted = true
2550
            Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
2551
            coroutine.resume(coroutine.create(function()
2552
                for i = 1, 10 do
2553
                    Swait()
2554
                    GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
2555
                    GYRO.cframe = CF(RootPart.Position,TORSO.Position)
2556
                end
2557
                CreateSound(1149318312,BASE,5,1,false)
2558
                CreateSound(160772554,BASE,3,1,false)
2559
                LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
2560
                for i = 1, 4 do
2561
                    WACKYEFFECT({Time = 35, EffectType = "Crystal", Size = VT(1,1,1), Size2 = VT(0,15,0), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(1,1.45,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2562
                end
2563
                WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1)*25, Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
2564
                wait(1)
2565
                TORSO.Parent.Parent = LOCK
2566
                for i = 1, 75 do
2567
                    Swait()
2568
                    local CHILDREN = KEY:GetDescendants()
2569
                    for index, CHILD in pairs(CHILDREN) do
2570
                        if CHILD:IsA("BasePart") then
2571
                            CHILD.Transparency = i/25
2572
                        end
2573
                    end
2574
                    local CHILDREN = LOCK:GetDescendants()
2575
                    for index, CHILD in pairs(CHILDREN) do
2576
                        if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
2577
                            CHILD.Transparency = CHILD.Transparency + 1/75
2578
                        elseif CHILD.ClassName == "Decal" then
2579
                            CHILD.Transparency = CHILD.Transparency + 1/75
2580
                        end
2581
                    end
2582
                end
2583
                TORSO.Parent:ClearAllChildren()
2584
                KEY:remove()
2585
                LOCK:remove()
2586
            end))
2587
            Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
2588
            GYRO:remove()
2589
            ATTACK = false
2590
            Rooted = false
2591
        end
2592
    end
2593
end
2594
function Silence()
2595
    Speed = 6
2596
    ATTACK = true
2597
    Rooted = false
2598
    local GYRO = IT("BodyGyro",RootPart)
2599
    GYRO.D = 2
2600
    GYRO.P = 20000
2601
    GYRO.MaxTorque = VT(0,4000000,0)
2602
    coroutine.resume(coroutine.create(function()
2603
        repeat
2604
            Swait()
2605
            GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
2606
        until ATTACK == false
2607
        GYRO:Remove()
2608
    end))
2609
    for i=0, 0.2, 0.1 / Animation_Speed do
2610
        Swait()
2611
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2612
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed)
2613
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2614
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2615
        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)
2616
        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)
2617
    end
2618
    local AMMO = 6
2619
    local FIRING = true
2620
    local SHOOTING = false
2621
    local TIMER = 70
2622
    CreateSound(147722227, GUN, 6, 1.3, false)
2623
    GUNWELD.Part0 = LeftArm
2624
    GUNWELD.C0 = CF(0,-1.5,0) * ANGLES(RAD(0), RAD(90), RAD(-90))
2625
    local Mouse = Mouse.Button1Down:connect(function(NEWKEY)
2626
        if SHOOTING == false and AMMO > 0 then
2627
            SHOOTING = true
2628
            AMMO = AMMO - 1
2629
            local GUNPOS = GUN.CFrame*CF(1.2, 0.5, 0).p
2630
            local HIT,POS = CastProperRay(GUNPOS,Mouse.Hit.p,1000,Character)
2631
            local DISTANCE = (POS - GUNPOS).Magnitude
2632
            if HIT then
2633
                if HIT.Parent:FindFirstChildOfClass("Humanoid") then
2634
                    if HIT.Parent:FindFirstChildOfClass("Humanoid").Health > 0 then
2635
                        CreateSound(160432334, HIT, 10, 1, false)
2636
                        ApplyDamage(HIT.Parent:FindFirstChildOfClass("Humanoid"),35)
2637
                    end
2638
                end
2639
            end
2640
            TIMER = 55
2641
            WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(0.3,0.3,0.3), Transparency = 0, Transparency2 = 1, CFrame = CF(GUNPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = 330704232, SoundPitch = 1, SoundVolume = 4})
2642
            WACKYEFFECT({Time = 6, EffectType = "Box", Size = VT(0,0,DISTANCE), Size2 = VT(0.1,0.1,DISTANCE), Transparency = 0, Transparency2 = 1, CFrame = CF(GUNPOS,POS)*CF(0,0,-DISTANCE/2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2643
            for i=0, 0.3, 0.1 / Animation_Speed do
2644
                Swait()
2645
                RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
2646
                Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
2647
                RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2648
                LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(100), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2649
                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)
2650
                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)
2651
            end
2652
            if AMMO <= 0 then
2653
                FIRING = false
2654
            end
2655
            SHOOTING = false
2656
        end
2657
    end)
2658
    repeat
2659
        Swait()
2660
        if SHOOTING == false then
2661
            TIMER = TIMER - 1
2662
            if TIMER <= 0 then
2663
                FIRING = false
2664
            end
2665
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
2666
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
2667
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2668
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2669
            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)
2670
            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)
2671
        end
2672
    until FIRING == false and SHOOTING == false
2673
    MOUSE:Disconnect()
2674
    for i=0, 0.3, 0.1 / Animation_Speed do
2675
        Swait()
2676
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2677
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed)
2678
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2679
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2680
        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)
2681
        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)
2682
    end
2683
    GUNWELD.Part0 = Torso
2684
    GUNWELD.C0 = CF(-1.1,-1.1,0) * ANGLES(RAD(0), RAD(90), RAD(-90))
2685
    Speed = 20
2686
    ATTACK = false
2687
    Rooted = false
2688
end
2689
function Buzzsaw()
2690
    ATTACK = true
2691
    Rooted = false
2692
    local ARMSPEED = 0.1
2693
    local TARGET = nil
2694
    local ROOT = nil
2695
    local HUMAN = nil
2696
    local DIST = 4
2697
     local TEXTS = {"Time to will be dead","Die!"}
2698
                            Chatter(TEXTS[MRANDOM(1,#TEXTS)],0)
2699
    local SAWBLADE = CreatePart(3, Weapon, "Neon", 0, 0.5, "Really red", "Part", VT(0,0,0),false)
2700
    local WELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, SAWBLADE, CF(0,-1,0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
2701
    local BLADE = true
2702
    CreateMesh("SpecialMesh", SAWBLADE, "FileMesh", "74322089", "", VT(2,2,1), VT(0,0,0))
2703
    coroutine.resume(coroutine.create(function()
2704
        repeat
2705
            Swait()
2706
            WELD.C1 = WELD.C1 * ANGLES(RAD(0), RAD(0), RAD(25))
2707
        until BLADE == false
2708
        SAWBLADE:remove()
2709
    end))
2710
    CreateSound(1165167936, SAWBLADE, 2, 1, true)
2711
    for i=0, 1, 0.1 / Animation_Speed do
2712
        Swait()
2713
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
2714
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
2715
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.5, -0.5) * ANGLES(RAD(175), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2716
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2717
        RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2718
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2719
    end
2720
    for i=0, 2, 0.1 / Animation_Speed do
2721
        Swait()
2722
        local CHILDREN = workspace:GetDescendants()
2723
        for index, CHILD in pairs(CHILDREN) do
2724
            if CHILD.ClassName == "Model" and CHILD ~= Character then
2725
                local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2726
                if HUM then
2727
                    local TORSO = CHILD:FindFirstChild("HumanoidRootPart") or CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2728
                    if TORSO and HUM.Health > 0 then
2729
                        if (TORSO.Position - RightArm.Position).Magnitude <= DIST then
2730
                            DIST = (TORSO.Position - RightArm.Position).Magnitude
2731
                            ROOT = TORSO
2732
                            HUMAN = HUM
2733
                            TARGET = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2734
                        end
2735
                    end
2736
                end
2737
            end
2738
        end
2739
        if ROOT then
2740
            break
2741
        end
2742
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
2743
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
2744
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.5, -0.5) * ANGLES(RAD(15), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * RIGHTSHOULDERC0, ARMSPEED / Animation_Speed)
2745
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2746
        RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2747
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2748
    end
2749
    if ROOT then
2750
        ARMSPEED = 0.03
2751
        Rooted = true
2752
        RootPart.CFrame = ROOT.CFrame*CF(0,0,2.5)
2753
        repeat
2754
            HUMAN.Health = HUMAN.Health - 0.5
2755
            Swait()
2756
            ROOT.Anchored = true
2757
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(1, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
2758
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
2759
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * RIGHTSHOULDERC0, ARMSPEED / Animation_Speed)
2760
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2761
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2762
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2763
        until RightArm.Position.Y < Torso.Position.Y-0.15 or HUMAN.Health == 0
2764
        ROOT.Anchored = false
2765
        if HUMAN.Health == 0 then
2766
            if ROOT.Name ~= "Torso" then
2767
                ROOT:remove()
2768
            end
2769
            if TARGET.Name == "Torso" then
2770
                Ragdoll(HUMAN.Parent,Torso,true)
2771
            local TEXTS = {"Meet with Lady Black Heart!","Again criminal get onto my saw!"}
2772
                            Chatter(TEXTS[MRANDOM(1,#TEXTS)],0)
2773
            elseif TARGET.Name == "UpperTorso" then
2774
                R15Ragdoll(HUMAN.Parent,true)
2775
            end
2776
        end
2777
    end
2778
    BLADE = false
2779
    ATTACK = false
2780
    Rooted = false
2781
end
2782
2783
2784
function Taunt2()
2785
    ATTACK = true
2786
    Rooted = true
2787
    local SOUND = CreateSound("134978657", Head, 10, 1.3)
2788
    Swait()
2789
    repeat
2790
        Swait()
2791
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.5) * ANGLES(RAD(-45+(SOUND.PlaybackLoudness/10)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2792
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2793
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-55), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2794
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-55), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2795
        RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-45+(SOUND.PlaybackLoudness/10)), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2796
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-45+(SOUND.PlaybackLoudness/10)), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2797
    until SOUND.Playing == false
2798
    ATTACK = false
2799
    Rooted = false
2800
end
2801
2802
function Taunt()
2803
	ATTACK = true
2804
	local LAUGH = nil
2805
	coroutine.resume(coroutine.create(function()
2806
		repeat
2807
			Swait()
2808
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
2809
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed)
2810
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE, -0.5*SIZE) * ANGLES(RAD(170), RAD(-25), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2811
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
2812
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
2813
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
2814
		until LAUGH ~= nil
2815
		repeat
2816
			Swait()
2817
			LAUGH.Parent = Head
2818
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0+(0.1*LAUGH.PlaybackLoudness/75) + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
2819
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE+(0.1*LAUGH.PlaybackLoudness/75)) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed)
2820
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE+(0.1*LAUGH.PlaybackLoudness/75), -0.5*SIZE) * ANGLES(RAD(170), RAD(-25), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2821
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE+(0.1*LAUGH.PlaybackLoudness/75), 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
2822
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
2823
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
2824
		until LAUGH.Playing == false
2825
	ATTACK = false
2826
	end))
2827
	wait(0.1)
2828
	LAUGH = CreateSound(178038408, Head, 10, 1, false)
2829
end
2830
2831
--//=================================\\
2832
--||	  ASSIGN THINGS TO KEYS
2833
--\\=================================//
2834
2835
function MouseDown(Mouse)
2836
    if ATTACK == false then
2837
        if MODE == "GoodCop" then
2838
            Punch()
2839
         elseif MODE == "TomYum" then
2840
            Limit_Bomb()
2841
        elseif MODE == "BadCop" then
2842
            Buzzsaw()
2843
        end
2844
    end
2845
end
2846
2847
function MouseUp(Mouse)
2848
HOLD = false
2849
end
2850
2851
function KeyDown(Key)
2852
	KEYHOLD = true
2853
	if Key == "q" and ATTACK == false then
2854
		if MODE == "GoodCop" then
2855
			BatonStun()
2856
		elseif MODE == "TomYum" then
2857
			Prison_Key()
2858
        elseif MODE == "BadCop" then
2859
			BatonBreaker()
2860
		end
2861
	end
2862
2863
2864
	if Key == "e" and ATTACK == false then
2865
		if MODE == "GoodCop" then
2866
			Cuffs()
2867
         elseif MODE == "BadCop" then
2868
			TheRightToRemainSilent()
2869
		end
2870
	end
2871
2872
	if Key == "f" and ATTACK == false then
2873
		Switch()
2874
	end
2875
2876
   if Key == "g" and ATTACK == false then
2877
		Switch2()
2878
	end
2879
2880
	if Key == "0" and ATTACK == false then
2881
		if sick.Parent ~= RootPart then
2882
			sick = IT("Sound",RootPart)
2883
		end
2884
	end
2885
end
2886
2887
function KeyUp(Key)
2888
	KEYHOLD = false
2889
end
2890
2891
	Mouse.Button1Down:connect(function(NEWKEY)
2892
		MouseDown(NEWKEY)
2893
	end)
2894
	Mouse.Button1Up:connect(function(NEWKEY)
2895
		MouseUp(NEWKEY)
2896
	end)
2897
	Mouse.KeyDown:connect(function(NEWKEY)
2898
		KeyDown(NEWKEY)
2899
	end)
2900
	Mouse.KeyUp:connect(function(NEWKEY)
2901
		KeyUp(NEWKEY)
2902
	end)
2903
2904
--//=================================\\
2905
--\\=================================//
2906
2907
function unanchor()
2908
	for _, c in pairs(Character:GetChildren()) do
2909
		if c:IsA("BasePart") and c ~= RootPart then
2910
			c.Anchored = false
2911
		end
2912
	end
2913
	for _, c in pairs(Weapon:GetChildren()) do
2914
		if c:IsA("BasePart") and c ~= RootPart then
2915
			c.Anchored = false
2916
		end
2917
	end
2918
	if UNANCHOR == true then
2919
		RootPart.Anchored = false
2920
	else
2921
		RootPart.Anchored = true
2922
	end
2923
end
2924
2925
--//=================================\\
2926
--||	WRAP THE WHOLE SCRIPT UP
2927
--\\=================================//
2928
2929
Humanoid.Changed:connect(function(Jump)
2930
	if Jump == "Jump" and (Disable_Jump == true) then
2931
		Humanoid.Jump = false
2932
	end
2933
end)
2934
2935
while true do
2936
	Swait()
2937
	script.Parent = WEAPONGUI
2938
	ANIMATE.Parent = nil
2939
	for _,v in next, Humanoid:GetPlayingAnimationTracks() do
2940
	    v:Stop();
2941
	end
2942
	SINE = SINE + CHANGE
2943
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
2944
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
2945
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
2946
	local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
2947
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
2948
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0.05 * COS(SINE / (WALKSPEEDVALUE/2))) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2949
		Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2950
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(35 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
2951
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(35 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
2952
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
2953
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2954
		Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2955
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.7 / Animation_Speed)
2956
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.7 / Animation_Speed)
2957
	end
2958
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
2959
		ANIM = "Jump"
2960
		if ATTACK == false then
2961
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2962
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2963
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
2964
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2965
			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)
2966
			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)
2967
	    end
2968
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
2969
		ANIM = "Fall"
2970
		if ATTACK == false then
2971
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2972
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2973
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
2974
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2975
			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)
2976
			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)
2977
		end
2978
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
2979
		ANIM = "Idle"
2980
		if ATTACK == false then
2981
			if MODE == "GoodCop" then
2982
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
2983
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-5.4 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2984
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(-55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2985
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 *SIZE, 0.65*SIZE, -0.9*SIZE) * ANGLES(RAD(-25), RAD(10 - 4.5 * SIN(SINE / 12)), RAD(90 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
2986
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
2987
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)	
2988
            elseif MODE == "BadCop" then
2989
			  RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(-17.58)), 1 / Animation_Speed)
2990
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.2*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(15 - 3)), 1 / Animation_Speed)
2991
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.7*SIZE, -0.5*SIZE) * ANGLES(RAD(0.98), RAD(-119.59 + 2.5 * SIN(SINE / 25)), RAD(-175.39 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2992
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.3*SIZE) * ANGLES(RAD(9.71), RAD(3.14 - -2.5 * SIN(SINE / 12)), RAD(0.2 - -2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
2993
            RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
2994
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
2995
			 elseif MODE == "TomYum" then
2996
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2997
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * COS(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2998
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.8, 0.5, -0.7) * ANGLES(RAD(85.57 - 4 * COS(SINE / 12)), RAD(-179.97), RAD(94.08)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2999
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.8, 0, -0.5) * ANGLES(RAD(85.57 - 4 * COS(SINE / 12)), RAD(-179.97), RAD(-94.08)) * LEFTSHOULDERC0, 1 / Animation_Speed)
3000
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
3001
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(9.09)), 1 / Animation_Speed)
3002
           end
3003
		end
3004
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
3005
		ANIM = "Walk"
3006
		if ATTACK == false then
3007
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.05) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
3008
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
3009
			if MODE == "GoodCop" then
3010
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.05 * SIN(SINE / (WALKSPEEDVALUE/2)), 0.3) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3011
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.05 * SIN(SINE / (WALKSPEEDVALUE/2)), 0.3) * ANGLES(RAD(-40), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
3012
			elseif MODE == "TomYum" then
3013
				 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.05) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
3014
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
3015
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(40  * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(12)) * ANGLES(RAD(0 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3016
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40  * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * ANGLES(RAD(0 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
3017
            RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-5)), 2 / Animation_Speed)
3018
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(5)), 2 / Animation_Speed)
3019
           elseif MODE == "BadCop" then
3020
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.9, 0.5 + 0.05 * SIN(SINE / (WALKSPEEDVALUE/2)), -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3021
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.9, 0.25 + 0.05 * SIN(SINE / (WALKSPEEDVALUE/2)), -0.35) * ANGLES(RAD(70), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
3022
			end
3023
			RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-5)), 2 / Animation_Speed)
3024
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(5)), 2 / Animation_Speed)
3025
		end
3026
	end
3027
	unanchor()
3028
	Humanoid.MaxHealth = 3e3
3029
	Humanoid.Health = 3e3
3030
	if Rooted == false then
3031
		Disable_Jump = false
3032
		Humanoid.WalkSpeed = Speed
3033
	elseif Rooted == true then
3034
		Disable_Jump = true
3035
		Humanoid.WalkSpeed = 0
3036
	end
3037
	 if Head:FindFirstChild("face") then
3038
        Head.face.Texture = "rbxassetid://403870689"
3039
    end
3040
   for _, c in pairs(Character:GetChildren()) do
3041
		if (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
3042
			c:remove()
3043
		end
3044
	end
3045
	sick.SoundId = "rbxassetid://2372056506"
3046
	sick.Looped = true
3047
	sick.Pitch = 1
3048
	sick.Volume = 4
3049
	sick.Playing = true
3050
	if MODE == "GoodCop" then
3051
		for E = 1, #GOODUI do
3052
			GOODUI[E].TextStrokeTransparency = 0
3053
			GOODUI[E].TextTransparency = 0
3054
		end
3055
		for E = 1, #BADUI do
3056
			BADUI[E].TextStrokeTransparency = 1
3057
			BADUI[E].TextTransparency = 0.5
3058
		end
3059
	elseif MODE == "BadCop" then
3060
		for E = 1, #GOODUI do
3061
			GOODUI[E].TextStrokeTransparency = 1
3062
			GOODUI[E].TextTransparency = 0.5
3063
		end
3064
		for E = 1, #BADUI do
3065
			BADUI[E].TextStrokeTransparency = 0
3066
			BADUI[E].TextTransparency = 0
3067
		end
3068
	end
3069
end
3070
3071
--//=================================\\
3072
--\\=================================//
3073
3074
3075
3076
3077
3078
--//====================================================\\--
3079
--||			  		 END OF SCRIPT
3080
--\\====================================================//--