Advertisement
EdgyHedgehog

Gunjourer FE

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