Advertisement
Christoffer07700Extr

gunner edit

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