Advertisement
onemillionT

Untitled

Feb 20th, 2020
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 97.72 KB | None | 0 0
  1. --Edit by NameClan
  2. --Made By Shackluster or Pitypolygon
  3. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  4. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  5. do
  6. print("FE Compatibility code by Mokiros")
  7. script.Parent = Player.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent and t.Function then
  33. t.Function(...)
  34. end
  35. end
  36. m.TrigEvent = te
  37. UIS.TrigEvent = te
  38.  
  39. Event.OnServerEvent:Connect(function(plr,io)
  40. if plr~=Player then return end
  41. if io.isMouse then
  42. m.Target = io.Target
  43. m.Hit = io.Hit
  44. else
  45. local b = io.UserInputState == Enum.UserInputState.Begin
  46. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  47. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  48. end
  49. for _,t in pairs(CAS.Actions) do
  50. for _,k in pairs(t.Keys) do
  51. if k==io.KeyCode then
  52. t.Function(t.Name,io.UserInputState,io)
  53. end
  54. end
  55. end
  56. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  58. end
  59. end)
  60. Event.Parent = NLS([==[
  61. local Player = game:GetService("Players").LocalPlayer
  62. local Event = script:WaitForChild("UserInput_Event")
  63.  
  64. local UIS = game:GetService("UserInputService")
  65. local input = function(io,a)
  66. if a then return end
  67. --Since InputObject is a client-side instance, we create and pass table instead
  68. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  69. end
  70. UIS.InputBegan:Connect(input)
  71. UIS.InputEnded:Connect(input)
  72.  
  73. local Mouse = Player:GetMouse()
  74. local h,t
  75. --Give the server mouse data 30 times every second, but only if the values changed
  76. --If player is not moving their mouse, client won't fire events
  77. while wait(1/30) do
  78. if h~=Mouse.Hit or t~=Mouse.Target then
  79. h,t=Mouse.Hit,Mouse.Target
  80. Event:FireServer({isMouse=true,Target=t,Hit=h})
  81. end
  82. end]==],Player.Character)
  83. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  84. end
  85.  
  86. script:ClearAllChildren()
  87. wait(0.2)
  88.  
  89. Player = owner
  90. PlayerGui = Player.PlayerGui
  91. Cam = workspace.CurrentCamera
  92. Backpack = Player.Backpack
  93. Character = Player.Character
  94. Humanoid = Character.Humanoid
  95. RootPart = Character["HumanoidRootPart"]
  96. Torso = Character["Torso"]
  97. Head = Character["Head"]
  98. RightArm = Character["Right Arm"]
  99. LeftArm = Character["Left Arm"]
  100. RightLeg = Character["Right Leg"]
  101. LeftLeg = Character["Left Leg"]
  102. RootJoint = RootPart["RootJoint"]
  103. Neck = Torso["Neck"]
  104. RightShoulder = Torso["Right Shoulder"]
  105. LeftShoulder = Torso["Left Shoulder"]
  106. RightHip = Torso["Right Hip"]
  107. LeftHip = Torso["Left Hip"]
  108. local TIME = 0
  109. local sick = Instance.new("Sound",Torso)
  110.  
  111. IT = Instance.new
  112. CF = CFrame.new
  113. VT = Vector3.new
  114. RAD = math.rad
  115. C3 = Color3.new
  116. UD2 = UDim2.new
  117. BRICKC = BrickColor.new
  118. ANGLES = CFrame.Angles
  119. EULER = CFrame.fromEulerAnglesXYZ
  120. COS = math.cos
  121. ACOS = math.acos
  122. SIN = math.sin
  123. ASIN = math.asin
  124. ABS = math.abs
  125. MRANDOM = math.random
  126. FLOOR = math.floor
  127.  
  128. --//=================================\\
  129. --|| USEFUL VALUES
  130. --\\=================================//
  131.  
  132. Animation_Speed = 3
  133. local FORCERESET = false
  134. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  135. local Speed = 26
  136. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  137. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  138. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  139. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  140. local DAMAGEMULTIPLIER = 1
  141. local ANIM = "Idle"
  142. local ATTACK = false
  143. local EQUIPPED = false
  144. local HOLD = false
  145. local COMBO = 1
  146. local Rooted = false
  147. local SINE = 0
  148. local KEYHOLD = false
  149. local CHANGE = 2 / Animation_Speed
  150. local WALKINGANIM = false
  151. local VALUE1 = false
  152. local Player_Size = 1 --SizePlayerEpicNameClan
  153. local VALUE2 = false
  154. local ROBLOXIDLEANIMATION = IT("Animation")
  155. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  156. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  157. --ROBLOXIDLEANIMATION.Parent = Humanoid
  158. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  159. WEAPONGUI.Name = "BanishV3Gui"
  160. local Weapon = IT("Model")
  161. Weapon.Name = "Adds"
  162. local Effects = IT("Folder", Weapon)
  163. Effects.Name = "Effects"
  164. local Weapon2 = IT("Model")
  165. Weapon2.Name = "Adds"
  166. local Effects = IT("Folder", Weapon2)
  167. Effects.Name = "Effects"
  168. local Weapon3 = IT("Model")
  169. Weapon3.Name = "Adds"
  170. local Effects = IT("Folder", Weapon3)
  171. Effects.Name = "Effects"
  172. local ANIMATOR = Humanoid.Animator
  173. local ANIMATE = Character:FindFirstChild("Animate")
  174. local UNANCHOR = true
  175. local TOBANISH = {}
  176. local MODE = "GoodCop"
  177. local sick = Instance.new("Sound",Torso)
  178. VIS = 492726372
  179. VOLUME = 0.5
  180. PITCH = 1
  181. script.Parent = PlayerGui
  182.  
  183. --//=================================\\
  184. --\\=================================//
  185.  
  186.  
  187. --//=================================\\
  188. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  189. --\\=================================//
  190.  
  191. ArtificialHB = Instance.new("BindableEvent", script)
  192. ArtificialHB.Name = "ArtificialHB"
  193.  
  194. script:WaitForChild("ArtificialHB")
  195.  
  196. frame = Frame_Speed
  197. tf = 0
  198. allowframeloss = false
  199. tossremainder = false
  200. lastframe = tick()
  201. script.ArtificialHB:Fire()
  202.  
  203. game:GetService("RunService").Heartbeat:connect(function(s, p)
  204. tf = tf + s
  205. if tf >= frame then
  206. if allowframeloss then
  207. script.ArtificialHB:Fire()
  208. lastframe = tick()
  209. else
  210. for i = 1, math.floor(tf / frame) do
  211. script.ArtificialHB:Fire()
  212. end
  213. lastframe = tick()
  214. end
  215. if tossremainder then
  216. tf = 0
  217. else
  218. tf = tf - frame * math.floor(tf / frame)
  219. end
  220. end
  221. end)
  222.  
  223. --//=================================\\
  224. --\\=================================//
  225.  
  226. --//=================================\\
  227. --|| SOME FUNCTIONS
  228. --\\=================================//
  229.  
  230. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  231. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  232. end
  233.  
  234. function PositiveAngle(NUMBER)
  235. if NUMBER >= 0 then
  236. NUMBER = 0
  237. end
  238. return NUMBER
  239. end
  240.  
  241. function NegativeAngle(NUMBER)
  242. if NUMBER <= 0 then
  243. NUMBER = 0
  244. end
  245. return NUMBER
  246. end
  247.  
  248. function Swait(NUMBER)
  249. if NUMBER == 0 or NUMBER == nil then
  250. ArtificialHB.Event:wait()
  251. else
  252. for i = 1, NUMBER do
  253. ArtificialHB.Event:wait()
  254. end
  255. end
  256. end
  257.  
  258. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  259. local NEWMESH = IT(MESH)
  260. if MESH == "SpecialMesh" then
  261. NEWMESH.MeshType = MESHTYPE
  262. if MESHID ~= "nil" and MESHID ~= "" then
  263. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  264. end
  265. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  266. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  267. end
  268. end
  269. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  270. NEWMESH.Scale = SCALE
  271. NEWMESH.Parent = PARENT
  272. return NEWMESH
  273. end
  274.  
  275. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  276. local NEWPART = IT("Part")
  277. NEWPART.formFactor = FORMFACTOR
  278. NEWPART.Reflectance = REFLECTANCE
  279. NEWPART.Transparency = TRANSPARENCY
  280. NEWPART.CanCollide = false
  281. NEWPART.Locked = true
  282. NEWPART.Anchored = true
  283. if ANCHOR == false then
  284. NEWPART.Anchored = false
  285. end
  286. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  287. NEWPART.Name = NAME
  288. NEWPART.Size = SIZE
  289. NEWPART.Position = Torso.Position
  290. NEWPART.Material = MATERIAL
  291. NEWPART:BreakJoints()
  292. NEWPART.Parent = PARENT
  293. return NEWPART
  294. end
  295.  
  296. local function weldBetween(a, b)
  297. local weldd = Instance.new("ManualWeld")
  298. weldd.Part0 = a
  299. weldd.Part1 = b
  300. weldd.C0 = CFrame.new()
  301. weldd.C1 = b.CFrame:inverse() * a.CFrame
  302. weldd.Parent = a
  303. return weldd
  304. end
  305.  
  306.  
  307. function QuaternionFromCFrame(cf)
  308. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  309. local trace = m00 + m11 + m22
  310. if trace > 0 then
  311. local s = math.sqrt(1 + trace)
  312. local recip = 0.5 / s
  313. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  314. else
  315. local i = 0
  316. if m11 > m00 then
  317. i = 1
  318. end
  319. if m22 > (i == 0 and m00 or m11) then
  320. i = 2
  321. end
  322. if i == 0 then
  323. local s = math.sqrt(m00 - m11 - m22 + 1)
  324. local recip = 0.5 / s
  325. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  326. elseif i == 1 then
  327. local s = math.sqrt(m11 - m22 - m00 + 1)
  328. local recip = 0.5 / s
  329. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  330. elseif i == 2 then
  331. local s = math.sqrt(m22 - m00 - m11 + 1)
  332. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  333. end
  334. end
  335. end
  336.  
  337. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  338. local xs, ys, zs = x + x, y + y, z + z
  339. local wx, wy, wz = w * xs, w * ys, w * zs
  340. local xx = x * xs
  341. local xy = x * ys
  342. local xz = x * zs
  343. local yy = y * ys
  344. local yz = y * zs
  345. local zz = z * zs
  346. 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))
  347. end
  348.  
  349. function QuaternionSlerp(a, b, t)
  350. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  351. local startInterp, finishInterp;
  352. if cosTheta >= 0.0001 then
  353. if (1 - cosTheta) > 0.0001 then
  354. local theta = ACOS(cosTheta)
  355. local invSinTheta = 1 / SIN(theta)
  356. startInterp = SIN((1 - t) * theta) * invSinTheta
  357. finishInterp = SIN(t * theta) * invSinTheta
  358. else
  359. startInterp = 1 - t
  360. finishInterp = t
  361. end
  362. else
  363. if (1 + cosTheta) > 0.0001 then
  364. local theta = ACOS(-cosTheta)
  365. local invSinTheta = 1 / SIN(theta)
  366. startInterp = SIN((t - 1) * theta) * invSinTheta
  367. finishInterp = SIN(t * theta) * invSinTheta
  368. else
  369. startInterp = t - 1
  370. finishInterp = t
  371. end
  372. end
  373. 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
  374. end
  375.  
  376. function Clerp(a, b, t)
  377. local qa = {QuaternionFromCFrame(a)}
  378. local qb = {QuaternionFromCFrame(b)}
  379. local ax, ay, az = a.x, a.y, a.z
  380. local bx, by, bz = b.x, b.y, b.z
  381. local _t = 1 - t
  382. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  383. end
  384.  
  385. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  386. local frame = IT("Frame")
  387. frame.BackgroundTransparency = TRANSPARENCY
  388. frame.BorderSizePixel = BORDERSIZEPIXEL
  389. frame.Position = POSITION
  390. frame.Size = SIZE
  391. frame.BackgroundColor3 = COLOR
  392. frame.BorderColor3 = BORDERCOLOR
  393. frame.Name = NAME
  394. frame.Parent = PARENT
  395. return frame
  396. end
  397.  
  398. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  399. local label = IT("TextLabel")
  400. label.BackgroundTransparency = 1
  401. label.Size = UD2(1, 0, 1, 0)
  402. label.Position = UD2(0, 0, 0, 0)
  403. label.TextColor3 = TEXTCOLOR
  404. label.TextStrokeTransparency = STROKETRANSPARENCY
  405. label.TextTransparency = TRANSPARENCY
  406. label.FontSize = TEXTFONTSIZE
  407. label.Font = TEXTFONT
  408. label.BorderSizePixel = BORDERSIZEPIXEL
  409. label.TextScaled = false
  410. label.Text = TEXT
  411. label.Name = NAME
  412. label.Parent = PARENT
  413. return label
  414. end
  415.  
  416. function NoOutlines(PART)
  417. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  418. end
  419.  
  420. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  421. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  422. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
  423. wave.CFrame = CFRAME
  424. coroutine.resume(coroutine.create(function(PART)
  425. for i = 1, WAIT do
  426. Swait()
  427. mesh.Scale = mesh.Scale + GROW
  428. wave.Transparency = wave.Transparency + (1/WAIT)
  429. if wave.Transparency > 0.99 then
  430. wave:remove()
  431. end
  432. end
  433. end))
  434. end
  435.  
  436. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  437. local NEWWELD = IT(TYPE)
  438. NEWWELD.Part0 = PART0
  439. NEWWELD.Part1 = PART1
  440. NEWWELD.C0 = C0
  441. NEWWELD.C1 = C1
  442. NEWWELD.Parent = PARENT
  443. return NEWWELD
  444. end
  445.  
  446. local S = IT("Sound")
  447. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  448. local NEWSOUND = nil
  449. coroutine.resume(coroutine.create(function()
  450. NEWSOUND = S:Clone()
  451. NEWSOUND.Parent = PARENT
  452. NEWSOUND.Volume = VOLUME
  453. NEWSOUND.Pitch = PITCH
  454. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  455. NEWSOUND:play()
  456. if DOESLOOP == true then
  457. NEWSOUND.Looped = true
  458. else
  459. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  460. NEWSOUND:remove()
  461. end
  462. end))
  463. return NEWSOUND
  464. end
  465.  
  466. function CFrameFromTopBack(at, top, back)
  467. local right = top:Cross(back)
  468. 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)
  469. end
  470.  
  471. --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})
  472. function WACKYEFFECT(Table)
  473. local TYPE = (Table.EffectType or "Sphere")
  474. local SIZE = (Table.Size or VT(1,1,1))
  475. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  476. local TRANSPARENCY = (Table.Transparency or 0)
  477. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  478. local CFRAME = (Table.CFrame or Torso.CFrame)
  479. local MOVEDIRECTION = (Table.MoveToPos or nil)
  480. local ROTATION1 = (Table.RotationX or 0)
  481. local ROTATION2 = (Table.RotationY or 0)
  482. local ROTATION3 = (Table.RotationZ or 0)
  483. local MATERIAL = (Table.Material or "Neon")
  484. local COLOR = (Table.Color or C3(1,1,1))
  485. local TIME = (Table.Time or 45)
  486. local SOUNDID = (Table.SoundID or nil)
  487. local SOUNDPITCH = (Table.SoundPitch or nil)
  488. local SOUNDVOLUME = (Table.SoundVolume or nil)
  489. coroutine.resume(coroutine.create(function()
  490. local PLAYSSOUND = false
  491. local SOUND = nil
  492. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  493. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  494. PLAYSSOUND = true
  495. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  496. end
  497. EFFECT.Color = COLOR
  498. local MSH = nil
  499. if TYPE == "Sphere" then
  500. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  501. elseif TYPE == "Block" then
  502. MSH = IT("BlockMesh",EFFECT)
  503. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  504. elseif TYPE == "Wave" then
  505. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  506. elseif TYPE == "Ring" then
  507. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  508. elseif TYPE == "Slash" then
  509. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  510. elseif TYPE == "Round Slash" then
  511. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  512. elseif TYPE == "Swirl" then
  513. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  514. elseif TYPE == "Skull" then
  515. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  516. elseif TYPE == "Crystal" then
  517. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  518. end
  519. if MSH ~= nil then
  520. local MOVESPEED = nil
  521. if MOVEDIRECTION ~= nil then
  522. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  523. end
  524. local GROWTH = SIZE - ENDSIZE
  525. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  526. if TYPE == "Block" then
  527. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  528. else
  529. EFFECT.CFrame = CFRAME
  530. end
  531. for LOOP = 1, TIME+1 do
  532. Swait()
  533. MSH.Scale = MSH.Scale - GROWTH/TIME
  534. if TYPE == "Wave" then
  535. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  536. end
  537. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  538. if TYPE == "Block" then
  539. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  540. else
  541. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  542. end
  543. if MOVEDIRECTION ~= nil then
  544. local ORI = EFFECT.Orientation
  545. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  546. EFFECT.Orientation = ORI
  547. end
  548. end
  549. if PLAYSSOUND == false then
  550. EFFECT:remove()
  551. else
  552. SOUND.Stopped:Connect(function()
  553. EFFECT:remove()
  554. end)
  555. end
  556. else
  557. if PLAYSSOUND == false then
  558. EFFECT:remove()
  559. else
  560. repeat Swait() until SOUND.Playing == false
  561. EFFECT:remove()
  562. end
  563. end
  564. end))
  565. end
  566.  
  567. function MakeForm(PART,TYPE)
  568. if TYPE == "Cyl" then
  569. local MSH = IT("CylinderMesh",PART)
  570. elseif TYPE == "Ball" then
  571. local MSH = IT("SpecialMesh",PART)
  572. MSH.MeshType = "Sphere"
  573. elseif TYPE == "Wedge" then
  574. local MSH = IT("SpecialMesh",PART)
  575. MSH.MeshType = "Wedge"
  576. end
  577. end
  578.  
  579. function SpawnTrail(FROM,TO,BIG)
  580. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  581. MakeForm(TRAIL,"Cyl")
  582. local DIST = (FROM - TO).Magnitude
  583. if BIG == true then
  584. TRAIL.Size = VT(0.5,DIST,0.5)
  585. else
  586. TRAIL.Size = VT(0.25,DIST,0.25)
  587. end
  588. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  589. coroutine.resume(coroutine.create(function()
  590. for i = 1, 5 do
  591. Swait()
  592. TRAIL.Transparency = TRAIL.Transparency + 0.1
  593. end
  594. TRAIL:remove()
  595. end))
  596. end
  597.  
  598. function Epic(SHAKE,TIMER)
  599. coroutine.resume(coroutine.create(function()
  600. local FADER = SHAKE/TIMER
  601. for i = 1, TIMER do
  602. wait()
  603. Humanoid.CameraOffset = VT(MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10,MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10,MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10)
  604. end
  605. Humanoid.CameraOffset = VT(0,0,0)
  606. end))
  607. end
  608.  
  609. function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW)
  610. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  611. local mesh = nil
  612. if KIND == "Base" then
  613. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  614. elseif KIND == "Thin" then
  615. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  616. elseif KIND == "Round" then
  617. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  618. end
  619. wave.CFrame = CFRAME
  620. coroutine.resume(coroutine.create(function(PART)
  621. for i = 1, WAIT do
  622. Swait()
  623. mesh.Scale = mesh.Scale + GROW/10
  624. wave.Transparency = wave.Transparency + (0.5/WAIT)
  625. if wave.Transparency > 0.99 then
  626. wave:remove()
  627. end
  628. end
  629. end))
  630. end
  631.  
  632. function Epic(SHAKE,TIMER)
  633. coroutine.resume(coroutine.create(function()
  634. local FADER = SHAKE/TIMER
  635. for i = 1, TIMER do
  636. wait()
  637. Humanoid.CameraOffset = VT(MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10,MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10,MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10)
  638. end
  639. Humanoid.CameraOffset = VT(0,0,0)
  640. end))
  641. end
  642.  
  643. Debris = game:GetService("Debris")
  644.  
  645. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  646. local DIRECTION = CF(StartPos,EndPos).lookVector
  647. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  648. end
  649.  
  650. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  651. local acs = Instance.new("Part")
  652. acs.CanCollide = false
  653. acs.Anchored = false
  654. acs.Size = Vector3.new(0,0,0)
  655. acs.CFrame = attachmentpart.CFrame
  656. acs.Parent = Character
  657. acs.BrickColor = color
  658. local meshs = Instance.new("SpecialMesh")
  659. meshs.MeshId = mesh
  660. meshs.TextureId = texture
  661. meshs.Parent = acs
  662. meshs.Scale = scale
  663. meshs.Offset = offset
  664. weldBetween(attachmentpart,acs)
  665. end
  666.  
  667. local accessories = Instance.new("Folder",Character)
  668. accessories.Name = "Add-ons"
  669.  
  670. function turnto(position)
  671. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  672. end
  673.  
  674. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  675. if TYPE == "Gem" then
  676. local acs = CreatePart(3, accessories, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  677. acs.Anchored = false
  678. acs.CanCollide = false
  679. acs.CFrame = PART.CFrame
  680. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  681. weldBetween(PART,acs)
  682. elseif TYPE == "Skull" then
  683. local acs = CreatePart(3, accessories, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  684. acs.Anchored = false
  685. acs.CanCollide = false
  686. acs.CFrame = PART.CFrame
  687. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  688. weldBetween(PART,acs)
  689. elseif TYPE == "Eye" then
  690. local acs = CreatePart(3, accessories, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  691. acs.Anchored = false
  692. acs.CanCollide = false
  693. acs.CFrame = PART.CFrame
  694. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  695. weldBetween(PART,acs)
  696. end
  697. end
  698.  
  699. --//=================================\\
  700. --|| WEAPON CREATION
  701. --\\=================================//
  702.  
  703. local bottom = Instance.new("Pants")
  704. bottom.PantsTemplate = "rbxassetid://143808031"
  705. bottom.Parent = Character
  706. bottom.Name = "Cloth"
  707.  
  708. createbodypart("Eye","Maroon",Head,VT(0.2, 0.15, -0.55),VT(5,3,3))
  709. createbodypart("Eye","Maroon",Head,VT(-0.2, 0.15, -0.55),VT(5,3,3))
  710. Head.face:remove()
  711. createaccessory(Head,"http://www.roblox.com/asset/?id=62146989","rbxassetid://145633085",VT(1.05, 1.05, 1.05),VT(0, 0.1, -0.05),BrickColor.new"Really black")
  712.  
  713. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false)
  714. PRT.Color = C3(0,0,0)
  715. local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0))
  716. CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0))
  717. for i = 1, 16 do
  718. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/16.2, "Dark stone grey", "FaceGradient", VT(1.01,0.65,1.01),false)
  719. FACE.Color = C3(0,0,0)
  720. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  721. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.45-(i-1)/25,0), CF(0, 0, 0))
  722. end
  723.  
  724. function chatfunc(text)
  725. local chat = coroutine.wrap(function()
  726. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  727. Character:FindFirstChild("TalkingBillBoard"):destroy()
  728. end
  729. local Bill = Instance.new("BillboardGui",Character)
  730. Bill.Size = UDim2.new(0,100,0,40)
  731. Bill.StudsOffset = Vector3.new(0,3,0)
  732. Bill.Adornee = Character.Head
  733. Bill.Name = "TalkingBillBoard"
  734. local Hehe = Instance.new("TextLabel",Bill)
  735. Hehe.BackgroundTransparency = 1
  736. Hehe.BorderSizePixel = 0
  737. Hehe.Text = ""
  738. Hehe.Font = "Fantasy"
  739. Hehe.TextSize = 40
  740. Hehe.TextStrokeTransparency = 0
  741. Hehe.Size = UDim2.new(1,0,0.5,0)
  742. coroutine.resume(coroutine.create(function()
  743. while Hehe ~= nil do
  744. wait()
  745. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  746. Hehe.Rotation = math.random(-5,5)
  747. Hehe.TextColor3 = Color3.new(0,0,0)
  748. Hehe.TextStrokeColor3 = Color3.new(255,0,0)
  749. end
  750. end))
  751. for i = 1,string.len(text),1 do
  752. wait()
  753. Hehe.Text = string.sub(text,1,i)
  754. end
  755. wait(1.5)--Re[math.random(1, 93)]
  756. for i = 0, 1, .025 do
  757. wait()
  758. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  759. Hehe.TextStrokeTransparency = i
  760. Hehe.TextTransparency = i
  761. end
  762. Bill:Destroy()
  763. end)
  764. chat()
  765. end
  766.  
  767. function onChatted(msg)
  768. chatfunc(msg)
  769. end
  770.  
  771. Player.Chatted:connect(onChatted)
  772.  
  773. local Particle = IT("ParticleEmitter",nil)
  774. Particle.Enabled = false
  775. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  776. Particle.LightEmission = 0.5
  777. Particle.Rate = 150
  778. Particle.ZOffset = 0.2
  779. Particle.Rotation = NumberRange.new(-180, 180)
  780. Particle.RotSpeed = NumberRange.new(-180, 180)
  781. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  782. Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
  783.  
  784. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  785. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(-0.3,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  786. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  787. MakeForm(Part,"Wedge")
  788. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  789. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  790. MakeForm(Part,"Wedge")
  791. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  792. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  793. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  794. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  795. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  796. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  797. MakeForm(Part,"Cyl")
  798. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  799. for i = 1, 8 do
  800. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  801. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  802. end
  803. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  804. MakeForm(Part,"Cyl")
  805. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  806. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  807. MakeForm(Part,"Ball")
  808. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  809. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  810. MakeForm(Part,"Wedge")
  811. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  812. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  813. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  814. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  815. MakeForm(Part,"Cyl")
  816. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  817. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  818. MakeForm(Part,"Cyl")
  819. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  820. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  821. MakeForm(Part,"Cyl")
  822. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  823. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.8,0.2),false)
  824. MakeForm(Part,"Wedge")
  825. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  826. local LASTPART = Handle
  827. for i = 1, 10 do
  828. if LASTPART == Handle then
  829. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  830. LASTPART = Part
  831. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  832. else
  833. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  834. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  835. LASTPART = Part
  836. end
  837. end
  838.  
  839. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  840. MakeForm(Barrel,"Cyl")
  841. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  842. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  843. MakeForm(Part,"Cyl")
  844. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  845. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  846. MakeForm(Part,"Wedge")
  847. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  848. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  849. MakeForm(Hole,"Cyl")
  850. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  851. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  852. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  853. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  854. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  855. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  856. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  857. coroutine.resume(coroutine.create(function()
  858. while wait() do
  859. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(100))
  860. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-100))
  861. end
  862. end))
  863.  
  864. ------
  865. local Handle = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  866. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0.3,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  867. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  868. MakeForm(Part,"Wedge")
  869. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  870. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  871. MakeForm(Part,"Wedge")
  872. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  873. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  874. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  875. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  876. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  877. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  878. MakeForm(Part,"Cyl")
  879. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  880. for i = 1, 8 do
  881. local Piece = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  882. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  883. end
  884. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  885. MakeForm(Part,"Cyl")
  886. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  887. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  888. MakeForm(Part,"Ball")
  889. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  890. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  891. MakeForm(Part,"Wedge")
  892. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  893. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  894. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  895. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  896. MakeForm(Part,"Cyl")
  897. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  898. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  899. MakeForm(Part,"Cyl")
  900. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  901. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  902. MakeForm(Part,"Cyl")
  903. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  904. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.8,0.2),false)
  905. MakeForm(Part,"Wedge")
  906. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  907. local LASTPART = Handle
  908. for i = 1, 10 do
  909. if LASTPART == Handle then
  910. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  911. LASTPART = Part
  912. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  913. else
  914. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  915. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  916. LASTPART = Part
  917. end
  918. end
  919.  
  920. local Barrel = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  921. MakeForm(Barrel,"Cyl")
  922. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  923. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  924. MakeForm(Part,"Cyl")
  925. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  926. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  927. MakeForm(Part,"Wedge")
  928. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  929. local Hole2 = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  930. MakeForm(Hole2,"Cyl")
  931. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole2, CF(0, 0.98, 0), CF(0, 0, 0))
  932. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  933. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  934. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  935. local Part = CreatePart(3, Weapon2, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  936. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  937. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  938. coroutine.resume(coroutine.create(function()
  939. while wait() do
  940. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(100))
  941. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-100))
  942. end
  943. end))
  944. ------
  945.  
  946.  
  947. --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  948.  
  949.  
  950. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  951. function ParticleEmitter(Table)
  952. local PRTCL = Particle:Clone()
  953. local Speed = Table.Speed or 5
  954. local Drag = Table.Drag or 0
  955. local Size1 = Table.Size1 or 1
  956. local Size2 = Table.Size2 or 5
  957. local Lifetime1 = Table.Lifetime1 or 1
  958. local Lifetime2 = Table.Lifetime2 or 1.5
  959. local Parent = Table.Parent or Torso
  960. local Emit = Table.Emit or 100
  961. local Offset = Table.Offset or 360
  962. local Acel = Table.Acel or VT(0,0,0)
  963. local Enabled = Table.Enabled or false
  964. PRTCL.Parent = Parent
  965. PRTCL.Size = NumberSequence.new(Size1,Size2)
  966. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  967. PRTCL.Speed = NumberRange.new(Speed)
  968. PRTCL.VelocitySpread = Offset
  969. PRTCL.Drag = Drag
  970. PRTCL.Acceleration = Acel
  971. if Enabled == false then
  972. PRTCL:Emit(Emit)
  973. Debris:AddItem(PRTCL,Lifetime2)
  974. else
  975. PRTCL.Enabled = true
  976. end
  977. return PRTCL
  978. end
  979.  
  980. for _, c in pairs(Weapon3:GetChildren()) do
  981. if c.ClassName == "Part" then
  982. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  983. end
  984. end
  985.  
  986.  
  987. Weapon3.Parent = Character
  988.  
  989. for _, c in pairs(Weapon:GetDescendants()) do
  990. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  991. c.Material = "Glass"
  992. c.Color = C3(0,0,0)
  993. elseif c.ClassName == "Part" and c.Name == "Eye" then
  994. c.Color = C3(1,0,0)
  995. c.Material = "Neon"
  996. end
  997. end
  998.  
  999. Weapon.Parent = nil
  1000. for _, c in pairs(Weapon:GetChildren()) do
  1001. if c.ClassName == "Part" then
  1002. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1003. end
  1004. end
  1005. ----
  1006. for _, c in pairs(Weapon2:GetDescendants()) do
  1007. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1008. c.Material = "Glass"
  1009. c.Color = C3(0,0,0)
  1010. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1011. c.Color = C3(1,0,0)
  1012. c.Material = "Neon"
  1013. end
  1014. end
  1015.  
  1016. Weapon2.Parent = nil
  1017. for _, c in pairs(Weapon2:GetChildren()) do
  1018. if c.ClassName == "Part" then
  1019. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1020. end
  1021. end
  1022. ----
  1023.  
  1024. local SKILLTEXTCOLOR = C3(1,0,0)
  1025. local SKILLFONT = "Antique"
  1026. local SKILLTEXTSIZE = 7
  1027.  
  1028. Humanoid.Died:connect(function()
  1029. ATTACK = true
  1030. end)
  1031.  
  1032. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.75, 0, 0.40, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  1033. --[[local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  1034. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  1035. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  1036. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  1037. ]]
  1038. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "I'm Lazy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  1039. --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  1040. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  1041. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  1042. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  1043. ]]
  1044. function printbye(Name)
  1045. local MESSAGES = {"Your mom got epic, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
  1046. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  1047. end
  1048.  
  1049. workspace.ChildAdded:connect(function(instance)
  1050. for BANISH = 1, #TOBANISH do
  1051. if TOBANISH[BANISH] ~= nil then
  1052. if instance.Name == TOBANISH[BANISH] then
  1053. coroutine.resume(coroutine.create(function()
  1054. printbye(instance.Name)
  1055. instance:ClearAllChildren()
  1056. Debris:AddItem(instance,0.0005)
  1057. end))
  1058. end
  1059. end
  1060. end
  1061. end)
  1062.  
  1063. --//=================================\\
  1064. --|| DAMAGING
  1065. --\\=================================//
  1066.  
  1067. function Banish(Foe)
  1068. if Foe then
  1069. coroutine.resume(coroutine.create(function()
  1070. --if game.Players:FindFirstChild(Foe.Name) then
  1071. table.insert(TOBANISH,Foe.Name)
  1072. printbye(Foe.Name)
  1073. --end
  1074. Foe.Archivable = true
  1075. local CLONE = Foe:Clone()
  1076. Foe:Destroy()
  1077. CLONE.Parent = Effects
  1078. CLONE:BreakJoints()
  1079. local MATERIALS = {"Glass","Neon"}
  1080. for _, c in pairs(CLONE:GetDescendants()) do
  1081. if c:IsA("BasePart") then
  1082. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1083. CreateSound(340722848, c, 10, 1, false)
  1084. end
  1085. c.Anchored = true
  1086. c.Transparency = c.Transparency + 0.2
  1087. c.Material = MATERIALS[MRANDOM(1,2)]
  1088. c.Color = C3(1,0,0)
  1089. if c.ClassName == "MeshPart" then
  1090. c.TextureID = ""
  1091. end
  1092. if c:FindFirstChildOfClass("SpecialMesh") then
  1093. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1094. end
  1095. if c:FindFirstChildOfClass("BodyPosition") then
  1096. c:FindFirstChildOfClass("BodyPosition"):remove()
  1097. end
  1098. if c:FindFirstChildOfClass("ParticleEmitter") then
  1099. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1100. end
  1101. if c:FindFirstChildOfClass("Decal") then
  1102. c:FindFirstChildOfClass("Decal"):remove()
  1103. end
  1104. c.Name = "Banished"
  1105. c.CanCollide = false
  1106. else
  1107. c:remove()
  1108. end
  1109. end
  1110. local A = false
  1111. for i = 1, 35 do
  1112. if A == false then
  1113. A = true
  1114. elseif A == true then
  1115. A = false
  1116. end
  1117. for _, c in pairs(CLONE:GetDescendants()) do
  1118. if c:IsA("BasePart") then
  1119. c.Anchored = true
  1120. c.Material = MATERIALS[MRANDOM(1,2)]
  1121. c.Transparency = c.Transparency + 0.8/35
  1122. if A == false then
  1123. c.CFrame = c.CFrame*CF(MRANDOM(-1,1)/1,MRANDOM(-1,1)/1,MRANDOM(-1,1)/1)
  1124. elseif A == true then
  1125. c.CFrame = c.CFrame*CF(MRANDOM(-1,1)/1,MRANDOM(-1,1)/1,MRANDOM(-1,1)/1)
  1126. end
  1127. end
  1128. end
  1129. Swait()
  1130. end
  1131. CLONE:remove()
  1132. end))
  1133. end
  1134. end
  1135.  
  1136. function Chunks(PART)
  1137. for i = 1, MRANDOM(3,5) do
  1138. coroutine.resume(coroutine.create(function()
  1139. local CHUNK = CreatePart(3, workspace, PART.Material, 0, PART.Transparency, PART.BrickColor, "Chunk", VT(0.3,0.3,0.3)*MRANDOM(7,13)/10, false)
  1140. CHUNK.CFrame = PART.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1141. local CFRAME = PART.CFrame*CF(MRANDOM(-4,4)/2,MRANDOM(-4,4)/2,-6)
  1142. CHUNK.Velocity = CF(PART.Position,CFRAME.p).lookVector*MRANDOM(15,65)
  1143. wait(0.1)
  1144. CHUNK.CanCollide = true
  1145. wait(MRANDOM(15,25)/5)
  1146. for i = 1, 25 do
  1147. Swait()
  1148. CHUNK.Transparency = CHUNK.Transparency + 1/25
  1149. end
  1150. CHUNK:remove()
  1151. end))
  1152. end
  1153. end
  1154.  
  1155. function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
  1156. if FLOOR ~= nil then
  1157. for i = 1, AMOUNT do
  1158. local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
  1159. DEBREE.Material = FLOOR.Material
  1160. DEBREE.Color = FLOOR.Color
  1161. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  1162. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
  1163. coroutine.resume(coroutine.create(function()
  1164. Swait(15)
  1165. DEBREE.Parent = workspace
  1166. DEBREE.CanCollide = true
  1167. Debris:AddItem(DEBREE,SWAIT)
  1168. end))
  1169. end
  1170. end
  1171. end
  1172.  
  1173. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1174. local CHILDREN = workspace:GetDescendants()
  1175. for index, CHILD in pairs(CHILDREN) do
  1176. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1177. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1178. if HUM then
  1179. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1180. if TORSO then
  1181. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1182. if ISBANISH == true then
  1183. Banish(CHILD)
  1184. else
  1185. if ISBANISH == "Gravity" then
  1186. HUM.PlatformStand = true
  1187. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1188. local grav = Instance.new("BodyPosition",TORSO)
  1189. grav.D = 15
  1190. grav.P = 20000
  1191. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1192. grav.position = TORSO.Position
  1193. grav.Name = "V3BanishForce"..Player.Name
  1194. else
  1195. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1196. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1197. end
  1198. else
  1199. HUM.PlatformStand = false
  1200. end
  1201. end
  1202. elseif ISBANISH == "Gravity" then
  1203. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1204. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1205. HUM.PlatformStand = false
  1206. end
  1207. end
  1208. end
  1209. end
  1210. end
  1211. end
  1212. end
  1213.  
  1214. function KillChildren(v)
  1215. v:BreakJoints()
  1216. for _, c in pairs(v:GetChildren()) do
  1217. if c.ClassName == "Part" or c.ClassName == "MesPart" then
  1218. if c.Transparency < 1 then
  1219. if c:FindFirstChildOfClass("Decal") then
  1220. c:FindFirstChildOfClass("Decal"):remove()
  1221. end
  1222. particles(c)
  1223. c.PE.Enabled = true
  1224. c.Parent = Effects
  1225. c.CanCollide = false
  1226. c.Material = "Neon"
  1227. c.Color = C3(1,0,0)
  1228. c.Transparency = 0.5
  1229. local grav = Instance.new("BodyPosition",c)
  1230. grav.P = 20000
  1231. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1232. grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))
  1233. grav.Name = "GravityForce"
  1234. coroutine.resume(coroutine.create(function()
  1235. for i = 1, 50 do
  1236. Swait()
  1237. c.Transparency = c.Transparency + 0.01
  1238. end
  1239. c.PE.Enabled = false
  1240. Debris:AddItem(c,2)
  1241. end))
  1242. end
  1243. end
  1244. end
  1245. end
  1246.  
  1247. local PE=Instance.new("ParticleEmitter",art)
  1248. PE.LightEmission=.8
  1249. PE.Color = ColorSequence.new(BRICKC("Really red").Color)
  1250. PE.Lifetime=NumberRange.new(0.35,1.5)
  1251. PE.Rotation=NumberRange.new(0,360)
  1252. PE.Rate=999
  1253. PE.VelocitySpread = 10000
  1254. PE.Acceleration = Vector3.new(0,0,0)
  1255. PE.Drag = 5
  1256. PE.Speed = NumberRange.new(0,0,0)
  1257. PE.Texture="http://www.roblox.com/asset/?id=833874434"
  1258. PE.ZOffset = -1.5
  1259. PE.Name = "PE"
  1260. PE.Enabled = false
  1261.  
  1262.  
  1263. function particles(art)
  1264. local PARTICLES = PE:Clone()
  1265. PARTICLES.Parent = art
  1266. end
  1267.  
  1268. function killnearest(position,range)
  1269. for i,v in ipairs(workspace:GetChildren()) do
  1270. local body = v:GetChildren()
  1271. for part = 1, #body do
  1272. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1273. if(body[part].Position - position).Magnitude < range then
  1274. if v.ClassName == "Model" then
  1275. KillChildren(v)
  1276. end
  1277. end
  1278. end
  1279. end
  1280. end
  1281. end
  1282.  
  1283. function ApplyDamage(Humanoid,Damage,OneShot)
  1284. Damage = Damage * DAMAGEMULTIPLIER
  1285. local DEAD = false
  1286. if Humanoid.Health < 2000 and OneShot == false then
  1287. if Humanoid.Health - Damage > 0 then
  1288. Humanoid.Health = Humanoid.Health - Damage
  1289. else
  1290. Humanoid.Parent:BreakJoints()
  1291. DEAD = true
  1292. end
  1293. else
  1294. DEAD = true
  1295. Humanoid.Parent:BreakJoints()
  1296. end
  1297. if DEAD == true then
  1298. local PARTS = {}
  1299. for index, CHILD in pairs(Humanoid.Parent:GetChildren()) do
  1300. if CHILD:IsA("BasePart") then
  1301. table.insert(PARTS,CHILD)
  1302. end
  1303. end
  1304. coroutine.resume(coroutine.create(function()
  1305. wait(2)
  1306. repeat
  1307. Swait()
  1308. local PIECE = nil
  1309. if MRANDOM(1,5) == 1 then
  1310. for E = 1, #PARTS do
  1311. if MRANDOM(1,5) == 1 then
  1312. PIECE = PARTS[E]
  1313. table.remove(PARTS,E)
  1314. break
  1315. end
  1316. end
  1317. end
  1318. if PIECE ~= nil then
  1319. if PIECE.Name == "Head" then
  1320. WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z), Size2 = (VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z))*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), RotationX = MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0.4,0,0), SoundID = 3264923, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2})
  1321. else
  1322. WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = PIECE.Size, Size2 = PIECE.Size*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0.4,0,0), SoundID = 3264923, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2})
  1323. end
  1324. PIECE:remove()
  1325. end
  1326. until #PARTS == 0
  1327. end))
  1328. end
  1329. end
  1330.  
  1331.  
  1332. function ApplyDamage3(Humanoid,Damage,TorsoPart)
  1333. local defence = Instance.new("BoolValue",Humanoid.Parent)
  1334. defence.Name = ("HitBy"..Player.Name)
  1335. game:GetService("Debris"):AddItem(defence, 0.001)
  1336. Damage = Damage * DAMAGEMULTIPLIER
  1337. if Humanoid.Health ~= 0 then
  1338. local CritChance = MRANDOM(1,100)
  1339. if Damage > Humanoid.Health then
  1340. Damage = math.ceil(Humanoid.Health)
  1341. if Damage == 0 then
  1342. Damage = 0.1
  1343. end
  1344. end
  1345. Humanoid.Health = Humanoid.Health - Damage
  1346. end
  1347. end
  1348.  
  1349. function ApplyDamage3(Humanoid,Damage,TorsoPart)
  1350. local defence = Instance.new("BoolValue",Humanoid.Parent)
  1351. defence.Name = ("HitBy"..Player.Name)
  1352. game:GetService("Debris"):AddItem(defence, 0.001)
  1353. Damage = Damage * DAMAGEMULTIPLIER
  1354. if Humanoid.Health ~= 0 then
  1355. local CritChance = MRANDOM(1,100)
  1356. if Damage > Humanoid.Health then
  1357. Damage = math.ceil(Humanoid.Health)
  1358. if Damage == 0 then
  1359. Damage = 0.1
  1360. end
  1361. end
  1362. Humanoid.Health = Humanoid.Health - Damage
  1363. end
  1364. end
  1365.  
  1366. function ApplyAoE3(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  1367. local CHILDREN = workspace:GetDescendants()
  1368. for index, CHILD in pairs(CHILDREN) do
  1369. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1370. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1371. if HUM then
  1372. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1373. if TORSO then
  1374. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1375. if INSTAKILL == true then
  1376. CHILD:BreakJoints()
  1377. else
  1378. local DMG = MRANDOM(MINDMG,MAXDMG)
  1379. ApplyDamage(HUM,DMG,TORSO)
  1380. end
  1381. if FLING > 0 then
  1382. for _, c in pairs(CHILD:GetChildren()) do
  1383. if c:IsA("BasePart") then
  1384. local bv = Instance.new("BodyVelocity")
  1385. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1386. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1387. bv.Parent = c
  1388. Debris:AddItem(bv,0.05)
  1389. end
  1390. end
  1391. end
  1392. end
  1393. end
  1394. end
  1395. end
  1396. end
  1397. end
  1398.  
  1399. function CameraEnshaking(Length, Intensity)
  1400. coroutine.resume(coroutine.create(function()
  1401. local intensity = 1 * Intensity
  1402. local rotM = 0.01 * Intensity
  1403. for i = 0, Length, 0.1 do
  1404. Swait()
  1405. intensity = intensity - 0.05 * Intensity / Length
  1406. rotM = rotM - 5.0E-4 * Intensity / Length
  1407. Humanoid.CameraOffset = Vector3.new(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)))
  1408. Cam.CFrame = Cam.CFrame * CF(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity))) * EULER(RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM)
  1409. end
  1410. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  1411. end))
  1412. end
  1413.  
  1414. function Kill(Char)
  1415. local NewCharacter = IT("Model",Effects)
  1416. NewCharacter.Name = "Ow im ded ;-;"
  1417. for _, c in pairs(Char:GetDescendants()) do
  1418. if c:IsA("BasePart") and c.Transparency == 0 then
  1419. if c.Parent == Char then
  1420. end
  1421. c:BreakJoints()
  1422. c.Material = "Neon"
  1423. c.Color = C3(1,1,1)
  1424. c.CanCollide = true
  1425. c.Transparency = 0.3
  1426. if c:FindFirstChildOfClass("SpecialMesh") then
  1427. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1428. end
  1429. if c.Name == "Head" then
  1430. c:ClearAllChildren()
  1431. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1432. end
  1433. if c.ClassName == "MeshPart" then
  1434. c.TextureID = ""
  1435. end
  1436. if c:FindFirstChildOfClass("BodyPosition") then
  1437. c:FindFirstChildOfClass("BodyPosition"):remove()
  1438. end
  1439. if c:FindFirstChildOfClass("ParticleEmitter") then
  1440. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1441. end
  1442. c.Parent = NewCharacter
  1443. c.Name = "DeadPart"
  1444. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1445. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1446. end
  1447. end
  1448. Char:remove()
  1449. Debris:AddItem(NewCharacter,5)
  1450. end
  1451.  
  1452. function PuddleOfBlood(Position,MaxDrop,Model,MaxSize)
  1453. local HITFLOOR, HITPOS, NORMAL = Raycast(Position, (CF(Position, Position + VT(0, -1, 0))).lookVector, MaxDrop, Model)
  1454. if HITFLOOR ~= nil then
  1455. if HITFLOOR.Parent ~= Effects and HITFLOOR.Parent ~= Character then
  1456. if HITFLOOR.Name == "BloodPuddle" then
  1457. local DIST = (Position - HITFLOOR.Position).Magnitude
  1458. if (HITFLOOR.Size.Z <= 5 and HITFLOOR.Size.Z < MaxSize) or (HITFLOOR.Size.Z > 5 and HITFLOOR.Size.Z < MaxSize and DIST < HITFLOOR.Size.Z/3) then
  1459. HITFLOOR.Size = HITFLOOR.Size + VT(0.1,0,0.1)
  1460. end
  1461. else
  1462. if HITFLOOR.Anchored == true then
  1463. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(2,0,2))
  1464. BLOOD.CFrame = CF(HITPOS,HITPOS+NORMAL)*ANGLES(RAD(90),RAD(0),RAD(0))
  1465. MakeForm(BLOOD,"Cyl")
  1466. coroutine.resume(coroutine.create(function()
  1467. Swait(75)
  1468. while true do
  1469. Swait()
  1470. BLOOD.Size = BLOOD.Size - VT(0.02,0,0.02)
  1471. if BLOOD.Size.Z < 0.051 then
  1472. BLOOD:remove()
  1473. break
  1474. end
  1475. end
  1476. end))
  1477. end
  1478. end
  1479. end
  1480. end
  1481. end
  1482.  
  1483. function SprayBlood(POSITION,DIRECTION,BloodSize,DoesTable,Table)
  1484. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(0.5,0.5,0.5),false)
  1485. BLOOD.CFrame = CF(POSITION)
  1486. MakeForm(BLOOD,"Ball")
  1487. local bv = Instance.new("BodyVelocity",BLOOD)
  1488. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1489. bv.velocity = CF(POSITION,DIRECTION+VT(MRANDOM(-3,3),MRANDOM(-3,3)/30,MRANDOM(-3,3))).lookVector*65
  1490. bv.Name = "MOVE"
  1491. Debris:AddItem(bv,0.05)
  1492. coroutine.resume(coroutine.create(function()
  1493. local HASTOUCHEDGROUND = false
  1494. local HIT = BLOOD.Touched:Connect(function(hit)
  1495. if hit.Anchored == true then
  1496. HASTOUCHEDGROUND = true
  1497. if DoesTable == true then
  1498. AddChildrenToTable(BLOOD.Position,workspace,15,Table)
  1499. end
  1500. PuddleOfBlood(BLOOD.Position+VT(0,1,0),2,BLOOD,BloodSize)
  1501. end
  1502. end)
  1503. for i = 1, 75 do
  1504. Swait()
  1505. if i > 5 then
  1506. BLOOD.CanCollide = true
  1507. end
  1508. if HASTOUCHEDGROUND == true then
  1509. break
  1510. end
  1511. end
  1512. BLOOD:remove()
  1513. end))
  1514. end
  1515.  
  1516. function AddChildrenToTable(FROM,PARENT,DIST,TABLE)
  1517. for _, c in pairs(PARENT:GetChildren()) do
  1518. if c.ClassName == "Model" then
  1519. if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then
  1520. local HUMANOID = c:FindFirstChildOfClass("Humanoid")
  1521. local TORSO = (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso"))
  1522. if (TORSO.Position - FROM).Magnitude < DIST then
  1523. table.insert(TABLE,c)
  1524. end
  1525. AddChildrenToTable(FROM,c,DIST,TABLE)
  1526. elseif c.ClassName == "Folder" then
  1527. AddChildrenToTable(FROM,c,DIST,TABLE)
  1528. end
  1529. end
  1530. end
  1531. end
  1532.  
  1533.  
  1534. --//=================================\\
  1535. --|| ATTACK FUNCTIONS AND STUFF
  1536. --\\=================================//
  1537.  
  1538. function Shot3()
  1539. ATTACK = true
  1540. Rooted = false
  1541. for i=0, 0.4, 0.1 / Animation_Speed do
  1542. Swait()
  1543. turnto(Mouse.Hit.p)
  1544. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1545. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(7 * COS(SINE / 12)), RAD(0)), 0.5 / Animation_Speed)
  1546. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.4, -0.2) * ANGLES(RAD(90), RAD(10), RAD(-20)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1547. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-0), RAD(59), RAD(0)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1548. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-6), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1549. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-6), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1550. end
  1551. repeat
  1552. for i=0, 0.5, 0.1 / Animation_Speed do
  1553. Swait()
  1554. turnto(Mouse.Hit.p)
  1555. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.4, -0.2) * ANGLES(RAD(90), RAD(10), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1556. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(20)), 1 / Animation_Speed)
  1557. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(-20)), 1 / Animation_Speed)
  1558. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.5, -0.2) * ANGLES(RAD(90), RAD(-10), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1559. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.6) * ANGLES(RAD(-20), RAD(90), RAD(0)) * ANGLES(RAD(10), RAD(0), RAD(0)), 1 / Animation_Speed)
  1560. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-20), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1561. end
  1562. Epic(4,4)
  1563. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  1564. SpawnTrail(Hole.Position,POS)
  1565. if HIT ~= nil then
  1566. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1567. Banish(HIT.Parent)
  1568. end
  1569. end
  1570. local HIT,POS = CastProperRay(Hole2.Position, Mouse.Hit.p, 1000, Character)
  1571. SpawnTrail(Hole2.Position,POS)
  1572. if HIT ~= nil then
  1573. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1574. Banish(HIT.Parent)
  1575. end
  1576. end
  1577. killnearest(RootPart.Position, 12, 12)
  1578. ApplyAoE(POS, 32, true)
  1579. WACKYEFFECT({Time = 80, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(60,60,60), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,0,1), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil , SoundPitch = 1.2, SoundVolume = 4})
  1580. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1581. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1582. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1583. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1584. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = Hole2.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1585. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1586. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1587. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1588. Epic(4,4)
  1589. for i=0, 0.5, 0.1 / Animation_Speed do
  1590. Swait()
  1591. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.3) * ANGLES(RAD(20), RAD(0), RAD(0)), 2 / Animation_Speed)
  1592. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1593. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1594. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1595. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.4, -0.3) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1596. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(20), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(60)), 2 / Animation_Speed)
  1597. end
  1598. until KEYHOLD == false
  1599. ATTACK = false
  1600. Rooted = false
  1601. end
  1602.  
  1603. function Shot()
  1604. ATTACK = true
  1605. Rooted = false
  1606. for i=0, 0.4, 0.1 / Animation_Speed do
  1607. Swait()
  1608. turnto(Mouse.Hit.p)
  1609. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1610. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(7 * COS(SINE / 12)), RAD(0)), 0.5 / Animation_Speed)
  1611. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.4, -0.2) * ANGLES(RAD(90), RAD(10), RAD(-20)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1612. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(59), RAD(0)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1613. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-6), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1614. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-6), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1615. end
  1616. repeat
  1617. for i=0, 0.5, 0.1 / Animation_Speed do
  1618. Swait()
  1619. turnto(Mouse.Hit.p)
  1620. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.4, -0.2) * ANGLES(RAD(90), RAD(10), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1621. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(20)), 1 / Animation_Speed)
  1622. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(-20)), 1 / Animation_Speed)
  1623. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1624. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.6) * ANGLES(RAD(-20), RAD(90), RAD(0)) * ANGLES(RAD(10), RAD(0), RAD(0)), 1 / Animation_Speed)
  1625. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-20), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1626. end
  1627. Epic(4,4)
  1628. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  1629. SpawnTrail(Hole.Position,POS)
  1630. if HIT ~= nil then
  1631. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1632. Banish(HIT.Parent)
  1633. end
  1634. end
  1635. WACKYEFFECT({Time = 80, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(60,60,60), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,0,1), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil , SoundPitch = 1.2, SoundVolume = 4})
  1636. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1637. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1638. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1639. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1640. Epic(4,4)
  1641. for i=0, 0.5, 0.1 / Animation_Speed do
  1642. Swait()
  1643. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.3) * ANGLES(RAD(20), RAD(0), RAD(0)), 2 / Animation_Speed)
  1644. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1645. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1646. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-12), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1647. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.4, -0.3) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1648. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(20), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(60)), 2 / Animation_Speed)
  1649. end
  1650. until KEYHOLD == false
  1651. ATTACK = false
  1652. Rooted = false
  1653. end
  1654.  
  1655. function AttackTemplate()
  1656. ATTACK = true
  1657. Rooted = false
  1658. for i=0, 1, 0.1 / Animation_Speed do
  1659. Swait()
  1660. 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)
  1661. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1662. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1663. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1664. 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)
  1665. 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)
  1666. end
  1667. ATTACK = false
  1668. Rooted = false
  1669. end
  1670.  
  1671. function Switch()
  1672. ATTACK = true
  1673. Rooted = true
  1674. if MODE == "GoodCop" then
  1675. VIS = 873998498
  1676. VOLUME = 1
  1677. PITCH = 1
  1678. sick.TimePosition = 15
  1679. for i=0, 2, 0.1 / Animation_Speed do
  1680. Swait()
  1681. 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)
  1682. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1683. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1684. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1685. 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)
  1686. 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)
  1687. end
  1688. for i=0, 3, 0.1 / Animation_Speed do
  1689. Swait()
  1690. 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)
  1691. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1692. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1693. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1694. 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)
  1695. 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)
  1696. end
  1697. Epic(4,4)
  1698. for i=0, 0.5, 0.1 / Animation_Speed do
  1699. Swait()
  1700. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1701. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1702. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(10), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1703. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(10), RAD(0), RAD(-65)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1704. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(5), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1705. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(5), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1706. end
  1707. Epic(4,4)
  1708. for i=0, 0.5, 0.1 / Animation_Speed do
  1709. Swait()
  1710. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(10), RAD(0), RAD(0)), 1 / Animation_Speed)
  1711. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1712. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(20), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1713. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(20), RAD(0), RAD(-65)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1714. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(10), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1715. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(10), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1716. end
  1717. Epic(4,4)
  1718. for i=0, 0.5, 0.1 / Animation_Speed do
  1719. Swait()
  1720. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1721. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1722. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1723. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(30), RAD(0), RAD(-65)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1724. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(15), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1725. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(15), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1726. end
  1727. Epic(4,4)
  1728. for i=0, 0.5, 0.1 / Animation_Speed do
  1729. Swait()
  1730. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1731. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1732. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(40), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1733. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(40), RAD(0), RAD(-65)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1734. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1735. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1736. end
  1737. Epic(4,4)
  1738. for i=0, 0.5, 0.1 / Animation_Speed do
  1739. Swait()
  1740. 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)
  1741. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1742. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(50), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1743. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(50), RAD(0), RAD(-65)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1744. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(25), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1745. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(25), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1746. end
  1747. for i=0, 0.5, 0.1 / Animation_Speed do
  1748. Swait()
  1749. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed)
  1750. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1751. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1752. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1753. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(25), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1754. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(25), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1755. end
  1756. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 6 * Player_Size, Character)
  1757. WACKYEFFECT({Time = 80, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(250,250,250), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,0,1), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil , SoundPitch = 1.2, SoundVolume = 4})
  1758. WACKYEFFECT({Time = 60, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(20,20,20), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,0,1), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil , SoundPitch = 1.2, SoundVolume = 4})
  1759. Epic(6,6)
  1760. coroutine.resume(coroutine.create(function()
  1761. for e=1,#HITBODIES do
  1762. Swait()
  1763. if HITBODIES[e]~=nil then
  1764. local BOD = HITBODIES[e]
  1765. local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso")
  1766. if TORS then
  1767. Slice("Thin",0.5,35,CF(TORS.Position,Torso.Position)*ANGLES(RAD(0),RAD(-90),RAD(0)),"Really red",VT(0.01,0,0.01))
  1768. local HUM = BOD:FindFirstChildOfClass("Humanoid")
  1769. if HUM then
  1770. ApplyDamage(HUM,3,2,1.3)
  1771. end
  1772. end
  1773. end
  1774. end
  1775. HITBODIES = {}
  1776. end))
  1777. SprayBlood(Head.CFrame*CF(0,-Head.Size.Y,0).p,Head.CFrame*CF(MRANDOM(-15,15),-Head.Size.Y*2,MRANDOM(-15,15)).p,25,true,HITBODIES)
  1778. Weapon.Parent = Character
  1779. Weapon2.Parent = Character
  1780. for i=0, 1, 0.1 / Animation_Speed do
  1781. Swait()
  1782. SprayBlood(Head.CFrame*CF(0,-Head.Size.Y,0).p,Head.CFrame*CF(MRANDOM(-15,15),-Head.Size.Y*2,MRANDOM(-15,15)).p,25,true,HITBODIES)
  1783. 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)
  1784. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1785. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1786. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1787. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-25), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1788. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-25), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1789. end
  1790. MODE = "BadCop"
  1791. elseif MODE == "BadCop" then
  1792. Weapon2.Parent = nil
  1793. Weapon.Parent = nil
  1794. CreateSound(147722227, Torso, 4, 1.3, false)
  1795. WACKYEFFECT({Time = 60, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(20,20,20), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,0,1), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil , SoundPitch = 1.2, SoundVolume = 4})
  1796. for i=0, 0.3, 0.1 / Animation_Speed do
  1797. Swait()
  1798. 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)
  1799. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1800. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1801. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1802. 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)
  1803. 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)
  1804. end
  1805. MODE = "GoodCop"
  1806. VIS = 492726372
  1807. PITCH = 1
  1808. VOLUME = 1
  1809. sick.TimePosition = 0
  1810. end
  1811. ATTACK = false
  1812. Rooted = false
  1813. end
  1814.  
  1815. function Taunt()
  1816. ATTACK = true
  1817. Rooted = false
  1818. for i=0, 2, 0.1 / Animation_Speed do
  1819. Swait()
  1820. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.2, -0.2) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1821. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1822. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(32), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1823. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(32), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1824. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(45), RAD(85), RAD(0)) * ANGLES(RAD(-6), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1825. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 ,-0.01) * ANGLES(RAD(45), RAD(-85), RAD(0)) * ANGLES(RAD(-6), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1826. end
  1827. for i=0, 2, 0.1 / Animation_Speed do
  1828. Swait()
  1829. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.2, -0.2) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1830. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1831. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(32), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1832. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(32), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1833. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(45), RAD(85), RAD(0)) * ANGLES(RAD(-6), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1834. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 ,-0.01) * ANGLES(RAD(45), RAD(-85), RAD(0)) * ANGLES(RAD(-6), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1835. end
  1836. CreateSound(363808674, Torso, 10, 1.3)
  1837. Epic(4,4)
  1838. for i=0, 3, 0.1 / Animation_Speed do
  1839. Swait()
  1840. SprayBlood(Head.CFrame*CF(0,-Head.Size.Y,0).p,Head.CFrame*CF(MRANDOM(-15,15),-Head.Size.Y*2,MRANDOM(-15,15)).p,25,true,HITBODIES)
  1841. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2) * ANGLES(RAD(-32), RAD(0), RAD(0)), 4 / Animation_Speed)
  1842. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-90), RAD(0), RAD(0)), 4 / Animation_Speed)
  1843. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-32), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 4 / Animation_Speed)
  1844. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-32), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 4 / Animation_Speed)
  1845. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-32), RAD(85), RAD(0)) * ANGLES(RAD(-6), RAD(0), RAD(0)), 4 / Animation_Speed)
  1846. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 ,-0.01) * ANGLES(RAD(-32), RAD(-85), RAD(0)) * ANGLES(RAD(-6), RAD(0), RAD(0)), 4 / Animation_Speed)
  1847. end
  1848. ATTACK = false
  1849. Rooted = false
  1850. end
  1851.  
  1852. function AttackTe22mplate()
  1853. ATTACK = true
  1854. Rooted = false
  1855. CreateSound(1547220953, Torso, 6, 1, false)
  1856. for i=0, 7, 0.1 / Animation_Speed do
  1857. Swait()
  1858. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 - 0.1 * COS(SINE / 2)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1859. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1860. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1861. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1862. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.1 * COS(SINE / 2),-0.01) * ANGLES(RAD(-5), RAD(85), RAD(0)) * ANGLES(RAD(-6), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1863. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 + 0.1 * COS(SINE / 2),-0.01) * ANGLES(RAD(-5), RAD(-85), RAD(0)) * ANGLES(RAD(-6), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1864. end
  1865. ATTACK = false
  1866. Rooted = false
  1867. end
  1868.  
  1869. function nope()
  1870. ATTACK = true
  1871. Rooted = false
  1872. chatfunc("Dude Press F To use it",0.01)
  1873. for i=0, 5, 0.1 / Animation_Speed do
  1874. Swait()
  1875. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 - 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1876. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(20 * COS(SINE / 7))), 0.5 / Animation_Speed)
  1877. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 - 0.1 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(0), RAD(-100)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1878. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.3 - 0.1 * COS(SINE / 12), -0.35) * ANGLES(RAD(0), RAD(0), RAD(70)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1879. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.05 * COS(SINE / 12),-0.01) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-6), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1880. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 + 0.05 * COS(SINE / 12),-0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-6), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1881. end
  1882. ATTACK = false
  1883. Rooted = false
  1884. end
  1885.  
  1886. --//=================================\\
  1887. --|| ASSIGN THINGS TO KEYS
  1888. --\\=================================//
  1889.  
  1890. function MouseDown(Mouse)
  1891. if ATTACK == false then
  1892. end
  1893. end
  1894.  
  1895. function MouseUp(Mouse)
  1896. HOLD = false
  1897. end
  1898.  
  1899. function KeyDown(Key)
  1900. KEYHOLD = true
  1901. if Key == "z" and ATTACK == false then
  1902. if MODE == "GoodCop" then
  1903. nope()
  1904. elseif MODE == "BadCop" then
  1905. Shot3()
  1906. end
  1907. end
  1908.  
  1909. if Key == "f" and ATTACK == false then
  1910. Switch()
  1911. end
  1912.  
  1913. if Key == "t" and ATTACK == false then
  1914. if MODE == "GoodCop" then
  1915. AttackTe22mplate()
  1916. elseif MODE == "BadCop" then
  1917. Taunt()
  1918. end
  1919. end
  1920.  
  1921. if Key == "v" and ATTACK == false then
  1922. end
  1923.  
  1924. if Key == "x" and ATTACK == false then
  1925. end
  1926. end
  1927.  
  1928. function KeyUp(Key)
  1929. KEYHOLD = false
  1930. end
  1931.  
  1932. Mouse.Button1Down:connect(function(NEWKEY)
  1933. MouseDown(NEWKEY)
  1934. end)
  1935. Mouse.Button1Up:connect(function(NEWKEY)
  1936. MouseUp(NEWKEY)
  1937. end)
  1938. Mouse.KeyDown:connect(function(NEWKEY)
  1939. KeyDown(NEWKEY)
  1940. end)
  1941. Mouse.KeyUp:connect(function(NEWKEY)
  1942. KeyUp(NEWKEY)
  1943. end)
  1944.  
  1945. --//=================================\\
  1946. --\\=================================//
  1947.  
  1948.  
  1949. function unanchor()
  1950. if UNANCHOR == true then
  1951. g = Character:GetChildren()
  1952. for i = 1, #g do
  1953. if g[i].ClassName == "Part" then
  1954. g[i].Anchored = false
  1955. end
  1956. end
  1957. end
  1958. end
  1959.  
  1960.  
  1961. --//=================================\\
  1962. --|| WRAP THE WHOLE SCRIPT UP
  1963. --\\=================================//
  1964.  
  1965. Humanoid.Changed:connect(function(Jump)
  1966. if Jump == "Jump" and (Disable_Jump == true) then
  1967. Humanoid.Jump = false
  1968. end
  1969. end)
  1970.  
  1971. local CONNECT = nil
  1972.  
  1973. while true do
  1974. Swait()
  1975. ANIMATE.Parent = nil
  1976. if Character:FindFirstChildOfClass("Humanoid") == nil then
  1977. Humanoid = IT("Humanoid",Character)
  1978. end
  1979. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1980. v:Stop();
  1981. end
  1982. SINE = SINE + CHANGE
  1983. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1984. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1985. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1986. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4+Humanoid.HipHeight * Player_Size, Character)
  1987. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1988. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1989. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0.1 * COS(SINE / (WALKSPEEDVALUE/2))) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1990. 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)
  1991. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.5 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.3 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10+50 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
  1992. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.5 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.3 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-10+50 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
  1993. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1994. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1995. 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)
  1996. 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)
  1997. 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)
  1998. end
  1999. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2000. ANIM = "Jump"
  2001. if ATTACK == false then
  2002. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-12), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2003. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2004. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20))* RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2005. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2006. 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)
  2007. 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)
  2008. end
  2009. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2010. ANIM = "Fall"
  2011. if ATTACK == false then
  2012. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(12), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2013. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2014. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2015. LeftShoulder.C0 =Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2016. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(5), RAD(50)), 0.2 / Animation_Speed)
  2017. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(5), RAD(10)), 0.2 / Animation_Speed)
  2018. end
  2019. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2020. ANIM = "Idle"
  2021. if ATTACK == false then
  2022. if MODE == "GoodCop" then
  2023. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 - 0.1 * COS(SINE / 12)) * ANGLES(RAD(5 * COS(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2024. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(7 * COS(SINE / 12)), RAD(0)), 0.5 / Animation_Speed)
  2025. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 - 0.1 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(0), RAD(-100)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2026. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.3 - 0.1 * COS(SINE / 12), -0.35) * ANGLES(RAD(0), RAD(0), RAD(70)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2027. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(7 * COS(SINE / 12)), RAD(85), RAD(0)) * ANGLES(RAD(-6), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2028. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 + 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(7 * COS(SINE / 12)), RAD(-85), RAD(0)) * ANGLES(RAD(-6), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2029. elseif MODE == "BadCop" then
  2030. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2031. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(MRANDOM(-25,25)), RAD(MRANDOM(-25,25))), 0.15 / Animation_Speed)
  2032. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2033. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2034. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(80), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2035. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(-80), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2036. if MRANDOM(1,100) == 1 then
  2037. VALUE1 = true
  2038. for i = 1, 75 do
  2039. Swait()
  2040. sick.Pitch = 0.8
  2041. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2042. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-25,25)), RAD(MRANDOM(-25,25)), RAD(MRANDOM(-25,25))), 0.5 / Animation_Speed)
  2043. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2044. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2045. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(80), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2046. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(-80), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2047. end
  2048. sick.Pitch = 1
  2049. VALUE1 = false
  2050. end
  2051. end
  2052. end
  2053. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2054. ANIM = "Walk"
  2055. if ATTACK == false then
  2056. if MODE == "GoodCop" then
  2057. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.05) * ANGLES(RAD(15), RAD(0), RAD(-7 * COS(SINE / (WALKSPEEDVALUE)))), 1 / Animation_Speed)
  2058. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(7 * COS(SINE / (WALKSPEEDVALUE)))), 1 / Animation_Speed)
  2059. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(50 * COS(SINE / (WALKSPEEDVALUE))), RAD(-5), RAD(-30 * COS(SINE / (WALKSPEEDVALUE)))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2060. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-50 * COS(SINE / (WALKSPEEDVALUE))), RAD(5), RAD(-30 * COS(SINE / (WALKSPEEDVALUE)))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2061. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  2062. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  2063. elseif MODE == "BadCop" then
  2064. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.05) * ANGLES(RAD(15), RAD(0), RAD(-7 * COS(SINE / (WALKSPEEDVALUE)))), 0.5 / Animation_Speed)
  2065. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(MRANDOM(-25,25)), RAD(7 * COS(SINE / (WALKSPEEDVALUE)))), 0.5 / Animation_Speed)
  2066. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  2067. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  2068. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80 * COS(SINE / (WALKSPEEDVALUE))), RAD(0),RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2069. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-80 * COS(SINE / (WALKSPEEDVALUE))), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2070. end
  2071. end
  2072. end
  2073. unanchor()
  2074. Humanoid.MaxHealth = "inf"
  2075. Humanoid.Health = "inf"
  2076. if Rooted == false then
  2077. Disable_Jump = false
  2078. Humanoid.WalkSpeed = Speed
  2079. elseif Rooted == true then
  2080. Disable_Jump = true
  2081. Humanoid.WalkSpeed = 0
  2082. end
  2083. q = Character:GetChildren()
  2084. for u = 1, #q do
  2085. if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
  2086. q[u]:remove()
  2087. elseif q[u].ClassName == "CharacterMesh" then
  2088. q[u].OverlayTextureId = "99174105"
  2089. elseif q[u].ClassName == "ShirtGraphic" then
  2090. q[u]:remove()
  2091. end
  2092. end
  2093. sick.Parent = Torso
  2094. sick.Volume = VOLUME
  2095. sick.Pitch = PITCH
  2096. sick.SoundId = "rbxassetid://"..VIS
  2097. sick.Name = "Dead"
  2098. sick.Looped = true
  2099. sick:Resume()
  2100. end
  2101.  
  2102. --//=================================\\
  2103. --\\=================================//
  2104.  
  2105.  
  2106. --//====================================================\\--
  2107. --|| END OF SCRIPT
  2108. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement