Advertisement
memberhero

FE Gun Script

Jan 19th, 2019
4,272
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 = game:GetService("Players").LocalPlayer
  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. wait(0.2)
  84. Player = owner
  85. PlayerGui = Player.PlayerGui
  86. Cam = workspace.CurrentCamera
  87. Backpack = Player.Backpack
  88. Character = Player.Character
  89. Humanoid = Character.Humanoid
  90. RootPart = Character["HumanoidRootPart"]
  91. Torso = Character["Torso"]
  92. Head = Character["Head"]
  93. RightArm = Character["Right Arm"]
  94. LeftArm = Character["Left Arm"]
  95. RightLeg = Character["Right Leg"]
  96. LeftLeg = Character["Left Leg"]
  97. RootJoint = RootPart["RootJoint"]
  98. Neck = Torso["Neck"]
  99. RightShoulder = Torso["Right Shoulder"]
  100. LeftShoulder = Torso["Left Shoulder"]
  101. RightHip = Torso["Right Hip"]
  102. LeftHip = Torso["Left Hip"]
  103.  
  104. IT = Instance.new
  105. CF = CFrame.new
  106. VT = Vector3.new
  107. RAD = math.rad
  108. C3 = Color3.new
  109. UD2 = UDim2.new
  110. BRICKC = BrickColor.new
  111. ANGLES = CFrame.Angles
  112. EULER = CFrame.fromEulerAnglesXYZ
  113. COS = math.cos
  114. ACOS = math.acos
  115. SIN = math.sin
  116. ASIN = math.asin
  117. ABS = math.abs
  118. MRANDOM = math.random
  119. FLOOR = math.floor
  120.  
  121. --//=================================\\
  122. --|| USEFUL VALUES
  123. --\\=================================//
  124.  
  125. Animation_Speed = 3
  126. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  127. local Speed = 35
  128. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  129. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  130. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  131. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  132. local DAMAGEMULTIPLIER = 1
  133. local ANIM = "Idle"
  134. local ATTACK = false
  135. local EQUIPPED = false
  136. local HOLD = false
  137. local COMBO = 1
  138. local Rooted = false
  139. local SINE = 0
  140. local KEYHOLD = false
  141. local CHANGE = 2 / Animation_Speed
  142. local WALKINGANIM = false
  143. local VALUE1 = false
  144. local VALUE2 = false
  145. local ROBLOXIDLEANIMATION = IT("Animation")
  146. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  147. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  148. --ROBLOXIDLEANIMATION.Parent = Humanoid
  149. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  150. WEAPONGUI.Name = "GUNJOURER_GUI_SHACKLUSTER"
  151. local Effects = IT("Folder", Character)
  152. Effects.Name = "Effects"
  153. local ANIMATOR = Humanoid.Animator
  154. local ANIMATE = Character.Animate
  155. local UNANCHOR = true
  156. local TRIPWIRE = false
  157.  
  158. --//=================================\\
  159. --\\=================================//
  160.  
  161.  
  162. --//=================================\\
  163. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  164. --\\=================================//
  165.  
  166. ArtificialHB = Instance.new("BindableEvent", script)
  167. ArtificialHB.Name = "ArtificialHB"
  168.  
  169. script:WaitForChild("ArtificialHB")
  170.  
  171. frame = Frame_Speed
  172. tf = 0
  173. allowframeloss = false
  174. tossremainder = false
  175. lastframe = tick()
  176. script.ArtificialHB:Fire()
  177.  
  178. game:GetService("RunService").Heartbeat:connect(function(s, p)
  179. tf = tf + s
  180. if tf >= frame then
  181. if allowframeloss then
  182. ArtificialHB:Fire()
  183. lastframe = tick()
  184. else
  185. for i = 1, math.floor(tf / frame) do
  186. ArtificialHB:Fire()
  187. end
  188. lastframe = tick()
  189. end
  190. if tossremainder then
  191. tf = 0
  192. else
  193. tf = tf - frame * math.floor(tf / frame)
  194. end
  195. end
  196. end)
  197.  
  198. --//=================================\\
  199. --\\=================================//
  200.  
  201. --//=================================\\
  202. --|| SOME FUNCTIONS
  203. --\\=================================//
  204.  
  205. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  206. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  207. end
  208.  
  209. function PositiveAngle(NUMBER)
  210. if NUMBER >= 0 then
  211. NUMBER = 0
  212. end
  213. return NUMBER
  214. end
  215.  
  216. function NegativeAngle(NUMBER)
  217. if NUMBER <= 0 then
  218. NUMBER = 0
  219. end
  220. return NUMBER
  221. end
  222.  
  223. function Swait(NUMBER)
  224. if NUMBER == 0 or NUMBER == nil then
  225. ArtificialHB.Event:wait()
  226. else
  227. for i = 1, NUMBER do
  228. ArtificialHB.Event:wait()
  229. end
  230. end
  231. end
  232.  
  233. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  234. local NEWMESH = IT(MESH)
  235. if MESH == "SpecialMesh" then
  236. NEWMESH.MeshType = MESHTYPE
  237. if MESHID ~= "nil" and MESHID ~= "" then
  238. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  239. end
  240. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  241. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  242. end
  243. end
  244. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  245. NEWMESH.Scale = SCALE
  246. NEWMESH.Parent = PARENT
  247. return NEWMESH
  248. end
  249.  
  250. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  251. local NEWPART = IT("Part")
  252. NEWPART.formFactor = FORMFACTOR
  253. NEWPART.Reflectance = REFLECTANCE
  254. NEWPART.Transparency = TRANSPARENCY
  255. NEWPART.CanCollide = false
  256. NEWPART.Locked = true
  257. NEWPART.Anchored = true
  258. if ANCHOR == false then
  259. NEWPART.Anchored = false
  260. end
  261. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  262. NEWPART.Name = NAME
  263. NEWPART.Size = SIZE
  264. NEWPART.Position = Torso.Position
  265. NEWPART.Material = MATERIAL
  266. NEWPART:BreakJoints()
  267. NEWPART.Parent = PARENT
  268. return NEWPART
  269. end
  270.  
  271. local function weldBetween(a, b)
  272. local weldd = Instance.new("ManualWeld")
  273. weldd.Part0 = a
  274. weldd.Part1 = b
  275. weldd.C0 = CFrame.new()
  276. weldd.C1 = b.CFrame:inverse() * a.CFrame
  277. weldd.Parent = a
  278. return weldd
  279. end
  280.  
  281.  
  282. function QuaternionFromCFrame(cf)
  283. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  284. local trace = m00 + m11 + m22
  285. if trace > 0 then
  286. local s = math.sqrt(1 + trace)
  287. local recip = 0.5 / s
  288. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  289. else
  290. local i = 0
  291. if m11 > m00 then
  292. i = 1
  293. end
  294. if m22 > (i == 0 and m00 or m11) then
  295. i = 2
  296. end
  297. if i == 0 then
  298. local s = math.sqrt(m00 - m11 - m22 + 1)
  299. local recip = 0.5 / s
  300. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  301. elseif i == 1 then
  302. local s = math.sqrt(m11 - m22 - m00 + 1)
  303. local recip = 0.5 / s
  304. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  305. elseif i == 2 then
  306. local s = math.sqrt(m22 - m00 - m11 + 1)
  307. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  308. end
  309. end
  310. end
  311.  
  312. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  313. local xs, ys, zs = x + x, y + y, z + z
  314. local wx, wy, wz = w * xs, w * ys, w * zs
  315. local xx = x * xs
  316. local xy = x * ys
  317. local xz = x * zs
  318. local yy = y * ys
  319. local yz = y * zs
  320. local zz = z * zs
  321. 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))
  322. end
  323.  
  324. function QuaternionSlerp(a, b, t)
  325. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  326. local startInterp, finishInterp;
  327. if cosTheta >= 0.0001 then
  328. if (1 - cosTheta) > 0.0001 then
  329. local theta = ACOS(cosTheta)
  330. local invSinTheta = 1 / SIN(theta)
  331. startInterp = SIN((1 - t) * theta) * invSinTheta
  332. finishInterp = SIN(t * theta) * invSinTheta
  333. else
  334. startInterp = 1 - t
  335. finishInterp = t
  336. end
  337. else
  338. if (1 + cosTheta) > 0.0001 then
  339. local theta = ACOS(-cosTheta)
  340. local invSinTheta = 1 / SIN(theta)
  341. startInterp = SIN((t - 1) * theta) * invSinTheta
  342. finishInterp = SIN(t * theta) * invSinTheta
  343. else
  344. startInterp = t - 1
  345. finishInterp = t
  346. end
  347. end
  348. 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
  349. end
  350.  
  351. function Clerp(a, b, t)
  352. local qa = {QuaternionFromCFrame(a)}
  353. local qb = {QuaternionFromCFrame(b)}
  354. local ax, ay, az = a.x, a.y, a.z
  355. local bx, by, bz = b.x, b.y, b.z
  356. local _t = 1 - t
  357. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  358. end
  359.  
  360. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  361. local frame = IT("Frame")
  362. frame.BackgroundTransparency = TRANSPARENCY
  363. frame.BorderSizePixel = BORDERSIZEPIXEL
  364. frame.Position = POSITION
  365. frame.Size = SIZE
  366. frame.BackgroundColor3 = COLOR
  367. frame.BorderColor3 = BORDERCOLOR
  368. frame.Name = NAME
  369. frame.Parent = PARENT
  370. return frame
  371. end
  372.  
  373. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  374. local label = IT("TextLabel")
  375. label.BackgroundTransparency = 1
  376. label.Size = UD2(1, 0, 1, 0)
  377. label.Position = UD2(0, 0, 0, 0)
  378. label.TextColor3 = TEXTCOLOR
  379. label.TextStrokeTransparency = STROKETRANSPARENCY
  380. label.TextTransparency = TRANSPARENCY
  381. label.FontSize = TEXTFONTSIZE
  382. label.Font = TEXTFONT
  383. label.BorderSizePixel = BORDERSIZEPIXEL
  384. label.TextScaled = false
  385. label.Text = TEXT
  386. label.Name = NAME
  387. label.Parent = PARENT
  388. return label
  389. end
  390.  
  391. function NoOutlines(PART)
  392. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  393. end
  394.  
  395. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  396. local NEWWELD = IT(TYPE)
  397. NEWWELD.Part0 = PART0
  398. NEWWELD.Part1 = PART1
  399. NEWWELD.C0 = C0
  400. NEWWELD.C1 = C1
  401. NEWWELD.Parent = PARENT
  402. return NEWWELD
  403. end
  404.  
  405. local S = IT("Sound")
  406. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  407. local NEWSOUND = nil
  408. coroutine.resume(coroutine.create(function()
  409. NEWSOUND = S:Clone()
  410. NEWSOUND.Parent = PARENT
  411. NEWSOUND.Volume = VOLUME
  412. NEWSOUND.Pitch = PITCH
  413. NEWSOUND.SoundId = "rbxassetid://"..ID
  414. NEWSOUND:play()
  415. if DOESLOOP == true then
  416. NEWSOUND.Looped = true
  417. else
  418. repeat wait(1) until NEWSOUND.Playing == false
  419. NEWSOUND:remove()
  420. end
  421. end))
  422. return NEWSOUND
  423. end
  424.  
  425. function CFrameFromTopBack(at, top, back)
  426. local right = top:Cross(back)
  427. 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)
  428. end
  429.  
  430. --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, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  431. function WACKYEFFECT(Table)
  432. local TYPE = (Table.EffectType or "Sphere")
  433. local SIZE = (Table.Size or VT(1,1,1))
  434. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  435. local TRANSPARENCY = (Table.Transparency or 0)
  436. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  437. local CFRAME = (Table.CFrame or Torso.CFrame)
  438. local MOVEDIRECTION = (Table.MoveToPos or nil)
  439. local ROTATION1 = (Table.RotationX or 0)
  440. local ROTATION2 = (Table.RotationY or 0)
  441. local ROTATION3 = (Table.RotationZ or 0)
  442. local MATERIAL = (Table.Material or "Neon")
  443. local COLOR = (Table.Color or C3(1,1,1))
  444. local TIME = (Table.Time or 45)
  445. local SOUNDID = (Table.SoundID or nil)
  446. local SOUNDPITCH = (Table.SoundPitch or nil)
  447. local SOUNDVOLUME = (Table.SoundVolume or nil)
  448. local USEBOOMERANGMATH = (Table.UseBoomerangMath or false)
  449. local BOOMERANG = (Table.Boomerang or 0)
  450. local SIZEBOOMERANG = (Table.SizeBoomerang or 0)
  451. coroutine.resume(coroutine.create(function()
  452. local PLAYSSOUND = false
  453. local SOUND = nil
  454. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  455. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  456. PLAYSSOUND = true
  457. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  458. end
  459. EFFECT.Color = COLOR
  460. local MSH = nil
  461. if TYPE == "Sphere" then
  462. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  463. elseif TYPE == "Block" or TYPE == "Box" then
  464. MSH = IT("BlockMesh",EFFECT)
  465. MSH.Scale = SIZE
  466. elseif TYPE == "Wave" then
  467. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  468. elseif TYPE == "Ring" then
  469. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  470. elseif TYPE == "Slash" then
  471. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  472. elseif TYPE == "Round Slash" then
  473. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  474. elseif TYPE == "Swirl" then
  475. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "168892432", "", SIZE, VT(0,0,0))
  476. elseif TYPE == "Skull" then
  477. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  478. elseif TYPE == "Crystal" then
  479. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  480. end
  481. if MSH ~= nil then
  482. local BOOMR1 = 1+BOOMERANG/50
  483. local BOOMR2 = 1+SIZEBOOMERANG/50
  484. local MOVESPEED = nil
  485. if MOVEDIRECTION ~= nil then
  486. if USEBOOMERANGMATH == true then
  487. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1
  488. else
  489. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)
  490. end
  491. end
  492. local GROWTH = nil
  493. if USEBOOMERANGMATH == true then
  494. GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1)
  495. else
  496. GROWTH = (SIZE - ENDSIZE)
  497. end
  498. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  499. if TYPE == "Block" then
  500. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  501. else
  502. EFFECT.CFrame = CFRAME
  503. end
  504. if USEBOOMERANGMATH == true then
  505. for LOOP = 1, TIME+1 do
  506. Swait()
  507. MSH.Scale = MSH.Scale - (VT((GROWTH.X)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Y)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Z)*((1 - (LOOP/TIME)*BOOMR2)))*BOOMR2)/TIME
  508. if TYPE == "Wave" then
  509. MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  510. end
  511. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  512. if TYPE == "Block" then
  513. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  514. else
  515. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  516. end
  517. if MOVEDIRECTION ~= nil then
  518. local ORI = EFFECT.Orientation
  519. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-(MOVESPEED)*((1 - (LOOP/TIME)*BOOMR1)))
  520. EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
  521. end
  522. end
  523. else
  524. for LOOP = 1, TIME+1 do
  525. Swait()
  526. MSH.Scale = MSH.Scale - GROWTH/TIME
  527. if TYPE == "Wave" then
  528. MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  529. end
  530. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  531. if TYPE == "Block" then
  532. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  533. else
  534. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  535. end
  536. if MOVEDIRECTION ~= nil then
  537. local ORI = EFFECT.Orientation
  538. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  539. EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
  540. end
  541. end
  542. end
  543. EFFECT.Transparency = 1
  544. if PLAYSSOUND == false then
  545. EFFECT:remove()
  546. else
  547. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  548. EFFECT:remove()
  549. end
  550. else
  551. if PLAYSSOUND == false then
  552. EFFECT:remove()
  553. else
  554. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  555. EFFECT:remove()
  556. end
  557. end
  558. end))
  559. end
  560.  
  561. function MakeForm(PART,TYPE)
  562. if TYPE == "Cyl" then
  563. local MSH = IT("CylinderMesh",PART)
  564. elseif TYPE == "Ball" then
  565. local MSH = IT("SpecialMesh",PART)
  566. MSH.MeshType = "Sphere"
  567. elseif TYPE == "Wedge" then
  568. local MSH = IT("SpecialMesh",PART)
  569. MSH.MeshType = "Wedge"
  570. end
  571. end
  572.  
  573. Debris = game:GetService("Debris")
  574.  
  575. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  576. local DIRECTION = CF(StartPos,EndPos).lookVector
  577. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  578. end
  579.  
  580. function OhnoItsAShotgun()
  581. local SHOOTgun = CreatePart(3, Effects, "Fabric", 0, 1, BRICKC("Black"), "OhNoItsAShotgun", VT(0.25, 0.5, 5), true)
  582. CreateMesh("SpecialMesh", SHOOTgun, "FileMesh", "3835506", "", VT(0.9, 1.13, 1), VT(0,-0.3,0))
  583. return SHOOTgun
  584. end
  585.  
  586. function CamShake(SHAKE,TIMER)
  587. coroutine.resume(coroutine.create(function()
  588. local FADER = SHAKE/TIMER
  589. for i = 1, TIMER do
  590. wait()
  591. Humanoid.CameraOffset = VT(MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10,MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10,MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10)
  592. end
  593. Humanoid.CameraOffset = VT(0,0,0)
  594. end))
  595. end
  596.  
  597. --//=================================\\
  598. --|| GUIS AND MISC
  599. --\\=================================//
  600.  
  601. local SKILLTEXTCOLOR = C3(1,1,1)
  602. local SKILLFONT = "SciFi"
  603. local SKILLTEXTSIZE = 4
  604.  
  605. local ATTACKS = {"Conjour - C","Aerial Bombardament - V","Point Blank - B","Tripwire - F","Mend - M"}
  606.  
  607. for i = 1, #ATTACKS do
  608. local SKILLFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.74, 0, 0.97-(0.04*i), 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill Frame")
  609. local SKILLTEXT = CreateLabel(SKILLFRAME, "["..ATTACKS[i].."]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Skill text")
  610. SKILLTEXT.TextXAlignment = "Right"
  611. SKILLTEXT.Rotation = i*3
  612. end
  613.  
  614. local BMUSIC = IT("Sound",RootPart)
  615. local VOLUME = 3
  616. local PITCH = 1
  617. local SONGID = 554435540
  618.  
  619. local HEALTHBAR = CreateFrame(WEAPONGUI, 0.5, 1, UD2(1-0.20, 0, 0.75, 0), UD2(0.20, 0, 0.02, 0), C3(0,0,0), C3(0, 0, 0),"Health Bar")
  620. local HEALTHCOVER = CreateFrame(HEALTHBAR, 0, 0, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), BRICKC"Shamrock".Color, C3(0, 0, 0),"Health Cover")
  621. local HEALTHTEXT = CreateLabel(HEALTHBAR, Humanoid.Health.."/"..Humanoid.MaxHealth, SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "HP")
  622. Character.Health:remove()
  623. HEALTHBAR.Rotation = (#ATTACKS*3)+3
  624. local WHOAMI = CreateFrame(WEAPONGUI, 1, 1, UD2(1-0.26, 0, 0.69, 0), UD2(0.26, 0, 0.02, 0), C3(0,0,0), C3(0, 0, 0),"Ban")
  625. WHOAMI.Rotation = (#ATTACKS*3)+3
  626. CreateLabel(WHOAMI, "Gunjourer", SKILLTEXTCOLOR, SKILLTEXTSIZE+4, SKILLFONT, 0, 2, 0, "Yes")
  627.  
  628. Humanoid.MaxHealth = 450
  629. Humanoid.Health = 450
  630.  
  631. Humanoid.Died:Connect(function()
  632. RootPart:remove()
  633. CreateSound(160718677, Head, 4, 1, false)
  634. BMUSIC:remove()
  635. Effects:remove()
  636. WEAPONGUI:remove()
  637. end)
  638. local GRUNTS = {1146556975,1146556706,1278006076}
  639.  
  640. --//=================================\\
  641. --|| DAMAGING
  642. --\\=================================//
  643.  
  644. function ApplyDamage(Humanoid,Damage)
  645. Damage = Damage * DAMAGEMULTIPLIER
  646. if Humanoid.Health < 2000 then
  647. if Humanoid.Health - Damage > 0 then
  648. Humanoid.Health = Humanoid.Health - Damage
  649. else
  650. Humanoid.Parent:BreakJoints()
  651. end
  652. else
  653. Humanoid.Parent:BreakJoints()
  654. end
  655. end
  656.  
  657. function PAW_HAHA(LOC,AIMTO,OUCH)
  658. WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(1.4,1.4,1.4), Transparency = 0, Transparency2 = 1, CFrame = CF(LOC), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = 138083993, SoundPitch = MRANDOM(8,12)/13, SoundVolume = 2})
  659. for i = 1, 4 do
  660. local POS1 = CF(LOC,AIMTO)*CF(0,0,-45).p
  661. local AIMPOS = CF(LOC,POS1) * CF(0,0,-45) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))*CF(0,0,MRANDOM(5,75)/10).p
  662. local HIT,POS = CastProperRay(LOC,AIMPOS,1000,Character)
  663. local DISTANCE = (POS - LOC).Magnitude
  664. if HIT then
  665. local HUM = nil
  666. if HIT.Parent:FindFirstChildOfClass("Humanoid") then
  667. HUM = HIT.Parent:FindFirstChildOfClass("Humanoid")
  668. elseif HIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  669. HUM = HIT.Parent.Parent:FindFirstChildOfClass("Humanoid")
  670. end
  671. if HUM then
  672. ApplyDamage(HUM,OUCH+MRANDOM(-3,3))
  673. end
  674. end
  675. WACKYEFFECT({Time = 20, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = nil, SoundPitch = 1, SoundVolume = 4})
  676. WACKYEFFECT({Time = 20, EffectType = "Box", Size = VT(0,0,DISTANCE), Size2 = VT(0.7,0.7,DISTANCE), Transparency = 0.6, Transparency2 = 1, CFrame = CF(LOC,POS)*CF(0,0,-DISTANCE/2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  677. end
  678. end
  679.  
  680. --//=================================\\
  681. --|| ATTACK FUNCTIONS AND STUFF
  682. --\\=================================//
  683.  
  684. function Conjour()
  685. local SHOOT = OhnoItsAShotgun()
  686. local CFRAME = CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,MRANDOM(15,25)/3,MRANDOM(15,25)/3)
  687. local ORI = 90
  688. SHOOT.CFrame = CF(CFRAME.p,Mouse.Hit.p) * ANGLES(RAD(0), RAD(ORI), RAD(0))
  689. local GOODRIDDANCE = false
  690. CreateSound(233856115, SHOOT, 2, (MRANDOM(8,12)/10)+0.3, false)
  691. coroutine.resume(coroutine.create(function()
  692. repeat
  693. SHOOT.CFrame = Clerp(SHOOT.CFrame,CF(CFRAME.p,Mouse.Hit.p) * ANGLES(RAD(ORI), RAD(0), RAD(0)),0.25)
  694. Swait()
  695. until GOODRIDDANCE == true
  696. SHOOT.CFrame = SHOOT.CFrame * ANGLES(RAD(45), RAD(0), RAD(0))
  697. SHOOT.CanCollide = true
  698. SHOOT.Anchored = false
  699. SHOOT.Parent = workspace
  700. local bv = Instance.new("BodyVelocity",SHOOT)
  701. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  702. bv.velocity = CF(SHOOT.Position,SHOOT.CFrame*CF(0,2.5,2).p).lookVector*45
  703. Debris:AddItem(bv,0.1)
  704. wait(5)
  705. for i = 1, 45 do
  706. Swait()
  707. SHOOT.Transparency = SHOOT.Transparency + 1/45
  708. end
  709. SHOOT:remove()
  710. end))
  711. for i = 1, 15 do
  712. Swait()
  713. SHOOT.Transparency = SHOOT.Transparency - 1/15
  714. ORI = ORI - 3
  715. end
  716. for i = 1, 15 do
  717. Swait()
  718. ORI = ORI - 3
  719. end
  720. wait(MRANDOM(2,8)/10)
  721. PAW_HAHA(SHOOT.CFrame*CF(0,0,-SHOOT.Size.Z/2).p,Mouse.Hit.p,14)
  722. CamShake(4,4)
  723. GOODRIDDANCE = true
  724. end
  725. function Aerial_Bombardament()
  726. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  727. if HITFLOOR then
  728. ATTACK = true
  729. Rooted = true
  730. local bv = Instance.new("BodyVelocity")
  731. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  732. bv.velocity = CF(RootPart.Position,RootPart.CFrame*CF(0,1.5,-2).p).lookVector*175
  733. bv.Parent = RootPart
  734. local GYRO = IT("BodyGyro",RootPart)
  735. GYRO.D = 2
  736. GYRO.P = 20000
  737. GYRO.MaxTorque = VT(0,4000000,0)
  738. GYRO.CFrame = CF(RootPart.Position,RootPart.CFrame*CF(0,0,-5).p)
  739. CreateSound(145486992,Torso,10,0.85,false)
  740. for i=0, 0.05, 0.1 / Animation_Speed do
  741. Swait()
  742. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(65), RAD(0), RAD(-10)), 1 / Animation_Speed)
  743. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(10)), 1 / Animation_Speed)
  744. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(50), RAD(-20), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  745. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15), RAD(20), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  746. if ANIM == "Fall" or ANIM == "Jump" then
  747. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(1), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  748. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  749. else
  750. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-5), RAD(80), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  751. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  752. end
  753. end
  754. bv:Remove()
  755. local E = 360/15
  756. for i = 1, 15 do
  757. Swait()
  758. WACKYEFFECT({Time = 10, EffectType = "Wave", Size = VT(8,1,8), Size2 = VT(2,15,2), Transparency = 0.9, Transparency2 = 1, CFrame = CF(RootPart.Position,HITPOS) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  759. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(i*E), RAD(0), RAD(0)), 2 / Animation_Speed)
  760. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
  761. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(5), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  762. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-5), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  763. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(-35), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  764. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  765. end
  766. WACKYEFFECT({EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(20,20,20), Transparency = 0.5, Transparency2 = 1, CFrame = CF(Torso.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(17/255,17/255,17/255), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  767. for i = 1, 15 do
  768. coroutine.resume(coroutine.create(function()
  769. Conjour()
  770. end))
  771. end
  772. local LANDED = nil
  773. local POS = nil
  774. coroutine.resume(coroutine.create(function()
  775. repeat
  776. Swait()
  777. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  778. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  779. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35 - 4 * COS(SINE / 6)), RAD(0), RAD(45 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  780. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  781. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  782. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  783. until LANDED ~= nil
  784. end))
  785. repeat
  786. Swait()
  787. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4.2, Character)
  788. if HITFLOOR then
  789. LANDED = HITFLOOR
  790. POS = HITPOS
  791. end
  792. until LANDED ~= nil
  793. GYRO:remove()
  794. CamShake(6,3)
  795. CreateSound(765590102, Torso, 2, (MRANDOM(8,12)/10)+0.3, false)
  796. ATTACK = false
  797. Rooted = false
  798. end
  799. end
  800. function Point_Blank()
  801. ATTACK = true
  802. Rooted = true
  803. local HIT = nil
  804. local HUMAN = nil
  805. local ROOT = nil
  806. CreateSound(145486992,Torso,10,0.85,false)
  807. for i=0, 0.5, 0.1 / Animation_Speed do
  808. Swait()
  809. if HIT ~= nil then
  810. break
  811. end
  812. for index, CHILD in pairs(workspace:GetDescendants()) do
  813. if CHILD.ClassName == "Model" and CHILD ~= Character then
  814. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  815. if HUM then
  816. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  817. if TORSO and HUM.Health > 0 then
  818. if (TORSO.Position - RootPart.CFrame*CF(0,0,-2).p).Magnitude <= 2 then
  819. ROOT = TORSO
  820. HUMAN = HUM
  821. HIT = CHILD
  822. end
  823. end
  824. end
  825. end
  826. end
  827. RootPart.CFrame = Clerp(RootPart.CFrame, RootPart.CFrame, 0.07) * CF(0,0,-1)
  828. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.75) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed)
  829. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  830. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  831. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(135), RAD(0), RAD(12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  832. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  833. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-5), RAD(-80), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  834. end
  835. if HIT then
  836. local bv = Instance.new("BodyVelocity")
  837. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  838. bv.velocity = CF(RootPart.Position,RootPart.CFrame*CF(0,1.5,2).p).lookVector*75
  839. bv.Parent = RootPart
  840. Debris:AddItem(bv,0.1)
  841. coroutine.resume(coroutine.create(function()
  842. local GUNS = {}
  843. for i = 1, 4 do
  844. local SHOOT = OhnoItsAShotgun()
  845. local CFRAME = CF(ROOT.Position) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,MRANDOM(15,25)/3,MRANDOM(15,25)/3)
  846. SHOOT.CFrame = CF(CFRAME.p,ROOT.Position)
  847. CreateSound(233856115, SHOOT, 2, (MRANDOM(8,12)/10)+0.3, false)
  848. table.insert(GUNS,SHOOT)
  849. end
  850. for i = 1, 25 do
  851. Swait()
  852. for E = 1, #GUNS do
  853. GUNS[E].Transparency = GUNS[E].Transparency - 1/25
  854. end
  855. end
  856. wait(0.1)
  857. CamShake(8,15)
  858. for E = 1, #GUNS do
  859. local SHOOT = GUNS[E]
  860. coroutine.resume(coroutine.create(function()
  861. PAW_HAHA(SHOOT.CFrame*CF(0,0,-SHOOT.Size.Z/2).p,SHOOT.CFrame*CF(0,0,-15).p,17)
  862. SHOOT.CFrame = SHOOT.CFrame * ANGLES(RAD(45), RAD(0), RAD(0))
  863. SHOOT.CanCollide = true
  864. SHOOT.Anchored = false
  865. SHOOT.Parent = workspace
  866. local bv = Instance.new("BodyVelocity",SHOOT)
  867. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  868. bv.velocity = CF(SHOOT.Position,SHOOT.CFrame*CF(0,2.5,2).p).lookVector*45
  869. Debris:AddItem(bv,0.1)
  870. wait(5)
  871. for i = 1, 45 do
  872. Swait()
  873. SHOOT.Transparency = SHOOT.Transparency + 1/45
  874. end
  875. end))
  876. wait()
  877. end
  878. end))
  879. CreateSound(GRUNTS[MRANDOM(1,#GRUNTS)], Torso, 6, 1.1, false)
  880. for i=0, 1, 0.1 / Animation_Speed do
  881. Swait()
  882. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  883. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  884. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  885. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  886. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  887. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  888. end
  889. end
  890. ATTACK = false
  891. Rooted = false
  892. end
  893. function Tripwire()
  894. ATTACK = true
  895. Rooted = true
  896. TRIPWIRE = true
  897. coroutine.resume(coroutine.create(function()
  898. repeat
  899. Swait()
  900. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed)
  901. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  902. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-100)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  903. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(5), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  904. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  905. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  906. until ATTACK == false
  907. end))
  908. local SHOOT = OhnoItsAShotgun()
  909. local CFRAME = CF(-1.5,0,1.5) * ANGLES(RAD(0), RAD(45), RAD(0))
  910. SHOOT.CFrame = Torso.CFrame*CFRAME
  911. coroutine.resume(coroutine.create(function()
  912. repeat
  913. SHOOT.CFrame = Clerp(SHOOT.CFrame,Torso.CFrame*CFRAME,0.1)
  914. Swait()
  915. until HOLD == true
  916. TRIPWIRE = false
  917. local LOC = SHOOT.CFrame*CF(0,3,0).p
  918. for i = 1, 15 do
  919. Swait()
  920. SHOOT.Transparency = SHOOT.Transparency - 1/15
  921. SHOOT.CFrame = Clerp(SHOOT.CFrame,CF(LOC,Mouse.Hit.p),0.3)
  922. end
  923. SHOOT.Transparency = 0
  924. for i = 1, 2 do
  925. Swait()
  926. SHOOT.CFrame = Clerp(SHOOT.CFrame,CF(LOC,Mouse.Hit.p),0.5)
  927. end
  928. PAW_HAHA(SHOOT.CFrame*CF(0,0,-SHOOT.Size.Z/2).p,Mouse.Hit.p,10)
  929. CamShake(8,9)
  930. SHOOT.CFrame = SHOOT.CFrame * ANGLES(RAD(45), RAD(0), RAD(0))
  931. SHOOT.CanCollide = true
  932. SHOOT.Anchored = false
  933. SHOOT.Parent = workspace
  934. local bv = Instance.new("BodyVelocity",SHOOT)
  935. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  936. bv.velocity = CF(SHOOT.Position,SHOOT.CFrame*CF(0,2.5,2).p).lookVector*45
  937. Debris:AddItem(bv,0.1)
  938. wait(5)
  939. for i = 1, 45 do
  940. Swait()
  941. SHOOT.Transparency = SHOOT.Transparency + 1/45
  942. end
  943. end))
  944. CreateSound(233856115, SHOOT, 1.2, (MRANDOM(8,12)/10)-0.3, false)
  945. for i = 1, 15 do
  946. Swait()
  947. SHOOT.Transparency = SHOOT.Transparency - 1/150
  948. end
  949. ATTACK = false
  950. Rooted = false
  951. end
  952. function Mend()
  953. if Humanoid.Health < Humanoid.MaxHealth - 150 then
  954. ATTACK = true
  955. Rooted = true
  956. for i=0, 0.25, 0.1 / Animation_Speed do
  957. Swait()
  958. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  959. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-25)), 1 / Animation_Speed)
  960. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  961. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  962. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.2, -1) * ANGLES(RAD(-25), RAD(90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  963. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, -0.5) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  964. end
  965. local LOOP = 0
  966. repeat
  967. LOOP = LOOP + 1
  968. Swait()
  969. Humanoid.Health = Humanoid.Health + 1
  970. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  971. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
  972. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.4) * ANGLES(RAD(55), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  973. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.7 - 0.4 * SIN(LOOP / 4)) * ANGLES(RAD(50 + 25 * COS(LOOP / 4)), RAD(0), RAD(65)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  974. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  975. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, -0.5) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  976. until KEYHOLD == false or Humanoid.Health == Humanoid.MaxHealth
  977. for i=0, 0.15, 0.1 / Animation_Speed do
  978. Swait()
  979. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  980. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-25)), 1 / Animation_Speed)
  981. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  982. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  983. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.2, -1) * ANGLES(RAD(-25), RAD(90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  984. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, -0.5) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  985. end
  986. ATTACK = false
  987. Rooted = false
  988. end
  989. end
  990. function Taunt()
  991. ATTACK = true
  992. Rooted = true
  993. local L = CreateSound(1278007556,Head,8,1.1,false)
  994. L.EmitterSize = 25
  995. for i = 1, 20 do
  996. Swait()
  997. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed)
  998. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  999. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-110)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1000. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.3, -0.35) * ANGLES(RAD(0), RAD(0), RAD(80)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1001. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1002. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1003. end
  1004. for i = 1, 40 do
  1005. Swait()
  1006. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.17, -0.075 + 0.1 * SIN(i / 3)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1007. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-3), RAD(15 * SIN(i / 1.5)), RAD(0)), 1 / Animation_Speed)
  1008. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(-5), RAD(120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1009. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(5), RAD(-120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1010. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1011. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1012. end
  1013. ATTACK = false
  1014. Rooted = false
  1015. end
  1016. function DoubleJump()
  1017. ATTACK = true
  1018. Rooted = false
  1019. Torso.Velocity = Vector3.new(Torso.Velocity.X,125,Torso.Velocity.Z)
  1020. CreateSound(159882477, Head, 4, 1, false)
  1021. CreateSound(1112042117, Torso, 2, 1, false)
  1022. local E = 360/12
  1023. for i=1, 12 do
  1024. Swait()
  1025. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(i*E), RAD(0), RAD(0)), 2.5 / Animation_Speed)
  1026. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1027. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1028. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1029. 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)
  1030. 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)
  1031. end
  1032. ATTACK = false
  1033. Rooted = false
  1034. end
  1035.  
  1036. --//=================================\\
  1037. --|| ASSIGN THINGS TO KEYS
  1038. --\\=================================//
  1039.  
  1040. function MouseDown(Mouse)
  1041. HOLD = true
  1042. if ATTACK == false then
  1043. end
  1044. end
  1045.  
  1046. function MouseUp(Mouse)
  1047. HOLD = false
  1048. end
  1049.  
  1050. local READYTODOUBLE = false
  1051. local DOUBLED = false
  1052.  
  1053. function KeyDown(Key)
  1054. KEYHOLD = true
  1055. if Key == "c" and ATTACK == false then
  1056. Conjour()
  1057. end
  1058.  
  1059. if Key == "v" and ATTACK == false then
  1060. Aerial_Bombardament()
  1061. end
  1062.  
  1063. if Key == "b" and ATTACK == false then
  1064. Point_Blank()
  1065. end
  1066.  
  1067. if Key == "f" and ATTACK == false and TRIPWIRE == false and ANIM == "Idle" then
  1068. Tripwire()
  1069. end
  1070.  
  1071. if Key == "m" and ATTACK == false then
  1072. Mend()
  1073. end
  1074.  
  1075. if Key == "t" and ATTACK == false then
  1076. Taunt()
  1077. end
  1078.  
  1079. if string.byte(Key) == 32 and READYTODOUBLE == true and ATTACK == false and Humanoid.Jump == true and DOUBLED == false then
  1080. READYTODOUBLE = false
  1081. DOUBLED = true
  1082. DoubleJump()
  1083. end
  1084. end
  1085.  
  1086. function KeyUp(Key)
  1087. KEYHOLD = false
  1088. end
  1089.  
  1090. Mouse.Button1Down:connect(function(NEWKEY)
  1091. MouseDown(NEWKEY)
  1092. end)
  1093. Mouse.Button1Up:connect(function(NEWKEY)
  1094. MouseUp(NEWKEY)
  1095. end)
  1096. Mouse.KeyDown:connect(function(NEWKEY)
  1097. KeyDown(NEWKEY)
  1098. end)
  1099. Mouse.KeyUp:connect(function(NEWKEY)
  1100. KeyUp(NEWKEY)
  1101. end)
  1102.  
  1103. --//=================================\\
  1104. --\\=================================//
  1105.  
  1106. function unanchor()
  1107. for _, c in pairs(Character:GetChildren()) do
  1108. if c:IsA("BasePart") and c ~= RootPart then
  1109. c.Anchored = false
  1110. end
  1111. end
  1112. if UNANCHOR == true then
  1113. RootPart.Anchored = false
  1114. else
  1115. RootPart.Anchored = true
  1116. end
  1117. end
  1118.  
  1119. --//=================================\\
  1120. --|| WRAP THE WHOLE SCRIPT UP
  1121. --\\=================================//
  1122.  
  1123. Humanoid.Changed:connect(function(Jump)
  1124. if Jump == "Jump" and (Disable_Jump == true) then
  1125. Humanoid.Jump = false
  1126. elseif Jump == "Jump" and (Disable_Jump == false) and DOUBLED == false then
  1127. wait(0.1)
  1128. READYTODOUBLE = true
  1129. end
  1130. end)
  1131.  
  1132. while true do
  1133. Swait()
  1134. script.Parent = WEAPONGUI
  1135. ANIMATE.Parent = nil
  1136. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1137. v:Stop();
  1138. end
  1139. SINE = SINE + CHANGE
  1140. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1141. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1142. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1143. local WALKSPEEDVALUE = 8 / (Humanoid.WalkSpeed / 16)
  1144. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1145. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0.1 * COS(SINE / (WALKSPEEDVALUE/2))) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1146. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1147. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.25 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10+50 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
  1148. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.25 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-10+50 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
  1149. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1150. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1151. 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)
  1152. 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.7 / Animation_Speed)
  1153. 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.7 / Animation_Speed)
  1154. end
  1155. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1156. ANIM = "Jump"
  1157. if ATTACK == false then
  1158. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1159. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1160. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(25 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1161. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(-25 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1162. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(1), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1163. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1164. end
  1165. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1166. ANIM = "Fall"
  1167. if ATTACK == false then
  1168. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1169. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1170. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(45 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1171. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1172. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1173. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1174. end
  1175. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1176. ANIM = "Idle"
  1177. DOUBLED = false
  1178. READYTODOUBLE = false
  1179. if ATTACK == false then
  1180. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1 + 0.05 * SIN(SINE / 12)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed)
  1181. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(7 * COS(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1182. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(0), RAD(-100)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1183. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.3 + 0.05 * SIN(SINE / 12), -0.35) * ANGLES(RAD(0), RAD(0), RAD(70)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1184. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1185. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1186. end
  1187. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1188. ANIM = "Walk"
  1189. DOUBLED = false
  1190. READYTODOUBLE = false
  1191. if ATTACK == false then
  1192. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.05) * ANGLES(RAD(15), RAD(0), RAD(-7 * COS(SINE / (WALKSPEEDVALUE)))), 1 / Animation_Speed)
  1193. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(7 * COS(SINE / (WALKSPEEDVALUE)))), 1 / Animation_Speed)
  1194. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(-5), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1195. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(5), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1196. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1197. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1198. end
  1199. end
  1200. unanchor()
  1201. if Rooted == false then
  1202. Disable_Jump = false
  1203. Humanoid.WalkSpeed = Speed
  1204. elseif Rooted == true then
  1205. Disable_Jump = true
  1206. Humanoid.WalkSpeed = 0
  1207. end
  1208. BMUSIC.SoundId = "rbxassetid://"..SONGID
  1209. BMUSIC.Looped = true
  1210. BMUSIC.Pitch = PITCH
  1211. BMUSIC.Volume = VOLUME
  1212. BMUSIC.Playing = true
  1213. if BMUSIC.Parent ~= RootPart then
  1214. BMUSIC = IT("Sound",RootPart)
  1215. end
  1216. Humanoid.Name = "NONHUM"
  1217. HEALTHCOVER:TweenSize(UD2(1 * (Humanoid.Health / Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", 0.1, 0.1)
  1218. HEALTHTEXT.Text = math.ceil(Humanoid.Health).."/"..Humanoid.MaxHealth
  1219. end
  1220.  
  1221. --//=================================\\
  1222. --\\=================================//
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228. --//====================================================\\--
  1229. --|| END OF SCRIPT
  1230. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement