reset234567890

Gungster

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