SHOW:
|
|
- or go back to the newest paste.
1 | - | local Player = game:service'Players':WaitForChild"LUCAS_KENJK2" |
1 | + | local Player = game:service'Players':WaitForChild"EpicSlicer28" |
2 | local FakeMouse = script.FakeMouse:Clone(); | |
3 | FakeMouse.Parent = Player.Character; | |
4 | script.FakeMouse:Destroy() | |
5 | do | |
6 | local GUID = {} | |
7 | do | |
8 | GUID.IDs = {}; | |
9 | function GUID:new(len) | |
10 | local id; | |
11 | if(not len)then | |
12 | id = (tostring(function() end)) | |
13 | id = id:gsub("function: ","") | |
14 | else | |
15 | local function genID(len) | |
16 | local newID = "" | |
17 | for i = 1,len do | |
18 | newID = newID..string.char(math.random(48,90)) | |
19 | end | |
20 | return newID | |
21 | end | |
22 | repeat id = genID(len) until not GUID.IDs[id] | |
23 | local oid = id; | |
24 | id = {Trash=function() GUID.IDs[oid]=nil; end;Get=function() return oid; end} | |
25 | GUID.IDs[oid]=true; | |
26 | end | |
27 | return id | |
28 | end | |
29 | end | |
30 | ||
31 | local AHB = Instance.new("BindableEvent") | |
32 | ||
33 | local FPS = 30 | |
34 | ||
35 | local TimeFrame = 0 | |
36 | ||
37 | local LastFrame = tick() | |
38 | local Frame = 1/FPS | |
39 | ||
40 | game:service'RunService'.Heartbeat:connect(function(s,p) | |
41 | TimeFrame = TimeFrame + s | |
42 | if(TimeFrame >= Frame)then | |
43 | for i = 1,math.floor(TimeFrame/Frame) do | |
44 | AHB:Fire() | |
45 | end | |
46 | LastFrame=tick() | |
47 | TimeFrame=TimeFrame-Frame*math.floor(TimeFrame/Frame) | |
48 | end | |
49 | end) | |
50 | ||
51 | ||
52 | function swait(dur) | |
53 | if(dur == 0 or typeof(dur) ~= 'number')then | |
54 | AHB.Event:wait() | |
55 | else | |
56 | for i = 1, dur*FPS do | |
57 | AHB.Event:wait() | |
58 | end | |
59 | end | |
60 | end | |
61 | ||
62 | local oPlayer = Player | |
63 | local Player = oPlayer | |
64 | ||
65 | local loudnesses={} | |
66 | script.Parent = Player.Character | |
67 | local CoAS = {Actions={}} | |
68 | local Event = Instance.new("RemoteEvent") | |
69 | Event.Name = "UserInputEvent" | |
70 | Event.Parent = Player.Character | |
71 | local Func = Instance.new("RemoteFunction") | |
72 | Func.Name = "GetClientProperty" | |
73 | Func.Parent = Player.Character | |
74 | local fakeEvent = function() | |
75 | local t = {_fakeEvent=true,Waited={},Connected={}} | |
76 | t.Connect = function(self,f) | |
77 | local ft={} | |
78 | ft={Disconnected=false;disconnect=function(s) if(self.Function==ft)then self.Function=nil end s.Disconnected=true end} | |
79 | ft.Disconnect=ft.disconnect | |
80 | ||
81 | ft.Func=function(...) | |
82 | for id,_ in next, t.Waited do | |
83 | t.Waited[id] = true | |
84 | end | |
85 | return f(...) | |
86 | end; | |
87 | ||
88 | table.insert(self.Connected,ft) | |
89 | return ft; | |
90 | end | |
91 | t.connect = t.Connect | |
92 | t.Wait = function() | |
93 | local guid = GUID:new(25) | |
94 | local waitingId = guid:Get() | |
95 | t.Waited[waitingId]=false | |
96 | repeat swait() until t.Waited[waitingId]==true | |
97 | t.Waited[waitingId]=nil; | |
98 | guid:Trash() | |
99 | end | |
100 | t.wait = t.Wait | |
101 | return t | |
102 | end | |
103 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
104 | local UsIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
105 | local Run = {RenderStepped=fakeEvent()} | |
106 | ||
107 | function CoAS:BindAction(name,fun,touch,...) | |
108 | CoAS.Actions[name] = {Name=name,Function=fun,Keys={...}} | |
109 | end | |
110 | function CoAS:UnbindAction(name) | |
111 | CoAS.Actions[name] = nil | |
112 | end | |
113 | local function te(self,ev,...) | |
114 | local t = self[ev] | |
115 | if t and t._fakeEvent and t.Connected then | |
116 | for i,v in next, t.Connected do | |
117 | if(v.Func and not v.Disconnected)then | |
118 | v.Func(...) | |
119 | else | |
120 | t.Connected[i]=nil | |
121 | end | |
122 | end | |
123 | end | |
124 | end | |
125 | m.TrigEvent = te | |
126 | UsIS.TrigEvent = te | |
127 | Run.TrigEvent = te | |
128 | Event.OnServerEvent:Connect(function(plr,io) | |
129 | if plr~=Player then return end | |
130 | --[[table.foreach(io,print) | |
131 | print'---']] | |
132 | if io.Mouse then | |
133 | m.Target = io.Target | |
134 | m.Hit = io.Hit | |
135 | elseif io.KeyEvent then | |
136 | m:TrigEvent('Key'..io.KeyEvent,io.Key) | |
137 | elseif io.UserInputType == Enum.UserInputType.MouseButton1 then | |
138 | if io.UserInputState == Enum.UserInputState.Begin then | |
139 | m:TrigEvent("Button1Down") | |
140 | else | |
141 | m:TrigEvent("Button1Up") | |
142 | end | |
143 | end | |
144 | if(not io.KeyEvent and not io.Mouse)then | |
145 | ||
146 | for n,t in pairs(CoAS.Actions) do | |
147 | for _,k in pairs(t.Keys) do | |
148 | if k==io.KeyCode then | |
149 | t.Function(t.Name,io.UserInputState,io) | |
150 | end | |
151 | end | |
152 | end | |
153 | if io.UserInputState == Enum.UserInputState.Begin then | |
154 | UsIS:TrigEvent("InputBegan",io,false) | |
155 | else | |
156 | UsIS:TrigEvent("InputEnded",io,false) | |
157 | end | |
158 | end | |
159 | end) | |
160 | ||
161 | Func.OnServerInvoke = function(plr,inst,play) | |
162 | if plr~=Player then return end | |
163 | if(inst and typeof(inst) == 'Instance' and inst:IsA'Sound')then | |
164 | loudnesses[inst]=play | |
165 | end | |
166 | end | |
167 | ||
168 | function GetClientProperty(inst,prop) | |
169 | if(prop == 'PlaybackLoudness' and loudnesses[inst])then | |
170 | return loudnesses[inst] | |
171 | elseif(prop == 'PlaybackLoudness')then | |
172 | return Func:InvokeClient(Player,'RegSound',inst) | |
173 | end | |
174 | return Func:InvokeClient(Player,inst,prop) | |
175 | end | |
176 | local oldGame = game; | |
177 | function GetFakePlayer() | |
178 | local oldPlayer = Player; | |
179 | local fakePlayer = newproxy(true) | |
180 | getmetatable(fakePlayer).__index = function(s,i) | |
181 | if(i == 'GetMouse')then | |
182 | return function() return m; end | |
183 | end | |
184 | return Player[i] | |
185 | end | |
186 | getmetatable(fakePlayer).__newindex = function(s,i,v) | |
187 | Player[i]=v | |
188 | end | |
189 | getmetatable(fakePlayer).__call=function(self,...) | |
190 | if(self == fakePlayer)then self = Player end | |
191 | local wh = {...} | |
192 | local name = table.remove(wh,1) | |
193 | for i,v in next, wh do | |
194 | wh[i]=v | |
195 | end | |
196 | if(name == 'GetMouse')then | |
197 | return m; | |
198 | end | |
199 | return self(name,unpack(wh)) | |
200 | end | |
201 | getmetatable(fakePlayer).__namecall=function(self,...) | |
202 | if(self == fakePlayer)then self = Player end | |
203 | local tuple={...} | |
204 | local name = table.remove(tuple,#tuple) | |
205 | ||
206 | if(name == 'GetMouse')then | |
207 | return m; | |
208 | else | |
209 | return self[name](self,unpack(tuple)) | |
210 | end | |
211 | end | |
212 | ||
213 | return fakePlayer | |
214 | end | |
215 | local oll = LoadLibrary; | |
216 | function LoadLibrary(libtard) | |
217 | local libtarddestroyed=oll(libtard) | |
218 | if(libtard=='RbxUtility')then | |
219 | local library={Create=function(obj) | |
220 | local inst = Instance.new(obj) | |
221 | return function(props) | |
222 | for prop,valu in next, props do | |
223 | inst[prop]=valu | |
224 | end | |
225 | return inst | |
226 | end | |
227 | end} | |
228 | setmetatable(library,{__index=libtarddestroyed,__newindex=function(s,i,v) libtarddestroyed[i]=v end}) | |
229 | ||
230 | return library | |
231 | else | |
232 | return libtarddestroyed | |
233 | end | |
234 | end | |
235 | fakePlayer = GetFakePlayer() | |
236 | local function GetService(s,i) | |
237 | local service = s:GetService(i) | |
238 | if(i == 'Players')then | |
239 | local oldService = service; | |
240 | local fakeService = newproxy(true) | |
241 | getmetatable(fakeService).__index = function(s,i) | |
242 | if(s == fakeService)then s=oldService end | |
243 | if(i == 'LocalPlayer' or i == 'localPlayer')then | |
244 | return fakePlayer | |
245 | elseif(i == 'oPlayer')then | |
246 | return oPlayer | |
247 | else | |
248 | return s[i] | |
249 | end | |
250 | end | |
251 | getmetatable(fakeService).__newindex = function(s,i,v) | |
252 | if(s == fakeService)then s=oldService end | |
253 | s[i]=v | |
254 | end | |
255 | getmetatable(fakeService).__call=function(self,...) | |
256 | if(self == fakeService)then self = oldService end | |
257 | local wh = {...} | |
258 | local name = table.remove(wh,1) | |
259 | for i,v in next, wh do | |
260 | wh[i]=v | |
261 | end | |
262 | return self(name,unpack(wh)) | |
263 | end | |
264 | getmetatable(fakeService).__namecall=function(self,...) | |
265 | if(self == fakeService)then self = oldService end | |
266 | local tuple={...} | |
267 | local name = table.remove(tuple,#tuple) | |
268 | ||
269 | return self[name](self,unpack(tuple)) | |
270 | end | |
271 | getmetatable(fakeService).__metatable = 'gay' | |
272 | return fakeService | |
273 | elseif(i == 'RunService')then | |
274 | local oldService = service; | |
275 | local fakeService = newproxy(true) | |
276 | getmetatable(fakeService).__index = function(s,i) | |
277 | if(s == fakeService)then s=oldService end | |
278 | return Run[i] or s[i] | |
279 | end | |
280 | getmetatable(fakeService).__newindex = function(s,i,v) | |
281 | if(s == fakeService)then s=oldService end | |
282 | s[i]=v | |
283 | end | |
284 | getmetatable(fakeService).__call=function(self,...) | |
285 | if(self == fakeService)then self = oldService end | |
286 | local wh = {...} | |
287 | local name = table.remove(wh,1) | |
288 | for i,v in next, wh do | |
289 | wh[i]=v | |
290 | end | |
291 | return self(name,unpack(wh)) | |
292 | end | |
293 | getmetatable(fakeService).__namecall=function(self,...) | |
294 | if(self == fakeService)then self = oldService end | |
295 | local tuple={...} | |
296 | local name = table.remove(tuple,#tuple) | |
297 | ||
298 | return self[name](self,unpack(tuple)) | |
299 | end | |
300 | getmetatable(fakeService).__metatable = 'gay' | |
301 | return fakeService | |
302 | elseif(i == 'UserInputService')then | |
303 | return UsIS | |
304 | elseif(i == 'ContextActionService')then | |
305 | return CoAS; | |
306 | else | |
307 | return service | |
308 | end | |
309 | end | |
310 | ||
311 | local new = Instance.new; | |
312 | Instance = {} | |
313 | Instance.new = function(inst,obje) | |
314 | local lp = GetService(oldGame,'Players').localPlayer | |
315 | local instance = new(inst) | |
316 | if(inst=='ObjectValue')then | |
317 | local fake = newproxy(true) | |
318 | getmetatable(fake).__index=function(self,index) | |
319 | if(self==fake)then self=instance end | |
320 | return self[index] | |
321 | end | |
322 | getmetatable(fake).__newindex=function(self,index,value) | |
323 | if(self==fake)then self=instance end | |
324 | if(index=='Value' and typeof(value)~='Instance' and value==fakePlayer)then | |
325 | self[index]=oPlayer | |
326 | else | |
327 | self[index]=value | |
328 | end | |
329 | end | |
330 | getmetatable(fake).__call=function(self,...) | |
331 | if(self == fake)then self = instance end | |
332 | local wh = {...} | |
333 | local name = table.remove(wh,1) | |
334 | for i,v in next, wh do | |
335 | if(v == fake)then v = instance end | |
336 | wh[i]=v | |
337 | end | |
338 | return self(name,unpack(wh)) | |
339 | end | |
340 | getmetatable(fake). __namecall=function(self,...) | |
341 | if(self == fake)then self = instance end | |
342 | local tuple={...} | |
343 | local name = table.remove(tuple,#tuple) | |
344 | return self[name](self,unpack(tuple)) | |
345 | end | |
346 | return fake | |
347 | elseif(inst=='aaa')then | |
348 | local fake = newproxy(true) | |
349 | getmetatable(fake).__index=function(self,index) | |
350 | if(self==fake)then self=instance end | |
351 | if(index=='PlaybackLoudnes')then | |
352 | return GetClientProperty(instance,'PlaybackLoudness') | |
353 | end | |
354 | return self[index] | |
355 | end | |
356 | getmetatable(fake).__newindex=function(self,index,value) | |
357 | if(self==fake)then self=instance end | |
358 | self[index]=value | |
359 | end | |
360 | getmetatable(fake).__call=function(self,...) | |
361 | if(self == fake)then self = instance end | |
362 | local wh = {...} | |
363 | local name = table.remove(wh,1) | |
364 | for i,v in next, wh do | |
365 | if(v == fake)then v = instance end | |
366 | wh[i]=v | |
367 | end | |
368 | return self(name,unpack(wh)) | |
369 | end | |
370 | getmetatable(fake). __namecall=function(self,...) | |
371 | if(self == fake)then self = instance end | |
372 | local tuple={...} | |
373 | local name = table.remove(tuple,#tuple) | |
374 | return self[name](self,unpack(tuple)) | |
375 | end | |
376 | return fake | |
377 | else | |
378 | instance.Parent = obje | |
379 | return instance; | |
380 | end | |
381 | ||
382 | end | |
383 | local serviceFunctions={ | |
384 | service=true, | |
385 | GetService=true, | |
386 | } | |
387 | local fakeGame = newproxy(true) | |
388 | getmetatable(fakeGame).__index = function(s,i) | |
389 | if(s == fakeGame)then s=oldGame end | |
390 | local serv = GetService(oldGame,i) | |
391 | if serviceFunctions[i] then | |
392 | return GetService | |
393 | elseif(serv)then | |
394 | return serv | |
395 | else | |
396 | return s[i] | |
397 | end | |
398 | end | |
399 | getmetatable(fakeGame).__newindex = function(s,i,v) | |
400 | if(s == fakeGame)then s=oldGame end | |
401 | s[i]=v | |
402 | end | |
403 | getmetatable(fakeGame).__call=function(self,...) | |
404 | if(self == fakeGame)then self = oldGame end | |
405 | local wh = {...} | |
406 | local name = table.remove(wh,1) | |
407 | for i,v in next, wh do | |
408 | if(v == fakeGame)then v = oldGame end | |
409 | wh[i]=v | |
410 | end | |
411 | if serviceFunctions[name] then | |
412 | return GetService(self,unpack(wh)) | |
413 | else | |
414 | return self(name,unpack(wh)) | |
415 | end | |
416 | end | |
417 | getmetatable(fakeGame). __namecall=function(self,...) | |
418 | if(self == fakeGame)then self = oldGame end | |
419 | local tuple={...} | |
420 | local name = table.remove(tuple,#tuple) | |
421 | ||
422 | local funcToCall=self[name] | |
423 | ||
424 | if serviceFunctions[name] then | |
425 | return GetService(self,unpack(tuple)) | |
426 | else | |
427 | return self[name](self,unpack(tuple)) | |
428 | end | |
429 | end | |
430 | getmetatable(fakeGame).__metatable = 'gay' | |
431 | ||
432 | coroutine.wrap(function() | |
433 | while true do | |
434 | Run:TrigEvent('RenderStepped') | |
435 | swait() | |
436 | end | |
437 | end)() | |
438 | game=fakeGame | |
439 | UserInputService,ContextActionService = UsIS,CoAS | |
440 | end | |
441 | ||
442 | --//====================================================\\-- | |
443 | --|| GOOD COP BAD COP BY SHACKLUSTER | |
444 | --\\====================================================//-- | |
445 | ||
446 | wait(0.2) | |
447 | ||
448 | Player = game:GetService("Players").LocalPlayer | |
449 | PlayerGui = Player.PlayerGui | |
450 | Cam = workspace.CurrentCamera | |
451 | Backpack = Player.Backpack | |
452 | Character = Player.Character | |
453 | Humanoid = Character.Humanoid | |
454 | RootPart = Character["HumanoidRootPart"] | |
455 | Torso = Character["Torso"] | |
456 | Head = Character["Head"] | |
457 | RightArm = Character["Right Arm"] | |
458 | LeftArm = Character["Left Arm"] | |
459 | RightLeg = Character["Right Leg"] | |
460 | LeftLeg = Character["Left Leg"] | |
461 | RootJoint = RootPart["RootJoint"] | |
462 | Neck = Torso["Neck"] | |
463 | RightShoulder = Torso["Right Shoulder"] | |
464 | LeftShoulder = Torso["Left Shoulder"] | |
465 | RightHip = Torso["Right Hip"] | |
466 | LeftHip = Torso["Left Hip"] | |
467 | local sick = Instance.new("Sound",RootPart) | |
468 | ||
469 | IT = Instance.new | |
470 | CF = CFrame.new | |
471 | VT = Vector3.new | |
472 | RAD = math.rad | |
473 | C3 = Color3.new | |
474 | UD2 = UDim2.new | |
475 | BRICKC = BrickColor.new | |
476 | ANGLES = CFrame.Angles | |
477 | EULER = CFrame.fromEulerAnglesXYZ | |
478 | COS = math.cos | |
479 | ACOS = math.acos | |
480 | SIN = math.sin | |
481 | ASIN = math.asin | |
482 | ABS = math.abs | |
483 | MRANDOM = math.random | |
484 | FLOOR = math.floor | |
485 | ||
486 | --//=================================\\ | |
487 | --|| USEFUL VALUES | |
488 | --\\=================================// | |
489 | ||
490 | Animation_Speed = 3 | |
491 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
492 | local Speed = 20 | |
493 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
494 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
495 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
496 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
497 | local DAMAGEMULTIPLIER = 1 | |
498 | local ANIM = "Idle" | |
499 | local ATTACK = false | |
500 | local EQUIPPED = false | |
501 | local HOLD = false | |
502 | local COMBO = 1 | |
503 | local Rooted = false | |
504 | local SINE = 0 | |
505 | local KEYHOLD = false | |
506 | local CHANGE = 2 / Animation_Speed | |
507 | local WALKINGANIM = false | |
508 | local VALUE1 = false | |
509 | local VALUE2 = false | |
510 | local ROBLOXIDLEANIMATION = IT("Animation") | |
511 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
512 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
513 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
514 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
515 | WEAPONGUI.Name = "Weapon GUI" | |
516 | local Weapon = IT("Model") | |
517 | Weapon.Name = "Adds" | |
518 | local Shotgun = IT("Model") | |
519 | Shotgun.Name = "Shotgun" | |
520 | local Effects = IT("Folder", Weapon) | |
521 | Effects.Name = "Effects" | |
522 | local ANIMATOR = Humanoid.Animator | |
523 | local ANIMATE = Character.Animate | |
524 | local UNANCHOR = true | |
525 | local MODE = "GoodCop" | |
526 | local SONG = 259554386 | |
527 | local BLINKLOOP = 0 | |
528 | local OFFSET = 0 | |
529 | --//=================================\\ | |
530 | --\\=================================// | |
531 | ||
532 | ||
533 | --//=================================\\ | |
534 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
535 | --\\=================================// | |
536 | ||
537 | ArtificialHB = Instance.new("BindableEvent", script) | |
538 | ArtificialHB.Name = "ArtificialHB" | |
539 | ||
540 | script:WaitForChild("ArtificialHB") | |
541 | ||
542 | frame = Frame_Speed | |
543 | tf = 0 | |
544 | allowframeloss = false | |
545 | tossremainder = false | |
546 | lastframe = tick() | |
547 | script.ArtificialHB:Fire() | |
548 | ||
549 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
550 | tf = tf + s | |
551 | if tf >= frame then | |
552 | if allowframeloss then | |
553 | script.ArtificialHB:Fire() | |
554 | lastframe = tick() | |
555 | else | |
556 | for i = 1, math.floor(tf / frame) do | |
557 | script.ArtificialHB:Fire() | |
558 | end | |
559 | lastframe = tick() | |
560 | end | |
561 | if tossremainder then | |
562 | tf = 0 | |
563 | else | |
564 | tf = tf - frame * math.floor(tf / frame) | |
565 | end | |
566 | end | |
567 | end) | |
568 | ||
569 | --//=================================\\ | |
570 | --\\=================================// | |
571 | ||
572 | --//=================================\\ | |
573 | --|| SOME FUNCTIONS | |
574 | --\\=================================// | |
575 | ||
576 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
577 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
578 | end | |
579 | ||
580 | function PositiveAngle(NUMBER) | |
581 | if NUMBER >= 0 then | |
582 | NUMBER = 0 | |
583 | end | |
584 | return NUMBER | |
585 | end | |
586 | ||
587 | function NegativeAngle(NUMBER) | |
588 | if NUMBER <= 0 then | |
589 | NUMBER = 0 | |
590 | end | |
591 | return NUMBER | |
592 | end | |
593 | ||
594 | function Swait(NUMBER) | |
595 | if NUMBER == 0 or NUMBER == nil then | |
596 | ArtificialHB.Event:wait() | |
597 | else | |
598 | for i = 1, NUMBER do | |
599 | ArtificialHB.Event:wait() | |
600 | end | |
601 | end | |
602 | end | |
603 | ||
604 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
605 | local NEWMESH = IT(MESH) | |
606 | if MESH == "SpecialMesh" then | |
607 | NEWMESH.MeshType = MESHTYPE | |
608 | if MESHID ~= "nil" and MESHID ~= "" then | |
609 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
610 | end | |
611 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
612 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
613 | end | |
614 | end | |
615 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
616 | NEWMESH.Scale = SCALE | |
617 | NEWMESH.Parent = PARENT | |
618 | return NEWMESH | |
619 | end | |
620 | ||
621 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
622 | local NEWPART = IT("Part") | |
623 | NEWPART.formFactor = FORMFACTOR | |
624 | NEWPART.Reflectance = REFLECTANCE | |
625 | NEWPART.Transparency = TRANSPARENCY | |
626 | NEWPART.CanCollide = false | |
627 | NEWPART.Locked = true | |
628 | NEWPART.Anchored = true | |
629 | if ANCHOR == false then | |
630 | NEWPART.Anchored = false | |
631 | end | |
632 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
633 | NEWPART.Name = NAME | |
634 | NEWPART.Size = SIZE | |
635 | NEWPART.Position = Torso.Position | |
636 | NEWPART.Material = MATERIAL | |
637 | NEWPART:BreakJoints() | |
638 | NEWPART.Parent = PARENT | |
639 | return NEWPART | |
640 | end | |
641 | ||
642 | local function weldBetween(a, b) | |
643 | local weldd = Instance.new("ManualWeld") | |
644 | weldd.Part0 = a | |
645 | weldd.Part1 = b | |
646 | weldd.C0 = CFrame.new() | |
647 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
648 | weldd.Parent = a | |
649 | return weldd | |
650 | end | |
651 | ||
652 | ||
653 | function QuaternionFromCFrame(cf) | |
654 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
655 | local trace = m00 + m11 + m22 | |
656 | if trace > 0 then | |
657 | local s = math.sqrt(1 + trace) | |
658 | local recip = 0.5 / s | |
659 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
660 | else | |
661 | local i = 0 | |
662 | if m11 > m00 then | |
663 | i = 1 | |
664 | end | |
665 | if m22 > (i == 0 and m00 or m11) then | |
666 | i = 2 | |
667 | end | |
668 | if i == 0 then | |
669 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
670 | local recip = 0.5 / s | |
671 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
672 | elseif i == 1 then | |
673 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
674 | local recip = 0.5 / s | |
675 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
676 | elseif i == 2 then | |
677 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
678 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
679 | end | |
680 | end | |
681 | end | |
682 | ||
683 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
684 | local xs, ys, zs = x + x, y + y, z + z | |
685 | local wx, wy, wz = w * xs, w * ys, w * zs | |
686 | local xx = x * xs | |
687 | local xy = x * ys | |
688 | local xz = x * zs | |
689 | local yy = y * ys | |
690 | local yz = y * zs | |
691 | local zz = z * zs | |
692 | 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)) | |
693 | end | |
694 | ||
695 | function QuaternionSlerp(a, b, t) | |
696 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
697 | local startInterp, finishInterp; | |
698 | if cosTheta >= 0.0001 then | |
699 | if (1 - cosTheta) > 0.0001 then | |
700 | local theta = ACOS(cosTheta) | |
701 | local invSinTheta = 1 / SIN(theta) | |
702 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
703 | finishInterp = SIN(t * theta) * invSinTheta | |
704 | else | |
705 | startInterp = 1 - t | |
706 | finishInterp = t | |
707 | end | |
708 | else | |
709 | if (1 + cosTheta) > 0.0001 then | |
710 | local theta = ACOS(-cosTheta) | |
711 | local invSinTheta = 1 / SIN(theta) | |
712 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
713 | finishInterp = SIN(t * theta) * invSinTheta | |
714 | else | |
715 | startInterp = t - 1 | |
716 | finishInterp = t | |
717 | end | |
718 | end | |
719 | 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 | |
720 | end | |
721 | ||
722 | function Clerp(a, b, t) | |
723 | local qa = {QuaternionFromCFrame(a)} | |
724 | local qb = {QuaternionFromCFrame(b)} | |
725 | local ax, ay, az = a.x, a.y, a.z | |
726 | local bx, by, bz = b.x, b.y, b.z | |
727 | local _t = 1 - t | |
728 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
729 | end | |
730 | ||
731 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
732 | local frame = IT("Frame") | |
733 | frame.BackgroundTransparency = TRANSPARENCY | |
734 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
735 | frame.Position = POSITION | |
736 | frame.Size = SIZE | |
737 | frame.BackgroundColor3 = COLOR | |
738 | frame.BorderColor3 = BORDERCOLOR | |
739 | frame.Name = NAME | |
740 | frame.Parent = PARENT | |
741 | return frame | |
742 | end | |
743 | ||
744 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
745 | local label = IT("TextLabel") | |
746 | label.BackgroundTransparency = 1 | |
747 | label.Size = UD2(1, 0, 1, 0) | |
748 | label.Position = UD2(0, 0, 0, 0) | |
749 | label.TextColor3 = TEXTCOLOR | |
750 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
751 | label.TextTransparency = TRANSPARENCY | |
752 | label.FontSize = TEXTFONTSIZE | |
753 | label.Font = TEXTFONT | |
754 | label.BorderSizePixel = BORDERSIZEPIXEL | |
755 | label.TextScaled = false | |
756 | label.Text = TEXT | |
757 | label.Name = NAME | |
758 | label.Parent = PARENT | |
759 | return label | |
760 | end | |
761 | ||
762 | function NoOutlines(PART) | |
763 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
764 | end | |
765 | ||
766 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
767 | local NEWWELD = IT(TYPE) | |
768 | NEWWELD.Part0 = PART0 | |
769 | NEWWELD.Part1 = PART1 | |
770 | NEWWELD.C0 = C0 | |
771 | NEWWELD.C1 = C1 | |
772 | NEWWELD.Parent = PARENT | |
773 | return NEWWELD | |
774 | end | |
775 | ||
776 | local S = IT("Sound") | |
777 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
778 | local NEWSOUND = nil | |
779 | coroutine.resume(coroutine.create(function() | |
780 | NEWSOUND = S:Clone() | |
781 | NEWSOUND.Parent = PARENT | |
782 | NEWSOUND.Volume = VOLUME | |
783 | NEWSOUND.Pitch = PITCH | |
784 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
785 | NEWSOUND:play() | |
786 | if DOESLOOP == true then | |
787 | NEWSOUND.Looped = true | |
788 | else | |
789 | repeat wait(1) until NEWSOUND.Playing == false | |
790 | NEWSOUND:remove() | |
791 | end | |
792 | end)) | |
793 | return NEWSOUND | |
794 | end | |
795 | ||
796 | function CFrameFromTopBack(at, top, back) | |
797 | local right = top:Cross(back) | |
798 | 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) | |
799 | end | |
800 | ||
801 | --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}) | |
802 | function WACKYEFFECT(Table) | |
803 | local TYPE = (Table.EffectType or "Sphere") | |
804 | local SIZE = (Table.Size or VT(1,1,1)) | |
805 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
806 | local TRANSPARENCY = (Table.Transparency or 0) | |
807 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
808 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
809 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
810 | local ROTATION1 = (Table.RotationX or 0) | |
811 | local ROTATION2 = (Table.RotationY or 0) | |
812 | local ROTATION3 = (Table.RotationZ or 0) | |
813 | local MATERIAL = (Table.Material or "Neon") | |
814 | local COLOR = (Table.Color or C3(1,1,1)) | |
815 | local TIME = (Table.Time or 45) | |
816 | local SOUNDID = (Table.SoundID or nil) | |
817 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
818 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
819 | coroutine.resume(coroutine.create(function() | |
820 | local PLAYSSOUND = false | |
821 | local SOUND = nil | |
822 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
823 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
824 | PLAYSSOUND = true | |
825 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
826 | end | |
827 | EFFECT.Color = COLOR | |
828 | local MSH = nil | |
829 | if TYPE == "Sphere" then | |
830 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
831 | elseif TYPE == "Block" or TYPE == "Box" then | |
832 | MSH = IT("BlockMesh",EFFECT) | |
833 | MSH.Scale = SIZE | |
834 | elseif TYPE == "Wave" then | |
835 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
836 | elseif TYPE == "Ring" then | |
837 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
838 | elseif TYPE == "Slash" then | |
839 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
840 | elseif TYPE == "Round Slash" then | |
841 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
842 | elseif TYPE == "Swirl" then | |
843 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
844 | elseif TYPE == "Skull" then | |
845 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
846 | elseif TYPE == "Crystal" then | |
847 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
848 | elseif TYPE == "Ice" then | |
849 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1778999", "", SIZE, VT(0,0,0)) | |
850 | end | |
851 | if MSH ~= nil then | |
852 | local MOVESPEED = nil | |
853 | if MOVEDIRECTION ~= nil then | |
854 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
855 | end | |
856 | local GROWTH = SIZE - ENDSIZE | |
857 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
858 | if TYPE == "Block" then | |
859 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
860 | else | |
861 | EFFECT.CFrame = CFRAME | |
862 | end | |
863 | for LOOP = 1, TIME+1 do | |
864 | Swait() | |
865 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
866 | if TYPE == "Wave" then | |
867 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
868 | end | |
869 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
870 | if TYPE == "Block" then | |
871 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
872 | else | |
873 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
874 | end | |
875 | if MOVEDIRECTION ~= nil then | |
876 | local ORI = EFFECT.Orientation | |
877 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
878 | EFFECT.Orientation = ORI | |
879 | end | |
880 | end | |
881 | if PLAYSSOUND == false then | |
882 | EFFECT:remove() | |
883 | else | |
884 | repeat Swait() until SOUND.Playing == false | |
885 | EFFECT:remove() | |
886 | end | |
887 | else | |
888 | if PLAYSSOUND == false then | |
889 | EFFECT:remove() | |
890 | else | |
891 | repeat Swait() until SOUND.Playing == false | |
892 | EFFECT:remove() | |
893 | end | |
894 | end | |
895 | end)) | |
896 | end | |
897 | ||
898 | function MakeForm(PART,TYPE) | |
899 | if TYPE == "Cyl" then | |
900 | local MSH = IT("CylinderMesh",PART) | |
901 | elseif TYPE == "Ball" then | |
902 | local MSH = IT("SpecialMesh",PART) | |
903 | MSH.MeshType = "Sphere" | |
904 | elseif TYPE == "Wedge" then | |
905 | local MSH = IT("SpecialMesh",PART) | |
906 | MSH.MeshType = "Wedge" | |
907 | elseif TYPE == "Head" then | |
908 | local MSH = IT("SpecialMesh",PART) | |
909 | MSH.Scale = VT(1.25,1.25,1.25) | |
910 | end | |
911 | end | |
912 | ||
913 | Debris = game:GetService("Debris") | |
914 | ||
915 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
916 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
917 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
918 | end | |
919 | ||
920 | function CharacterFade(COLOR,TIMER) | |
921 | coroutine.resume(coroutine.create(function() | |
922 | local FADE = IT("Model",Effects) | |
923 | FADE.Name = "FadingEffect" | |
924 | for _, c in pairs(Character:GetChildren()) do | |
925 | if c.ClassName == "Part" and c ~= RootPart then | |
926 | local FADER = c:Clone() | |
927 | FADER.Color = COLOR | |
928 | FADER.CFrame = c.CFrame | |
929 | FADER.Parent = FADE | |
930 | FADER.Anchored = true | |
931 | FADER.Transparency = 0.25+c.Transparency | |
932 | FADER:BreakJoints() | |
933 | FADER.Material = "Neon" | |
934 | if FADER.Name == "Head" then | |
935 | FADER:ClearAllChildren() | |
936 | FADER.Size = VT(1,1,1) | |
937 | end | |
938 | FADER.CanCollide = false | |
939 | end | |
940 | end | |
941 | local TRANS = 0.75/TIMER | |
942 | for i = 1, TIMER do | |
943 | Swait() | |
944 | for _, c in pairs(FADE:GetChildren()) do | |
945 | if c.ClassName == "Part" then | |
946 | c.Transparency = c.Transparency + TRANS | |
947 | end | |
948 | end | |
949 | end | |
950 | FADE:remove() | |
951 | end)) | |
952 | end | |
953 | ||
954 | ||
955 | --//=================================\\ | |
956 | --|| WEAPON CREATION | |
957 | --\\=================================// | |
958 | ||
959 | local FACE = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Face mask", VT(1.001,1.001,1.001),false) | |
960 | CreateWeldOrSnapOrMotor("Weld", FACE, Head, FACE, CF(0.02,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
961 | MakeForm(FACE,"Head") | |
962 | FACE.Color = C3(0,0,0) | |
963 | Head.Color = C3(0,0,0) | |
964 | ||
965 | ||
966 | ||
967 | local EYE = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0.1,0.25,0.2),false) | |
968 | CreateWeldOrSnapOrMotor("Weld", EYE, Head, EYE, CF(0.15,0.25,-0.53) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0)) | |
969 | MakeForm(EYE,"Ball") | |
970 | --local Eye2 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye2", VT(0.1,0.25,0.2),false) | |
971 | local Eye2 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye2", VT(0.1,0.25,0.2),false) | |
972 | MakeForm(Eye2,"Ball") | |
973 | EYE.Color = C3(0,1,0) | |
974 | Eye2.Color = C3(0,1,0) | |
975 | LeftArm.Color = C3(0,0,0) | |
976 | RightArm.Color = C3(0,0,0) | |
977 | CreateWeldOrSnapOrMotor("Weld", Eye2, Head, Eye2, CF(-0.15,0.25,-0.53) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0)) | |
978 | ||
979 | ||
980 | ||
981 | function Blink() | |
982 | coroutine.resume(coroutine.create(function() | |
983 | if EYE ~= nil then | |
984 | for i = 1, 5 do | |
985 | Swait() | |
986 | EYE.Mesh.Scale = EYE.Mesh.Scale - VT(0,0.2,0) | |
987 | Eye2.Mesh.Scale = Eye2.Mesh.Scale - VT(0,0.2,0) | |
988 | end | |
989 | for i = 1, 7 do | |
990 | Swait() | |
991 | EYE.Mesh.Scale = EYE.Mesh.Scale + VT(0,0.2,0) | |
992 | Eye2.Mesh.Scale = Eye2.Mesh.Scale + VT(0,0.2,0) | |
993 | end | |
994 | EYE.Mesh.Scale = VT(0.1,0.25,0.2) | |
995 | Eye2.Mesh.Scale = VT(0.1,0.25,0.2) | |
996 | end | |
997 | end)) | |
998 | end | |
999 | ||
1000 | function Blink2() | |
1001 | coroutine.resume(coroutine.create(function() | |
1002 | if EYE ~= nil then | |
1003 | for i = 2, 12 do | |
1004 | Swait() | |
1005 | EYE.Transparency = 1 | |
1006 | Eye2.Transparency = 1 | |
1007 | end | |
1008 | EYE.Transparency = 0 | |
1009 | Eye2.Transparency = 0 | |
1010 | end | |
1011 | end)) | |
1012 | end | |
1013 | ||
1014 | ||
1015 | local top = Instance.new("Shirt") | |
1016 | top.ShirtTemplate = "rbxassetid://269003887" | |
1017 | top.Parent = Character | |
1018 | top.Name = "Cloth" | |
1019 | local bottom = Instance.new("Pants") | |
1020 | bottom.PantsTemplate = "rbxassetid://268832352" | |
1021 | bottom.Parent = Character | |
1022 | bottom.Name = "Cloth" | |
1023 | local BATON = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Baton", VT(1, 0.8, 3),false) | |
1024 | CreateMesh("SpecialMesh", BATON, "FileMesh", "11820238", "", VT(1,1,1), VT(0,0,0)) | |
1025 | local BATONWELD = CreateWeldOrSnapOrMotor("Weld", BATON, Torso, BATON, CF(1,-0.8,0.75) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1026 | local A = IT("Attachment",BATON) | |
1027 | local B = IT("Attachment",BATON) | |
1028 | B.Position = VT(0,0,-0.4) | |
1029 | A.Position = VT(0,0,1) | |
1030 | local Trail = IT("Trail",BATON) | |
1031 | Trail.Attachment0 = A | |
1032 | Trail.Attachment1 = B | |
1033 | Trail.Lifetime = 0.1 | |
1034 | Trail.Color = ColorSequence.new(C3(0,0,0)) | |
1035 | Trail.Transparency = NumberSequence.new(0, 1) | |
1036 | Trail.Enabled = false | |
1037 | Trail.Texture = "http://www.roblox.com/asset/?id=1831500579" | |
1038 | local GUN = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gun", VT(1, 0.8, 3),false) | |
1039 | CreateMesh("SpecialMesh", GUN, "FileMesh", "623102664", "623102879", VT(0.01, 0.01, 0.01), VT(0,0,0)) | |
1040 | local GUNWELD = CreateWeldOrSnapOrMotor("Weld", GUN, Torso, GUN, CF(-1.1,-1.1,0) * ANGLES(RAD(0), RAD(90), RAD(-90)), CF(0, 0, 0)) | |
1041 | for i,v in pairs(Character:children()) do | |
1042 | if v:IsA("Accessory") then | |
1043 | v:Destroy() | |
1044 | end | |
1045 | end | |
1046 | ||
1047 | local SHOTGUN = CreatePart(3, Shotgun, "Neon", 0, 0, "Really black", "Gun", VT(1, 0.8, 3),false) | |
1048 | CreateMesh("SpecialMesh", SHOTGUN, "FileMesh", "94219391", "94219470", VT(0.7, 0.7, 0.8), VT(0,0,0)) | |
1049 | local SHOTGUNWELD = CreateWeldOrSnapOrMotor("Weld", SHOTGUN, Torso, SHOTGUN, CF(-0.0,0.5,0.9) * ANGLES(RAD(90), RAD(110), RAD(167)), CF(0, 0, 0)) | |
1050 | ||
1051 | local GUN2 = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gun2", VT(1, 0.8, 3),false) | |
1052 | CreateMesh("SpecialMesh", GUN2, "FileMesh", "943656807", "943658742", VT(0.2, 0.2, 0.2), VT(0,0,0)) | |
1053 | --local GUN2WELD = CreateWeldOrSnapOrMotor("Weld", GUN2, Torso, GUN2, CF(-0.5,0.7,-0.4) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1054 | local GUN2WELD = CreateWeldOrSnapOrMotor("Weld", GUN2, Torso, GUN2, CF(-0.5,0.7,-0.537656) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1055 | ||
1056 | New = function(Object, Parent, Name, Data) | |
1057 | local Object = Instance.new(Object) | |
1058 | for Index, Value in pairs(Data or {}) do | |
1059 | Object[Index] = Value | |
1060 | end | |
1061 | Object.Parent = Parent | |
1062 | Object.Name = Name | |
1063 | return Object | |
1064 | end | |
1065 | ||
1066 | ||
1067 | local PoliceHat = New("Part",Character,"PoliceHat",{BrickColor = BrickColor.new("Really black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(2, 0.400000006, 1),CFrame = CFrame.new(18.3999939, 1.20000005, -23.1000061, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Weld,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
1068 | local Mesh = New("SpecialMesh",PoliceHat,"Mesh",{Scale = Vector3.new(1.10000002, 1.20000005, 1.10000002),MeshId = "rbxassetid://1028788",TextureId = "rbxassetid://152240477",MeshType = Enum.MeshType.FileMesh,}) | |
1069 | local Weld = New("ManualWeld",PoliceHat,"Weld",{Part0 = PoliceHat,Part1 = Head,C1 = CFrame.new(0, 0.700000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
1070 | ||
1071 | for _, c in pairs(Weapon:GetChildren()) do | |
1072 | if c.ClassName == "Part" then | |
1073 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1074 | end | |
1075 | end | |
1076 | ||
1077 | Weapon.Parent = Character | |
1078 | ||
1079 | for _, c in pairs(Shotgun:GetChildren()) do | |
1080 | if c.ClassName == "Part" then | |
1081 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1082 | end | |
1083 | end | |
1084 | ||
1085 | Shotgun.Parent = nil | |
1086 | ||
1087 | local SKILLTEXTCOLOR = C3(1,1,1) | |
1088 | local SKILLFONT = "Legacy" | |
1089 | local SKILLTEXTSIZE = 4 | |
1090 | ||
1091 | local ATTACKSGOODCOP = {"Mouse - Warning","Q - Baton Stun","E - Cuffs"} | |
1092 | local ATTACKSBADCOP = {"Mouse - Silence","Q - Baton Breaker","E - The Right to remain silent"} | |
1093 | local GOODUI = {} | |
1094 | local BADUI = {} | |
1095 | ||
1096 | for i = 1, #ATTACKSGOODCOP do | |
1097 | 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") | |
1098 | local SKILLTEXT = CreateLabel(SKILLFRAME, "["..ATTACKSGOODCOP[i].."]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Skill text") | |
1099 | SKILLTEXT.TextXAlignment = "Right" | |
1100 | table.insert(GOODUI,SKILLTEXT) | |
1101 | end | |
1102 | ||
1103 | for i = 1, #ATTACKSBADCOP do | |
1104 | 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") | |
1105 | local SKILLTEXT = CreateLabel(SKILLFRAME, "["..ATTACKSBADCOP[i].."]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Skill text") | |
1106 | SKILLTEXT.TextXAlignment = "Left" | |
1107 | table.insert(BADUI,SKILLTEXT) | |
1108 | end | |
1109 | ||
1110 | 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") | |
1111 | local SKILLTEXT = CreateLabel(SKILLFRAME, "[F,G - Switch]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Skill text") | |
1112 | ||
1113 | ||
1114 | --CHAT-- | |
1115 | function Chatter(Text,Timer) | |
1116 | local chat = coroutine.wrap(function() | |
1117 | if Character:FindFirstChild("SpeechBoard")~= nil then | |
1118 | Character:FindFirstChild("SpeechBoard"):destroy() | |
1119 | end | |
1120 | local naeeym2 = IT("BillboardGui",Character) | |
1121 | naeeym2.Size = UD2(0,100,0,40) | |
1122 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
1123 | naeeym2.Adornee = Character.Head | |
1124 | naeeym2.Name = "SpeechBoard" | |
1125 | naeeym2.AlwaysOnTop = true | |
1126 | local tecks2 = IT("TextLabel",naeeym2) | |
1127 | tecks2.BackgroundTransparency = 1 | |
1128 | tecks2.BorderSizePixel = 0 | |
1129 | tecks2.Text = "" | |
1130 | tecks2.Font = "Legacy" | |
1131 | tecks2.TextSize = 15 | |
1132 | tecks2.TextStrokeTransparency = 0 | |
1133 | tecks2.TextColor3 = EYE.Color | |
1134 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
1135 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1136 | for i = 1,string.len(Text),1 do | |
1137 | CreateSound(418252437, Head, 3, MRANDOM(8,12)/15, false) | |
1138 | tecks2.Text = string.sub(Text,1,i) | |
1139 | wait(Timer) | |
1140 | end | |
1141 | wait(1) | |
1142 | naeeym2:Destroy() | |
1143 | end) | |
1144 | chat() | |
1145 | end | |
1146 | ||
1147 | function ChatterPixel(Text,Timer,font) | |
1148 | local chat = coroutine.wrap(function() | |
1149 | if Character:FindFirstChild("SpeechBoard")~= nil then | |
1150 | Character:FindFirstChild("SpeechBoard"):destroy() | |
1151 | end | |
1152 | local naeeym2 = IT("BillboardGui",Character) | |
1153 | naeeym2.Size = UD2(0,100,0,40) | |
1154 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
1155 | naeeym2.Adornee = Character.Head | |
1156 | naeeym2.Name = "SpeechBoard" | |
1157 | naeeym2.AlwaysOnTop = true | |
1158 | local tecks2 = IT("TextLabel",naeeym2) | |
1159 | tecks2.BackgroundTransparency = 1 | |
1160 | tecks2.BorderSizePixel = 0 | |
1161 | tecks2.Text = "" | |
1162 | tecks2.Font = font | |
1163 | tecks2.TextSize = 15 | |
1164 | tecks2.TextStrokeTransparency = 0 | |
1165 | tecks2.TextColor3 = EYE.Color | |
1166 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
1167 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1168 | for i = 1,string.len(Text),1 do | |
1169 | CreateSound(2583830330, Head, 3, MRANDOM(8,12)/15, false) | |
1170 | tecks2.Text = string.sub(Text,1,i) | |
1171 | wait(Timer) | |
1172 | end | |
1173 | wait(1) | |
1174 | naeeym2:Destroy() | |
1175 | end) | |
1176 | chat() | |
1177 | end | |
1178 | --CHAT END-- | |
1179 | --//=================================\\ | |
1180 | --|| DAMAGING | |
1181 | --\\=================================// | |
1182 | ||
1183 | function ApplyDamage(Humanoid,Damage) | |
1184 | Damage = Damage * DAMAGEMULTIPLIER | |
1185 | local DEAD = false | |
1186 | if Humanoid.Health < 2000 then | |
1187 | if Humanoid.Health - Damage > 0 then | |
1188 | Humanoid.Health = Humanoid.Health - Damage | |
1189 | else | |
1190 | DEAD = true | |
1191 | Humanoid.Parent:BreakJoints() | |
1192 | end | |
1193 | else | |
1194 | DEAD = true | |
1195 | Humanoid.Parent:BreakJoints() | |
1196 | end | |
1197 | if DEAD == true then | |
1198 | if MODE == "GoodCop" then | |
1199 | local TEXTS = {"I'm simply laying down the law.","You should've taken account of the law.","Another criminal down."} | |
1200 | Chatter(TEXTS[MRANDOM(1,#TEXTS)],0) | |
1201 | elseif MODE == "BadCop" then | |
1202 | local TEXTS = {"Criminals should leave this world!","You should've taken account of the law!","And stay down!"} | |
1203 | Chatter(TEXTS[MRANDOM(1,#TEXTS)],0) | |
1204 | elseif MODE == "PixelCop" then | |
1205 | local TEXTS = {"Get pixelated bud."} | |
1206 | ChatterPixel(TEXTS[MRANDOM(1,#TEXTS)],0,"Arcade") | |
1207 | end | |
1208 | end | |
1209 | end | |
1210 | ||
1211 | --//=================================\\ | |
1212 | --|| TRANSFORMATIONS | |
1213 | --\\=================================// | |
1214 | ||
1215 | function Switch() | |
1216 | ATTACK = true | |
1217 | Rooted = true | |
1218 | if MODE == "GoodCop" then | |
1219 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1220 | Swait() | |
1221 | 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) | |
1222 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1223 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1224 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1225 | 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) | |
1226 | 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) | |
1227 | end | |
1228 | for i=0, 1, 0.1 / Animation_Speed do | |
1229 | Swait() | |
1230 | 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) | |
1231 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1232 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1233 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1234 | 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) | |
1235 | 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) | |
1236 | end | |
1237 | CreateSound(363808674, Torso, 6, 1, false) | |
1238 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1239 | Swait() | |
1240 | 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) | |
1241 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed) | |
1242 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1243 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1244 | 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) | |
1245 | 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) | |
1246 | end | |
1247 | CreateSound(363808674, Torso, 6, 1, false) | |
1248 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1249 | Swait() | |
1250 | 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) | |
1251 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed) | |
1252 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1253 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1254 | 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) | |
1255 | 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) | |
1256 | end | |
1257 | SONG = 393346130 | |
1258 | sick.TimePosition = 0 | |
1259 | MakeForm(EYE,"Block") | |
1260 | EYE.Color = C3(1,0,0) | |
1261 | Eye2.Color = C3(1,0,0) | |
1262 | MODE = "BadCop" | |
1263 | elseif MODE == "BadCop" then | |
1264 | CreateSound(147722227, Torso, 4, 1.3, false) | |
1265 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1266 | Swait() | |
1267 | 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) | |
1268 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1269 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1270 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1271 | 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) | |
1272 | 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) | |
1273 | end | |
1274 | SONG = 259554386 | |
1275 | MakeForm(EYE,"Ball") | |
1276 | EYE.Color = C3(0,1,0) | |
1277 | Eye2.Color = C3(0,1,0) | |
1278 | MODE = "GoodCop" | |
1279 | end | |
1280 | ATTACK = false | |
1281 | Rooted = false | |
1282 | end | |
1283 | ||
1284 | ||
1285 | ||
1286 | ||
1287 | function Switch2() | |
1288 | ATTACK = true | |
1289 | Rooted = true | |
1290 | if MODE == "GoodCop" then | |
1291 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1292 | Swait() | |
1293 | 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) | |
1294 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1295 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1296 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1297 | 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) | |
1298 | 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) | |
1299 | end | |
1300 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1301 | Swait() | |
1302 | 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) | |
1303 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1304 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1305 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(0), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1306 | 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) | |
1307 | 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) | |
1308 | end | |
1309 | CreateSound(363808674, Torso, 10, 1, false) | |
1310 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1311 | Swait() | |
1312 | 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) | |
1313 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed) | |
1314 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1315 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1316 | 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) | |
1317 | 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) | |
1318 | end | |
1319 | CreateSound(363808674, Torso, 10, 1, false) | |
1320 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1321 | Swait() | |
1322 | 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) | |
1323 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed) | |
1324 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1325 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1326 | 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) | |
1327 | 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) | |
1328 | end | |
1329 | SONG = 147488802 | |
1330 | sick.TimePosition = 0 | |
1331 | MakeForm(EYE,"Block") | |
1332 | MakeForm(Eye2,"Block") | |
1333 | EYE.Color = BRICKC"Steel blue".Color | |
1334 | Eye2.Color = BRICKC"Steel blue".Color | |
1335 | MODE = "PixelCop" | |
1336 | elseif MODE == "PixelCop" then | |
1337 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1338 | Swait() | |
1339 | 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) | |
1340 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1341 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1342 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1343 | 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) | |
1344 | 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) | |
1345 | end | |
1346 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1347 | Swait() | |
1348 | 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) | |
1349 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1350 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1351 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(0), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1352 | 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) | |
1353 | 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) | |
1354 | end | |
1355 | CreateSound(363808674, Torso, 10, 1, false) | |
1356 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1357 | Swait() | |
1358 | 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) | |
1359 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed) | |
1360 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1361 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1362 | 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) | |
1363 | 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) | |
1364 | end | |
1365 | CreateSound(363808674, Torso, 10, 1, false) | |
1366 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1367 | Swait() | |
1368 | 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) | |
1369 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed) | |
1370 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1371 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1372 | 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) | |
1373 | 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) | |
1374 | end | |
1375 | SONG = 259554386 | |
1376 | MakeForm(EYE,"Ball") | |
1377 | EYE.Color = C3(0,1,0) | |
1378 | Eye2.Color = C3(0,1,0) | |
1379 | MODE = "GoodCop" | |
1380 | end | |
1381 | ATTACK = false | |
1382 | Rooted = false | |
1383 | end | |
1384 | ||
1385 | ||
1386 | function Switch3() | |
1387 | ATTACK = true | |
1388 | Rooted = true | |
1389 | if MODE == "GoodCop" then | |
1390 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1391 | Swait() | |
1392 | 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) | |
1393 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1394 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1395 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1396 | 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) | |
1397 | 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) | |
1398 | end | |
1399 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1400 | Swait() | |
1401 | 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) | |
1402 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1403 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1404 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(0), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1405 | 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) | |
1406 | 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) | |
1407 | end | |
1408 | CreateSound(363808674, Torso, 10, 1, false) | |
1409 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1410 | Swait() | |
1411 | 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) | |
1412 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed) | |
1413 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1414 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1415 | 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) | |
1416 | 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) | |
1417 | end | |
1418 | CreateSound(363808674, Torso, 10, 1, false) | |
1419 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1420 | Swait() | |
1421 | 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) | |
1422 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed) | |
1423 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1424 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1425 | 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) | |
1426 | 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) | |
1427 | end | |
1428 | CreateSound(363808674, Torso, 6, 1, false) | |
1429 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1430 | Swait() | |
1431 | 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) | |
1432 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed) | |
1433 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-55), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1434 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1435 | 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) | |
1436 | 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) | |
1437 | end | |
1438 | Shotgun.Parent = Character | |
1439 | SHOTGUNWELD.Part0 = RightArm | |
1440 | SHOTGUNWELD.C0 = CF(-0.2,-1.8,0.1) * ANGLES(RAD(90), RAD(174), RAD(179)) | |
1441 | SONG = 1755770760 | |
1442 | EYE.Color = C3(1,0,0) | |
1443 | Eye2.Color = C3(0,1,0) | |
1444 | MODE = "Shotgun" | |
1445 | elseif MODE == "Shotgun" then | |
1446 | CreateSound(147722227, Torso, 4, 1.3, false) | |
1447 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1448 | Swait() | |
1449 | 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) | |
1450 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed) | |
1451 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-55), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1452 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1453 | 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) | |
1454 | 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) | |
1455 | end | |
1456 | SHOTGUNWELD.Part0 = Torso | |
1457 | SHOTGUNWELD.C0 = CF(-0.0,0.5,0.9) * ANGLES(RAD(90), RAD(110), RAD(167)) | |
1458 | SONG = 259554386 | |
1459 | EYE.Color = C3(0,1,0) | |
1460 | Eye2.Color = C3(0,1,0) | |
1461 | Shotgun.Parent = nil | |
1462 | MODE = "GoodCop" | |
1463 | end | |
1464 | ATTACK = false | |
1465 | Rooted = false | |
1466 | end | |
1467 | ||
1468 | ||
1469 | function Switch4() | |
1470 | ATTACK = true | |
1471 | Rooted = true | |
1472 | if MODE == "GoodCop" then | |
1473 | for i=0, 0.9, 0.1 / Animation_Speed do | |
1474 | Swait() | |
1475 | WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = VT(3,3,3), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.25, CFrame = LeftArm.CFrame*CF(0,-1.45,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Royal purple").Color, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6}) | |
1476 | WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = VT(3,3,3), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-1.45,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Magenta").Color, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6}) | |
1477 | --[[ RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.15 - 0.03 * SIN(SINE / 12), -0.5) * ANGLES(RAD(15), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1478 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.15 - 0.03 * SIN(SINE / 12), -0.5) * ANGLES(RAD(15), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed)]]-- | |
1479 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * COS(SINE / 24), -1 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
1480 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.2, 0.2 - 0.1 * COS(SINE / 24), -0.4 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1481 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1 + 0.1 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed*3) | |
1482 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1483 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1484 | ||
1485 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1486 | end | |
1487 | for i=0, 0.4, 0.1 / Animation_Speed do | |
1488 | Swait() | |
1489 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0*CF(0,-0.01 + 0.02 * math.cos(SINE / 32),0 + 0.05 * math.cos(SINE / 32))*ANGLES(math.rad(1 - 2 * math.cos(SINE / 32)),math.rad(0),math.rad(-10 + 3 * math.cos(SINE / 42))), 0.15 / Animation_Speed) | |
1490 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
1491 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.9, 0) * ANGLES(RAD(165), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
1492 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.9, 0) * ANGLES(RAD(165), RAD(0), RAD(17.5)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
1493 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-25), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1494 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-25), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1495 | end | |
1496 | -- WACKYEFFECT({TIME = 30 ,EffectType = "Ice", Size = VT(1,2,1), Size2 = VT(8,14,8), Transparency = 0, Transparency2 = 0.1, CFrame = Torso.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Royal purple").Color, SoundID = 200632136, SoundPitch = 1.15, SoundVolume = 15}) | |
1497 | WACKYEFFECT({Time = 50, EffectType = "Crystal", Size = VT(30,30,30)*1.4, Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,1), SoundID = 289556450, SoundPitch = 0.96, SoundVolume = 10}) | |
1498 | WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = VT(7,7,7), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-1.45,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Magenta").Color, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6}) | |
1499 | for i=0, 0.4, 0.1 / Animation_Speed do | |
1500 | Swait() | |
1501 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0*CF(0,-0.01 + 0.02 * math.cos(SINE / 32),0 + 0.05 * math.cos(SINE / 32))*ANGLES(math.rad(1 - 2 * math.cos(SINE / 32)),math.rad(0),math.rad(-10 + 3 * math.cos(SINE / 42))), 0.15 / Animation_Speed) | |
1502 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
1503 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.9, 0) * ANGLES(RAD(165), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
1504 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.9, 0) * ANGLES(RAD(165), RAD(0), RAD(17.5)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
1505 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-25), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1506 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-25), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1507 | end | |
1508 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1509 | Swait() | |
1510 | --[[ RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * ANGLES(RAD(-45 - 1 * COS(SINE / 1)), RAD(0 + 1 * COS(SINE / 1)), RAD(0 - 1 * COS(SINE / 1))), 1 / Animation_Speed) | |
1511 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1512 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40 - 1 * COS(SINE / 1)), RAD(0), RAD(25 + 1 * COS(SINE / 1))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1513 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40 + 1 * COS(SINE / 1)), RAD(0), RAD(-35 - 1 * COS(SINE / 1))) * LEFTSHOULDERC0, 1 / Animation_Speed) ]]-- | |
1514 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1515 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1516 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(-45), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1517 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(-45), RAD(0), RAD(-30)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1518 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-25), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1519 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-25), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1520 | end | |
1521 | CreateSound(206083252,Torso,35,1,false) | |
1522 | CreateSound(206083252,Torso,35,1,false) | |
1523 | WACKYEFFECT({TIME = 30 ,EffectType = "Block", Size = VT(0,0,0), Size2 = VT(15,15,15), Transparency = 0, Transparency2 = 0.1, CFrame = Torso.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Royal purple").Color, SoundID = nil, SoundPitch = 1, SoundVolume = 25}) | |
1524 | WACKYEFFECT({TIME = 30 ,EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(15,15,15), Transparency = 0, Transparency2 = 0.1, CFrame = Torso.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Magenta").Color, SoundID = nil, SoundPitch = 1.15, SoundVolume = 15}) | |
1525 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
1526 | local POSITION = CF(HITPOS)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0,1,0).p | |
1527 | WACKYEFFECT({Time = 75 ,EffectType = "Sphere", Size = VT(5,150,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(POSITION)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Royal purple").Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1528 | WACKYEFFECT({Time = 75 ,EffectType = "Sphere", Size = VT(5,150,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(POSITION)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Magenta").Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1529 | WACKYEFFECT({Time = 75 ,EffectType = "Sphere", Size = VT(5,150,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(POSITION)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Royal purple").Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1530 | WACKYEFFECT({Time = 75 ,EffectType = "Sphere", Size = VT(5,150,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(POSITION)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Magenta").Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1531 | WACKYEFFECT({Time = 75 ,EffectType = "Sphere", Size = VT(5,150,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(POSITION)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Royal purple").Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1532 | WACKYEFFECT({Time = 75 ,EffectType = "Sphere", Size = VT(5,150,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(POSITION)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Magenta").Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1533 | WACKYEFFECT({Time = 75 ,EffectType = "Sphere", Size = VT(5,150,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(POSITION)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Royal purple").Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1534 | WACKYEFFECT({Time = 75 ,EffectType = "Sphere", Size = VT(5,150,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(POSITION)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Magenta").Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1535 | WACKYEFFECT({Time = 75 ,EffectType = "Sphere", Size = VT(5,150,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(POSITION)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Royal purple").Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1536 | WACKYEFFECT({Time = 75 ,EffectType = "Sphere", Size = VT(5,150,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(POSITION)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Magenta").Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1537 | WACKYEFFECT({Time = 75 ,EffectType = "Sphere", Size = VT(5,150,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(POSITION)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Royal purple").Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1538 | WACKYEFFECT({Time = 75 ,EffectType = "Sphere", Size = VT(5,150,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(POSITION)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Magenta").Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1539 | SONG = 994970477 | |
1540 | EYE.Color = C3(1,0,1) | |
1541 | Eye2.Color = C3(1,0,1) | |
1542 | MODE = "VoidCop" | |
1543 | elseif MODE == "VoidCop" then | |
1544 | for i=0, 0.35, 0.1 / Animation_Speed do | |
1545 | Swait() | |
1546 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1547 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(75), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1548 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(75), RAD(0), RAD(-45)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1549 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-25), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1550 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-25), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1551 | end | |
1552 | CreateSound(1489705211,LeftArm,MRANDOM(7,8),MRANDOM(8,13)/12,false) | |
1553 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1554 | Swait() | |
1555 | WACKYEFFECT({EffectType = "Box", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1556 | WACKYEFFECT({EffectType = "Box", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1557 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(30), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1558 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(75), RAD(0), RAD(-70)) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.6 / Animation_Speed) | |
1559 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(75), RAD(0), RAD(70)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1560 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(30), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1561 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(30), RAD(-75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1562 | end | |
1563 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1564 | Swait() | |
1565 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(30), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1566 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.2, 0.5, -0.5) * ANGLES(RAD(75), RAD(0), RAD(-70)) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.6 / Animation_Speed) | |
1567 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.2, 0.5, -0.5) * ANGLES(RAD(75), RAD(0), RAD(70)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1568 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(30), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1569 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(30), RAD(-75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1570 | end | |
1571 | WACKYEFFECT({Time = 40,EffectType = "Block", Size = VT(0,0,0), Size2 = VT(25,25,25), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,0,-0.5), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,1), SoundID = 260435136, SoundPitch = 0.9, SoundVolume = 10}) | |
1572 | WACKYEFFECT({Time = 80,EffectType = "Block", Size = VT(0,0,0), Size2 = VT(12.5,12.5,12.5), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,0,-0.5), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1573 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1574 | Swait() | |
1575 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1576 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(75), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1577 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(75), RAD(0), RAD(-45)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1578 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-25), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1579 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-25), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1580 | end | |
1581 | SONG = 259554386 | |
1582 | EYE.Color = C3(0,1,0) | |
1583 | Eye2.Color = C3(0,1,0) | |
1584 | Shotgun.Parent = nil | |
1585 | MODE = "GoodCop" | |
1586 | end | |
1587 | ATTACK = false | |
1588 | Rooted = false | |
1589 | end | |
1590 | ||
1591 | ||
1592 | bat = Instance.new("Part", Character) | |
1593 | bat.Size = Vector3.new(1, 1, 5) | |
1594 | bat.CanCollide = false | |
1595 | bat:BreakJoints() | |
1596 | weld = Instance.new("Weld", bat) | |
1597 | weld.Part0 = RightArm | |
1598 | weld.Part1 = bat | |
1599 | weld.C0 = weld.C0 * CFrame.Angles(0,3.15,0) * CFrame.new(0,-0.95,1.9) | |
1600 | mesh = Instance.new("SpecialMesh", bat) | |
1601 | mesh.MeshId = "http://www.roblox.com/asset/?id=" | |
1602 | mesh.TextureId = "http://www.roblox.com/asset/?id=" | |
1603 | mesh.Scale = Vector3.new(2,2,2) | |
1604 | ||
1605 | function Switch5() | |
1606 | ATTACK = true | |
1607 | Rooted = true | |
1608 | if MODE == "GoodCop" then | |
1609 | CreateSound(1488973826, Torso, 500, 1, false) | |
1610 | for i=0.1, 0.4, 0.1 / Animation_Speed do | |
1611 | Swait() | |
1612 | 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) | |
1613 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1614 | ||
1615 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1616 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1617 | 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) | |
1618 | 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) | |
1619 | end | |
1620 | mesh.MeshId = "http://www.roblox.com/asset/?id=54983181" | |
1621 | mesh.TextureId = "http://www.roblox.com/asset/?id=54983107" | |
1622 | SONG = 568315166 | |
1623 | bottom.PantsTemplate = "rbxassetid://814541664" | |
1624 | top.ShirtTemplate = "rbxassetid://2425620164" | |
1625 | EYE.Color = BRICKC"Dark green".Color | |
1626 | Eye2.Color = BRICKC"Dark green".Color | |
1627 | MODE = "BIGSMOKE" | |
1628 | elseif MODE == "BIGSMOKE" then | |
1629 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1630 | Swait() | |
1631 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-50))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1632 | --LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 2.5, 0.5) * ANGLES(RAD(45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1633 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1634 | end | |
1635 | bottom.PantsTemplate = "rbxassetid://268832352" | |
1636 | top.ShirtTemplate = "rbxassetid://269003887" | |
1637 | SONG = 259554386 | |
1638 | MakeForm(EYE,"Ball") | |
1639 | EYE.Color = C3(0,1,0) | |
1640 | Eye2.Color = C3(0,1,0) | |
1641 | mesh.MeshId = "http://www.roblox.com/asset/?id=" | |
1642 | mesh.TextureId = "http://www.roblox.com/asset/?id=" | |
1643 | MODE = "GoodCop" | |
1644 | end | |
1645 | ATTACK = false | |
1646 | Rooted = false | |
1647 | end | |
1648 | --//=================================\\ | |
1649 | --|| ATTACK GOOD COP | |
1650 | --\\=================================// | |
1651 | ||
1652 | function Warning() | |
1653 | local TARGET = Mouse.Target | |
1654 | if TARGET ~= nil then | |
1655 | if TARGET.Parent:FindFirstChildOfClass("Humanoid") then | |
1656 | local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid") | |
1657 | local LEG = TARGET.Parent:FindFirstChild("Right Leg") or TARGET.Parent:FindFirstChild("RightLowerLeg") | |
1658 | if LEG and HUM.Health > 0 then | |
1659 | Speed = 6 | |
1660 | ATTACK = true | |
1661 | Rooted = false | |
1662 | local GYRO = IT("BodyGyro",RootPart) | |
1663 | GYRO.D = 2 | |
1664 | GYRO.P = 2000 | |
1665 | GYRO.MaxTorque = VT(0,4000000,0) | |
1666 | coroutine.resume(coroutine.create(function() | |
1667 | repeat | |
1668 | Swait() | |
1669 | GYRO.CFrame = CF(RootPart.Position,LEG.Position) | |
1670 | until ATTACK == false | |
1671 | GYRO:Remove() | |
1672 | end)) | |
1673 | local HIT,POS = CastProperRay(RootPart.Position,LEG.Position,1000,Character) | |
1674 | local PASS = true | |
1675 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1676 | Swait() | |
1677 | HIT,POS = CastProperRay(RootPart.Position,LEG.Position,1000,Character) | |
1678 | if HIT == nil then | |
1679 | PASS = false | |
1680 | break | |
1681 | else | |
1682 | if HIT.Parent ~= TARGET.Parent then | |
1683 | PASS = false | |
1684 | break | |
1685 | end | |
1686 | end | |
1687 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1688 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed) | |
1689 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1690 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1691 | 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) | |
1692 | 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) | |
1693 | end | |
1694 | CreateSound(147722227, GUN, 6, 1.3, false) | |
1695 | GUNWELD.Part0 = LeftArm | |
1696 | GUNWELD.C0 = CF(0,-1.5,0) * ANGLES(RAD(0), RAD(90), RAD(-90)) | |
1697 | for i=0, 0.4, 0.1 / Animation_Speed do | |
1698 | Swait() | |
1699 | HIT,POS = CastProperRay(RootPart.Position,LEG.Position,1000,Character) | |
1700 | if HIT == nil then | |
1701 | PASS = false | |
1702 | break | |
1703 | else | |
1704 | if HIT.Parent ~= TARGET.Parent then | |
1705 | PASS = false | |
1706 | break | |
1707 | end | |
1708 | end | |
1709 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1710 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1711 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1712 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1713 | 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) | |
1714 | 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) | |
1715 | end | |
1716 | if PASS == true then | |
1717 | local GUNPOS = GUN.CFrame*CF(1.2, 0.5, 0).p | |
1718 | local DISTANCE = (LEG.Position - GUNPOS).Magnitude | |
1719 | CreateSound(160432334, LEG, 10, 1, false) | |
1720 | local HEAD = HUM.Parent:FindFirstChild("Head") | |
1721 | if HEAD then | |
1722 | CreateSound(535690488, HEAD, 7, 1, false) | |
1723 | end | |
1724 | ApplyDamage(HUM,15) | |
1725 | HUM.WalkSpeed = HUM.WalkSpeed - 3 | |
1726 | HUM.PlatformStand = true | |
1727 | coroutine.resume(coroutine.create(function() | |
1728 | wait(0.1) | |
1729 | if HUM.WalkSpeed > 0 then | |
1730 | HUM.PlatformStand = false | |
1731 | end | |
1732 | end)) | |
1733 | 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}) | |
1734 | 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}) | |
1735 | for i=0, 1, 0.1 / Animation_Speed do | |
1736 | Swait() | |
1737 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1738 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1739 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1740 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1741 | 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) | |
1742 | 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) | |
1743 | end | |
1744 | end | |
1745 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1746 | Swait() | |
1747 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1748 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed) | |
1749 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1750 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1751 | 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) | |
1752 | 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) | |
1753 | end | |
1754 | GUNWELD.Part0 = Torso | |
1755 | GUNWELD.C0 = CF(-1.1,-1.1,0) * ANGLES(RAD(0), RAD(90), RAD(-90)) | |
1756 | ATTACK = false | |
1757 | Rooted = false | |
1758 | Speed = 20 | |
1759 | end | |
1760 | end | |
1761 | end | |
1762 | end | |
1763 | function BatonStun() | |
1764 | ATTACK = true | |
1765 | Rooted = false | |
1766 | Speed = 4 | |
1767 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1768 | Swait() | |
1769 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1770 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
1771 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1772 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1773 | 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) | |
1774 | 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) | |
1775 | end | |
1776 | BATONWELD.Part0 = RightArm | |
1777 | BATONWELD.C0 = CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)) * CF(0,0,1) | |
1778 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1779 | Swait() | |
1780 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1781 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(25)), 1 / Animation_Speed) | |
1782 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.1) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1783 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1784 | 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) | |
1785 | 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) | |
1786 | end | |
1787 | Speed = 25 | |
1788 | CreateSound(147722227, BATON, 6, 1.2, false) | |
1789 | Trail.Enabled = true | |
1790 | BATON.CanCollide = true | |
1791 | local SPEAKING = false | |
1792 | local HITS = {} | |
1793 | local TOUCH = BATON.Touched:Connect(function(hit) | |
1794 | if hit.Parent:FindFirstChildOfClass("Humanoid") then | |
1795 | local HUM = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1796 | local TORSO = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
1797 | if TORSO and HUM.Health > 0 then | |
1798 | local PASS = true | |
1799 | for i = 1, #HITS do | |
1800 | if HITS[i] == hit.Parent then | |
1801 | PASS = false | |
1802 | end | |
1803 | end | |
1804 | table.insert(HITS,hit.Parent) | |
1805 | if PASS == true then | |
1806 | HUM.PlatformStand = true | |
1807 | ApplyDamage(HUM,20) | |
1808 | local bv = Instance.new("BodyVelocity",TORSO) | |
1809 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1810 | bv.velocity = CF(Torso.Position-VT(0,5,0),TORSO.Position).lookVector*70 | |
1811 | Debris:AddItem(bv,0.05) | |
1812 | CreateSound(260430079, BATON, 6, 1, false) | |
1813 | 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}) | |
1814 | coroutine.resume(coroutine.create(function() | |
1815 | wait(1) | |
1816 | if HUM.WalkSpeed > 0 then | |
1817 | HUM.PlatformStand = false | |
1818 | end | |
1819 | end)) | |
1820 | if SPEAKING == false and MRANDOM(1,5) == 1 then | |
1821 | SPEAKING = true | |
1822 | Chatter("Let that be a warning.",0) | |
1823 | end | |
1824 | end | |
1825 | end | |
1826 | end | |
1827 | end) | |
1828 | for i=0, 0.35, 0.1 / Animation_Speed do | |
1829 | Swait() | |
1830 | BATONWELD.C0 = Clerp(BATONWELD.C0,CF(0,-1,0) * ANGLES(RAD(120), RAD(0), RAD(0)) * CF(0,0,1), 1 / Animation_Speed) | |
1831 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed) | |
1832 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
1833 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.6) * ANGLES(RAD(140), RAD(0), RAD(-31)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1834 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-3)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1835 | 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) | |
1836 | 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) | |
1837 | end | |
1838 | TOUCH:Disconnect() | |
1839 | BATON.CanCollide = false | |
1840 | Speed = 20 | |
1841 | Trail.Enabled = false | |
1842 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1843 | Swait() | |
1844 | BATONWELD.C0 = Clerp(BATONWELD.C0,CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)) * CF(0,0,1), 2 / Animation_Speed) | |
1845 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1846 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
1847 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1848 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1849 | 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) | |
1850 | 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) | |
1851 | end | |
1852 | BATONWELD.Part0 = Torso | |
1853 | BATONWELD.C0 = CF(1,-0.8,0.75) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1854 | ATTACK = false | |
1855 | Rooted = false | |
1856 | end | |
1857 | function Cuffs() | |
1858 | local TARGET = Mouse.Target | |
1859 | if TARGET ~= nil then | |
1860 | if TARGET.Parent:FindFirstChildOfClass("Humanoid") then | |
1861 | local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid") | |
1862 | local ROOT = TARGET.Parent:FindFirstChild("HumanoidRootPart") or TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso") | |
1863 | if ROOT and HUM.Health > 0 then | |
1864 | local FOE = Mouse.Target.Parent | |
1865 | ATTACK = true | |
1866 | Rooted = true | |
1867 | CharacterFade(C3(1,1,1),70) | |
1868 | RootPart.CFrame = ROOT.CFrame*CF(0,0,2) | |
1869 | ROOT.Anchored = true | |
1870 | CreateSound(289556450, RootPart, 5, 1.4, false) | |
1871 | Chatter("You have the right to remain silent.",0) | |
1872 | for i=0, 2, 0.1 / Animation_Speed do | |
1873 | Swait() | |
1874 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1875 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1876 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1877 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1878 | 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) | |
1879 | 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) | |
1880 | end | |
1881 | local RIGHTCUFF = nil | |
1882 | local LEFTCUFF = nil | |
1883 | local ChainLink = nil | |
1884 | CreateSound(1279090548, ROOT, 10, 1.4, false) | |
1885 | for _, c in pairs(FOE:GetChildren()) do | |
1886 | if c.Name == "Left Arm" or c.Name == "LeftLowerArm" then | |
1887 | LEFTCUFF = CreatePart(3, FOE, "Metal", 0, 0, "Mid gray", "Cuff", VT(c.Size.X+0.1, 0.1, c.Size.Z+0.1),false) | |
1888 | LEFTCUFF.CFrame = c.CFrame | |
1889 | weldBetween(c,LEFTCUFF) | |
1890 | end | |
1891 | end | |
1892 | for _, c in pairs(FOE:GetChildren()) do | |
1893 | if c.Name == "Right Arm" or c.Name == "RightLowerArm" then | |
1894 | RIGHTCUFF = CreatePart(3, FOE, "Metal", 0, 0, "Mid gray", "Cuff", VT(c.Size.X+0.1, 0.1, c.Size.Z+0.1),false) | |
1895 | RIGHTCUFF.CFrame = c.CFrame | |
1896 | weldBetween(c,RIGHTCUFF) | |
1897 | end | |
1898 | end | |
1899 | if RIGHTCUFF and LEFTCUFF then | |
1900 | local A = IT("Attachment",RIGHTCUFF) | |
1901 | local B = IT("Attachment",LEFTCUFF) | |
1902 | ChainLink = IT("Beam",FOE) | |
1903 | ChainLink.Texture = "rbxassetid://73042633" | |
1904 | ChainLink.Color = ColorSequence.new(C3(0.8,0.8,0.8)) | |
1905 | ChainLink.TextureSpeed = 0 | |
1906 | ChainLink.Width0 = 1 | |
1907 | ChainLink.Width1 = 1 | |
1908 | ChainLink.Segments = 25 | |
1909 | ChainLink.TextureLength = 3 | |
1910 | ChainLink.Attachment0 = B | |
1911 | ChainLink.Attachment1 = A | |
1912 | ChainLink.FaceCamera = true | |
1913 | ChainLink.Transparency = NumberSequence.new(0) | |
1914 | end | |
1915 | coroutine.resume(coroutine.create(function() | |
1916 | wait(4) | |
1917 | if RIGHTCUFF and LEFTCUFF then | |
1918 | RIGHTCUFF:remove() | |
1919 | LEFTCUFF:remove() | |
1920 | ChainLink:remove() | |
1921 | local bv = Instance.new("BodyVelocity",ROOT) | |
1922 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1923 | bv.velocity = CF(ROOT.Position-VT(0,5,0),ROOT.Position).lookVector*70 | |
1924 | Debris:AddItem(bv,0.05) | |
1925 | ApplyDamage(HUM,70) | |
1926 | HUM.PlatformStand = false | |
1927 | 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}) | |
1928 | 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}) | |
1929 | end | |
1930 | end)) | |
1931 | for i=0, 1.5, 0.1 / Animation_Speed do | |
1932 | Swait() | |
1933 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1934 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(5), RAD(0)), 1 / Animation_Speed) | |
1935 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(70), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1936 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(70), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1937 | 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) | |
1938 | 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) | |
1939 | end | |
1940 | HUM.PlatformStand = true | |
1941 | ROOT.CFrame = ROOT.CFrame * ANGLES(RAD(15), RAD(0), RAD(0)) | |
1942 | ROOT.Anchored = false | |
1943 | Chatter("Anything you say can and WILL be used against you.",0) | |
1944 | for i=0, 3, 0.1 / Animation_Speed do | |
1945 | Swait() | |
1946 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(-35)), 1 / Animation_Speed) | |
1947 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed) | |
1948 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-1), RAD(0), RAD(3)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1949 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-1), RAD(0), RAD(-3)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1950 | 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) | |
1951 | 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) | |
1952 | end | |
1953 | ATTACK = false | |
1954 | Rooted = false | |
1955 | end | |
1956 | end | |
1957 | end | |
1958 | end | |
1959 | ||
1960 | --//=================================\\ | |
1961 | --|| ATTACK BAD COP | |
1962 | --\\=================================// | |
1963 | ||
1964 | function Silence() | |
1965 | Speed = 6 | |
1966 | ATTACK = true | |
1967 | Rooted = false | |
1968 | local GYRO = IT("BodyGyro",RootPart) | |
1969 | GYRO.D = 2 | |
1970 | GYRO.P = 20000 | |
1971 | GYRO.MaxTorque = VT(0,4000000,0) | |
1972 | coroutine.resume(coroutine.create(function() | |
1973 | repeat | |
1974 | Swait() | |
1975 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
1976 | until ATTACK == false | |
1977 | GYRO:Remove() | |
1978 | end)) | |
1979 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1980 | Swait() | |
1981 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1982 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed) | |
1983 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1984 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1985 | 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) | |
1986 | 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) | |
1987 | end | |
1988 | local AMMO = 6 | |
1989 | local FIRING = true | |
1990 | local SHOOTING = false | |
1991 | local TIMER = 70 | |
1992 | CreateSound(147722227, GUN, 6, 1.3, false) | |
1993 | GUNWELD.Part0 = LeftArm | |
1994 | GUNWELD.C0 = CF(0,-1.5,0) * ANGLES(RAD(0), RAD(90), RAD(-90)) | |
1995 | local MOUSE = Mouse.Button1Down:connect(function(NEWKEY) | |
1996 | if SHOOTING == false and AMMO > 0 then | |
1997 | SHOOTING = true | |
1998 | AMMO = AMMO - 1 | |
1999 | local GUNPOS = GUN.CFrame*CF(1.2, 0.5, 0).p | |
2000 | local HIT,POS = CastProperRay(GUNPOS,Mouse.Hit.p,1000,Character) | |
2001 | local DISTANCE = (POS - GUNPOS).Magnitude | |
2002 | if HIT then | |
2003 | if HIT.Parent:FindFirstChildOfClass("Humanoid") then | |
2004 | if HIT.Parent:FindFirstChildOfClass("Humanoid").Health > 0 then | |
2005 | CreateSound(160432334, HIT, 10, 1, false) | |
2006 | ApplyDamage(HIT.Parent:FindFirstChildOfClass("Humanoid"),35) | |
2007 | end | |
2008 | end | |
2009 | end | |
2010 | TIMER = 55 | |
2011 | 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}) | |
2012 | 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}) | |
2013 | for i=0, 0.3, 0.1 / Animation_Speed do | |
2014 | Swait() | |
2015 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
2016 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
2017 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2018 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(100), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2019 | 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) | |
2020 | 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) | |
2021 | end | |
2022 | if AMMO <= 0 then | |
2023 | FIRING = false | |
2024 | end | |
2025 | SHOOTING = false | |
2026 | end | |
2027 | end) | |
2028 | repeat | |
2029 | Swait() | |
2030 | if SHOOTING == false then | |
2031 | TIMER = TIMER - 1 | |
2032 | if TIMER <= 0 then | |
2033 | FIRING = false | |
2034 | end | |
2035 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
2036 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
2037 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2038 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2039 | 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) | |
2040 | 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) | |
2041 | end | |
2042 | until FIRING == false and SHOOTING == false | |
2043 | MOUSE:Disconnect() | |
2044 | for i=0, 0.3, 0.1 / Animation_Speed do | |
2045 | Swait() | |
2046 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2047 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed) | |
2048 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2049 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2050 | 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) | |
2051 | 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) | |
2052 | end | |
2053 | GUNWELD.Part0 = Torso | |
2054 | GUNWELD.C0 = CF(-1.1,-1.1,0) * ANGLES(RAD(0), RAD(90), RAD(-90)) | |
2055 | Speed = 20 | |
2056 | ATTACK = false | |
2057 | Rooted = false | |
2058 | end | |
2059 | function BatonBreaker() | |
2060 | ATTACK = true | |
2061 | Rooted = false | |
2062 | Speed = 4 | |
2063 | Chatter("I'll break you!",0) | |
2064 | for i=0, 0.2, 0.1 / Animation_Speed do | |
2065 | Swait() | |
2066 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2067 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
2068 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2069 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2070 | 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) | |
2071 | 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) | |
2072 | end | |
2073 | BATONWELD.Part0 = RightArm | |
2074 | BATONWELD.C0 = CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)) * CF(0,0,1) | |
2075 | for i=0, 0.5, 0.1 / Animation_Speed do | |
2076 | Swait() | |
2077 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
2078 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(25)), 1 / Animation_Speed) | |
2079 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.1) * ANGLES(RAD(-20), RAD(-40), RAD(25)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2080 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2081 | 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) | |
2082 | 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) | |
2083 | end | |
2084 | Speed = 30 | |
2085 | CreateSound(147722227, BATON, 6, 1, false) | |
2086 | Trail.Enabled = true | |
2087 | BATON.CanCollide = true | |
2088 | local SPEAKING = false | |
2089 | local HITS = {} | |
2090 | local TOUCH = BATON.Touched:Connect(function(hit) | |
2091 | if hit.Parent:FindFirstChildOfClass("Humanoid") then | |
2092 | local HUM = hit.Parent:FindFirstChildOfClass("Humanoid") | |
2093 | local TORSO = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
2094 | if TORSO and HUM.Health > 0 then | |
2095 | local PASS = true | |
2096 | for i = 1, #HITS do | |
2097 | if HITS[i] == hit.Parent then | |
2098 | PASS = false | |
2099 | end | |
2100 | end | |
2101 | table.insert(HITS,hit.Parent) | |
2102 | if PASS == true then | |
2103 | CreateSound(260430079, BATON, 6, 0.8, false) | |
2104 | 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}) | |
2105 | TORSO.Anchored = true | |
2106 | local POS = TORSO.CFrame | |
2107 | coroutine.resume(coroutine.create(function() | |
2108 | for i = 1, 15 do | |
2109 | Swait() | |
2110 | TORSO.CFrame = POS*CF(MRANDOM(-2,2)/10,MRANDOM(-2,2)/10,MRANDOM(-2,2)/10) | |
2111 | end | |
2112 | local HEAD = HUM.Parent:FindFirstChild("Head") | |
2113 | HUM.Parent:BreakJoints() | |
2114 | if HEAD then | |
2115 | CreateSound(363808674, HEAD, 10, 0.8, false) | |
2116 | local bv = Instance.new("BodyVelocity",TORSO) | |
2117 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2118 | bv.velocity = CF(Torso.Position-VT(0,5,0),HEAD.Position).lookVector*70 | |
2119 | Debris:AddItem(bv,0.05) | |
2120 | local TEXTS = {"Criminals should leave this world!","And stay down!"} | |
2121 | Chatter(TEXTS[MRANDOM(1,#TEXTS)],0) | |
2122 | end | |
2123 | TORSO.Anchored = false | |
2124 | end)) | |
2125 | end | |
2126 | end | |
2127 | end | |
2128 | end) | |
2129 | for i=0, 0.45, 0.1 / Animation_Speed do | |
2130 | Swait() | |
2131 | RootPart.CFrame = RootPart.CFrame * CF(0,0,-0.15) | |
2132 | BATONWELD.C0 = Clerp(BATONWELD.C0,CF(0,-1,0) * ANGLES(RAD(120), RAD(0), RAD(0)) * CF(0,0,1), 1 / Animation_Speed) | |
2133 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(15)), 1 / Animation_Speed) | |
2134 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
2135 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.6) * ANGLES(RAD(140), RAD(-25), RAD(-41)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2136 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-3)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2137 | 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) | |
2138 | 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) | |
2139 | end | |
2140 | TOUCH:Disconnect() | |
2141 | BATON.CanCollide = false | |
2142 | Speed = 20 | |
2143 | Trail.Enabled = false | |
2144 | for i=0, 0.2, 0.1 / Animation_Speed do | |
2145 | Swait() | |
2146 | BATONWELD.C0 = Clerp(BATONWELD.C0,CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)) * CF(0,0,1), 2 / Animation_Speed) | |
2147 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2148 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
2149 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2150 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2151 | 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) | |
2152 | 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) | |
2153 | end | |
2154 | BATONWELD.Part0 = Torso | |
2155 | BATONWELD.C0 = CF(1,-0.8,0.75) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
2156 | ATTACK = false | |
2157 | Rooted = false | |
2158 | end | |
2159 | function TheRightToRemainSilent() | |
2160 | local TARGET = Mouse.Target | |
2161 | if TARGET ~= nil then | |
2162 | if TARGET.Parent:FindFirstChildOfClass("Humanoid") then | |
2163 | local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid") | |
2164 | local ROOT = TARGET.Parent:FindFirstChild("HumanoidRootPart") or TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso") | |
2165 | if ROOT and HUM.Health > 0 then | |
2166 | local FOE = Mouse.Target.Parent | |
2167 | local HEADB = FOE:FindFirstChild("Head") | |
2168 | ATTACK = true | |
2169 | Rooted = true | |
2170 | CharacterFade(C3(1,1,1),70) | |
2171 | RootPart.CFrame = ROOT.CFrame*CF(0,0,2) | |
2172 | ROOT.Anchored = true | |
2173 | CreateSound(289556450, RootPart, 5, 1.4, false) | |
2174 | Chatter("You are to remain silent and DEAD!",0) | |
2175 | for i=0, 0.4, 0.1 / Animation_Speed do | |
2176 | Swait() | |
2177 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2178 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2179 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2180 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2181 | 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) | |
2182 | 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) | |
2183 | end | |
2184 | HUM.PlatformStand = true | |
2185 | ROOT.CFrame = ROOT.CFrame * CF(0,-2*ROOT.Size.Z,0) * ANGLES(RAD(-90), RAD(0), RAD(0)) | |
2186 | CreateSound(260430117, ROOT, 6, 1.3, false) | |
2187 | coroutine.resume(coroutine.create(function() | |
2188 | Swait() | |
2189 | ROOT.Anchored = true | |
2190 | end)) | |
2191 | RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.6) | |
2192 | HEADB.CFrame = RootPart.CFrame*CF(0,0,-0.9) | |
2193 | HEADB.Velocity = VT(0,0,0) | |
2194 | for i=0, 0.2, 0.1 / Animation_Speed do | |
2195 | Swait() | |
2196 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed) | |
2197 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
2198 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2199 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2200 | 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) | |
2201 | 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) | |
2202 | end | |
2203 | local OOFS = {1106908323,1080610827,1080614222,565424701,565424177,1080611063} | |
2204 | CreateSound(OOFS[MRANDOM(1,#OOFS)], ROOT, 6, 1, false) | |
2205 | for i=0, 0.2, 0.1 / Animation_Speed do | |
2206 | Swait() | |
2207 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.65) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2208 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 1 / Animation_Speed) | |
2209 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(80), RAD(0), RAD(-10)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2210 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2211 | 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) | |
2212 | 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) | |
2213 | end | |
2214 | local AMMO = 6 | |
2215 | local FIRING = true | |
2216 | local SHOOTING = false | |
2217 | local TIMER = 70 | |
2218 | CreateSound(147722227, GUN, 6, 1.3, false) | |
2219 | GUNWELD.Part0 = LeftArm | |
2220 | GUNWELD.C0 = CF(0,-1.5,0) * ANGLES(RAD(0), RAD(90), RAD(-90)) | |
2221 | for i=0, 0.2, 0.1 / Animation_Speed do | |
2222 | Swait() | |
2223 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.65) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2224 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 1 / Animation_Speed) | |
2225 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(80), RAD(0), RAD(-10)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2226 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.4, 0.55, 0.4) * ANGLES(RAD(100), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2227 | 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) | |
2228 | 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) | |
2229 | end | |
2230 | for i = 1, 6 do | |
2231 | local GUNPOS = GUN.CFrame*CF(1.2, 0.5, 0).p | |
2232 | local DISTANCE = (FOE.Head.Position - GUNPOS).Magnitude | |
2233 | 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}) | |
2234 | 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}) | |
2235 | HUM.Health = HUM.Health/1.5 | |
2236 | for i=0, 0.2, 0.1 / Animation_Speed do | |
2237 | Swait() | |
2238 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.65) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2239 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 1 / Animation_Speed) | |
2240 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(80), RAD(0), RAD(-10)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2241 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.4, 0.55, 0.6) * ANGLES(RAD(130), RAD(0), RAD(20)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2242 | 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) | |
2243 | 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) | |
2244 | end | |
2245 | for i=0, 0.2, 0.1 / Animation_Speed do | |
2246 | Swait() | |
2247 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.65) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2248 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 1 / Animation_Speed) | |
2249 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(80), RAD(0), RAD(-10)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2250 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.4, 0.55, 0.6) * ANGLES(RAD(100), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2251 | 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) | |
2252 | 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) | |
2253 | end | |
2254 | end | |
2255 | FOE:BreakJoints() | |
2256 | ROOT.Anchored = false | |
2257 | for i=0, 0.3, 0.1 / Animation_Speed do | |
2258 | Swait() | |
2259 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2260 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed) | |
2261 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2262 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2263 | 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) | |
2264 | 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) | |
2265 | end | |
2266 | GUNWELD.Part0 = Torso | |
2267 | GUNWELD.C0 = CF(-1.1,-1.1,0) * ANGLES(RAD(0), RAD(90), RAD(-90)) | |
2268 | ATTACK = false | |
2269 | Rooted = false | |
2270 | end | |
2271 | end | |
2272 | end | |
2273 | end | |
2274 | ||
2275 | --//=================================\\ | |
2276 | --|| PIXEL COP ATTACKS | |
2277 | --\\=================================// | |
2278 | ||
2279 | function SwordBeam() | |
2280 | ATTACK = true | |
2281 | Rooted = false | |
2282 | local SWORDMODEL = IT("Model",Effects) | |
2283 | local HANDLE = CreatePart(3, SWORDMODEL, "Neon", 0, 0, "Steel blue", "Stic", VT(0.2,2,0.2),false) | |
2284 | local GRIP = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, HANDLE, CF(0,-1,0)* ANGLES(RAD(-90), RAD(90), RAD(0)), CF(0, -0.3, 0)) | |
2285 | local PART = CreatePart(3, SWORDMODEL, "Neon", 0, 0, "Steel blue", "Stic", VT(1,0.2,0.2),false) | |
2286 | CreateWeldOrSnapOrMotor("Weld", HANDLE, HANDLE, PART, CF(0,1,0), CF(0, 0, 0)) | |
2287 | local PART = CreatePart(3, SWORDMODEL, "Neon", 0, 0, "Pearl", "Stic", VT(0.5,2,0.1),false) | |
2288 | CreateWeldOrSnapOrMotor("Weld", HANDLE, HANDLE, PART, CF(0,2,0), CF(0, 0, 0)) | |
2289 | local PART = CreatePart(3, SWORDMODEL, "Neon", 0, 0, "Pearl", "Stic", VT(0.25,2,0.1),false) | |
2290 | CreateWeldOrSnapOrMotor("Weld", HANDLE, HANDLE, PART, CF(0,2.25,0), CF(0, 0, 0)) | |
2291 | for i=0, 1, 0.1 / Animation_Speed do | |
2292 | Swait() | |
2293 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2294 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2295 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(160), RAD(15), RAD(-2+sick.PlaybackLoudness/45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2296 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(0), RAD(55), RAD(-12)) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2297 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2298 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2299 | end | |
2300 | coroutine.resume(coroutine.create(function() | |
2301 | local BEAM = IT("Model",Effects) | |
2302 | local BASE = CreatePart(3, BEAM, "Neon", 0, 0, "Steel blue", "Stic", VT(0.1,5,0.1)) | |
2303 | BASE.CFrame = RootPart.CFrame*CF(1.5,-0.4,0) | |
2304 | local PART = CreatePart(3, BEAM, "Neon", 0, 0, "Steel blue", "Stic", VT(0.1,5.25,0.1)) | |
2305 | PART.CFrame = BASE.CFrame*CF(0,0,-0.2) | |
2306 | for i = 1, 4 do | |
2307 | local PART = CreatePart(3, BEAM, "Neon", 0, 0, "Steel blue", "Stic", VT(0.25,5,0.25)) | |
2308 | PART.CFrame = BASE.CFrame*CF(0,0,-0.8+(i/2.5)) | |
2309 | end | |
2310 | BEAM.PrimaryPart = BASE | |
2311 | for i = 1, 75 do | |
2312 | wait() | |
2313 | BEAM:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0,-2)) | |
2314 | local HITFLOOR = Raycast(BASE.Position, BASE.CFrame.lookVector, 2.1, Character) | |
2315 | if HITFLOOR then | |
2316 | if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then | |
2317 | local HUM = HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") | |
2318 | ApplyDamage(HUM,MRANDOM(15,89)) | |
2319 | end | |
2320 | break | |
2321 | end | |
2322 | end | |
2323 | BEAM:remove() | |
2324 | end)) | |
2325 | for i=0, 0.05, 0.1 / Animation_Speed do | |
2326 | Swait() | |
2327 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2328 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2329 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(25), RAD(15), RAD(-2+sick.PlaybackLoudness/45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2330 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(0), RAD(55), RAD(-12)) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2331 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2332 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2333 | end | |
2334 | for i=0, 0.5, 0.1 / Animation_Speed do | |
2335 | Swait() | |
2336 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2337 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2338 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(-25), RAD(15), RAD(-2+sick.PlaybackLoudness/45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2339 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(0), RAD(55), RAD(-12)) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2340 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2341 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2342 | end | |
2343 | SWORDMODEL:remove() | |
2344 | ATTACK = false | |
2345 | Rooted = false | |
2346 | end | |
2347 | ||
2348 | ||
2349 | --//=================================\\ | |
2350 | --|| BIG SMOKE ATTACKS | |
2351 | --\\=================================// | |
2352 | ||
2353 | ||
2354 | function depressedAoE(POSITION,RANGE,FLING,BURN) | |
2355 | local CHILDREN = workspace:GetDescendants() | |
2356 | for index, CHILD in pairs(CHILDREN) do | |
2357 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2358 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2359 | if HUM then | |
2360 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2361 | if TORSO then | |
2362 | if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then | |
2363 | CHILD:BreakJoints() | |
2364 | if FLING ~= 0 then | |
2365 | for _, c in pairs(CHILD:GetChildren()) do | |
2366 | if c:IsA("BasePart") and c.Transparency == 0 then | |
2367 | if BURN == true then | |
2368 | Fire(c) | |
2369 | end | |
2370 | local bv = Instance.new("BodyVelocity") | |
2371 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2372 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
2373 | bv.Parent = c | |
2374 | Debris:AddItem(bv,0.05) | |
2375 | end | |
2376 | end | |
2377 | end | |
2378 | end | |
2379 | end | |
2380 | end | |
2381 | end | |
2382 | end | |
2383 | end | |
2384 | ||
2385 | ||
2386 | function BATHIT() | |
2387 | ATTACK = true | |
2388 | Rooted = false | |
2389 | for i=0, 0.2, 0.1 / Animation_Speed do | |
2390 | Swait() | |
2391 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 2 / Animation_Speed) | |
2392 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 2 / Animation_Speed) | |
2393 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2394 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2395 | ||
2396 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.3) * ANGLES(RAD(40), RAD(65), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2397 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(120), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2398 | end | |
2399 | CreateSound("210946558", RightArm, 5, 1) | |
2400 | if COMBO == 1 then | |
2401 | COMBO = 2 | |
2402 | for i=0, 0.1, 0.1 / Animation_Speed do | |
2403 | RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.1) | |
2404 | Swait() | |
2405 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-65)), 1 / Animation_Speed) | |
2406 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(65)), 1 / Animation_Speed) | |
2407 | 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) | |
2408 | 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) | |
2409 | ||
2410 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.3) * ANGLES(RAD(40), RAD(65), RAD(62)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2411 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1.5) * ANGLES(RAD(120), RAD(0), RAD(30)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2412 | end | |
2413 | for i=0, 0.45, 0.1 / Animation_Speed do | |
2414 | Swait() | |
2415 | weld.C0 = Clerp(weld.C0,CF(0,-1,0) * ANGLES(RAD(120), RAD(0), RAD(0)) * CF(0,0,1), 1 / Animation_Speed) | |
2416 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(15)), 1 / Animation_Speed) | |
2417 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
2418 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.6) * ANGLES(RAD(140), RAD(-25), RAD(-41)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2419 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-3)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2420 | 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) | |
2421 | 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) | |
2422 | end | |
2423 | depressedAoE(LeftArm.Position,10,5,15,5,2,2,VALUE1) | |
2424 | for i=0, 0.15, 0.1 / Animation_Speed do | |
2425 | RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.12) | |
2426 | Swait() | |
2427 | 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) | |
2428 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(75)), 2 / Animation_Speed) | |
2429 | 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) | |
2430 | 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) | |
2431 | ||
2432 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.3) * ANGLES(RAD(40), RAD(65), RAD(62)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2433 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1.5) * ANGLES(RAD(120), RAD(0), RAD(30)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2434 | end | |
2435 | elseif COMBO == 2 then | |
2436 | COMBO = 1 | |
2437 | for i=0, 0.2, 0.1 / Animation_Speed do | |
2438 | Swait() | |
2439 | RootPart.CFrame = RootPart.CFrame*CF(0,0,0.1) | |
2440 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(90)), 2 / Animation_Speed) | |
2441 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-90)), 2 / Animation_Speed) | |
2442 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2443 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2444 | ||
2445 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.3) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2446 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2447 | end | |
2448 | for i=0, 0.45, 0.1 / Animation_Speed do | |
2449 | Swait() | |
2450 | weld.C0 = Clerp(weld.C0,CF(0,-1,0) * ANGLES(RAD(120), RAD(0), RAD(0)) * CF(0,0,1), 1 / Animation_Speed) | |
2451 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(15)), 1 / Animation_Speed) | |
2452 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
2453 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.6) * ANGLES(RAD(140), RAD(-25), RAD(-41)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2454 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-3)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2455 | 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) | |
2456 | 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) | |
2457 | end | |
2458 | depressedAoE(RightArm.Position,10,5,15,5,2,2,VALUE1) | |
2459 | for i=0, 0.1, 0.1 / Animation_Speed do | |
2460 | Swait() | |
2461 | RootPart.CFrame = RootPart.CFrame*CF(0,0,0.15) | |
2462 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(90)), 2 / Animation_Speed) | |
2463 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-90)), 2 / Animation_Speed) | |
2464 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2465 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2466 | ||
2467 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.3) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2468 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2469 | end | |
2470 | end | |
2471 | ATTACK = false | |
2472 | Rooted = false | |
2473 | end | |
2474 | --//=================================\\ | |
2475 | --|| ASSIGN THINGS TO KEYS | |
2476 | --\\=================================// | |
2477 | ||
2478 | function MouseDown(Mouse) | |
2479 | if ATTACK == false then | |
2480 | if MODE == "GoodCop" then | |
2481 | Warning() | |
2482 | elseif MODE == "BadCop" then | |
2483 | Silence() | |
2484 | elseif MODE == "PixelCop" then | |
2485 | SwordBeam() | |
2486 | elseif MODE == "BIGSMOKE" then | |
2487 | BATHIT() | |
2488 | end | |
2489 | end | |
2490 | end | |
2491 | ||
2492 | function MouseUp(Mouse) | |
2493 | HOLD = false | |
2494 | end | |
2495 | ||
2496 | function KeyDown(Key) | |
2497 | KEYHOLD = true | |
2498 | if Key == "q" and ATTACK == false then | |
2499 | if MODE == "GoodCop" then | |
2500 | BatonStun() | |
2501 | elseif MODE == "BadCop" then | |
2502 | BatonBreaker() | |
2503 | end | |
2504 | end | |
2505 | ||
2506 | if Key == "e" and ATTACK == false then | |
2507 | if MODE == "GoodCop" then | |
2508 | Cuffs() | |
2509 | elseif MODE == "BadCop" then | |
2510 | TheRightToRemainSilent() | |
2511 | end | |
2512 | end | |
2513 | ||
2514 | if Key == "t" and ATTACK == false then | |
2515 | if MODE == "GoodCop" then | |
2516 | Chatter("You should obey the law.",0.01) | |
2517 | elseif MODE == "BadCop" then | |
2518 | Chatter("I don't think so, Criminal!",0.01) | |
2519 | elseif MODE == "PixelCop" then | |
2520 | -- ChatterPixel("I have a little bit of pixels left to share.",0.01,"Arcade") | |
2521 | elseif MODE == "Shotgun" then | |
2522 | ChatterPixel("I think its time to have a little fun.",0.01,"Antique") | |
2523 | elseif MODE == "VoidCop" then | |
2524 | ChatterPixel("Lets get it over with.",0.01,"Antique") | |
2525 | end | |
2526 | end | |
2527 | ||
2528 | if Key == "f" and ATTACK == false then | |
2529 | Switch() | |
2530 | end | |
2531 | if Key == "g" and ATTACK == false then | |
2532 | Switch2() | |
2533 | end | |
2534 | if Key == "h" and ATTACK == false then | |
2535 | Switch3() | |
2536 | end | |
2537 | if Key == "j" and ATTACK == false then | |
2538 | Switch4() | |
2539 | end | |
2540 | if Key == "k" and ATTACK == false then | |
2541 | Switch5() | |
2542 | end | |
2543 | if Key == "0" and ATTACK == false then | |
2544 | if sick.Parent ~= RootPart then | |
2545 | sick = IT("Sound",RootPart) | |
2546 | end | |
2547 | end | |
2548 | end | |
2549 | ||
2550 | function KeyUp(Key) | |
2551 | KEYHOLD = false | |
2552 | end | |
2553 | ||
2554 | Mouse.Button1Down:connect(function(NEWKEY) | |
2555 | MouseDown(NEWKEY) | |
2556 | end) | |
2557 | Mouse.Button1Up:connect(function(NEWKEY) | |
2558 | MouseUp(NEWKEY) | |
2559 | end) | |
2560 | Mouse.KeyDown:connect(function(NEWKEY) | |
2561 | KeyDown(NEWKEY) | |
2562 | end) | |
2563 | Mouse.KeyUp:connect(function(NEWKEY) | |
2564 | KeyUp(NEWKEY) | |
2565 | end) | |
2566 | ||
2567 | --//=================================\\ | |
2568 | --\\=================================// | |
2569 | ||
2570 | function unanchor() | |
2571 | for _, c in pairs(Character:GetChildren()) do | |
2572 | if c:IsA("BasePart") and c ~= RootPart then | |
2573 | c.Anchored = false | |
2574 | end | |
2575 | end | |
2576 | for _, c in pairs(Weapon:GetChildren()) do | |
2577 | if c:IsA("BasePart") and c ~= RootPart then | |
2578 | c.Anchored = false | |
2579 | end | |
2580 | end | |
2581 | if UNANCHOR == true then | |
2582 | RootPart.Anchored = false | |
2583 | else | |
2584 | RootPart.Anchored = true | |
2585 | end | |
2586 | end | |
2587 | ||
2588 | --//=================================\\ | |
2589 | --|| WRAP THE WHOLE SCRIPT UP | |
2590 | --\\=================================// | |
2591 | ||
2592 | Humanoid.Changed:connect(function(Jump) | |
2593 | if Jump == "Jump" and (Disable_Jump == true) then | |
2594 | Humanoid.Jump = false | |
2595 | end | |
2596 | end) | |
2597 | ||
2598 | ||
2599 | ||
2600 | ||
2601 | while true do | |
2602 | Swait() | |
2603 | script.Parent = WEAPONGUI | |
2604 | ANIMATE.Parent = nil | |
2605 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
2606 | v:Stop(); | |
2607 | end | |
2608 | SINE = SINE + CHANGE | |
2609 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2610 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2611 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
2612 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
2613 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
2614 | 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) | |
2615 | 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) | |
2616 | 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) | |
2617 | 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) | |
2618 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
2619 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2620 | 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) | |
2621 | 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) | |
2622 | 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) | |
2623 | end | |
2624 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
2625 | ANIM = "Jump" | |
2626 | if ATTACK == false then | |
2627 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2628 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2629 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2630 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2631 | 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) | |
2632 | 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) | |
2633 | end | |
2634 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
2635 | ANIM = "Fall" | |
2636 | if ATTACK == false then | |
2637 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2638 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2639 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2640 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2641 | 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) | |
2642 | 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) | |
2643 | end | |
2644 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
2645 | ANIM = "Idle" | |
2646 | if ATTACK == false then | |
2647 | if MODE == "GoodCop" then | |
2648 | 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) | |
2649 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0 - 10 * COS(SINE / 23))), 1 / Animation_Speed) | |
2650 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0.3) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2651 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(-40), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2652 | --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) | |
2653 | --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) | |
2654 | --[[ | |
2655 | 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(5 - 4.5 * SIN(SINE / 12))), 0.15 / Animation_Speed) | |
2656 | 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(-5 + 4.5 * SIN(SINE / 12))), 0.15 / Animation_Speed) | |
2657 | ]]-- | |
2658 | 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) | |
2659 | 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) | |
2660 | -- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(2.5 * COS(SINE / 12))), 0.8 / Animation_Speed) | |
2661 | -- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(5), RAD(15-2.5 * COS(SINE / 12))), 0.8 / Animation_Speed) | |
2662 | elseif MODE == "BadCop" then | |
2663 | 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) | |
2664 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * COS(SINE / 12)), RAD(0), RAD(25 - 10 * COS(SINE / 23))), 1 / Animation_Speed) | |
2665 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.9, 0.5 + 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2666 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.9, 0.25 + 0.05 * SIN(SINE / 12), -0.35) * ANGLES(RAD(70), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2667 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2668 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2669 | elseif MODE == "PixelCop" then | |
2670 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2671 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(0), RAD(0-0.01*SIN(sick.PlaybackLoudness/300)), RAD(0 - 25 * SIN(SINE / 17))), 1 / Animation_Speed) | |
2672 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(0), RAD(-15), RAD(-2+sick.PlaybackLoudness/45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2673 | -- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(0), RAD(55), RAD(-12)) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2674 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.9, 0.25, -0.35) * ANGLES(RAD(70), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2675 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2676 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2677 | elseif MODE == "Shotgun" then | |
2678 | 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) | |
2679 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * COS(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) | |
2680 | -- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2681 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.15 * COS(SINE / 16), -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2682 | --LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2683 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.15 * COS(SINE / 16), 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2684 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2685 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2686 | elseif MODE == "VoidCop" then | |
2687 | Neck.C0 = Clerp(Neck.C0, NECKC0 * ANGLES(RAD(20 - 4.5 * SIN(SINE / 30)), RAD(0), RAD(-5)), 1 / Animation_Speed) | |
2688 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2689 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2690 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2691 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5 + 0.05 * SIN(SINE / 24), -0.7) * ANGLES(RAD(0), RAD(0), RAD(-95)) * ANGLES(RAD(5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2692 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 24), -0.6) * ANGLES(RAD(0), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2693 | elseif MODE == "BIGSMOKE" then | |
2694 | if MRANDOM(1,200) == 1 then | |
2695 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(185), RAD(-75), RAD(0)) * RIGHTSHOULDERC0, 0.8 / Animation_Speed) | |
2696 | end | |
2697 | 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) | |
2698 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * COS(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2699 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2700 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2701 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-50))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2702 | --LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 2.5, 0.5) * ANGLES(RAD(45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2703 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2704 | ||
2705 | end | |
2706 | end | |
2707 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
2708 | ANIM = "Walk" | |
2709 | if ATTACK == false then | |
2710 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.05) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2711 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2712 | if MODE == "GoodCop" then | |
2713 | 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) | |
2714 | 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) | |
2715 | elseif MODE == "BadCop" then | |
2716 | 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) | |
2717 | 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) | |
2718 | elseif MODE == "PixelCop" then | |
2719 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(-40 + -11 * COS(SINE / 23)), RAD(25), RAD(75)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2720 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2721 | elseif MODE == "Shotgun" then | |
2722 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2723 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed) | |
2724 | elseif MODE == "VoidCop" then | |
2725 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5 + 0.05 * SIN(SINE / (WALKSPEEDVALUE/2)), -0.7) * ANGLES(RAD(0), RAD(0), RAD(-95)) * ANGLES(RAD(5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2726 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.25 + 0.05 * SIN(SINE / (WALKSPEEDVALUE/2)), -0.6) * ANGLES(RAD(0), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2727 | elseif MODE == "BIGSMOKE" then | |
2728 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-50))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2729 | --LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 2.5, 0.5) * ANGLES(RAD(45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2730 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2731 | end | |
2732 | 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) | |
2733 | 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) | |
2734 | end | |
2735 | end | |
2736 | unanchor() | |
2737 | Humanoid.MaxHealth = 3e3 | |
2738 | Humanoid.Health = 3e3 | |
2739 | if Rooted == false then | |
2740 | Disable_Jump = false | |
2741 | Humanoid.WalkSpeed = Speed | |
2742 | elseif Rooted == true then | |
2743 | Disable_Jump = true | |
2744 | Humanoid.WalkSpeed = 0 | |
2745 | end | |
2746 | for _, c in pairs(Character:GetChildren()) do | |
2747 | if (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
2748 | c:remove() | |
2749 | end | |
2750 | end | |
2751 | sick.SoundId = "rbxassetid://"..SONG | |
2752 | sick.Looped = true | |
2753 | sick.Pitch = 1 | |
2754 | sick.Volume = 4 | |
2755 | sick.Playing = true | |
2756 | Head.Material = "Neon" | |
2757 | BLINKLOOP = BLINKLOOP + 1 | |
2758 | if BLINKLOOP >=500 then | |
2759 | BLINKLOOP = 0 | |
2760 | Blink2() | |
2761 | end | |
2762 | if MODE == "GoodCop" then | |
2763 | for E = 1, #GOODUI do | |
2764 | GOODUI[E].TextStrokeTransparency = 0 | |
2765 | GOODUI[E].TextTransparency = 0 | |
2766 | end | |
2767 | for E = 1, #BADUI do | |
2768 | BADUI[E].TextStrokeTransparency = 1 | |
2769 | BADUI[E].TextTransparency = 0.5 | |
2770 | end | |
2771 | elseif MODE == "BadCop" then | |
2772 | for E = 1, #GOODUI do | |
2773 | GOODUI[E].TextStrokeTransparency = 1 | |
2774 | GOODUI[E].TextTransparency = 0.5 | |
2775 | end | |
2776 | for E = 1, #BADUI do | |
2777 | BADUI[E].TextStrokeTransparency = 0 | |
2778 | BADUI[E].TextTransparency = 0 | |
2779 | end | |
2780 | end | |
2781 | end | |
2782 | ||
2783 | --//=================================\\ | |
2784 | --\\=================================// | |
2785 | ||
2786 | ||
2787 | ||
2788 | ||
2789 | ||
2790 | --//====================================================\\-- | |
2791 | --|| END OF SCRIPT 511924043 |