Advertisement
Christoffer07700Extr

a

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