reset234567890

Untitled

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