kaualima12

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

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