Advertisement
Tetezaza1542

GUN

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