Advertisement
5sdfsadgaq5465

gunner fe

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