Advertisement
Guest_84210423435

banish v.4

Jul 5th, 2019
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.78 KB | None | 0 0
  1.  
  2. script.Name = "Banisher Gun V3 / 1"
  3. --//====================================================\\--
  4. --|| CREATED BY SHACKLUSTER
  5. --\\====================================================//--
  6.  
  7. script:ClearAllChildren()
  8. wait(0.2)
  9.  
  10. Player = game:GetService("Players").LocalPlayer
  11. PlayerGui = Player.PlayerGui
  12. Cam = workspace.CurrentCamera
  13. Backpack = Player.Backpack
  14. Character = Player.Character
  15. Humanoid = Character.Humanoid
  16. Mouse = Player:GetMouse()
  17. RootPart = Character["HumanoidRootPart"]
  18. Torso = Character["Torso"]
  19. Head = Character["Head"]
  20. RightArm = Character["Right Arm"]
  21. LeftArm = Character["Left Arm"]
  22. RightLeg = Character["Right Leg"]
  23. LeftLeg = Character["Left Leg"]
  24. RootJoint = RootPart["RootJoint"]
  25. Neck = Torso["Neck"]
  26. RightShoulder = Torso["Right Shoulder"]
  27. LeftShoulder = Torso["Left Shoulder"]
  28. RightHip = Torso["Right Hip"]
  29. LeftHip = Torso["Left Hip"]
  30. local TIME = 5
  31. local sick = Instance.new("Sound",Torso)
  32. sick.Parent = Torso
  33. sick.Playing = true
  34. sick.Looped = true
  35. sick.Volume = 2
  36. sick.Pitch = 0.9
  37. sick.TimePosition = 0
  38. sick.SoundId = "rbxassetid://1383666704"
  39.  
  40. IT = Instance.new
  41. CF = CFrame.new
  42. VT = Vector3.new
  43. RAD = math.rad
  44. C3 = Color3.new
  45. UD2 = UDim2.new
  46. BRICKC = BrickColor.new
  47. ANGLES = CFrame.Angles
  48. EULER = CFrame.fromEulerAnglesXYZ
  49. COS = math.cos
  50. ACOS = math.acos
  51. SIN = math.sin
  52. ASIN = math.asin
  53. ABS = math.abs
  54. MRANDOM = math.random
  55. FLOOR = math.floor
  56.  
  57. --//=================================\\
  58. --|| USEFUL VALUES
  59. --\\=================================//
  60.  
  61. local ANIM_SPEED = 3
  62. local MOUSE = PLAYER:GetMouse()
  63. local FRAME_SPEED = 1 / 60 -- (1 / 30) OR (1 / 60)
  64. local CHANGE = 2 / ANIM_SPEED
  65. local DAMAGEMULTIPLIER = 1
  66. local ANIM = "Idle"
  67. local KEYHOLD = false
  68. local MOUSEHOLD = false
  69. local SINE = 0
  70. local COMBO = 1
  71. local ATTACKING = false
  72. local Debris = game:GetService("Debris")
  73. local Effects = IT("Folder",CHARACTER)
  74. Effects.Name = "FXFolder"
  75. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  76. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  77. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  78. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  79. local KICKMESSAGES = {
  80. "COULDN'T YOU SEE THE BLOODY HAMMER?",
  81. "BYE HAVE A GREAT TIME",
  82. "ow",
  83. "NOBODY TOUCHES SASHA",
  84. "EHWOT",
  85. "YOU JUST GOT YOUR CELLULAR STATE REARRANGED INTO THAT OF A CABBAGE",
  86. "begone",
  87. "THANKS FOR STANDING STILL WANKER",
  88. "You've been kicked, with questionable intentions.",
  89. "AMAI YOU JUST GOT YEETED",
  90. "thanks",
  91. "you hammer ha",
  92. "goth spaghetti",
  93. "GRAVITY IS A HOAX",
  94. "who?",
  95. "THE ETERNAL SPAGHETTI LIVES ON",
  96. "GLORY TO SPACE-CAKES",
  97. "[insert low-quality soldier wheeze here, thanks.]",
  98. "you",
  99. "NO, THIS, WILL, NOT, DO",
  100. "i",
  101. "TFHIEUKJFHNETESTIGHKHESJDTFHNIKUEJDTHGNIUKEJDMG",
  102. "questions",
  103. "[insert funny quote here]",
  104. "I NEVER LEARNED HOW TO READ",
  105. "because you got shot by a gun that shoots hammer which kick, duh.",
  106. "BIG LINCOLN SENDS YOU TO HELL",
  107. "Overjoyed",
  108. "Big Kick Theory",
  109. "I diagnose you with dead"
  110. }
  111.  
  112. --//=================================\\
  113. --\\=================================//
  114.  
  115.  
  116. --//=================================\\
  117. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  118. --\\=================================//
  119.  
  120. ArtificialHB = Instance.new("BindableEvent", script)
  121. ArtificialHB.Name = "ArtificialHB"
  122.  
  123. script:WaitForChild("ArtificialHB")
  124.  
  125. frame = Frame_Speed
  126. tf = 0
  127. allowframeloss = false
  128. tossremainder = false
  129. lastframe = tick()
  130. script.ArtificialHB:Fire()
  131.  
  132. game:GetService("RunService").Heartbeat:connect(function(s, p)
  133. tf = tf + s
  134. if tf >= frame then
  135. if allowframeloss then
  136. script.ArtificialHB:Fire()
  137. lastframe = tick()
  138. else
  139. for i = 1, math.floor(tf / frame) do
  140. script.ArtificialHB:Fire()
  141. end
  142. lastframe = tick()
  143. end
  144. if tossremainder then
  145. tf = 0
  146. else
  147. tf = tf - frame * math.floor(tf / frame)
  148. end
  149. end
  150. end)
  151.  
  152. --//=================================\\
  153. --\\=================================//
  154.  
  155. --//=================================\\
  156. --|| SOME FUNCTIONS
  157. --\\=================================//
  158.  
  159. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  160. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  161. end
  162.  
  163. function PositiveAngle(NUMBER)
  164. if NUMBER >= 0 then
  165. NUMBER = 0
  166. end
  167. return NUMBER
  168. end
  169.  
  170. function NegativeAngle(NUMBER)
  171. if NUMBER <= 0 then
  172. NUMBER = 0
  173. end
  174. return NUMBER
  175. end
  176.  
  177. function Swait(NUMBER)
  178. if NUMBER == 0 or NUMBER == nil then
  179. ArtificialHB.Event:wait()
  180. else
  181. for i = 1, NUMBER do
  182. ArtificialHB.Event:wait()
  183. end
  184. end
  185. end
  186.  
  187. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  188. local NEWMESH = IT(MESH)
  189. if MESH == "SpecialMesh" then
  190. NEWMESH.MeshType = MESHTYPE
  191. if MESHID ~= "nil" and MESHID ~= "" then
  192. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  193. end
  194. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  195. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  196. end
  197. end
  198. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  199. NEWMESH.Scale = SCALE
  200. NEWMESH.Parent = PARENT
  201. return NEWMESH
  202. end
  203.  
  204. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  205. local NEWPART = IT("Part")
  206. NEWPART.formFactor = FORMFACTOR
  207. NEWPART.Reflectance = REFLECTANCE
  208. NEWPART.Transparency = TRANSPARENCY
  209. NEWPART.CanCollide = false
  210. NEWPART.Locked = true
  211. NEWPART.Anchored = true
  212. if ANCHOR == false then
  213. NEWPART.Anchored = false
  214. end
  215. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  216. NEWPART.Name = NAME
  217. NEWPART.Size = SIZE
  218. NEWPART.Position = Torso.Position
  219. NEWPART.Material = MATERIAL
  220. NEWPART:BreakJoints()
  221. NEWPART.Parent = PARENT
  222. return NEWPART
  223. end
  224.  
  225. local function weldBetween(a, b)
  226. local weldd = Instance.new("ManualWeld")
  227. weldd.Part0 = a
  228. weldd.Part1 = b
  229. weldd.C0 = CFrame.new()
  230. weldd.C1 = b.CFrame:inverse() * a.CFrame
  231. weldd.Parent = a
  232. return weldd
  233. end
  234.  
  235.  
  236. function QuaternionFromCFrame(cf)
  237. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  238. local trace = m00 + m11 + m22
  239. if trace > 0 then
  240. local s = math.sqrt(1 + trace)
  241. local recip = 0.5 / s
  242. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  243. else
  244. local i = 0
  245. if m11 > m00 then
  246. i = 1
  247. end
  248. if m22 > (i == 0 and m00 or m11) then
  249. i = 2
  250. end
  251. if i == 0 then
  252. local s = math.sqrt(m00 - m11 - m22 + 1)
  253. local recip = 0.5 / s
  254. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  255. elseif i == 1 then
  256. local s = math.sqrt(m11 - m22 - m00 + 1)
  257. local recip = 0.5 / s
  258. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  259. elseif i == 2 then
  260. local s = math.sqrt(m22 - m00 - m11 + 1)
  261. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  262. end
  263. end
  264. end
  265.  
  266. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  267. local xs, ys, zs = x + x, y + y, z + z
  268. local wx, wy, wz = w * xs, w * ys, w * zs
  269. local xx = x * xs
  270. local xy = x * ys
  271. local xz = x * zs
  272. local yy = y * ys
  273. local yz = y * zs
  274. local zz = z * zs
  275. 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))
  276. end
  277.  
  278. function QuaternionSlerp(a, b, t)
  279. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  280. local startInterp, finishInterp;
  281. if cosTheta >= 0.0001 then
  282. if (1 - cosTheta) > 0.0001 then
  283. local theta = ACOS(cosTheta)
  284. local invSinTheta = 1 / SIN(theta)
  285. startInterp = SIN((1 - t) * theta) * invSinTheta
  286. finishInterp = SIN(t * theta) * invSinTheta
  287. else
  288. startInterp = 1 - t
  289. finishInterp = t
  290. end
  291. else
  292. if (1 + cosTheta) > 0.0001 then
  293. local theta = ACOS(-cosTheta)
  294. local invSinTheta = 1 / SIN(theta)
  295. startInterp = SIN((t - 1) * theta) * invSinTheta
  296. finishInterp = SIN(t * theta) * invSinTheta
  297. else
  298. startInterp = t - 1
  299. finishInterp = t
  300. end
  301. end
  302. 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
  303. end
  304.  
  305. function Clerp(a, b, t)
  306. local qa = {QuaternionFromCFrame(a)}
  307. local qb = {QuaternionFromCFrame(b)}
  308. local ax, ay, az = a.x, a.y, a.z
  309. local bx, by, bz = b.x, b.y, b.z
  310. local _t = 1 - t
  311. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  312. end
  313.  
  314. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  315. local frame = IT("Frame")
  316. frame.BackgroundTransparency = TRANSPARENCY
  317. frame.BorderSizePixel = BORDERSIZEPIXEL
  318. frame.Position = POSITION
  319. frame.Size = SIZE
  320. frame.BackgroundColor3 = COLOR
  321. frame.BorderColor3 = BORDERCOLOR
  322. frame.Name = NAME
  323. frame.Parent = PARENT
  324. return frame
  325. end
  326.  
  327. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  328. local label = IT("TextLabel")
  329. label.BackgroundTransparency = 1
  330. label.Size = UD2(1, 0, 1, 0)
  331. label.Position = UD2(0, 0, 0, 0)
  332. label.TextColor3 = TEXTCOLOR
  333. label.TextStrokeTransparency = STROKETRANSPARENCY
  334. label.TextTransparency = TRANSPARENCY
  335. label.FontSize = TEXTFONTSIZE
  336. label.Font = TEXTFONT
  337. label.BorderSizePixel = BORDERSIZEPIXEL
  338. label.TextScaled = false
  339. label.Text = TEXT
  340. label.Name = NAME
  341. label.Parent = PARENT
  342. return label
  343. end
  344.  
  345. function NoOutlines(PART)
  346. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  347. end
  348.  
  349. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  350. local NEWWELD = IT(TYPE)
  351. NEWWELD.Part0 = PART0
  352. NEWWELD.Part1 = PART1
  353. NEWWELD.C0 = C0
  354. NEWWELD.C1 = C1
  355. NEWWELD.Parent = PARENT
  356. return NEWWELD
  357. end
  358.  
  359. local S = IT("Sound")
  360. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  361. local NEWSOUND = nil
  362. coroutine.resume(coroutine.create(function()
  363. NEWSOUND = S:Clone()
  364. NEWSOUND.Parent = PARENT
  365. NEWSOUND.Volume = VOLUME
  366. NEWSOUND.Pitch = PITCH
  367. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  368. NEWSOUND:play()
  369. if DOESLOOP == true then
  370. NEWSOUND.Looped = true
  371. else
  372. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  373. NEWSOUND:remove()
  374. end
  375. end))
  376. return NEWSOUND
  377. end
  378.  
  379. function CFrameFromTopBack(at, top, back)
  380. local right = top:Cross(back)
  381. 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)
  382. end
  383.  
  384. --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})
  385. function WACKYEFFECT(Table)
  386. local TYPE = (Table.EffectType or "Sphere")
  387. local SIZE = (Table.Size or VT(1,1,1))
  388. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  389. local TRANSPARENCY = (Table.Transparency or 0)
  390. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  391. local CFRAME = (Table.CFrame or Torso.CFrame)
  392. local MOVEDIRECTION = (Table.MoveToPos or nil)
  393. local ROTATION1 = (Table.RotationX or 0)
  394. local ROTATION2 = (Table.RotationY or 0)
  395. local ROTATION3 = (Table.RotationZ or 0)
  396. local MATERIAL = (Table.Material or "Neon")
  397. local COLOR = (Table.Color or C3(1,1,1))
  398. local TIME = (Table.Time or 45)
  399. local SOUNDID = (Table.SoundID or nil)
  400. local SOUNDPITCH = (Table.SoundPitch or nil)
  401. local SOUNDVOLUME = (Table.SoundVolume or nil)
  402. coroutine.resume(coroutine.create(function()
  403. local PLAYSSOUND = false
  404. local SOUND = nil
  405. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  406. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  407. PLAYSSOUND = true
  408. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  409. end
  410. EFFECT.Color = COLOR
  411. local MSH = nil
  412. if TYPE == "Sphere" then
  413. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  414. elseif TYPE == "Block" then
  415. MSH = IT("BlockMesh",EFFECT)
  416. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  417. elseif TYPE == "Wave" then
  418. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  419. elseif TYPE == "Ring" then
  420. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  421. elseif TYPE == "Slash" then
  422. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  423. elseif TYPE == "Round Slash" then
  424. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  425. elseif TYPE == "Swirl" then
  426. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  427. elseif TYPE == "Skull" then
  428. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  429. elseif TYPE == "Crystal" then
  430. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  431. end
  432. if MSH ~= nil then
  433. local MOVESPEED = nil
  434. if MOVEDIRECTION ~= nil then
  435. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  436. end
  437. local GROWTH = SIZE - ENDSIZE
  438. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  439. if TYPE == "Block" then
  440. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  441. else
  442. EFFECT.CFrame = CFRAME
  443. end
  444. for LOOP = 1, TIME+1 do
  445. Swait()
  446. MSH.Scale = MSH.Scale - GROWTH/TIME
  447. if TYPE == "Wave" then
  448. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  449. end
  450. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  451. if TYPE == "Block" then
  452. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  453. else
  454. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  455. end
  456. if MOVEDIRECTION ~= nil then
  457. local ORI = EFFECT.Orientation
  458. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  459. EFFECT.Orientation = ORI
  460. end
  461. end
  462. if PLAYSSOUND == false then
  463. EFFECT:remove()
  464. else
  465. SOUND.Stopped:Connect(function()
  466. EFFECT:remove()
  467. end)
  468. end
  469. else
  470. if PLAYSSOUND == false then
  471. EFFECT:remove()
  472. else
  473. repeat Swait() until SOUND.Playing == false
  474. EFFECT:remove()
  475. end
  476. end
  477. end))
  478. end
  479.  
  480. function MakeForm(PART,TYPE)
  481. if TYPE == "Cyl" then
  482. local MSH = IT("CylinderMesh",PART)
  483. elseif TYPE == "Ball" then
  484. local MSH = IT("SpecialMesh",PART)
  485. MSH.MeshType = "Sphere"
  486. elseif TYPE == "Wedge" then
  487. local MSH = IT("SpecialMesh",PART)
  488. MSH.MeshType = "Wedge"
  489. end
  490. end
  491.  
  492. function SpawnTrail(FROM,TO,BIG)
  493. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Trail", VT(0,0,0))
  494. MakeForm(TRAIL,"Cyl")
  495. local DIST = (FROM - TO).Magnitude
  496. if BIG == true then
  497. TRAIL.Size = VT(0.8,DIST,0.8)
  498. else
  499. TRAIL.Size = VT(0.35,DIST,0.35)
  500. end
  501. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  502. coroutine.resume(coroutine.create(function()
  503. for i = 1, 5 do
  504. Swait()
  505. TRAIL.Transparency = TRAIL.Transparency + 0.1
  506. end
  507. TRAIL:remove()
  508. end))
  509. end
  510.  
  511. Debris = game:GetService("Debris")
  512.  
  513. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  514. local DIRECTION = CF(StartPos,EndPos).lookVector
  515. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  516. end
  517.  
  518. function turnto(position)
  519. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  520. end
  521.  
  522.  
  523. --//=================================\\
  524. --|| WEAPON CREATION
  525. --\\=================================//
  526.  
  527.  
  528. local Particle = IT("ParticleEmitter",nil)
  529. Particle.Enabled = false
  530. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  531. Particle.LightEmission = 0.5
  532. Particle.Rate = 150
  533. Particle.ZOffset = 0.2
  534. Particle.Rotation = NumberRange.new(-180, 180)
  535. Particle.RotSpeed = NumberRange.new(-180, 180)
  536. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  537. Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
  538.  
  539. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  540. function ParticleEmitter(Table)
  541. local PRTCL = Particle:Clone()
  542. local Speed = Table.Speed or 5
  543. local Drag = Table.Drag or 0
  544. local Size1 = Table.Size1 or 1
  545. local Size2 = Table.Size2 or 5
  546. local Lifetime1 = Table.Lifetime1 or 1
  547. local Lifetime2 = Table.Lifetime2 or 1.5
  548. local Parent = Table.Parent or Torso
  549. local Emit = Table.Emit or 100
  550. local Offset = Table.Offset or 360
  551. local Acel = Table.Acel or VT(0,0,0)
  552. local Enabled = Table.Enabled or false
  553. PRTCL.Parent = Parent
  554. PRTCL.Size = NumberSequence.new(Size1,Size2)
  555. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  556. PRTCL.Speed = NumberRange.new(Speed)
  557. PRTCL.VelocitySpread = Offset
  558. PRTCL.Drag = Drag
  559. PRTCL.Acceleration = Acel
  560. if Enabled == false then
  561. PRTCL:Emit(Emit)
  562. Debris:AddItem(PRTCL,Lifetime2)
  563. else
  564. PRTCL.Enabled = true
  565. end
  566. return PRTCL
  567. end
  568.  
  569. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  570. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  571. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  572. MakeForm(Part,"Wedge")
  573. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  574. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  575. MakeForm(Part,"Wedge")
  576. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  577. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  578. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  579. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  580. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  581. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  582. MakeForm(Part,"Cyl")
  583. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  584. for i = 1, 8 do
  585. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  586. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  587. end
  588. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  589. MakeForm(Part,"Cyl")
  590. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  591. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  592. MakeForm(Part,"Ball")
  593. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  594. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  595. MakeForm(Part,"Wedge")
  596. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  597. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  598. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  599. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  600. MakeForm(Part,"Cyl")
  601. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  602. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  603. MakeForm(Part,"Cyl")
  604. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  605. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  606. MakeForm(Part,"Cyl")
  607. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  608. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  609. MakeForm(Part,"Wedge")
  610. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  611. local LASTPART = Handle
  612. for i = 1, 10 do
  613. if LASTPART == Handle then
  614. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  615. LASTPART = Part
  616. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  617. else
  618. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  619. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  620. LASTPART = Part
  621. end
  622. end
  623.  
  624. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  625. MakeForm(Barrel,"Cyl")
  626. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  627. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  628. MakeForm(Part,"Cyl")
  629. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  630. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  631. MakeForm(Part,"Wedge")
  632. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  633. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  634. MakeForm(Hole,"Cyl")
  635. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  636. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  637. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  638. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  639. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  640. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  641. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  642. coroutine.resume(coroutine.create(function()
  643. while wait() do
  644. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(0 - 25 * SIN(SINE / 25)))
  645. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(0 - -25 * SIN(SINE / 25)))
  646. end
  647. end))
  648.  
  649. local Hole2 = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  650. MakeForm(Hole2,"Cyl")
  651. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole2, CF(0.8, 0.98, 0), CF(0, 0, 0))
  652.  
  653. local Hole3 = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  654. MakeForm(Hole3,"Cyl")
  655. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole3, CF(-0.8, 0.98, 0), CF(0, 0, 0))
  656.  
  657. ParticleEmitter({Speed = 0.02, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  658. ParticleEmitter({Speed = 50, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  659. ParticleEmitter({Speed = 10, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  660. --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  661.  
  662. for _, c in pairs(Weapon:GetDescendants()) do
  663. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  664. c.Material = "Glass"
  665. c.Color = C3(3,0,0)
  666. elseif c.ClassName == "Part" and c.Name == "Eye" then
  667. c.Color = C3(1,0,0)
  668. c.Material = "Neon"
  669. end
  670. end
  671.  
  672. Weapon.Parent = Character
  673. for _, c in pairs(Weapon:GetChildren()) do
  674. if c.ClassName == "Part" then
  675. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  676. end
  677. end
  678.  
  679. local SKILLTEXTCOLOR = C3(1,0,0)
  680. local SKILLFONT = "Antique"
  681. local SKILLTEXTSIZE = 7
  682.  
  683. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  684. --[[local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  685. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  686. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  687. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  688. ]]
  689. local SKILL1TEXT = CreateLabel(SKILL1FRAME, ":/ Edit By NameClan", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  690. --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  691. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  692. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  693. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  694. ]]
  695. function printbye(Name)
  696. local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
  697. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  698. end
  699.  
  700. workspace.ChildAdded:connect(function(instance)
  701. for BANISH = 1, #TOBANISH do
  702. if TOBANISH[BANISH] ~= nil then
  703. if instance.Name == TOBANISH[BANISH] then
  704. coroutine.resume(coroutine.create(function()
  705. printbye(instance.Name)
  706. instance:ClearAllChildren()
  707. Debris:AddItem(instance,0.0005)
  708. end))
  709. end
  710. end
  711. end
  712. end)
  713.  
  714. --//=================================\\
  715. --|| DAMAGING
  716. --\\=================================//
  717.  
  718. function Banish(Foe)
  719. if Foe then
  720. coroutine.resume(coroutine.create(function()
  721. --if game.Players:FindFirstChild(Foe.Name) then
  722. table.insert(TOBANISH,Foe.Name)
  723. printbye(Foe.Name)
  724. --end
  725. Foe.Archivable = true
  726. local CLONE = Foe:Clone()
  727. Foe:Destroy()
  728. CLONE.Parent = Effects
  729. CLONE:BreakJoints()
  730. local MATERIALS = {"Glass","Neon"}
  731. for _, c in pairs(CLONE:GetDescendants()) do
  732. if c:IsA("BasePart") then
  733. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  734. CreateSound(340722848, c, 10, 1, false)
  735. end
  736. c.Anchored = true
  737. c.Transparency = c.Transparency + 0.2
  738. c.Material = MATERIALS[MRANDOM(1,2)]
  739. c.Color = C3(1,0,0)
  740. if c.ClassName == "MeshPart" then
  741. c.TextureID = ""
  742. end
  743. if c:FindFirstChildOfClass("SpecialMesh") then
  744. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  745. end
  746. if c:FindFirstChildOfClass("Decal") then
  747. c:FindFirstChildOfClass("Decal"):remove()
  748. end
  749. c.Name = "Banished"
  750. c.CanCollide = false
  751. else
  752. c:remove()
  753. end
  754. end
  755. local A = false
  756. for i = 1, 35 do
  757. if A == false then
  758. A = true
  759. elseif A == true then
  760. A = false
  761. end
  762. for _, c in pairs(CLONE:GetDescendants()) do
  763. if c:IsA("BasePart") then
  764. c.Anchored = true
  765. c.Material = MATERIALS[MRANDOM(1,2)]
  766. c.Transparency = c.Transparency + 0.8/35
  767. if A == false then
  768. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  769. elseif A == true then
  770. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  771. end
  772. end
  773. end
  774. Swait()
  775. end
  776. CLONE:remove()
  777. end))
  778. end
  779. end
  780.  
  781. function ApplyAoE(POSITION,RANGE,ISBANISH)
  782. local CHILDREN = workspace:GetDescendants()
  783. for index, CHILD in pairs(CHILDREN) do
  784. if CHILD.ClassName == "Model" and CHILD ~= Character then
  785. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  786. if HUM then
  787. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  788. if TORSO then
  789. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  790. if ISBANISH == true then
  791. Banish(CHILD)
  792. else
  793. if ISBANISH == "Gravity" then
  794. HUM.PlatformStand = true
  795. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  796. local grav = Instance.new("BodyPosition",TORSO)
  797. grav.D = 15
  798. grav.P = 20000
  799. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  800. grav.position = TORSO.Position
  801. grav.Name = "V3BanishForce"..Player.Name
  802. else
  803. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  804. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  805. end
  806. else
  807. HUM.PlatformStand = false
  808. end
  809. end
  810. elseif ISBANISH == "Gravity" then
  811. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  812. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  813. HUM.PlatformStand = false
  814. end
  815. end
  816. end
  817. end
  818. end
  819. end
  820. end
  821.  
  822. function ApplyDamage(Humanoid,Damage,TorsoPart)
  823. local defence = Instance.new("BoolValue",Humanoid.Parent)
  824. defence.Name = ("HitBy"..Player.Name)
  825. game:GetService("Debris"):AddItem(defence, 0.001)
  826. Damage = Damage * DAMAGEMULTIPLIER
  827. if Humanoid.Health ~= 0 then
  828. local CritChance = MRANDOM(1,100)
  829. if Damage > Humanoid.Health then
  830. Damage = math.ceil(Humanoid.Health)
  831. if Damage == 0 then
  832. Damage = 0.1
  833. end
  834. end
  835. Humanoid.Health = Humanoid.Health - Damage
  836. end
  837. end
  838.  
  839. function ApplyAoE3(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  840. local CHILDREN = workspace:GetDescendants()
  841. for index, CHILD in pairs(CHILDREN) do
  842. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  843. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  844. if HUM then
  845. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  846. if TORSO then
  847. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  848. if INSTAKILL == true then
  849. CHILD:BreakJoints()
  850. else
  851. local DMG = MRANDOM(MINDMG,MAXDMG)
  852. ApplyDamage(HUM,DMG,TORSO)
  853. end
  854. if FLING > 0 then
  855. for _, c in pairs(CHILD:GetChildren()) do
  856. if c:IsA("BasePart") then
  857. local bv = Instance.new("BodyVelocity")
  858. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  859. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  860. bv.Parent = c
  861. Debris:AddItem(bv,0.05)
  862. end
  863. end
  864. end
  865. end
  866. end
  867. end
  868. end
  869. end
  870. end
  871.  
  872. --//=================================\\
  873. --|| ATTACK FUNCTIONS AND STUFF
  874. --\\=================================//
  875.  
  876. function Shot()
  877. ATTACK = true
  878. Rooted = false
  879. for i=0, 1, 0.1 / Animation_Speed do
  880. Swait()
  881. turnto(Mouse.Hit.p)
  882. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  883. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45), RAD(0), RAD(0)), 1 / Animation_Speed)
  884. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -1) * ANGLES(RAD(-25), RAD(90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  885. 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)
  886. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  887. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  888. end
  889. WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(120,120,120), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 317129949, SoundPitch = MRANDOM(13,15)/10, SoundVolume = 999999})
  890. repeat
  891. for i=0, 0.2, 0.1 / Animation_Speed do
  892. Swait()
  893. turnto(Mouse.Hit.p)
  894. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  895. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  896. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -1) * ANGLES(RAD(-25), RAD(90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  897. 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)
  898. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  899. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.2, 0.5, -0.7) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  900. end
  901. local HIT,POS = CastProperRay(Hole2.Position, Mouse.Hit.p, 1000, Character)
  902. SpawnTrail(Hole2.Position,POS)
  903. local HIT,POS = CastProperRay(Hole3.Position, Mouse.Hit.p, 1000, Character)
  904. SpawnTrail(Hole3.Position,POS)
  905. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  906. SpawnTrail(Hole.Position,POS)
  907. if HIT ~= nil then
  908. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  909. Banish(HIT.Parent)
  910. end
  911. end
  912.  
  913. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole3.CFrame, MoveToPos = Hole3.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})
  914. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole3.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  915. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole3.CFrame, MoveToPos = Hole3.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})
  916. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole3.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 168143115, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  917. 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,Hole3.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})
  918. 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,Hole3.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})
  919.  
  920. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = Hole2.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})
  921. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  922. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = Hole2.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})
  923. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 168143115, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  924. 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,Hole2.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})
  925. 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,Hole2.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})
  926.  
  927. WACKYEFFECT({Time = 25, EffectType = "Sphere", 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})
  928. WACKYEFFECT({Time = 25, EffectType = "Sphere", 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 = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  929. 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})
  930. 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 = 168143115, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  931. 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})
  932. 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})
  933. for i=0, 0.2, 0.1 / Animation_Speed do
  934. Swait()
  935. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(95), RAD(15), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  936. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.2, 0.5, 0.04) * ANGLES(RAD(95), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  937. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -1) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  938. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0.1, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
  939. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -1) * ANGLES(RAD(-25), RAD(90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  940. 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)
  941. end
  942. until KEYHOLD == false
  943. ATTACK = false
  944. Rooted = false
  945. end
  946.  
  947. function Shot2()
  948. ATTACK = true
  949. Rooted = false
  950. for i=0, 3, 0.1 / Animation_Speed do
  951. Swait()
  952. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
  953. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(75), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  954. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(75), RAD(0), RAD(-45)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  955. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-25), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  956. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-25), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  957. end
  958. WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(45,45,45), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  959. WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(180,180,180), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  960. WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(123,123,123), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  961. WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,180,1), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  962. WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(150,1,150), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  963. WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(150,150,150), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  964. WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(120,120,120), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 165970126, SoundPitch = MRANDOM(13,15)/10, SoundVolume = 100})
  965. WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(120,120,120), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 165970126, SoundPitch = MRANDOM(13,15)/10, SoundVolume = 999999})
  966. WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,180,1), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  967. WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(150,1,150), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  968. WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(150,150,150), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  969. WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(120,120,120), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 165970126, SoundPitch = MRANDOM(13,15)/10, SoundVolume = 100})
  970. ApplyAoE3(RootPart.Position,95,999,999,999,false)
  971. for i=0, 0.5, 0.1 / Animation_Speed do
  972. Swait()
  973. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(30), RAD(0), RAD(0)), 1 / Animation_Speed)
  974. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.2, 0.5, -0.5) * ANGLES(RAD(75), RAD(0), RAD(-70)) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.6 / Animation_Speed)
  975. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.2, 0.5, -0.5) * ANGLES(RAD(75), RAD(0), RAD(70)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  976. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(30), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  977. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(30), RAD(-75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  978. end
  979. ATTACK = false
  980. Rooted = false
  981. end
  982.  
  983. --//=================================\\
  984. --|| ASSIGN THINGS TO KEYS
  985. --\\=================================//
  986.  
  987. function MouseDown(Mouse)
  988. if ATTACK == false then
  989. end
  990. end
  991.  
  992. function MouseUp(Mouse)
  993. HOLD = false
  994. end
  995.  
  996. function KeyDown(Key)
  997. KEYHOLD = true
  998. if Key == "z" and ATTACK == false then
  999. Shot()
  1000. end
  1001.  
  1002. if Key == "b" and ATTACK == false then
  1003. AttackTemplate()
  1004. end
  1005.  
  1006. if Key == "c" and ATTACK == false then
  1007. Shot2()
  1008. end
  1009.  
  1010. if Key == "v" and ATTACK == false then
  1011. end
  1012.  
  1013. if Key == "x" and ATTACK == false then
  1014. end
  1015. end
  1016.  
  1017. function KeyUp(Key)
  1018. KEYHOLD = false
  1019. end
  1020.  
  1021. Mouse.Button1Down:connect(function(NEWKEY)
  1022. MouseDown(NEWKEY)
  1023. end)
  1024. Mouse.Button1Up:connect(function(NEWKEY)
  1025. MouseUp(NEWKEY)
  1026. end)
  1027. Mouse.KeyDown:connect(function(NEWKEY)
  1028. KeyDown(NEWKEY)
  1029. end)
  1030. Mouse.KeyUp:connect(function(NEWKEY)
  1031. KeyUp(NEWKEY)
  1032. end)
  1033.  
  1034. --//=================================\\
  1035. --\\=================================//
  1036.  
  1037.  
  1038. function unanchor()
  1039. if UNANCHOR == true then
  1040. g = Character:GetChildren()
  1041. for i = 1, #g do
  1042. if g[i].ClassName == "Part" then
  1043. g[i].Anchored = false
  1044. end
  1045. end
  1046. end
  1047. end
  1048.  
  1049.  
  1050. --//=================================\\
  1051. --|| WRAP THE WHOLE SCRIPT UP
  1052. --\\=================================//
  1053.  
  1054. Humanoid.Changed:connect(function(Jump)
  1055. if Jump == "Jump" and (Disable_Jump == true) then
  1056. Humanoid.Jump = false
  1057. end
  1058. end)
  1059.  
  1060. local CONNECT = nil
  1061.  
  1062. while true do
  1063. Swait()
  1064. ANIMATE.Parent = nil
  1065. if Character:FindFirstChildOfClass("Humanoid") == nil then
  1066. Humanoid = IT("Humanoid",Character)
  1067. end
  1068. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1069. v:Stop();
  1070. end
  1071. SINE = SINE + CHANGE
  1072. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1073. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1074. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1075. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1076. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1077. 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)
  1078. 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)
  1079. 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)
  1080. 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)
  1081. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1082. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1083. 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)
  1084. 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)
  1085. 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)
  1086. end
  1087. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1088. ANIM = "Jump"
  1089. if ATTACK == false then
  1090. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1091. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1092. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1093. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1094. 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)
  1095. 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)
  1096. end
  1097. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1098. ANIM = "Fall"
  1099. if ATTACK == false then
  1100. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1101. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1102. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1103. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1104. 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)
  1105. 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)
  1106. end
  1107. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1108. ANIM = "Idle"
  1109. if ATTACK == false then
  1110. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0 + 0.75 * SIN(SINE / 12) - 1.75 * COS(SINE / 12)), RAD(2.75 * SIN(SINE / 12))), 0.2 / Animation_Speed*3)
  1111. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0 + 0.75 * SIN(SINE / 8) - 1.75 * COS(SINE / 8)), RAD(2.75 * SIN(SINE / 8))), 0.2 / Animation_Speed)
  1112. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.9, 0.5 + 0.05 * SIN(SINE / (SINE/1)), -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1113. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1114. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1115. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.2, 0.2 - 0.1 * COS(SINE / 24), -0.4 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1116. end
  1117. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1118. ANIM = "Walk"
  1119. if ATTACK == false then
  1120. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1121. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, -0.025, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1122. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80 * SIN(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(5), RAD(0 - 40 * SIN(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1123. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-80 * SIN(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(5), RAD(0 - 40 * SIN(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1124. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(-5), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1125. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-5), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1126. end
  1127. end
  1128. unanchor()
  1129. Humanoid.MaxHealth = "inf"
  1130. Humanoid.Health = "inf"
  1131. if Rooted == false then
  1132. Disable_Jump = false
  1133. Humanoid.WalkSpeed = Speed
  1134. elseif Rooted == true then
  1135. Disable_Jump = true
  1136. Humanoid.WalkSpeed = 0
  1137. end
  1138. end
  1139.  
  1140. --//=================================\\
  1141. --\\=================================//
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147. --//====================================================\\--
  1148. --|| END OF SCRIPT
  1149. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement