Advertisement
yougotoof

aaaaaaaaa

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