Advertisement
Guest User

Untitled

a guest
Nov 18th, 2018
1,652
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 66.67 KB | None | 0 0
  1.  
  2.  
  3.  
  4. wait(0.2)
  5.  
  6.  
  7.  
  8. Player = game:GetService("Players").LocalPlayer
  9. PlayerGui = Player.PlayerGui
  10. Cam = workspace.CurrentCamera
  11. Backpack = Player.Backpack
  12. Character = Player.Character
  13. Humanoid = Character.Humanoid
  14. Mouse = Player:GetMouse()
  15. RootPart = Character["HumanoidRootPart"]
  16. Torso = Character["Torso"]
  17. Head = Character["Head"]
  18. RightArm = Character["Right Arm"]
  19. LeftArm = Character["Left Arm"]
  20. RightLeg = Character["Right Leg"]
  21. LeftLeg = Character["Left Leg"]
  22. RootJoint = RootPart["RootJoint"]
  23. Neck = Torso["Neck"]
  24. RightShoulder = Torso["Right Shoulder"]
  25. LeftShoulder = Torso["Left Shoulder"]
  26. RightHip = Torso["Right Hip"]
  27. LeftHip = Torso["Left Hip"]
  28. local sick = Instance.new("Sound",Torso)
  29. sick.SoundId = "rbxassetid://1755770760"
  30. sick.Looped = true
  31. sick.Pitch = 1
  32. sick.Volume = 2
  33. sick:Play()
  34.  
  35. IT = Instance.new
  36. CF = CFrame.new
  37. VT = Vector3.new
  38. RAD = math.rad
  39. C3 = Color3.new
  40. UD2 = UDim2.new
  41. BRICKC = BrickColor.new
  42. ANGLES = CFrame.Angles
  43. EULER = CFrame.fromEulerAnglesXYZ
  44. COS = math.cos
  45. ACOS = math.acos
  46. SIN = math.sin
  47. ASIN = math.asin
  48. ABS = math.abs
  49. MRANDOM = math.random
  50. FLOOR = math.floor
  51.  
  52. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  53. local NEWMESH = IT(MESH)
  54. if MESH == "SpecialMesh" then
  55. NEWMESH.MeshType = MESHTYPE
  56. if MESHID ~= "nil" and MESHID ~= "" then
  57. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  58. end
  59. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  60. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  61. end
  62. end
  63. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  64. NEWMESH.Scale = SCALE
  65. NEWMESH.Parent = PARENT
  66. return NEWMESH
  67. end
  68.  
  69. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  70. local NEWPART = IT("Part")
  71. NEWPART.formFactor = FORMFACTOR
  72. NEWPART.Reflectance = REFLECTANCE
  73. NEWPART.Transparency = TRANSPARENCY
  74. NEWPART.CanCollide = false
  75. NEWPART.Locked = true
  76. NEWPART.Anchored = true
  77. if ANCHOR == false then
  78. NEWPART.Anchored = false
  79. end
  80. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  81. NEWPART.Name = NAME
  82. NEWPART.Size = SIZE
  83. NEWPART.Position = Torso.Position
  84. NEWPART.Material = MATERIAL
  85. NEWPART:BreakJoints()
  86. NEWPART.Parent = PARENT
  87. return NEWPART
  88. end
  89.  
  90. --//=================================\\
  91. --|| CUSTOMIZATION
  92. --\\=================================//
  93.  
  94. Player_Size = 1 --Size of the player.
  95. Animation_Speed = 3
  96. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  97.  
  98. local Speed = 16
  99. local Effects2 = {}
  100.  
  101. --//=================================\\
  102. --|| END OF CUSTOMIZATION
  103. --\\=================================//
  104.  
  105. local function weldBetween(a, b)
  106. local weldd = Instance.new("ManualWeld")
  107. weldd.Part0 = a
  108. weldd.Part1 = b
  109. weldd.C0 = CFrame.new()
  110. weldd.C1 = b.CFrame:inverse() * a.CFrame
  111. weldd.Parent = a
  112. return weldd
  113. end
  114.  
  115. --//=================================\\
  116. --|| USEFUL VALUES
  117. --\\=================================//
  118.  
  119. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  120. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  121. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  122. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  123. local CHANGEDEFENSE = 0
  124. local CHANGEDAMAGE = 0
  125. local CHANGEMOVEMENT = 0
  126. local ANIM = "Idle"
  127. local ATTACK = false
  128. local EQUIPPED = false
  129. local HOLD = false
  130. local COMBO = 1
  131. local Rooted = false
  132. local Horn1 = IT("Folder", Character)
  133. Horn1.Name = "Horn1"
  134. local SINE = 0
  135. local KEYHOLD = false
  136. local CHANGE = 2 / Animation_Speed
  137. local WALKINGANIM = false
  138. local MODE = "Cop"
  139. local WALK = 0
  140. local VALUE1 = false
  141. local VALUE2 = false
  142. local ROBLOXIDLEANIMATION = IT("Animation")
  143. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  144. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  145. --ROBLOXIDLEANIMATION.Parent = Humanoid
  146. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  147. WEAPONGUI.Name = "Weapon GUI"
  148. local Effects = IT("Folder", Character)
  149. Effects.Name = "Effects"
  150. local Weapon = IT("Model")
  151. Weapon.Name = "Adds"
  152. local Effects = IT("Folder", Weapon)
  153. Effects.Name = "Effects"
  154. local ANIMATOR = Humanoid.Animator
  155. local ANIMATE = Character.Animate
  156. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  157. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  158. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  159. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  160. local UNANCHOR = true
  161.  
  162. local SKILLTEXTCOLOR = C3(0,0,0)
  163.  
  164. local naeeym2 = Instance.new("BillboardGui",Character)
  165. naeeym2.AlwaysOnTop = true
  166. naeeym2.Size = UDim2.new(5,35,2,35)
  167. naeeym2.StudsOffset = Vector3.new(0,2,0)
  168. naeeym2.Adornee = Character.Head
  169. naeeym2.Name = "Name"
  170. naeeym2.PlayerToHideFrom = Player
  171. local tecks2 = Instance.new("TextLabel",naeeym2)
  172. tecks2.BackgroundTransparency = 1
  173. tecks2.TextScaled = true
  174. tecks2.BorderSizePixel = 0
  175. tecks2.Text = Player.Name..", The Ultimate Edgelord"
  176. tecks2.Font = "Antique"
  177. tecks2.TextSize = 30
  178. tecks2.TextStrokeTransparency = 0
  179. tecks2.TextColor3 = Color3.new(0,0,0)
  180. tecks2.TextStrokeColor3 = Color3.new(0.2,0.2,0.2)
  181. tecks2.Size = UDim2.new(1,0,0.5,0)
  182. tecks2.Parent = naeeym2
  183.  
  184. --//=================================\\
  185. --\\=================================//
  186.  
  187.  
  188. --//=================================\\
  189. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  190. --\\=================================//
  191.  
  192. ArtificialHB = Instance.new("BindableEvent", script)
  193. ArtificialHB.Name = "ArtificialHB"
  194.  
  195. script:WaitForChild("ArtificialHB")
  196.  
  197. frame = Frame_Speed
  198. tf = 0
  199. allowframeloss = false
  200. tossremainder = false
  201. lastframe = tick()
  202. script.ArtificialHB:Fire()
  203.  
  204. game:GetService("RunService").Heartbeat:connect(function(s, p)
  205. tf = tf + s
  206. if tf >= frame then
  207. if allowframeloss then
  208. script.ArtificialHB:Fire()
  209. lastframe = tick()
  210. else
  211. for i = 1, math.floor(tf / frame) do
  212. script.ArtificialHB:Fire()
  213. end
  214. lastframe = tick()
  215. end
  216. if tossremainder then
  217. tf = 0
  218. else
  219. tf = tf - frame * math.floor(tf / frame)
  220. end
  221. end
  222. end)
  223.  
  224. --//=================================\\
  225. --\\=================================//
  226.  
  227.  
  228.  
  229.  
  230.  
  231. --//=================================\\
  232. --|| SOME FUNCTIONS
  233. --\\=================================//
  234.  
  235. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  236. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  237. end
  238.  
  239. function PositiveAngle(NUMBER)
  240. if NUMBER >= 0 then
  241. NUMBER = 0
  242. end
  243. return NUMBER
  244. end
  245.  
  246. function NegativeAngle(NUMBER)
  247. if NUMBER <= 0 then
  248. NUMBER = 0
  249. end
  250. return NUMBER
  251. end
  252.  
  253. function Swait(NUMBER)
  254. if NUMBER == 0 or NUMBER == nil then
  255. ArtificialHB.Event:wait()
  256. else
  257. for i = 1, NUMBER do
  258. ArtificialHB.Event:wait()
  259. end
  260. end
  261. end
  262.  
  263. function QuaternionFromCFrame(cf)
  264. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  265. local trace = m00 + m11 + m22
  266. if trace > 0 then
  267. local s = math.sqrt(1 + trace)
  268. local recip = 0.5 / s
  269. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  270. else
  271. local i = 0
  272. if m11 > m00 then
  273. i = 1
  274. end
  275. if m22 > (i == 0 and m00 or m11) then
  276. i = 2
  277. end
  278. if i == 0 then
  279. local s = math.sqrt(m00 - m11 - m22 + 1)
  280. local recip = 0.5 / s
  281. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  282. elseif i == 1 then
  283. local s = math.sqrt(m11 - m22 - m00 + 1)
  284. local recip = 0.5 / s
  285. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  286. elseif i == 2 then
  287. local s = math.sqrt(m22 - m00 - m11 + 1)
  288. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  289. end
  290. end
  291. end
  292.  
  293. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  294. local xs, ys, zs = x + x, y + y, z + z
  295. local wx, wy, wz = w * xs, w * ys, w * zs
  296. local xx = x * xs
  297. local xy = x * ys
  298. local xz = x * zs
  299. local yy = y * ys
  300. local yz = y * zs
  301. local zz = z * zs
  302. 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))
  303. end
  304.  
  305. function QuaternionSlerp(a, b, t)
  306. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  307. local startInterp, finishInterp;
  308. if cosTheta >= 0.0001 then
  309. if (1 - cosTheta) > 0.0001 then
  310. local theta = ACOS(cosTheta)
  311. local invSinTheta = 1 / SIN(theta)
  312. startInterp = SIN((1 - t) * theta) * invSinTheta
  313. finishInterp = SIN(t * theta) * invSinTheta
  314. else
  315. startInterp = 1 - t
  316. finishInterp = t
  317. end
  318. else
  319. if (1 + cosTheta) > 0.0001 then
  320. local theta = ACOS(-cosTheta)
  321. local invSinTheta = 1 / SIN(theta)
  322. startInterp = SIN((t - 1) * theta) * invSinTheta
  323. finishInterp = SIN(t * theta) * invSinTheta
  324. else
  325. startInterp = t - 1
  326. finishInterp = t
  327. end
  328. end
  329. 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
  330. end
  331.  
  332. function Clerp(a, b, t)
  333. local qa = {QuaternionFromCFrame(a)}
  334. local qb = {QuaternionFromCFrame(b)}
  335. local ax, ay, az = a.x, a.y, a.z
  336. local bx, by, bz = b.x, b.y, b.z
  337. local _t = 1 - t
  338. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  339. end
  340.  
  341. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  342. local frame = IT("Frame")
  343. frame.BackgroundTransparency = TRANSPARENCY
  344. frame.BorderSizePixel = BORDERSIZEPIXEL
  345. frame.Position = POSITION
  346. frame.Size = SIZE
  347. frame.BackgroundColor3 = COLOR
  348. frame.BorderColor3 = BORDERCOLOR
  349. frame.Name = NAME
  350. frame.Parent = PARENT
  351. return frame
  352. end
  353.  
  354. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  355. local label = IT("TextLabel")
  356. label.BackgroundTransparency = 1
  357. label.Size = UD2(1, 0, 1, 0)
  358. label.Position = UD2(0, 0, 0, 0)
  359. label.TextColor3 = TEXTCOLOR
  360. label.TextStrokeTransparency = STROKETRANSPARENCY
  361. label.TextTransparency = TRANSPARENCY
  362. label.FontSize = TEXTFONTSIZE
  363. label.Font = TEXTFONT
  364. label.BorderSizePixel = BORDERSIZEPIXEL
  365. label.TextScaled = false
  366. label.Text = TEXT
  367. label.Name = NAME
  368. label.Parent = PARENT
  369. return label
  370. end
  371.  
  372. function NoOutlines(PART)
  373. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  374. end
  375.  
  376.  
  377. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  378. local NEWWELD = IT(TYPE)
  379. NEWWELD.Part0 = PART0
  380. NEWWELD.Part1 = PART1
  381. NEWWELD.C0 = C0
  382. NEWWELD.C1 = C1
  383. NEWWELD.Parent = PARENT
  384. return NEWWELD
  385. end
  386.  
  387. local S = IT("Sound")
  388.  
  389. function CreateSound(ID, PARENT, VOLUME, PITCH)
  390. local NEWSOUND = nil
  391. coroutine.resume(coroutine.create(function()
  392. NEWSOUND = S:Clone()
  393. NEWSOUND.Parent = PARENT
  394. NEWSOUND.Volume = VOLUME
  395. NEWSOUND.Pitch = PITCH
  396. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  397. Swait()
  398. NEWSOUND:play()
  399. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  400. end))
  401. return NEWSOUND
  402. end
  403.  
  404. function CFrameFromTopBack(at, top, back)
  405. local right = top:Cross(back)
  406. 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)
  407. end
  408.  
  409. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  410. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  411. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  412. wave.CFrame = CFRAME
  413. coroutine.resume(coroutine.create(function(PART)
  414. for i = 1, WAIT do
  415. Swait()
  416. mesh.Scale = mesh.Scale + GROW
  417. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  418. if DOESROT == true then
  419. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  420. end
  421. wave.Transparency = wave.Transparency + (0.5/WAIT)
  422. if wave.Transparency > 0.99 then
  423. wave:remove()
  424. end
  425. end
  426. end))
  427. end
  428.  
  429. --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})
  430. function WACKYEFFECT(Table)
  431. local TYPE = (Table.EffectType or "Sphere")
  432. local SIZE = (Table.Size or VT(1,1,1))
  433. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  434. local TRANSPARENCY = (Table.Transparency or 0)
  435. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  436. local CFRAME = (Table.CFrame or Torso.CFrame)
  437. local MOVEDIRECTION = (Table.MoveToPos or nil)
  438. local ROTATION1 = (Table.RotationX or 0)
  439. local ROTATION2 = (Table.RotationY or 0)
  440. local ROTATION3 = (Table.RotationZ or 0)
  441. local MATERIAL = (Table.Material or "Neon")
  442. local COLOR = (Table.Color or C3(1,1,1))
  443. local TIME = (Table.Time or 45)
  444. local SOUNDID = (Table.SoundID or nil)
  445. local SOUNDPITCH = (Table.SoundPitch or nil)
  446. local SOUNDVOLUME = (Table.SoundVolume or nil)
  447. coroutine.resume(coroutine.create(function()
  448. local PLAYSSOUND = false
  449. local SOUND = nil
  450. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Really red"), "Effect", VT(1,1,1), true)
  451. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  452. PLAYSSOUND = true
  453. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  454. end
  455. EFFECT.Color = COLOR
  456. local MSH = nil
  457. if TYPE == "Sphere" then
  458. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  459. elseif TYPE == "Block" then
  460. MSH = IT("BlockMesh",EFFECT)
  461. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  462. elseif TYPE == "Wave" then
  463. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  464. elseif TYPE == "Ring" then
  465. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  466. elseif TYPE == "Slash" then
  467. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  468. elseif TYPE == "Round Slash" then
  469. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  470. elseif TYPE == "Swirl" then
  471. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  472. elseif TYPE == "Skull" then
  473. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  474. elseif TYPE == "Crystal" then
  475. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  476. end
  477. if MSH ~= nil then
  478. local MOVESPEED = nil
  479. if MOVEDIRECTION ~= nil then
  480. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  481. end
  482. local GROWTH = SIZE - ENDSIZE
  483. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  484. if TYPE == "Block" then
  485. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  486. else
  487. EFFECT.CFrame = CFRAME
  488. end
  489. for LOOP = 1, TIME+1 do
  490. Swait()
  491. MSH.Scale = MSH.Scale - GROWTH/TIME
  492. if TYPE == "Wave" then
  493. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  494. end
  495. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  496. if TYPE == "Block" then
  497. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  498. else
  499. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  500. end
  501. if MOVEDIRECTION ~= nil then
  502. local ORI = EFFECT.Orientation
  503. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  504. EFFECT.Orientation = ORI
  505. end
  506. end
  507. if PLAYSSOUND == false then
  508. EFFECT:remove()
  509. else
  510. SOUND.Stopped:Connect(function()
  511. EFFECT:remove()
  512. end)
  513. end
  514. else
  515. if PLAYSSOUND == false then
  516. EFFECT:remove()
  517. else
  518. repeat Swait() until SOUND.Playing == false
  519. EFFECT:remove()
  520. end
  521. end
  522. end))
  523. end
  524.  
  525. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  526. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  527. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0,0,0))
  528. wave.CFrame = CFRAME
  529. coroutine.resume(coroutine.create(function(PART)
  530. for i = 1, WAIT do
  531. Swait()
  532. mesh.Scale = mesh.Scale + GROW
  533. if DOESROT == true then
  534. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  535. end
  536. wave.Transparency = wave.Transparency + (0.5/WAIT)
  537. if wave.Transparency > 0.99 then
  538. wave:remove()
  539. end
  540. end
  541. end))
  542. end
  543.  
  544. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  545. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  546. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
  547. wave.CFrame = CFRAME
  548. coroutine.resume(coroutine.create(function(PART)
  549. for i = 1, WAIT do
  550. Swait()
  551. mesh.Scale = mesh.Scale + GROW
  552. wave.Transparency = wave.Transparency + (1/WAIT)
  553. if wave.Transparency > 0.99 then
  554. wave:remove()
  555. end
  556. end
  557. end))
  558. end
  559.  
  560. function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW)
  561. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  562. local mesh = nil
  563. if KIND == "Base" then
  564. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  565. elseif KIND == "Thin" then
  566. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  567. elseif KIND == "Round" then
  568. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  569. end
  570. wave.CFrame = CFRAME
  571. coroutine.resume(coroutine.create(function(PART)
  572. for i = 1, WAIT do
  573. Swait()
  574. mesh.Scale = mesh.Scale + GROW/10
  575. wave.Transparency = wave.Transparency + (0.5/WAIT)
  576. if wave.Transparency > 0.99 then
  577. wave:remove()
  578. end
  579. end
  580. end))
  581. end
  582.  
  583. function MakeForm(PART,TYPE)
  584. if TYPE == "Cyl" then
  585. local MSH = IT("CylinderMesh",PART)
  586. elseif TYPE == "Ball" then
  587. local MSH = IT("SpecialMesh",PART)
  588. MSH.MeshType = "Sphere"
  589. elseif TYPE == "Wedge" then
  590. local MSH = IT("SpecialMesh",PART)
  591. MSH.MeshType = "Wedge"
  592. end
  593. end
  594.  
  595. function SpawnKnife(SIZE,ISGRABBED,LIMB,ROT,ROT2,DOESDODAMAGE,DAMAGE)
  596. SIZE = SIZE / 2
  597. local WELD = nil
  598. local KNIFEMODEL = IT("Model",Effects)
  599. KNIFEMODEL.Name = "Knife"
  600. local HandlePart = CreatePart(3, KNIFEMODEL, "Neon", 0,0, "Really red", "Handle", VT(0.2,1.5,0.2)*SIZE,false)
  601. MakeForm(HandlePart,"Cyl")
  602. if ISGRABBED == true then
  603. WELD = CreateWeldOrSnapOrMotor("Weld", HandlePart, LIMB, HandlePart, CF(0, -1, 0) * ANGLES(RAD(ROT), RAD(ROT2), RAD(0)), CF(0, 0, 0))
  604. end
  605. local BladePart = CreatePart(3, KNIFEMODEL, "Neon", 0,1, "Really red", "BladeHolder", VT(0.2,2.8+(3.25/1.5),0.2)*SIZE,false)
  606. BladePart.CFrame = HandlePart.CFrame*CF(0,-2.8*SIZE,-0.05*SIZE)
  607. weldBetween(HandlePart,BladePart)
  608. local Part = CreatePart(3, KNIFEMODEL, "Neon", 0,0, "Really red", "Blade", VT(0,2.8,1)*SIZE,false)
  609. MakeForm(Part,"Wedge")
  610. Part.CFrame = BladePart.CFrame*CF(0,-1.475*SIZE,0.45*SIZE) * ANGLES(RAD(180), RAD(0), RAD(0))
  611. weldBetween(BladePart,Part)
  612. local Part = CreatePart(3, KNIFEMODEL, "Neon", 0,0, "Really red", "Blade", VT(0,3.25/1.5,0.5)*SIZE,false)
  613. MakeForm(Part,"Wedge")
  614. Part.CFrame = BladePart.CFrame*CF(0,1*SIZE,1.2*SIZE) * ANGLES(RAD(180), RAD(0), RAD(0))
  615. weldBetween(BladePart,Part)
  616. local Part = CreatePart(3, KNIFEMODEL, "Neon", 0,0, "Really red", "Blade", VT(0,3.25/1.5,1)*SIZE,false)
  617. Part.CFrame = BladePart.CFrame*CF(0,1*SIZE,0.45*SIZE) * ANGLES(RAD(180), RAD(0), RAD(0))
  618. weldBetween(BladePart,Part)
  619. local A = IT("Attachment",BladePart)
  620. A.Position = VT(0,BladePart.Size.Y/2,0)
  621. local B = IT("Attachment",BladePart)
  622. B.Position = VT(0,-BladePart.Size.Y/2,0)
  623. local Trail = IT("Trail",BladePart)
  624. Trail.Attachment0 = A
  625. Trail.Attachment1 = B
  626. Trail.Lifetime = 0.2
  627. Trail.Color = ColorSequence.new(BRICKC"Really red".Color)
  628. Trail.Transparency = NumberSequence.new(0, 1)
  629. for _, c in pairs(KNIFEMODEL:GetChildren()) do
  630. if c.ClassName == "Part" then
  631. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  632. end
  633. end
  634. if DOESDODAMAGE == true then
  635. local HIT = false
  636. BladePart.CanCollide = true
  637. local TOUCHED = BladePart.Touched:Connect(function(hit)
  638. if HIT == false then
  639. if hit ~= nil then
  640. if hit.Parent ~= nil then
  641. if hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass("Humanoid") then
  642. HIT = true
  643. ApplyDamage(hit.Parent:FindFirstChildOfClass("Humanoid"),DAMAGE,2,2)
  644. wait(0.1)
  645. HIT = false
  646. end
  647. end
  648. end
  649. end
  650. end)
  651. end
  652. return KNIFEMODEL,WELD,BladePart
  653. end
  654.  
  655. function PuddleOfBlood(Position,MaxDrop,Model,MaxSize)
  656. local HITFLOOR, HITPOS, NORMAL = Raycast(Position, (CF(Position, Position + VT(0, -1, 0))).lookVector, MaxDrop, Model)
  657. if HITFLOOR ~= nil then
  658. if HITFLOOR.Parent ~= Effects and HITFLOOR.Parent ~= Character then
  659. if HITFLOOR.Name == "BloodPuddle" then
  660. local DIST = (Position - HITFLOOR.Position).Magnitude
  661. 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
  662. HITFLOOR.Size = HITFLOOR.Size + VT(0.1,0,0.1)
  663. end
  664. else
  665. if HITFLOOR.Anchored == true then
  666. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(2,0,2))
  667. BLOOD.CFrame = CF(HITPOS,HITPOS+NORMAL)*ANGLES(RAD(90),RAD(0),RAD(0))
  668. MakeForm(BLOOD,"Cyl")
  669. coroutine.resume(coroutine.create(function()
  670. Swait(75)
  671. while true do
  672. Swait()
  673. BLOOD.Size = BLOOD.Size - VT(0.02,0,0.02)
  674. if BLOOD.Size.Z < 0.051 then
  675. BLOOD:remove()
  676. break
  677. end
  678. end
  679. end))
  680. end
  681. end
  682. end
  683. end
  684. end
  685.  
  686. function MakeForm(PART,TYPE)
  687. if TYPE == "Cyl" then
  688. local MSH = IT("CylinderMesh",PART)
  689. elseif TYPE == "Ball" then
  690. local MSH = IT("SpecialMesh",PART)
  691. MSH.MeshType = "Sphere"
  692. elseif TYPE == "Wedge" then
  693. local MSH = IT("SpecialMesh",PART)
  694. MSH.MeshType = "Wedge"
  695. end
  696. end
  697.  
  698. function SpawnTrail(FROM,TO,BIG)
  699. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "New Yeller", "Trail", VT(0,0,0))
  700. MakeForm(TRAIL,"Cyl")
  701. local DIST = (FROM - TO).Magnitude
  702. if BIG == true then
  703. TRAIL.Size = VT(0.5,DIST,0.5)
  704. else
  705. TRAIL.Size = VT(0.25,DIST,0.25)
  706. end
  707. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  708. coroutine.resume(coroutine.create(function()
  709. for i = 1, 5 do
  710. Swait()
  711. TRAIL.Transparency = TRAIL.Transparency + 0.1
  712. end
  713. TRAIL:remove()
  714. end))
  715. end
  716.  
  717. function SpawnTrail2(FROM,TO,BIG)
  718. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "New Yeller", "Trail", VT(0,0,0))
  719. MakeForm(TRAIL,"Cyl")
  720. local DIST = (FROM - TO).Magnitude
  721. if BIG == true then
  722. TRAIL.Size = VT(0.8,DIST,0.8)
  723. else
  724. TRAIL.Size = VT(0.27,DIST,0.27)
  725. end
  726. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  727. coroutine.resume(coroutine.create(function()
  728. for i = 1, 5 do
  729. Swait()
  730. TRAIL.Transparency = TRAIL.Transparency + 0.1
  731. end
  732. TRAIL:remove()
  733. end))
  734. end
  735.  
  736. Debris = game:GetService("Debris")
  737.  
  738. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  739. local DIRECTION = CF(StartPos,EndPos).lookVector
  740. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  741. end
  742.  
  743. function turnto(position)
  744. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  745. end
  746.  
  747. function SprayBlood(POSITION,DIRECTION,BloodSize,DoesTable,Table)
  748. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(0.5,0.5,0.5),false)
  749. BLOOD.CFrame = CF(POSITION)
  750. MakeForm(BLOOD,"Ball")
  751. local bv = Instance.new("BodyVelocity",BLOOD)
  752. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  753. bv.velocity = CF(POSITION,DIRECTION+VT(MRANDOM(-3,3),MRANDOM(-3,3)/30,MRANDOM(-3,3))).lookVector*65
  754. bv.Name = "MOVE"
  755. Debris:AddItem(bv,0.05)
  756. coroutine.resume(coroutine.create(function()
  757. local HASTOUCHEDGROUND = false
  758. local HIT = BLOOD.Touched:Connect(function(hit)
  759. if hit.Anchored == true then
  760. HASTOUCHEDGROUND = true
  761. if DoesTable == true then
  762. AddChildrenToTable(BLOOD.Position,workspace,15,Table)
  763. end
  764. PuddleOfBlood(BLOOD.Position+VT(0,1,0),2,BLOOD,BloodSize)
  765. end
  766. end)
  767. for i = 1, 75 do
  768. Swait()
  769. if i > 5 then
  770. BLOOD.CanCollide = true
  771. end
  772. if HASTOUCHEDGROUND == true then
  773. break
  774. end
  775. end
  776. BLOOD:remove()
  777. end))
  778. end
  779.  
  780. function CheckTableForString(Table, String)
  781. for i, v in pairs(Table) do
  782. if string.find(string.lower(String), string.lower(v)) then
  783. return true
  784. end
  785. end
  786. return false
  787. end
  788.  
  789. function CheckIntangible(Hit)
  790. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  791. if Hit and Hit.Parent then
  792. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  793. return true
  794. end
  795. end
  796. return false
  797. end
  798.  
  799. Debris = game:GetService("Debris")
  800.  
  801. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  802. local Direction = CFrame.new(StartPos, Vec).lookVector
  803. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  804. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  805. if RayHit and CheckIntangible(RayHit) then
  806. if DelayIfHit then
  807. wait()
  808. end
  809. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  810. end
  811. return RayHit, RayPos, RayNormal
  812. end
  813.  
  814. function turnto(position)
  815. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  816. end
  817.  
  818. --//=================================\\
  819. --|| WEAPON CREATION
  820. --\\=================================//
  821.  
  822. armor = Instance.new("Part")
  823. armormesh = Instance.new("SpecialMesh")
  824. armor.Anchored = false
  825. armor.CanCollide = false
  826. armor.Size = Vector3.new(1.4, 0.7, 1.3)
  827. armor.BrickColor = BrickColor.new("Black")
  828. armor.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  829. armor.Material = Enum.Material.SmoothPlastic
  830. armor.Color = Color3.new(0.105882, 0.164706, 0.207843)
  831. armor.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  832. armor.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  833. armor.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  834. armor.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  835. armor.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  836. armor.Parent = Character
  837. armor.CFrame = CFrame.new(-87.19, 0.42, -26.37) * CFrame.Angles(0, 0, 0)
  838. armormesh.MeshId = "rbxassetid://840131767"
  839. armormesh.MeshType = Enum.MeshType.FileMesh
  840. armormesh.Parent = armor
  841. local wlf4 = Instance.new("Weld",armor)
  842. wlf4.Part0 = armor
  843. wlf4.Part1 = Torso
  844. wlf4.C0 = wlf4.C0 * CFrame.Angles(math.rad(0),math.rad(180),math.rad(0))
  845. wlf4.C1 = CFrame.new(0,0,0)
  846.  
  847. for _, c in pairs(Weapon:GetChildren()) do
  848. if c.Name == "Left Arm" or c.Name == "LeftLowerArm" then
  849. LEFTCUFF = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Cuff", VT(c.Size.X+0.1, 0.1, c.Size.Z+0.1),false)
  850. LEFTCUFF.CFrame = c.CFrame
  851. weldBetween(c,LEFTCUFF)
  852. end
  853. end
  854. for _, c in pairs(Weapon:GetChildren()) do
  855. if c.Name == "Right Arm" or c.Name == "RightLowerArm" then
  856. RIGHTCUFF = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Cuff", VT(c.Size.X+0.1, 0.1, c.Size.Z+0.1),false)
  857. RIGHTCUFF.CFrame = c.CFrame
  858. weldBetween(c,RIGHTCUFF)
  859. end
  860. end
  861. if RIGHTCUFF and LEFTCUFF then
  862. local A = IT("Attachment",RIGHTCUFF)
  863. local B = IT("Attachment",LEFTCUFF)
  864. ChainLink = IT("Beam",Weapon)
  865. ChainLink.Texture = "rbxassetid://73042633"
  866. ChainLink.Color = ColorSequence.new(C3(0.8,0.8,0.8))
  867. ChainLink.TextureSpeed = 0
  868. ChainLink.Width0 = 1
  869. ChainLink.Width1 = 1
  870. ChainLink.Segments = 25
  871. ChainLink.TextureLength = 3
  872. ChainLink.Attachment0 = B
  873. ChainLink.Attachment1 = A
  874. ChainLink.FaceCamera = true
  875. ChainLink.Transparency = NumberSequence.new(0)
  876. end
  877.  
  878. local GUN = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gun", VT(1, 0.8, 3),false)
  879. CreateMesh("SpecialMesh", GUN, "FileMesh", "94219391", "94219470", VT(0.7, 0.7, 0.8), VT(0,0,0))
  880. local GUNWELD = CreateWeldOrSnapOrMotor("Weld", GUN, Torso, GUN, CF(-0.0,0.5,0.9) * ANGLES(RAD(90), RAD(110), RAD(167)), CF(0, 0, 0))
  881.  
  882. local GUN2 = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gun2", VT(1, 0.8, 3),false)
  883. CreateMesh("SpecialMesh", GUN2, "FileMesh", "623102664", "623102879", VT(0.01, 0.01, 0.01), VT(0,0,0))
  884. local GUN2WELD = CreateWeldOrSnapOrMotor("Weld", GUN2, Torso, GUN2, CF(-1.1,-1.1,0) * ANGLES(RAD(0), RAD(90), RAD(-90)), CF(0, 0, 0))
  885.  
  886. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false)
  887. PRT.Color = C3(0,0,0)
  888. local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0))
  889. CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0))
  890. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Scarf", VT(1,1,1),false)
  891. PRT.Color = C3(0,0,0)
  892. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.05) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0))
  893. CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0))
  894.  
  895. local EYE = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Eye", VT(0.1,0.25,0.2),false)
  896. CreateWeldOrSnapOrMotor("Weld", EYE, Head, EYE, CF(0.15,0.25,-0.53) * ANGLES(RAD(0), RAD(0), RAD(-80)), CF(0, 0, 0))
  897. MakeForm(EYE,"Ball")
  898. local EYE = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Eye", VT(0.1,0.25,0.2),false)
  899. CreateWeldOrSnapOrMotor("Weld", EYE, Head, EYE, CF(-0.15,0.25,-0.53) * ANGLES(RAD(0), RAD(0), RAD(80)), CF(0, 0, 0))
  900. MakeForm(EYE,"Ball")
  901.  
  902. local EYE = CreatePart(3, Weapon, "Neon", 0, 0, "Really white", "Eye", VT(0.1,0.1,0.1),false)
  903. CreateWeldOrSnapOrMotor("Weld", EYE, Head, EYE, CF(0.15,0.19,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  904. MakeForm(EYE,"Ball")
  905. local EYE = CreatePart(3, Weapon, "Neon", 0, 0, "Really white", "Eye", VT(0.1,0.1,0.1),false)
  906. CreateWeldOrSnapOrMotor("Weld", EYE, Head, EYE, CF(-0.15,0.19,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  907. MakeForm(EYE,"Ball")
  908.  
  909. local EYE = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Eye", VT(0.005,0.005,0.005),false)
  910. CreateWeldOrSnapOrMotor("Weld", EYE, Head, EYE, CF(0.15,0.20,-0.62) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  911. MakeForm(EYE,"Ball")
  912. local EYE = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Eye", VT(0.005,0.005,0.005),false)
  913. CreateWeldOrSnapOrMotor("Weld", EYE, Head, EYE, CF(-0.15,0.20,-0.62) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  914. MakeForm(EYE,"Ball")
  915.  
  916. local LASTPART = Head
  917. for i = 1, 15 do
  918. local MATH = (1-(i/16))
  919. if LASTPART == Head then
  920. local Horn = CreatePart(3, Horn1, "Granite", 0, 0, "Dirt brown", "Horn", VT(1,0.25,1),false)
  921. CreateWeldOrSnapOrMotor("Weld", Horn1, LASTPART, Horn, CF(0.45, 0.5, -0.15) * ANGLES(RAD(-35), RAD(5), RAD(-25)), CF(0, 0, 0))
  922. LASTPART = Horn
  923. Horn.Color = C3((i/15),0,0)
  924. local MSH = IT("BlockMesh",Horn)
  925. MSH.Scale = VT(0.16*MATH,1,0.16*MATH)
  926. else
  927. local Horn = CreatePart(3, Horn1, "Granite", 0, 0, "Dirt brown", "Horn", VT(1,0.25,1),false)
  928. CreateWeldOrSnapOrMotor("Weld", Horn1, LASTPART, Horn, CF(0, Horn.Size.Y/2.1, 0) * ANGLES(RAD(25), RAD(5), RAD(0)), CF(0, -Horn.Size.Y/2.2, 0))
  929. LASTPART = Horn
  930. Horn.Color = C3((i/15),0,0)
  931. local MSH = IT("BlockMesh",Horn)
  932. MSH.Scale = VT(0.16*MATH,1,0.16*MATH)
  933. end
  934. end
  935. local LASTPART = Head
  936. for i = 1, 15 do
  937. local MATH = (1-(i/16))
  938. if LASTPART == Head then
  939. local Horn = CreatePart(3, Horn1, "Granite", 0, 0, "Dirt brown", "Horn", VT(1,0.25,1),false)
  940. CreateWeldOrSnapOrMotor("Weld", Horn1, LASTPART, Horn, CF(-0.45, 0.5, -0.15) * ANGLES(RAD(-35), RAD(-5), RAD(25)), CF(0, 0, 0))
  941. LASTPART = Horn
  942. Horn.Color = C3((i/15),0,0)
  943. local MSH = IT("BlockMesh",Horn)
  944. MSH.Scale = VT(0.16*MATH,1,0.16*MATH)
  945. else
  946. local Horn = CreatePart(3, Horn1, "Granite", 0, 0, "Dirt brown", "Horn", VT(1,0.25,1),false)
  947. CreateWeldOrSnapOrMotor("Weld", Horn1, LASTPART, Horn, CF(0, Horn.Size.Y/2.1, 0) * ANGLES(RAD(25), RAD(-5), RAD(0)), CF(0, -Horn.Size.Y/2.2, 0))
  948. LASTPART = Horn
  949. Horn.Color = C3((i/15),0,0)
  950. local MSH = IT("BlockMesh",Horn)
  951. MSH.Scale = VT(0.16*MATH,1,0.16*MATH)
  952. end
  953. end
  954.  
  955. local LASTPART = Head
  956. for i = 1, 15 do
  957. local MATH = (1-(i/16))
  958. if LASTPART == Head then
  959. local Horn = CreatePart(3, Horn1, "Granite", 0, 0, "Dirt brown", "Horn", VT(1,0.25,1),false)
  960. CreateWeldOrSnapOrMotor("Weld", Horn1, LASTPART, Horn, CF(-0.45, 0.5, -0.15) * ANGLES(RAD(-35), RAD(-5), RAD(25)), CF(0, 0, 0))
  961. LASTPART = Horn
  962. Horn.Color = C3((i/15),0,0)
  963. local MSH = IT("BlockMesh",Horn)
  964. MSH.Scale = VT(0.16*MATH,1,0.16*MATH)
  965. else
  966. local Horn = CreatePart(3, Horn1, "Granite", 0, 0, "Dirt brown", "Horn", VT(1,0.25,1),false)
  967. CreateWeldOrSnapOrMotor("Weld", Horn1, LASTPART, Horn, CF(0, Horn.Size.Y/2.1, 0) * ANGLES(RAD(25), RAD(-5), RAD(0)), CF(0, -Horn.Size.Y/2.2, 0))
  968. LASTPART = Horn
  969. Horn.Color = C3((i/15),0,0)
  970. local MSH = IT("BlockMesh",Horn)
  971. MSH.Scale = VT(0.16*MATH,1,0.16*MATH)
  972. end
  973. end
  974.  
  975. for i = 1, 10 do
  976. local FACE = CreatePart(3, Head, "Fabric", 0, 0+(i-1)/10.2, "Dark stone grey", "FaceGradient", VT(1.01,0.65,1.01),false)
  977. FACE.Color = C3(0,0,0)
  978. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  979. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.28-(i-1)/30,0), CF(0, 0, 0))
  980. end
  981.  
  982. for _, c in pairs(Weapon:GetChildren()) do
  983. if c.ClassName == "Part" then
  984. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  985. end
  986. end
  987.  
  988. Weapon.Parent = Character
  989.  
  990. Humanoid.Died:connect(function()
  991. ATTACK = true
  992. end)
  993.  
  994.  
  995. --//=================================\\
  996. --|| DAMAGE FUNCTIONS
  997. --\\=================================//
  998.  
  999. function StatLabel(CFRAME, TEXT, COLOR)
  1000. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1001. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  1002. local BODYGYRO = IT("BodyGyro", STATPART)
  1003. game:GetService("Debris"):AddItem(STATPART ,5)
  1004. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1005. BILLBOARDGUI.Adornee = STATPART
  1006. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1007. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1008. BILLBOARDGUI.AlwaysOnTop = false
  1009. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1010. TEXTLABEL.BackgroundTransparency = 1
  1011. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1012. TEXTLABEL.Text = TEXT
  1013. TEXTLABEL.Font = "Fantasy"
  1014. TEXTLABEL.FontSize="Size42"
  1015. TEXTLABEL.TextColor3 = COLOR
  1016. TEXTLABEL.TextStrokeTransparency = 0
  1017. TEXTLABEL.TextScaled = true
  1018. TEXTLABEL.TextWrapped = true
  1019. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1020. for i = 1, 50 do
  1021. Swait()
  1022. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  1023. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  1024. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  1025. end
  1026. THEPART.Parent = nil
  1027. end),STATPART, TEXTLABEL)
  1028. end
  1029.  
  1030. function Switch()
  1031. ATTACK = true
  1032. Rooted = true
  1033. if MODE == "Cop" then
  1034. for i=0, 0.3, 0.1 / Animation_Speed do
  1035. Swait()
  1036. 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)
  1037. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1038. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1039. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1040. 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)
  1041. 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)
  1042. end
  1043. for i=0, 1, 0.1 / Animation_Speed do
  1044. Swait()
  1045. 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)
  1046. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1047. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1048. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1049. 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)
  1050. 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)
  1051. end
  1052. CreateSound(363808674, Torso, 6, 1, false)
  1053. for i=0, 0.6, 0.1 / Animation_Speed do
  1054. Swait()
  1055. 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)
  1056. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed)
  1057. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1058. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1059. 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)
  1060. 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)
  1061. end
  1062. CreateSound(363808674, Torso, 6, 1, false)
  1063. for i=0, 0.6, 0.1 / Animation_Speed do
  1064. Swait()
  1065. 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)
  1066. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed)
  1067. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-55), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1068. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1069. 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)
  1070. 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)
  1071. end
  1072. GUN2WELD.Part0 = LeftArm
  1073. GUN2WELD.C0 = CF(0,-1.5,0) * ANGLES(RAD(0), RAD(90), RAD(-90))
  1074. GUNWELD.Part0 = RightArm
  1075. GUNWELD.C0 = CF(-0.2,-1.8,0.1) * ANGLES(RAD(90), RAD(174), RAD(179))
  1076. MODE = "Cops"
  1077. elseif MODE == "Cops" then
  1078. CreateSound(147722227, Torso, 4, 1.3, false)
  1079. for i=0, 0.3, 0.1 / Animation_Speed do
  1080. Swait()
  1081. 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)
  1082. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed)
  1083. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-55), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1084. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1085. 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)
  1086. 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)
  1087. end
  1088. GUN2WELD.Part0 = Torso
  1089. GUN2WELD.C0 = CF(-1.1,-1.1,0) * ANGLES(RAD(0), RAD(90), RAD(-90))
  1090. GUNWELD.Part0 = Torso
  1091. GUNWELD.C0 = CF(-0.0,0.5,0.9) * ANGLES(RAD(90), RAD(110), RAD(167))
  1092. MODE = "Cop"
  1093. end
  1094. ATTACK = false
  1095. Rooted = false
  1096. end
  1097.  
  1098. --//=================================\\
  1099. --|| DAMAGING
  1100. --\\=================================//
  1101.  
  1102. function ApplyDamage(Humanoid,Damage,CritRate,CritMultiplier)
  1103. local defence = Instance.new("BoolValue",Humanoid.Parent)
  1104. defence.Name = ("HitBy"..Player.Name)
  1105. game:GetService("Debris"):AddItem(defence, 0.001)
  1106. if Humanoid.Health ~= 0 then
  1107. local CritChance = MRANDOM(1,100)
  1108. if CritChance < CritRate + 1 then
  1109. Damage = Damage*CritMultiplier
  1110. end
  1111. if Damage > Humanoid.Health then
  1112. Damage = math.ceil(Humanoid.Health)
  1113. if Damage == 0 then
  1114. Damage = 0.1
  1115. end
  1116. end
  1117. Humanoid.Health = Humanoid.Health - Damage
  1118. if Humanoid.Parent:FindFirstChild("Head") then
  1119. CreateSound(HITPLAYERSOUNDS[MRANDOM(1,#HITPLAYERSOUNDS)], Humanoid.Parent.Head, 5, 1)
  1120. if CritChance < CritRate + 1 then
  1121. StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "CRIT//"..Damage, C3(1, 0, 0))
  1122. else
  1123. StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), Damage, SKILLTEXTCOLOR)
  1124. end
  1125. end
  1126. end
  1127. end
  1128.  
  1129. function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,CanBeDodgedByJumping)
  1130. local dmg = math.random(min,max)
  1131. for i,v in ipairs(workspace:GetChildren()) do
  1132. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  1133. local body = v:GetChildren()
  1134. for part = 1, #body do
  1135. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1136. if(body[part].Position - position).Magnitude < radius then
  1137. if v.ClassName == "Model" then
  1138. if v:FindFirstChildOfClass("Humanoid") then
  1139. if CanBeDodgedByJumping == true then
  1140. if body[part].Position.Y < position.Y+5 then
  1141. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  1142. end
  1143. else
  1144. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  1145. end
  1146. local bv = Instance.new("BodyVelocity")
  1147. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1148. bv.velocity = RootPart.CFrame.lookVector*maxstrength
  1149. bv.Parent = body[part]
  1150. Debris:AddItem(bv,0.2)
  1151. end
  1152. end
  1153. end
  1154. end
  1155. end
  1156. end
  1157. if v:FindFirstChild("HitBy"..Player.Name) then
  1158. v:FindFirstChild("HitBy"..Player.Name):remove()
  1159. end
  1160. end
  1161. end
  1162.  
  1163. function killnearest(position,range,maxstrength,direction)
  1164. for i,v in ipairs(workspace:GetChildren()) do
  1165. local body = v:GetChildren()
  1166. for part = 1, #body do
  1167. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1168. if(body[part].Position - position).Magnitude < range then
  1169. if v.ClassName == "Model" then
  1170. --v:BreakJoints()
  1171. end
  1172. local POS = position
  1173. coroutine.resume(coroutine.create(function()
  1174. body[part].Anchored = true
  1175. body[part].Parent = Effects
  1176. body[part].CanCollide = true
  1177. local SIZE = body[part].Size
  1178. body[part].Material = "Neon"
  1179. CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10)
  1180. for i = 1, 75 do
  1181. Swait()
  1182. body[part].Color = C3(0,0,0)
  1183. body[part].Size = VT(1,1,1)
  1184. end
  1185. coroutine.resume(coroutine.create(function()
  1186. while true do
  1187. Swait()
  1188. body[part].Color = C3(0,0,0)
  1189. body[part].Size = VT(1,1,1)
  1190. end
  1191. end))
  1192. body[part].Anchored = false
  1193. body[part].Velocity = direction.lookVector*maxstrength
  1194. end))
  1195. end
  1196. end
  1197. end
  1198. if v.ClassName == "Part" then
  1199. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1200. local POS = position
  1201. coroutine.resume(coroutine.create(function()
  1202. v.Anchored = true
  1203. v.Parent = Effects
  1204. local SIZE = v.Size
  1205. v.Material = "Neon"
  1206. CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10)
  1207. for i = 1, 75 do
  1208. Swait()
  1209. v.Color = C3(0,0,0)
  1210. v.Size = VT(1,1,1)
  1211. end
  1212. coroutine.resume(coroutine.create(function()
  1213. while true do
  1214. Swait()
  1215. v.Color = C3(0,0,0)
  1216. v.Size = VT(1,1,1)
  1217. end
  1218. end))
  1219. v.Anchored = false
  1220. v.Velocity = direction.lookVector*maxstrength
  1221. end))
  1222. end
  1223. end
  1224. end
  1225. end
  1226.  
  1227. function ApplyAoE4(POSITION,RANGE,BRUTAL)
  1228. local CHILDREN = workspace:GetDescendants()
  1229. for index, CHILD in pairs(CHILDREN) do
  1230. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1231. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1232. if HUM then
  1233. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1234. if TORSO then
  1235. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1236. if BRUTAL == true then
  1237. Kill(CHILD)
  1238. else
  1239. CHILD:BreakJoints()
  1240. end
  1241. end
  1242. end
  1243. end
  1244. end
  1245. end
  1246. end
  1247.  
  1248. function Kill(Char)
  1249. local NewCharacter = IT("Model",Effects)
  1250. NewCharacter.Name = "Ow im ded ;-;"
  1251. for _, c in pairs(Char:GetDescendants()) do
  1252. if c:IsA("BasePart") and c.Transparency == 0 then
  1253. c:BreakJoints()
  1254. c.Material = "Glass"
  1255. c.Color = C3(1,0,0)
  1256. c.CanCollide = true
  1257. c.Transparency = 0.3
  1258. if c:FindFirstChildOfClass("SpecialMesh") then
  1259. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1260. end
  1261. if c.Name == "Head" then
  1262. c:ClearAllChildren()
  1263. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1264. end
  1265. if c.ClassName == "MeshPart" then
  1266. c.TextureID = ""
  1267. end
  1268. if c:FindFirstChildOfClass("BodyPosition") then
  1269. c:FindFirstChildOfClass("BodyPosition"):remove()
  1270. end
  1271. if c:FindFirstChildOfClass("ParticleEmitter") then
  1272. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1273. end
  1274. c.Parent = NewCharacter
  1275. c.Name = "DeadPart"
  1276. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1277. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1278. end
  1279. end
  1280. Char:remove()
  1281. Debris:AddItem(NewCharacter,5)
  1282. end
  1283.  
  1284. --//=================================\\
  1285. --|| ATTACK FUNCTIONS AND STUFF
  1286. --\\=================================//
  1287.  
  1288. function Bullet2()
  1289. ATTACK = true
  1290. Rooted = false
  1291. for i=0, 0.9, 0.07 / Animation_Speed do
  1292. Swait()
  1293. turnto(Mouse.Hit.p)
  1294. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1295. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(15 - 22 * SIN(SINE / 0.5)), RAD(0)), 0.15 / Animation_Speed)
  1296. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(83), RAD(30), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1297. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0.5) * ANGLES(RAD(83), RAD(-30), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1298. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1299. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1300. end
  1301. repeat
  1302. for i=0, 0.1, 0.07 / Animation_Speed do
  1303. Swait()
  1304. turnto(Mouse.Hit.p)
  1305. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0 - 55 * SIN(SINE / 0.5)), RAD(0 - 55 * SIN(SINE / 0.5)), RAD(0)), 0.15 / Animation_Speed)
  1306. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(15 - 22 * SIN(SINE / 0.5)), RAD(0)), 0.15 / Animation_Speed)
  1307. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(83 - 22 * SIN(SINE / 0.5)), RAD(30), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1308. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0.5) * ANGLES(RAD(83 - 22 * SIN(SINE / 0.5)), RAD(-30), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1309. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1310. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1311. end
  1312. local HIT,POS = CastProperRay(GUN.Position, Mouse.Hit.p, 1000, Character)
  1313. SpawnTrail(GUN.Position,POS)
  1314. if HIT ~= nil then
  1315. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1316. Kill(HIT.Parent)
  1317. end
  1318. end
  1319. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = GUN.CFrame, MoveToPos = GUN.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1320. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = GUN.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 131073013, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 0.5})
  1321. 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,GUN.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1322. 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,GUN.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1323. for i=0, 0.2, 0.07 / Animation_Speed do
  1324. Swait()
  1325. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0 - 55 * SIN(SINE / 0.5)), RAD(0 - 22 * SIN(SINE / 0.5)), RAD(0)), 0.15 / Animation_Speed)
  1326. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(15), RAD(0)), 0.15 / Animation_Speed)
  1327. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(90 - 22 * SIN(SINE / 0.5)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1328. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(90 - 22 * SIN(SINE / 0.5)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1329. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1330. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1331. end
  1332. local HIT,POS = CastProperRay(GUN.Position, Mouse.Hit.p, 1000, Character)
  1333. SpawnTrail2(GUN.Position,POS)
  1334. SpawnTrail(GUN2.Position,POS)
  1335. if HIT ~= nil then
  1336. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1337. Kill(HIT.Parent)
  1338. end
  1339. end
  1340. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = GUN2.CFrame, MoveToPos = GUN2.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1341. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = GUN2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 0.5})
  1342. 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,GUN2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1343. 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,GUN2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1344. until KEYHOLD == false
  1345. ATTACK = false
  1346. Rooted = false
  1347. end
  1348.  
  1349. function Nope()
  1350. ATTACK = true
  1351. Rooted = false
  1352. CreateSound(130932305, Torso, 6, 1, false)
  1353. for i=0, 0.6, 0.1 / Animation_Speed do
  1354. Swait()
  1355. 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)
  1356. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  1357. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-55), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1358. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(-55), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1359. 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)
  1360. 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)
  1361. end
  1362. for i=0, 0.6, 0.1 / Animation_Speed do
  1363. Swait()
  1364. 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)
  1365. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  1366. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(55), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1367. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(55), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1368. 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)
  1369. 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)
  1370. end
  1371. ATTACK = false
  1372. Rooted = false
  1373. end
  1374.  
  1375.  
  1376. --//=================================\\
  1377. --|| ASSIGN THINGS TO KEYS
  1378. --\\=================================//
  1379.  
  1380. function MouseDown(Mouse)
  1381. if ATTACK == false then
  1382. end
  1383. end
  1384.  
  1385. function MouseUp(Mouse)
  1386. HOLD = false
  1387. end
  1388.  
  1389. function KeyDown(Key)
  1390. KEYHOLD = true
  1391. if Key == "z" and ATTACK == false then
  1392. if MODE == "Cop" then
  1393. Nope()
  1394. elseif MODE == "Cops" then
  1395. Bullet2()
  1396. end
  1397. end
  1398.  
  1399. if Key == "b" and ATTACK == false then
  1400. end
  1401.  
  1402. if Key == "c" and ATTACK == false then
  1403. end
  1404.  
  1405. if Key == "t" and ATTACK == false then
  1406. end
  1407.  
  1408. if Key == "x" and ATTACK == false then
  1409. Switch()
  1410. end
  1411. end
  1412.  
  1413. function KeyUp(Key)
  1414. KEYHOLD = false
  1415. end
  1416.  
  1417. Mouse.Button1Down:connect(function(NEWKEY)
  1418. MouseDown(NEWKEY)
  1419. end)
  1420. Mouse.Button1Up:connect(function(NEWKEY)
  1421. MouseUp(NEWKEY)
  1422. end)
  1423. Mouse.KeyDown:connect(function(NEWKEY)
  1424. KeyDown(NEWKEY)
  1425. end)
  1426. Mouse.KeyUp:connect(function(NEWKEY)
  1427. KeyUp(NEWKEY)
  1428. end)
  1429.  
  1430. --//=================================\\
  1431. --\\=================================//
  1432.  
  1433.  
  1434. function unanchor()
  1435. if UNANCHOR == true then
  1436. g = Character:GetChildren()
  1437. for i = 1, #g do
  1438. if g[i].ClassName == "Part" then
  1439. g[i].Anchored = false
  1440. end
  1441. end
  1442. end
  1443. end
  1444.  
  1445.  
  1446. --//=================================\\
  1447. --|| WRAP THE WHOLE SCRIPT UP
  1448. --\\=================================//
  1449.  
  1450. Humanoid.Changed:connect(function(Jump)
  1451. if Jump == "Jump" and (Disable_Jump == true) then
  1452. Humanoid.Jump = false
  1453. end
  1454. end)
  1455.  
  1456. while true do
  1457. Swait()
  1458. ANIMATE.Parent = nil
  1459. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1460. IDLEANIMATION:Play()
  1461. SINE = SINE + CHANGE
  1462. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1463. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1464. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1465. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1466. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1467. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1468. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1469. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1470. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1471. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1472. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1473. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1474. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1475. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1476. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1477. end
  1478. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1479. ANIM = "Jump"
  1480. if ATTACK == false then
  1481. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1482. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1483. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1484. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1485. 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)
  1486. 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)
  1487. end
  1488. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1489. ANIM = "Fall"
  1490. if ATTACK == false then
  1491. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1492. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1493. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1494. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1495. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1496. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1497. end
  1498. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1499. ANIM = "Idle"
  1500. if ATTACK == false then
  1501. if MODE == "Cop" then
  1502. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-5,5)), RAD(MRANDOM(-5,5)), RAD(MRANDOM(-5,5))), 1)
  1503. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(15)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1504. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.05 * COS(SINE / 7) + 0.05 * SIN(SINE / 7), 0, 0 + 0.05 * COS(SINE / 7)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.8 / Animation_Speed)
  1505. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-3.5 * COS(SINE / 24)), RAD(0), RAD(12)) * ANGLES(RAD(0 - 2.5 * COS(SINE / 24) + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1506. RightHip.C0 = Clerp(RightHip.C0, CF(1 - 0.05 * COS(SINE / 7) + 0.05 * SIN(SINE / 7), -1 - 0.05 * COS(SINE / 7), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.8 / Animation_Speed)
  1507. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 - 0.05 * COS(SINE / 7) + 0.05 * SIN(SINE / 7), -1 - 0.05 * COS(SINE / 7), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.8 / Animation_Speed)
  1508. elseif MODE == "Cops" then
  1509. 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)
  1510. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * COS(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed)
  1511. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1512. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1513. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1514. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1515. end
  1516. end
  1517. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1518. ANIM = "Walk"
  1519. WALK = WALK + 1 / Animation_Speed
  1520. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1521. WALK = 0
  1522. if WALKINGANIM == true then
  1523. WALKINGANIM = false
  1524. elseif WALKINGANIM == false then
  1525. WALKINGANIM = true
  1526. end
  1527. end
  1528. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1529. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1530. if ATTACK == false then
  1531. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1532. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1533. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(42), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1534. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(42), RAD(0), RAD(0))* LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1535. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1536. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1537. end
  1538. end
  1539. if Character:FindFirstChildOfClass("Accessory") then
  1540. Character:FindFirstChildOfClass("Accessory"):remove()
  1541. elseif Character:FindFirstChildOfClass("Hat") then
  1542. Character:FindFirstChildOfClass("Hat"):remove()
  1543. end
  1544. unanchor()
  1545. Humanoid.MaxHealth = "inf"
  1546. Humanoid.Health = "inf"
  1547. if Rooted == false then
  1548. Disable_Jump = false
  1549. Humanoid.WalkSpeed = Speed
  1550. elseif Rooted == true then
  1551. Disable_Jump = true
  1552. Humanoid.WalkSpeed = 0
  1553. end
  1554. sick.Parent = Torso
  1555. local MATHS = {"0","1"}
  1556. Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]
  1557. Humanoid.PlatformStand = false
  1558. end
  1559.  
  1560. --//=================================\\
  1561. --\\=================================//
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567. --//====================================================\\--
  1568. --|| END OF SCRIPT
  1569. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement