Leodu41

dqqzdqzd

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