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