Guest User

Untitled

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