Advertisement
Guest User

Untitled

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