Advertisement
Beeish

Untitled

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