Christoffer07700Extr

fixed gunner

Nov 1st, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 68.54 KB | None | 0 0
  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 / 60 -- (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 = 16
  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. for i = 1, 35 do
  649. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false)
  650. FACE.Color = C3(0,0,0)
  651. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  652. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.36-(i-1)/75,0), CF(0, 0, 0))
  653. end
  654. local Eye = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0.15,0.15,0.15),false)
  655. MakeForm(Eye,"Ball")
  656. 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)))
  657.  
  658. local top = Instance.new("Shirt")
  659. top.ShirtTemplate = "rbxassetid://764933308"
  660. top.Parent = Character
  661. top.Name = "Cloth"
  662. local bottom = Instance.new("Pants")
  663. bottom.PantsTemplate = "rbxassetid://238651628"
  664. bottom.Parent = Character
  665. bottom.Name = "Cloth"
  666.  
  667. local Radio = CreatePart(3, Weapon, "Marble", 0, 0, "Pearl", "RAD-io", VT(1.01,0.2,1.01),false)
  668. CreateWeldOrSnapOrMotor("Weld", Radio, RightLeg, Radio, CF(0.5, 0.75, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)), CF(0, 0, 0))
  669. local RADIOMESH = CreateMesh("SpecialMesh", Radio, "FileMesh", "212302951", "212303049", VT(0.5,0.5,0.5), VT(0,0,0))
  670.  
  671. for _, c in pairs(Weapon:GetChildren()) do
  672. if c.ClassName == "Part" then
  673. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  674. end
  675. end
  676.  
  677. local SKILLTEXTCOLOR = C3(1,1,1)
  678. local SKILLFONT = "SciFi"
  679. local SKILLTEXTSIZE = 7
  680.  
  681. Weapon.Parent = Character
  682.  
  683. Humanoid.Died:connect(function()
  684. ATTACK = true
  685. end)
  686.  
  687. 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")
  688. 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")
  689. 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")
  690. 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")
  691. 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")
  692. 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")
  693.  
  694. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Bullet Shot", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 1")
  695. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Nexus Barrage", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 2")
  696. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Heartstroke", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 3")
  697. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[X] Blind Star", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 4")
  698. local AMMOTEXT = CreateLabel(AMMOFRAME, "[16]", SKILLTEXTCOLOR, 12, SKILLFONT, 0, 2, 0.5, "Ammo")
  699. local RELOAD = CreateLabel(RELOADFRAME, "[R] Reload", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "How2ReloadForDummies")
  700.  
  701. --//=================================\\
  702. --|| DAMAGE FUNCTIONS
  703. --\\=================================//
  704.  
  705. function StatLabel(CFRAME, TEXT, COLOR)
  706. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  707. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  708. local BODYGYRO = IT("BodyGyro", STATPART)
  709. game:GetService("Debris"):AddItem(STATPART ,5)
  710. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  711. BILLBOARDGUI.Adornee = STATPART
  712. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  713. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  714. BILLBOARDGUI.AlwaysOnTop = false
  715. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  716. TEXTLABEL.BackgroundTransparency = 1
  717. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  718. TEXTLABEL.Text = TEXT
  719. TEXTLABEL.Font = SKILLFONT
  720. TEXTLABEL.FontSize="Size42"
  721. TEXTLABEL.TextColor3 = COLOR
  722. TEXTLABEL.TextStrokeTransparency = 0
  723. TEXTLABEL.TextScaled = true
  724. TEXTLABEL.TextWrapped = true
  725. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  726. for i = 1, 50 do
  727. Swait()
  728. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  729. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  730. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextStrokeTransparency + (1/50)
  731. end
  732. THEPART.Parent = nil
  733. end),STATPART, TEXTLABEL)
  734. end
  735.  
  736. --//=================================\\
  737. --|| DAMAGING
  738. --\\=================================//
  739.  
  740. function ApplyDamage(Humanoid,Damage,TorsoPart)
  741. if Humanoid ~= nil then
  742. Damage = Damage * DAMAGEMULTIPLIER
  743. if Humanoid.Health ~= 0 then
  744. local CritChance = MRANDOM(1,100)
  745. if Damage > Humanoid.Health then
  746. Damage = math.ceil(Humanoid.Health)
  747. if Damage == 0 then
  748. Damage = 0.1
  749. end
  750. end
  751. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], TorsoPart, 10, (math.random(8,12)/10),false)
  752. Humanoid.Health = Humanoid.Health - Damage
  753. StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(1,1,1))
  754. end
  755. end
  756. end
  757.  
  758. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  759. local CHILDREN = workspace:GetDescendants()
  760. for index, CHILD in pairs(CHILDREN) do
  761. if CHILD.ClassName == "Model" and CHILD ~= Character then
  762. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  763. if HUM then
  764. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  765. if TORSO then
  766. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  767. if INSTAKILL == true then
  768. CHILD:BreakJoints()
  769. else
  770. local DMG = MRANDOM(MINDMG,MAXDMG)
  771. ApplyDamage(HUM,DMG,TORSO)
  772. end
  773. if FLING > 0 then
  774. for _, c in pairs(CHILD:GetChildren()) do
  775. if c:IsA("BasePart") then
  776. local bv = Instance.new("BodyVelocity")
  777. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  778. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  779. bv.Parent = c
  780. Debris:AddItem(bv,0.05)
  781. end
  782. end
  783. end
  784. end
  785. end
  786. end
  787. end
  788. end
  789. end
  790.  
  791. --//=================================\\
  792. --|| ATTACK FUNCTIONS AND STUFF
  793. --\\=================================//
  794.  
  795. function BULLET_SHOT()
  796. ATTACK = true
  797. Rooted = false
  798. local STOP = false
  799. repeat
  800. if AMMO > 0 then
  801. if COMBO == 1 then
  802. COMBO = 2
  803. for i=0, 0.3, 0.1 / Animation_Speed do
  804. Swait()
  805. turnto(Mouse.Hit.p)
  806. 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)
  807. 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)
  808. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(86)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  809. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  810. if HITFLOOR == true then
  811. 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)
  812. 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)
  813. elseif HITFLOOR == false then
  814. 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)
  815. 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)
  816. end
  817. end
  818. AMMO = AMMO - 1
  819. local AIMHIT,AIMPOS,NORMAL = BulletDetection(Gun1.Position,Mouse.Hit.p)
  820. SpawnTrail(Gun1.CFrame*CF(1.25,0.2,0).p,AIMPOS)
  821. CreateSound(FireSound, Gun1, 5, 1, false)
  822. for i=0, 0.1, 0.1 / Animation_Speed do
  823. Swait()
  824. turnto(AIMPOS)
  825. 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)
  826. 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)
  827. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(86)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  828. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  829. if HITFLOOR == true then
  830. 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)
  831. 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)
  832. elseif HITFLOOR == false then
  833. 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)
  834. 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)
  835. end
  836. end
  837. elseif COMBO == 2 then
  838. COMBO = 1
  839. for i=0, 0.3, 0.1 / Animation_Speed do
  840. Swait()
  841. turnto(Mouse.Hit.p)
  842. 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)
  843. 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)
  844. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  845. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  846. if HITFLOOR == true then
  847. 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)
  848. 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)
  849. elseif HITFLOOR == false then
  850. 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)
  851. 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)
  852. end
  853. end
  854. AMMO = AMMO - 1
  855. local AIMHIT,AIMPOS,NORMAL = BulletDetection(Gun2.Position,Mouse.Hit.p)
  856. CreateSound(FireSound, Gun2, 5, 1, false)
  857. SpawnTrail(Gun2.CFrame*CF(1.25,0.2,0).p,AIMPOS)
  858. for i=0, 0.1, 0.1 / Animation_Speed do
  859. Swait()
  860. turnto(AIMPOS)
  861. 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)
  862. 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)
  863. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  864. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  865. if HITFLOOR == true then
  866. 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)
  867. 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)
  868. elseif HITFLOOR == false then
  869. 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)
  870. 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)
  871. end
  872. end
  873. end
  874. else
  875. Reload()
  876. STOP = true
  877. end
  878. until KEYHOLD == false or STOP == true
  879. ATTACK = false
  880. Rooted = false
  881. end
  882.  
  883. function NEXUS_BARRAGE()
  884. ATTACK = true
  885. Rooted = true
  886. local BULLETS = {}
  887. for FIRE = 1, 3 do
  888. for i=0, 0.2, 0.1 / Animation_Speed do
  889. Swait()
  890. 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)
  891. 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)
  892. 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)
  893. 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)
  894. if HITFLOOR then
  895. 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)
  896. 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)
  897. elseif HITFLOOR == nil then
  898. 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)
  899. 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)
  900. end
  901. end
  902. CreateSound(FireSound, Gun1, 5, 1, false)
  903. CreateSound(FireSound, Gun2, 5, 1, false)
  904. local BULLET = CreatePart(3, Effects, "Metal", 0, 0, "Mid gray", "Bullet", VT(0.3,0,0))
  905. BULLET.CFrame = Gun1.CFrame*CF(3,0.2,0)
  906. SpawnTrail(Gun1.CFrame*CF(1.25,0.2,0).p,BULLET.Position)
  907. table.insert(BULLETS,BULLET)
  908. local BULLET = CreatePart(3, Effects, "Metal", 0, 0, "Mid gray", "Bullet", VT(0.3,0,0))
  909. BULLET.CFrame = Gun2.CFrame*CF(3,0.2,0)
  910. SpawnTrail(Gun2.CFrame*CF(1.25,0.2,0).p,BULLET.Position)
  911. table.insert(BULLETS,BULLET)
  912. AMMO = AMMO - 2
  913. for i=0, 0.1, 0.1 / Animation_Speed do
  914. Swait()
  915. 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)
  916. 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)
  917. 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)
  918. 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)
  919. if HITFLOOR then
  920. 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)
  921. 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)
  922. elseif HITFLOOR == nil then
  923. 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)
  924. 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)
  925. end
  926. end
  927. end
  928. Rooted = false
  929. for i=0, 0.2, 0.1 / Animation_Speed do
  930. Swait()
  931. 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)
  932. 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)
  933. 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)
  934. 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)
  935. if HITFLOOR then
  936. 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)
  937. 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)
  938. elseif HITFLOOR == nil then
  939. 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)
  940. 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)
  941. end
  942. end
  943. coroutine.resume(coroutine.create(function()
  944. for BULLET = 1, #BULLETS do
  945. if BULLETS[BULLET] ~= nil then
  946. Swait(5)
  947. local FIRE = BULLETS[BULLET]
  948. local AIMHIT,AIMPOS,NORMAL = BulletDetection(FIRE.Position,Mouse.Hit.p)
  949. SpawnTrail(FIRE.Position,AIMPOS)
  950. FIRE:remove()
  951. end
  952. end
  953. end))
  954. for i=0, 0.2, 0.1 / Animation_Speed do
  955. Swait()
  956. 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)
  957. 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)
  958. 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)
  959. 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)
  960. if HITFLOOR then
  961. 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)
  962. 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)
  963. elseif HITFLOOR == nil then
  964. 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)
  965. 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)
  966. end
  967. end
  968. ATTACK = false
  969. Rooted = false
  970. end
  971.  
  972. function HEARTSTROKE()
  973. ATTACK = true
  974. Rooted = false
  975. CreateSound(1112042117, Torso, 5, 1, false)
  976. 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})
  977. 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})
  978. for i = 1, 50 do
  979. local DASHTHROUGH = Raycast(RootPart.Position, RootPart.CFrame.lookVector, 4, Character)
  980. RootPart.CFrame = RootPart.CFrame*CF(0,0,-2)
  981. if DASHTHROUGH ~= nil then
  982. if DASHTHROUGH.Parent:FindFirstChildOfClass("Humanoid") then
  983. local HUM = DASHTHROUGH.Parent:FindFirstChildOfClass("Humanoid")
  984. local TORSO = DASHTHROUGH.Parent:FindFirstChild("Torso") or DASHTHROUGH.Parent:FindFirstChild("UpperTorso")
  985. if TORSO ~= nil and DASHTHROUGH.Parent:FindFirstChildOfClass("Humanoid").Health > 0 then
  986. Rooted = true
  987. local SOUND = CreateSound("147758746", TORSO, 10, 1,false)
  988. RootPart.CFrame = RootPart.CFrame*CF(0,0,-12)
  989. RootPart.CFrame = CF(RootPart.Position,TORSO.Position)*ANGLES(RAD(0),RAD(180),RAD(0))
  990. for i=0, 0.5, 0.1 / Animation_Speed do
  991. Swait()
  992. TORSO.Anchored = true
  993. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 3 / Animation_Speed)
  994. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed)
  995. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, 0.5) * ANGLES(RAD(-35), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  996. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, 0.5) * ANGLES(RAD(-40), RAD(0), RAD(15)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  997. 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)
  998. 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)
  999. end
  1000. TORSO.Anchored = false
  1001. TORSO.Parent:BreakJoints()
  1002. if TORSO.Parent:FindFirstChild("Head") then
  1003. getbloody(TORSO.Parent:FindFirstChild("Head"),15)
  1004. SpawnTrail(Gun1.CFrame*CF(1.25,0.2,0).p,TORSO.Parent:FindFirstChild("Head").Position)
  1005. TORSO.Parent:FindFirstChild("Head"):remove()
  1006. CreateSound(FireSound, Gun1, 5, 1, false)
  1007. AMMO = AMMO - 1
  1008. end
  1009. SOUND:remove()
  1010. SpawnTrail(Gun2.CFrame*CF(1.25,0.2,0).p,TORSO.Position)
  1011. CreateSound(FireSound, Gun2, 5, 1, false)
  1012. StatLabel(TORSO.CFrame * CF(0, 0 + (TORSO.Size.z - 1), 0), "Heartstruck!", C3(1,0,0))
  1013. AMMO = AMMO - 1
  1014. for i=0, 0.1, 0.1 / Animation_Speed do
  1015. Swait()
  1016. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 3 / Animation_Speed)
  1017. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed)
  1018. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, 0.5) * ANGLES(RAD(-35), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1019. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, 0.5) * ANGLES(RAD(-40), RAD(0), RAD(15)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1020. 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)
  1021. 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)
  1022. end
  1023. end
  1024. end
  1025. break
  1026. end
  1027. end
  1028. ATTACK = false
  1029. Rooted = false
  1030. end
  1031.  
  1032. function BLIND_STAR()
  1033. ATTACK = true
  1034. Rooted = true
  1035. for i=0, 0.3, 0.1 / Animation_Speed do
  1036. Swait()
  1037. 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)
  1038. 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)
  1039. 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)
  1040. 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)
  1041. if HITFLOOR then
  1042. 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)
  1043. 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)
  1044. elseif HITFLOOR == nil then
  1045. 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)
  1046. 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)
  1047. end
  1048. end
  1049. for i = 1, 8 do
  1050. for i=0, 0.2, 0.1 / Animation_Speed do
  1051. Swait()
  1052. 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)
  1053. 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)
  1054. 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)
  1055. 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)
  1056. if HITFLOOR then
  1057. 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)
  1058. 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)
  1059. elseif HITFLOOR == nil then
  1060. 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)
  1061. 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)
  1062. end
  1063. end
  1064. AMMO = AMMO - 1
  1065. SpawnTrail(Gun1.CFrame*CF(1.25,0.2,0).p,Gun1.CFrame*CF(2000,0.2,0).p)
  1066. CreateSound(FireSound, Gun1, 5, 1, false)
  1067. for i=0, 0.2, 0.1 / Animation_Speed do
  1068. Swait()
  1069. 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)
  1070. 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)
  1071. 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)
  1072. 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)
  1073. if HITFLOOR then
  1074. 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)
  1075. 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)
  1076. elseif HITFLOOR == nil then
  1077. 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)
  1078. 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)
  1079. end
  1080. end
  1081. AMMO = AMMO - 1
  1082. SpawnTrail(Gun2.CFrame*CF(1.25,0.2,0).p,Gun2.CFrame*CF(2000,0.2,0).p)
  1083. CreateSound(FireSound, Gun2, 5, 1, false)
  1084. end
  1085. local AIMPOS = Mouse.Hit.p
  1086. local AIM,AIMPOS = CastProperRay(AIMPOS+VT(0,1,0),AIMPOS,10000,Character)
  1087. coroutine.resume(coroutine.create(function()
  1088. local RAYS = {}
  1089. for i = 1, 4 do
  1090. local RAY = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Ray", VT(15,2000,15))
  1091. MakeForm(RAY,"Cyl")
  1092. RAY.Mesh.Scale = VT(1,1.1,1)
  1093. table.insert(RAYS,RAY)
  1094. end
  1095. CreateSound(348663022, Effects, 2, 1.2, false)
  1096. for i = 1, 100 do
  1097. Swait()
  1098. for e = 1, #RAYS do
  1099. if RAYS[e] ~= nil then
  1100. local RAY = RAYS[e]
  1101. 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)
  1102. RAY.Transparency = RAY.Transparency - 0.01
  1103. end
  1104. end
  1105. end
  1106. for i = 1, 20 do
  1107. Swait()
  1108. for e = 1, #RAYS do
  1109. if RAYS[e] ~= nil then
  1110. local RAY = RAYS[e]
  1111. RAY.Mesh.Scale = RAY.Mesh.Scale - VT(1/20,0,1/20)
  1112. end
  1113. end
  1114. end
  1115. wait(0.3)
  1116. for i = 1, 16 do
  1117. local POS = CF(AIMPOS)*ANGLES(RAD(0),RAD(0,360),RAD(0))*CF(0,0,MRANDOM(0,5)).p
  1118. SpawnTrail(POS+VT(0,200,0),POS)
  1119. end
  1120. for i = 1, 4 do
  1121. CreateDebreeRing(AIM,AIMPOS-VT(0,3,0),5*i,VT(5,5,5)*i,5)
  1122. end
  1123. CreateFlyingDebree(AIM,CF(AIMPOS),7,VT(3,3,3),5,185,false)
  1124. CreateFlyingDebree(AIM,CF(AIMPOS),7,VT(6,6,6),5,285,false)
  1125. CreateSound(130972023, Effects, 2, 1, false)
  1126. ApplyAoE(AIMPOS,25,0,0,100,true)
  1127. Swait()
  1128. ApplyAoE(AIMPOS,85,80,99,45,false)
  1129. end))
  1130. ATTACK = false
  1131. Rooted = false
  1132. end
  1133.  
  1134. function Reload()
  1135. ATTACK = true
  1136. Rooted = false
  1137. for i=0, 0.3, 0.1 / Animation_Speed do
  1138. Swait()
  1139. if ANIM == "Walk" then
  1140. 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)
  1141. else
  1142. 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)
  1143. end
  1144. 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)
  1145. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.15, -1) * ANGLES(RAD(150), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1146. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -1) * ANGLES(RAD(140), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1147. if HITFLOOR then
  1148. 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)
  1149. 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)
  1150. elseif HITFLOOR == nil then
  1151. 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)
  1152. 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)
  1153. end
  1154. end
  1155. for i=0, 0.1, 0.1 / Animation_Speed do
  1156. Swait()
  1157. if ANIM == "Walk" then
  1158. 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)
  1159. else
  1160. 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)
  1161. end
  1162. 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)
  1163. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1164. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1165. if HITFLOOR then
  1166. 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)
  1167. 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)
  1168. elseif HITFLOOR == nil then
  1169. 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)
  1170. 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)
  1171. end
  1172. end
  1173. local FakeGun1 = Gun1:Clone()
  1174. FakeGun1.Parent = Effects
  1175. FakeGun1.CanCollide = true
  1176. Debris:AddItem(FakeGun1,5)
  1177. local FakeGun2 = Gun2:Clone()
  1178. FakeGun2.Parent = Effects
  1179. FakeGun2.CanCollide = true
  1180. Debris:AddItem(FakeGun2,5)
  1181. local bv = Instance.new("BodyVelocity")
  1182. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1183. bv.velocity = CF(Torso.Position,FakeGun1.Position).lookVector*25
  1184. bv.Parent = FakeGun1
  1185. Debris:AddItem(bv,0.05)
  1186. local bv = Instance.new("BodyVelocity")
  1187. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1188. bv.velocity = CF(Torso.Position,FakeGun2.Position).lookVector*25
  1189. bv.Parent = FakeGun2
  1190. Debris:AddItem(bv,0.05)
  1191. Gun1.Transparency = 1
  1192. Gun2.Transparency = 1
  1193. CreateSound(1112042117, FakeGun1, 5, 1, false)
  1194. CreateSound(1112042117, FakeGun2, 5, 1, false)
  1195. FakeGun1.CustomPhysicalProperties = PhysicalProperties.new(0.7, 0.5, 0.5, 1, 1)
  1196. FakeGun2.CustomPhysicalProperties = PhysicalProperties.new(0.7, 0.5, 0.5, 1, 1)
  1197. for i=0, 0.2, 0.1 / Animation_Speed do
  1198. Swait()
  1199. if ANIM == "Walk" then
  1200. 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)
  1201. else
  1202. 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)
  1203. end
  1204. 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)
  1205. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1206. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1207. if HITFLOOR then
  1208. 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)
  1209. 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)
  1210. elseif HITFLOOR == nil then
  1211. 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)
  1212. 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)
  1213. end
  1214. end
  1215. for i=0, 0.2, 0.1 / Animation_Speed do
  1216. Swait()
  1217. if ANIM == "Walk" then
  1218. 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)
  1219. else
  1220. 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)
  1221. end
  1222. 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)
  1223. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, 0.5) * ANGLES(RAD(-25), RAD(0), RAD(-20)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1224. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, 0.5) * ANGLES(RAD(-25), RAD(0), RAD(20)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1225. if HITFLOOR then
  1226. 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)
  1227. 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)
  1228. elseif HITFLOOR == nil then
  1229. 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)
  1230. 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)
  1231. end
  1232. end
  1233. Gun1.Transparency = 0
  1234. Gun2.Transparency = 0
  1235. AMMO = 16
  1236. ATTACK = false
  1237. Rooted = false
  1238. end
  1239.  
  1240. --//=================================\\
  1241. --|| ASSIGN THINGS TO KEYS
  1242. --\\=================================//
  1243.  
  1244. function MouseDown(Mouse)
  1245. if ATTACK == false then
  1246. end
  1247. end
  1248.  
  1249. function MouseUp(Mouse)
  1250. HOLD = false
  1251. end
  1252.  
  1253. function KeyDown(Key)
  1254. KEYHOLD = true
  1255. if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then
  1256. if AMMO > 0 then
  1257. if Key == "z" and ATTACK == false then
  1258. BULLET_SHOT()
  1259. end
  1260.  
  1261. if Key == "b" and AMMO >= 6 and ATTACK == false then
  1262. NEXUS_BARRAGE()
  1263. end
  1264.  
  1265. if Key == "c" and AMMO > 1 and ATTACK == false then
  1266. HEARTSTROKE()
  1267. end
  1268.  
  1269. if Key == "x" and AMMO == 16 and ATTACK == false then
  1270. BLIND_STAR()
  1271. end
  1272.  
  1273. if Key == "r" and ATTACK == false then
  1274. Reload()
  1275. end
  1276. elseif ATTACK == false then
  1277. Reload()
  1278. end
  1279. end
  1280. if Key == "q" then
  1281. if Radio:FindFirstChild("EdgySong") == nil then
  1282. local SONGS = {188988878,214614192,343137910,590071128}
  1283. SONG = CreateSound(SONGS[MRANDOM(1,#SONGS)], Radio, 3, 1, true)
  1284. SONG.Name = "EdgySong"
  1285. else
  1286. Radio.EdgySong:remove()
  1287. SONG = nil
  1288. end
  1289. end
  1290. if string.byte(Key) == 32 and READYTODOUBLE == true and ATTACK == false and Humanoid.Jump == true and DOUBLEJUMP == false then
  1291. DOUBLEJUMP = true
  1292. Torso.Velocity = Vector3.new(0,125,0)
  1293. CreateSound(159882477, Head, 4, 1, false)
  1294. CreateSound(1112042117, Torso, 2, 1, false)
  1295. end
  1296. end
  1297.  
  1298. Humanoid.Changed:connect(function(Jump)
  1299. if Jump == "Jump" and (Disable_Jump == false) then
  1300. wait(0.1)
  1301. READYTODOUBLE = true
  1302. end
  1303. end)
  1304.  
  1305. function KeyUp(Key)
  1306. if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then
  1307. KEYHOLD = false
  1308. end
  1309. end
  1310.  
  1311. Mouse.Button1Down:connect(function(NEWKEY)
  1312. MouseDown(NEWKEY)
  1313. end)
  1314. Mouse.Button1Up:connect(function(NEWKEY)
  1315. MouseUp(NEWKEY)
  1316. end)
  1317. Mouse.KeyDown:connect(function(NEWKEY)
  1318. KeyDown(NEWKEY)
  1319. end)
  1320. Mouse.KeyUp:connect(function(NEWKEY)
  1321. KeyUp(NEWKEY)
  1322. end)
  1323.  
  1324. --//=================================\\
  1325. --\\=================================//
  1326.  
  1327.  
  1328. function unanchor()
  1329. if UNANCHOR == true then
  1330. RootPart.Anchored = false
  1331. end
  1332. g = Character:GetChildren()
  1333. for i = 1, #g do
  1334. if g[i].ClassName == "Part" and g[i] ~= RootPart then
  1335. g[i].Anchored = false
  1336. end
  1337. end
  1338. g = Weapon:GetChildren()
  1339. for i = 1, #g do
  1340. if g[i].ClassName == "Part" then
  1341. g[i].Anchored = false
  1342. end
  1343. end
  1344. end
  1345.  
  1346.  
  1347. --//=================================\\
  1348. --|| WRAP THE WHOLE SCRIPT UP
  1349. --\\=================================//
  1350.  
  1351. Humanoid.Changed:connect(function(Jump)
  1352. if Jump == "Jump" and (Disable_Jump == true) then
  1353. Humanoid.Jump = false
  1354. end
  1355. end)
  1356.  
  1357. Humanoid.JumpPower = 75
  1358.  
  1359. local FF = IT("ForceField",Character)
  1360. FF.Visible = false
  1361. local LOOP = 0
  1362.  
  1363. while true do
  1364. Swait()
  1365. script.Parent = WEAPONGUI
  1366. Character.Parent = workspace
  1367. Humanoid.Parent = Character
  1368. ANIMATE.Parent = nil
  1369. if Humanoid then
  1370. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1371. IDLEANIMATION:Play()
  1372. end
  1373. SINE = SINE + CHANGE
  1374. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1375. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1376. HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1377. local WALKSPEEDVALUE = 3
  1378. if ANIM == "Walk" and TORSOVELOCITY > 1 and Rooted == false then
  1379. 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)
  1380. 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)
  1381. 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)
  1382. 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)
  1383. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or Rooted == true then
  1384. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1385. 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)
  1386. 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)
  1387. 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)
  1388. end
  1389. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1390. if ANIM ~= "Jump" then
  1391. LOOP = 0
  1392. end
  1393. ANIM = "Jump"
  1394. if DOUBLEJUMP == false then
  1395. if ATTACK == false then
  1396. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1397. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1398. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(76)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1399. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(-76)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1400. 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)
  1401. 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)
  1402. end
  1403. elseif DOUBLEJUMP == true then
  1404. if ATTACK == false then
  1405. LOOP = LOOP + 1
  1406. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(LOOP*45), RAD(0), RAD(0)), 2.5 / Animation_Speed)
  1407. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1408. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1409. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1410. 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)
  1411. 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)
  1412. end
  1413. end
  1414. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1415. ANIM = "Fall"
  1416. if ATTACK == false then
  1417. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1418. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1419. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(80)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1420. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-80)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1421. 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)
  1422. 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)
  1423. end
  1424. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1425. ANIM = "Idle"
  1426. if DOUBLEJUMP == true then
  1427. DOUBLEJUMP = false
  1428. end
  1429. if READYTODOUBLE == true then
  1430. READYTODOUBLE = false
  1431. end
  1432. if ATTACK == false then
  1433. 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)
  1434. 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)
  1435. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1436. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1437. 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)
  1438. 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)
  1439. end
  1440. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1441. ANIM = "Walk"
  1442. if DOUBLEJUMP == true then
  1443. DOUBLEJUMP = false
  1444. end
  1445. if READYTODOUBLE == true then
  1446. READYTODOUBLE = false
  1447. end
  1448. if ATTACK == false then
  1449. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1450. 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)
  1451. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
  1452. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1453. 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)
  1454. 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)
  1455. end
  1456. end
  1457. unanchor()
  1458. Humanoid.MaxHealth = "inf"
  1459. Humanoid.Health = "inf"
  1460. if Rooted == false then
  1461. Disable_Jump = false
  1462. Humanoid.WalkSpeed = Speed
  1463. elseif Rooted == true then
  1464. Disable_Jump = true
  1465. Humanoid.WalkSpeed = 0
  1466. end
  1467. for _, c in pairs(Character:GetChildren()) do
  1468. if c.ClassName == "Part" and c.Name ~= "Eye" then
  1469. c.Material = "Neon"
  1470. if c:FindFirstChildOfClass("ParticleEmitter") then
  1471. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1472. end
  1473. c.Color = C3(255/255, 230/255, 194/255)
  1474. if c == Head then
  1475. if c:FindFirstChild("face") then
  1476. c.face:remove()
  1477. end
  1478. end
  1479. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  1480. c:remove()
  1481. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1482. c:remove()
  1483. end
  1484. end
  1485. AMMOTEXT.Text = "["..AMMO.."]"
  1486. Humanoid.Name = "Gunslinger"
  1487. script.Parent = WEAPONGUI
  1488. if SONG ~= nil then
  1489. RADIOMESH.Scale = VT(1,1,1)+(VT(0.3,0.3,0.3)*SONG.PlaybackLoudness/500)
  1490. else
  1491. RADIOMESH.Scale = VT(1,1,1)
  1492. end
  1493. end
  1494.  
  1495. --//=================================\\
  1496. --\\=================================//
  1497.  
  1498.  
  1499.  
  1500.  
  1501.  
  1502. --//====================================================\\--
  1503. --|| END OF SCRIPT
  1504. --\\====================================================//--
Add Comment
Please, Sign In to add comment