Advertisement
PasterXIV

Untitled

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