Advertisement
memberhero

Op Gunner

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