Advertisement
kostik228

pandora green banisher

Nov 18th, 2018
1,915
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 98.84 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = owner
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86. Player = owner
  87. Character = Player.Character
  88. local txt = Instance.new("BillboardGui", Character)
  89. txt.Adornee = Character.Head
  90. txt.Name = "_status"
  91. txt.Size = UDim2.new(2, 0, 1.2, 0)
  92. txt.StudsOffset = Vector3.new(-9, 8, 0)
  93. local text = Instance.new("TextLabel", txt)
  94. text.Size = UDim2.new(10, 0, 7, 0)
  95. text.FontSize = "Size24"
  96. text.TextScaled = true
  97. text.TextTransparency = 0
  98. text.BackgroundTransparency = 1
  99. text.TextTransparency = 0
  100. text.TextStrokeTransparency = 0
  101. text.Font = "Antique"
  102. text.TextStrokeColor3 = Color3.new(20,50,80)
  103. text.Text = "PANDORA GREEN BANISH"
  104. print("Edited by Penien23")
  105. --//====================================================\\--
  106. --|| CREATED BY SHACKLUSTER EDIT BY NAMECLAN
  107. --\\====================================================//--
  108.  
  109. script:ClearAllChildren()
  110. wait(0.2)
  111.  
  112. Player = owner
  113. PlayerGui = Player.PlayerGui
  114. Cam = workspace.CurrentCamera
  115. Backpack = Player.Backpack
  116. Character = Player.Character
  117. Humanoid = Character.Humanoid
  118. RootPart = Character["HumanoidRootPart"]
  119. Torso = Character["Torso"]
  120. Head = Character["Head"]
  121. RightArm = Character["Right Arm"]
  122. LeftArm = Character["Left Arm"]
  123. RightLeg = Character["Right Leg"]
  124. LeftLeg = Character["Left Leg"]
  125. RootJoint = RootPart["RootJoint"]
  126. Neck = Torso["Neck"]
  127. RightShoulder = Torso["Right Shoulder"]
  128. LeftShoulder = Torso["Left Shoulder"]
  129. RightHip = Torso["Right Hip"]
  130. LeftHip = Torso["Left Hip"]
  131. local TIME = 0
  132. local sick = Instance.new("Sound",Torso)
  133.  
  134. IT = Instance.new
  135. CF = CFrame.new
  136. VT = Vector3.new
  137. RAD = math.rad
  138. C3 = Color3.new
  139. UD2 = UDim2.new
  140. BRICKC = BrickColor.new
  141. ANGLES = CFrame.Angles
  142. EULER = CFrame.fromEulerAnglesXYZ
  143. COS = math.cos
  144. ACOS = math.acos
  145. SIN = math.sin
  146. ASIN = math.asin
  147. ABS = math.abs
  148. MRANDOM = math.random
  149. FLOOR = math.floor
  150.  
  151. --//=================================\\
  152. --|| USEFUL VALUES
  153. --\\=================================//
  154.  
  155. Animation_Speed = 3
  156. local FORCERESET = false
  157. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  158. local Speed = 16
  159. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  160. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  161. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  162. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  163. local DAMAGEMULTIPLIER = 1
  164. local ANIM = "Idle"
  165. local ATTACK = false
  166. local EQUIPPED = false
  167. local HOLD = false
  168. local COMBO = 1
  169. local Rooted = false
  170. local SINE = 0
  171. local KEYHOLD = false
  172. local CHANGE = 2 / Animation_Speed
  173. local WALKINGANIM = false
  174. local VALUE1 = false
  175. local VALUE2 = false
  176. local ROBLOXIDLEANIMATION = IT("Animation")
  177. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  178. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  179. --ROBLOXIDLEANIMATION.Parent = Humanoid
  180. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  181. WEAPONGUI.Name = "BanishV3Gui"
  182. local Weapon = IT("Model")
  183. Weapon.Name = "Adds"
  184. local Effects = IT("Folder", Weapon)
  185. Effects.Name = "Effects"
  186. local ANIMATOR = Humanoid.Animator
  187. local ANIMATE = Character:FindFirstChild("Animate")
  188. local UNANCHOR = true
  189. local TOBANISH = {}
  190. script.Parent = PlayerGui
  191.  
  192. --//=================================\\
  193. --\\=================================//
  194.  
  195.  
  196. --//=================================\\
  197. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  198. --\\=================================//
  199.  
  200. ArtificialHB = Instance.new("BindableEvent", script)
  201. ArtificialHB.Name = "ArtificialHB"
  202.  
  203. script:WaitForChild("ArtificialHB")
  204.  
  205. frame = Frame_Speed
  206. tf = 0
  207. allowframeloss = false
  208. tossremainder = false
  209. lastframe = tick()
  210. script.ArtificialHB:Fire()
  211.  
  212. game:GetService("RunService").Heartbeat:connect(function(s, p)
  213. tf = tf + s
  214. if tf >= frame then
  215. if allowframeloss then
  216. script.ArtificialHB:Fire()
  217. lastframe = tick()
  218. else
  219. for i = 1, math.floor(tf / frame) do
  220. script.ArtificialHB:Fire()
  221. end
  222. lastframe = tick()
  223. end
  224. if tossremainder then
  225. tf = 0
  226. else
  227. tf = tf - frame * math.floor(tf / frame)
  228. end
  229. end
  230. end)
  231.  
  232. --//=================================\\
  233. --\\=================================//
  234.  
  235. --//=================================\\
  236. --|| SOME FUNCTIONS
  237. --\\=================================//
  238.  
  239. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  240. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  241. end
  242.  
  243. function PositiveAngle(NUMBER)
  244. if NUMBER >= 0 then
  245. NUMBER = 0
  246. end
  247. return NUMBER
  248. end
  249.  
  250. function NegativeAngle(NUMBER)
  251. if NUMBER <= 0 then
  252. NUMBER = 0
  253. end
  254. return NUMBER
  255. end
  256.  
  257. function Swait(NUMBER)
  258. if NUMBER == 0 or NUMBER == nil then
  259. ArtificialHB.Event:wait()
  260. else
  261. for i = 1, NUMBER do
  262. ArtificialHB.Event:wait()
  263. end
  264. end
  265. end
  266.  
  267. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  268. local NEWMESH = IT(MESH)
  269. if MESH == "SpecialMesh" then
  270. NEWMESH.MeshType = MESHTYPE
  271. if MESHID ~= "nil" and MESHID ~= "" then
  272. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  273. end
  274. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  275. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  276. end
  277. end
  278. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  279. NEWMESH.Scale = SCALE
  280. NEWMESH.Parent = PARENT
  281. return NEWMESH
  282. end
  283.  
  284. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  285. local NEWPART = IT("Part")
  286. NEWPART.formFactor = FORMFACTOR
  287. NEWPART.Reflectance = REFLECTANCE
  288. NEWPART.Transparency = TRANSPARENCY
  289. NEWPART.CanCollide = false
  290. NEWPART.Locked = true
  291. NEWPART.Anchored = true
  292. if ANCHOR == false then
  293. NEWPART.Anchored = false
  294. end
  295. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  296. NEWPART.Name = NAME
  297. NEWPART.Size = SIZE
  298. NEWPART.Position = Torso.Position
  299. NEWPART.Material = MATERIAL
  300. NEWPART:BreakJoints()
  301. NEWPART.Parent = PARENT
  302. return NEWPART
  303. end
  304.  
  305. local function weldBetween(a, b)
  306. local weldd = Instance.new("ManualWeld")
  307. weldd.Part0 = a
  308. weldd.Part1 = b
  309. weldd.C0 = CFrame.new()
  310. weldd.C1 = b.CFrame:inverse() * a.CFrame
  311. weldd.Parent = a
  312. return weldd
  313. end
  314.  
  315.  
  316. function QuaternionFromCFrame(cf)
  317. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  318. local trace = m00 + m11 + m22
  319. if trace > 0 then
  320. local s = math.sqrt(1 + trace)
  321. local recip = 0.5 / s
  322. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  323. else
  324. local i = 0
  325. if m11 > m00 then
  326. i = 1
  327. end
  328. if m22 > (i == 0 and m00 or m11) then
  329. i = 2
  330. end
  331. if i == 0 then
  332. local s = math.sqrt(m00 - m11 - m22 + 1)
  333. local recip = 0.5 / s
  334. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  335. elseif i == 1 then
  336. local s = math.sqrt(m11 - m22 - m00 + 1)
  337. local recip = 0.5 / s
  338. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  339. elseif i == 2 then
  340. local s = math.sqrt(m22 - m00 - m11 + 1)
  341. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  342. end
  343. end
  344. end
  345.  
  346. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  347. local xs, ys, zs = x + x, y + y, z + z
  348. local wx, wy, wz = w * xs, w * ys, w * zs
  349. local xx = x * xs
  350. local xy = x * ys
  351. local xz = x * zs
  352. local yy = y * ys
  353. local yz = y * zs
  354. local zz = z * zs
  355. 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))
  356. end
  357.  
  358. function QuaternionSlerp(a, b, t)
  359. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  360. local startInterp, finishInterp;
  361. if cosTheta >= 0.0001 then
  362. if (1 - cosTheta) > 0.0001 then
  363. local theta = ACOS(cosTheta)
  364. local invSinTheta = 1 / SIN(theta)
  365. startInterp = SIN((1 - t) * theta) * invSinTheta
  366. finishInterp = SIN(t * theta) * invSinTheta
  367. else
  368. startInterp = 1 - t
  369. finishInterp = t
  370. end
  371. else
  372. if (1 + cosTheta) > 0.0001 then
  373. local theta = ACOS(-cosTheta)
  374. local invSinTheta = 1 / SIN(theta)
  375. startInterp = SIN((t - 1) * theta) * invSinTheta
  376. finishInterp = SIN(t * theta) * invSinTheta
  377. else
  378. startInterp = t - 1
  379. finishInterp = t
  380. end
  381. end
  382. 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
  383. end
  384.  
  385. function Clerp(a, b, t)
  386. local qa = {QuaternionFromCFrame(a)}
  387. local qb = {QuaternionFromCFrame(b)}
  388. local ax, ay, az = a.x, a.y, a.z
  389. local bx, by, bz = b.x, b.y, b.z
  390. local _t = 1 - t
  391. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  392. end
  393.  
  394. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  395. local frame = IT("Frame")
  396. frame.BackgroundTransparency = TRANSPARENCY
  397. frame.BorderSizePixel = BORDERSIZEPIXEL
  398. frame.Position = POSITION
  399. frame.Size = SIZE
  400. frame.BackgroundColor3 = COLOR
  401. frame.BorderColor3 = BORDERCOLOR
  402. frame.Name = NAME
  403. frame.Parent = PARENT
  404. return frame
  405. end
  406.  
  407. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  408. local label = IT("TextLabel")
  409. label.BackgroundTransparency = 1
  410. label.Size = UD2(1, 0, 1, 0)
  411. label.Position = UD2(0, 0, 0, 0)
  412. label.TextColor3 = TEXTCOLOR
  413. label.TextStrokeTransparency = STROKETRANSPARENCY
  414. label.TextTransparency = TRANSPARENCY
  415. label.FontSize = TEXTFONTSIZE
  416. label.Font = TEXTFONT
  417. label.BorderSizePixel = BORDERSIZEPIXEL
  418. label.TextScaled = false
  419. label.Text = TEXT
  420. label.Name = NAME
  421. label.Parent = PARENT
  422. return label
  423. end
  424.  
  425. function NoOutlines(PART)
  426. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  427. end
  428.  
  429. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  430. local NEWWELD = IT(TYPE)
  431. NEWWELD.Part0 = PART0
  432. NEWWELD.Part1 = PART1
  433. NEWWELD.C0 = C0
  434. NEWWELD.C1 = C1
  435. NEWWELD.Parent = PARENT
  436. return NEWWELD
  437. end
  438.  
  439. local S = IT("Sound")
  440. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  441. local NEWSOUND = nil
  442. coroutine.resume(coroutine.create(function()
  443. NEWSOUND = S:Clone()
  444. NEWSOUND.Parent = PARENT
  445. NEWSOUND.Volume = VOLUME
  446. NEWSOUND.Pitch = PITCH
  447. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  448. NEWSOUND:play()
  449. if DOESLOOP == true then
  450. NEWSOUND.Looped = true
  451. else
  452. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  453. NEWSOUND:remove()
  454. end
  455. end))
  456. return NEWSOUND
  457. end
  458.  
  459. function CFrameFromTopBack(at, top, back)
  460. local right = top:Cross(back)
  461. 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)
  462. end
  463.  
  464. --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})
  465. function WACKYEFFECT(Table)
  466. local TYPE = (Table.EffectType or "Sphere")
  467. local SIZE = (Table.Size or VT(1,1,1))
  468. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  469. local TRANSPARENCY = (Table.Transparency or 0)
  470. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  471. local CFRAME = (Table.CFrame or Torso.CFrame)
  472. local MOVEDIRECTION = (Table.MoveToPos or nil)
  473. local ROTATION1 = (Table.RotationX or 0)
  474. local ROTATION2 = (Table.RotationY or 0)
  475. local ROTATION3 = (Table.RotationZ or 0)
  476. local MATERIAL = (Table.Material or "Neon")
  477. local COLOR = (Table.Color or C3(1,1,1))
  478. local TIME = (Table.Time or 45)
  479. local SOUNDID = (Table.SoundID or nil)
  480. local SOUNDPITCH = (Table.SoundPitch or nil)
  481. local SOUNDVOLUME = (Table.SoundVolume or nil)
  482. coroutine.resume(coroutine.create(function()
  483. local PLAYSSOUND = false
  484. local SOUND = nil
  485. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  486. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  487. PLAYSSOUND = true
  488. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  489. end
  490. EFFECT.Color = COLOR
  491. local MSH = nil
  492. if TYPE == "Sphere" then
  493. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  494. elseif TYPE == "Block" then
  495. MSH = IT("BlockMesh",EFFECT)
  496. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  497. elseif TYPE == "Wave" then
  498. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  499. elseif TYPE == "Ring" then
  500. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  501. elseif TYPE == "Slash" then
  502. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  503. elseif TYPE == "Round Slash" then
  504. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  505. elseif TYPE == "Swirl" then
  506. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  507. elseif TYPE == "Skull" then
  508. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  509. elseif TYPE == "Crystal" then
  510. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  511. end
  512. if MSH ~= nil then
  513. local MOVESPEED = nil
  514. if MOVEDIRECTION ~= nil then
  515. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  516. end
  517. local GROWTH = SIZE - ENDSIZE
  518. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  519. if TYPE == "Block" then
  520. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  521. else
  522. EFFECT.CFrame = CFRAME
  523. end
  524. for LOOP = 1, TIME+1 do
  525. Swait()
  526. MSH.Scale = MSH.Scale - GROWTH/TIME
  527. if TYPE == "Wave" then
  528. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  529. end
  530. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  531. if TYPE == "Block" then
  532. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  533. else
  534. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  535. end
  536. if MOVEDIRECTION ~= nil then
  537. local ORI = EFFECT.Orientation
  538. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  539. EFFECT.Orientation = ORI
  540. end
  541. end
  542. if PLAYSSOUND == false then
  543. EFFECT:remove()
  544. else
  545. SOUND.Stopped:Connect(function()
  546. EFFECT:remove()
  547. end)
  548. end
  549. else
  550. if PLAYSSOUND == false then
  551. EFFECT:remove()
  552. else
  553. repeat Swait() until SOUND.Playing == false
  554. EFFECT:remove()
  555. end
  556. end
  557. end))
  558. end
  559.  
  560. function MakeForm(PART,TYPE)
  561. if TYPE == "Cyl" then
  562. local MSH = IT("CylinderMesh",PART)
  563. elseif TYPE == "Ball" then
  564. local MSH = IT("SpecialMesh",PART)
  565. MSH.MeshType = "Sphere"
  566. elseif TYPE == "Wedge" then
  567. local MSH = IT("SpecialMesh",PART)
  568. MSH.MeshType = "Wedge"
  569. end
  570. end
  571.  
  572. function SpawnTrail(FROM,TO,BIG)
  573. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Lime green", "Trail", VT(0,0,0))
  574. MakeForm(TRAIL,"Cyl")
  575. local DIST = (FROM - TO).Magnitude
  576. if BIG == true then
  577. TRAIL.Size = VT(5,DIST,5)
  578. else
  579. TRAIL.Size = VT(5,DIST,5)
  580. end
  581. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  582. coroutine.resume(coroutine.create(function()
  583. for i = 1, 5 do
  584. Swait()
  585. TRAIL.Transparency = TRAIL.Transparency + 0.1
  586. end
  587. TRAIL:remove()
  588. end))
  589. end
  590.  
  591. Debris = game:GetService("Debris")
  592.  
  593. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  594. local DIRECTION = CF(StartPos,EndPos).lookVector
  595. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  596. end
  597.  
  598. function turnto(position)
  599. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  600. end
  601. local asd = Instance.new("ParticleEmitter")
  602. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  603. asd.LightEmission = .1
  604. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  605. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  606. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  607. asd.Transparency = bbb
  608. asd.Size = aaa
  609. asd.ZOffset = .9
  610. asd.Acceleration = Vector3.new(0, -15, 0)
  611. asd.LockedToPart = false
  612. asd.EmissionDirection = "Back"
  613. asd.Lifetime = NumberRange.new(1, 2)
  614. asd.Rotation = NumberRange.new(-100, 100)
  615. asd.RotSpeed = NumberRange.new(-100, 100)
  616. asd.Speed = NumberRange.new(10)
  617. asd.Enabled = false
  618. asd.VelocitySpread = 999
  619.  
  620. function getbloody(victim,amount)
  621. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  622. PART.CFrame = victim.CFrame
  623. local HITPLAYERSOUNDS = {"356551938","264486467"}
  624. Debris:AddItem(PART,5)
  625. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  626. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  627. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  628. local prtcl = asd:Clone()
  629. prtcl.Parent = PART
  630. prtcl:Emit(amount*10)
  631. end
  632.  
  633. local Particle = IT("ParticleEmitter",nil)
  634. Particle.Enabled = false
  635. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  636. Particle.LightEmission = 0.5
  637. Particle.Rate = 150
  638. Particle.ZOffset = 1
  639. Particle.Rotation = NumberRange.new(-180, 180)
  640. Particle.RotSpeed = NumberRange.new(-180, 180)
  641. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  642. Particle.Color = ColorSequence.new(C3(0,1,0),C3(0.4,0,0))
  643.  
  644. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  645. function ParticleEmitter(Table)
  646. local PRTCL = Particle:Clone()
  647. local Speed = Table.Speed or 5
  648. local Drag = Table.Drag or 0
  649. local Size1 = Table.Size1 or 1
  650. local Size2 = Table.Size2 or 5
  651. local Lifetime1 = Table.Lifetime1 or 1
  652. local Lifetime2 = Table.Lifetime2 or 1.5
  653. local Parent = Table.Parent or Torso
  654. local Emit = Table.Emit or 100
  655. local Offset = Table.Offset or 360
  656. local Acel = Table.Acel or VT(0,0,0)
  657. local Enabled = Table.Enabled or false
  658. PRTCL.Parent = Parent
  659. PRTCL.Size = NumberSequence.new(Size1,Size2)
  660. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  661. PRTCL.Speed = NumberRange.new(Speed)
  662. PRTCL.VelocitySpread = Offset
  663. PRTCL.Drag = Drag
  664. PRTCL.Acceleration = Acel
  665. if Enabled == false then
  666. PRTCL:Emit(Emit)
  667. Debris:AddItem(PRTCL,Lifetime2)
  668. else
  669. PRTCL.Enabled = true
  670. end
  671. return PRTCL
  672. end
  673.  
  674. function R_RANDOM(CFRAME,DIST)
  675. return CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-DIST)
  676. end
  677.  
  678. function CharacterFade(COLOR,TIMER,MOVEDIRECTION,PARENT)
  679. coroutine.resume(coroutine.create(function()
  680. local FADE = IT("Model",Effects)
  681. if PARENT ~= nil then
  682. FADE.Parent = PARENT
  683. end
  684. FADE.Name = "FadingEffect"
  685. for _, c in pairs(Character:GetChildren()) do
  686. if c.ClassName == "Part" then
  687. c.CanCollide = false
  688. local FADER = CreatePart(3, FADE, "Neon", 0, 0.75, BRICKC("Lime green"), c.Name, c.Size, true)
  689. FADER.CFrame = c.CFrame
  690. FADER.Color = COLOR
  691. if FADER.Name == "Head" then
  692. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FADER
  693. elseif FADER.Name == "HumanoidRootPart" then
  694. FADE.PrimaryPart = FADER
  695. FADER.Transparency = 1
  696. end
  697. end
  698. end
  699. local TRANS = 0.25/TIMER
  700. local DIST = nil
  701. if MOVEDIRECTION ~= nil then
  702. DIST = (FADE.PrimaryPart.Position - MOVEDIRECTION).Magnitude
  703. end
  704. for i = 1, TIMER do
  705. Swait()
  706. for _, c in pairs(FADE:GetChildren()) do
  707. if c.ClassName == "Part" then
  708. c.Transparency = c.Transparency + TRANS
  709. end
  710. end
  711. if MOVEDIRECTION ~= nil then
  712. local ORI = FADE.PrimaryPart.Orientation
  713. FADE:SetPrimaryPartCFrame(CF(CF(FADE.PrimaryPart.Position,MOVEDIRECTION)*CF(0,0,-DIST/TIMER).p) * ANGLES(RAD(ORI.X), RAD(ORI.Y), RAD(ORI.Z)))
  714. end
  715. end
  716. FADE:remove()
  717. end))
  718. end
  719.  
  720.  
  721. --//=================================\\
  722. --|| WEAPON CREATION
  723. --\\=================================//
  724.  
  725. local SIZE = 1.25
  726.  
  727. local Particle = IT("ParticleEmitter",nil)
  728. Particle.Enabled = false
  729. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  730. Particle.LightEmission = 0.5
  731. Particle.Rate = 150
  732. Particle.ZOffset = 0.2
  733. Particle.Rotation = NumberRange.new(-180, 180)
  734. Particle.RotSpeed = NumberRange.new(-180, 180)
  735. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  736. Particle.Color = ColorSequence.new(C3(0,1,0),C3(0.4,0,0))
  737.  
  738. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  739. function ParticleEmitter(Table)
  740. local PRTCL = Particle:Clone()
  741. local Speed = Table.Speed or 5
  742. local Drag = Table.Drag or 0
  743. local Size1 = Table.Size1 or 1
  744. local Size2 = Table.Size2 or 5
  745. local Lifetime1 = Table.Lifetime1 or 1
  746. local Lifetime2 = Table.Lifetime2 or 1.5
  747. local Parent = Table.Parent or Torso
  748. local Emit = Table.Emit or 100
  749. local Offset = Table.Offset or 360
  750. local Acel = Table.Acel or VT(0,0,0)
  751. local Enabled = Table.Enabled or false
  752. PRTCL.Parent = Parent
  753. PRTCL.Size = NumberSequence.new(Size1,Size2)
  754. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  755. PRTCL.Speed = NumberRange.new(Speed)
  756. PRTCL.VelocitySpread = Offset
  757. PRTCL.Drag = Drag
  758. PRTCL.Acceleration = Acel
  759. if Enabled == false then
  760. PRTCL:Emit(Emit)
  761. Debris:AddItem(PRTCL,Lifetime2)
  762. else
  763. PRTCL.Enabled = true
  764. end
  765. return PRTCL
  766. end
  767.  
  768. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Detail", VT(1,1,1),false)
  769. PRT.Color = C3(1,1,1)
  770. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
  771. CreateMesh("SpecialMesh", PRT, "FileMesh", "13520257", "15724132", VT(1,1,1)*SIZE, VT(0,0,0))
  772. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(1,1.2,0.2),false)
  773. PRT.Color = C3(0, 111, 0)
  774. MakeForm(PRT,"Ball")
  775. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
  776. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.4,0.5),false)
  777. PRT.Color = C3(0, 111, 0)
  778. MakeForm(PRT,"Ball")
  779. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.3,-.5*SIZE), CF(0, 0, 0))
  780. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false)
  781. PRT.Color = C3(0, 111, 0)
  782. MakeForm(PRT,"Ball")
  783. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.25,0.25,-.5*SIZE), CF(0, 0, 0))
  784. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false)
  785. PRT.Color = C3(0, 111, 0)
  786. MakeForm(PRT,"Ball")
  787. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.25,0.25,-.5*SIZE), CF(0, 0, 0))
  788. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false)
  789. PRT.Color = C3(0, 111, 0)
  790. MakeForm(PRT,"Ball")
  791. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(15), RAD(0)), CF(0, 0, 0))
  792. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false)
  793. PRT.Color = C3(0, 111, 0)
  794. MakeForm(PRT,"Ball")
  795. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(-15), RAD(0)), CF(0, 0, 0))
  796.  
  797.  
  798.  
  799.  
  800. local LASTPART = Head
  801. for i = 1, 20 do
  802. local MATH = (1-(i/25))
  803. if LASTPART == Head then
  804. local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  805. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0))
  806. LASTPART = Horn
  807. Horn.Color = C3((i*3-3)/0,0,0)
  808. else
  809. local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  810. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0))
  811. LASTPART = Horn
  812. Horn.Color = C3((i*3-3)/0,127,0)
  813. end
  814. end
  815. local LASTPART = Head
  816. for i = 1, 20 do
  817. local MATH = (1-(i/25))
  818. if LASTPART == Head then
  819. local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  820. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0))
  821. LASTPART = Horn
  822. Horn.Color = C3((i*3-3)/0,0,0)
  823. else
  824. local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  825. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0))
  826. LASTPART = Horn
  827. Horn.Color = C3((i*3-3)/0,127,0)
  828. end
  829. end
  830.  
  831. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  832. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  833. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  834. MakeForm(Part,"Wedge")
  835. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  836. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  837. MakeForm(Part,"Wedge")
  838. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  839. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  840. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  841. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  842. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  843. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  844. MakeForm(Part,"Cyl")
  845. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  846. for i = 1, 8 do
  847. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  848. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  849. end
  850. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  851. MakeForm(Part,"Cyl")
  852. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  853. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  854. MakeForm(Part,"Ball")
  855. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  856. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  857. MakeForm(Part,"Wedge")
  858. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  859. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  860. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  861. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  862. MakeForm(Part,"Cyl")
  863. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  864. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  865. MakeForm(Part,"Cyl")
  866. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  867. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  868. MakeForm(Part,"Cyl")
  869. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  870. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  871. MakeForm(Part,"Wedge")
  872. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  873. local LASTPART = Handle
  874. for i = 1, 10 do
  875. if LASTPART == Handle then
  876. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  877. LASTPART = Part
  878. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  879. else
  880. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  881. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  882. LASTPART = Part
  883. end
  884. end
  885.  
  886. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  887. MakeForm(Barrel,"Cyl")
  888. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  889. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  890. MakeForm(Part,"Cyl")
  891. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  892. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  893. MakeForm(Part,"Wedge")
  894. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  895. local Hole2 = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  896. MakeForm(Hole2,"Cyl")
  897. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole2, CF(0, 0.98, 0), CF(0, 0, 0))
  898. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  899. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  900. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  901. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  902. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  903. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  904. coroutine.resume(coroutine.create(function()
  905. while wait() do
  906. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  907. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  908. end
  909. end))
  910.  
  911. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole2, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  912. --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)})
  913.  
  914. for _, c in pairs(Weapon:GetDescendants()) do
  915. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  916. c.Material = "Glass"
  917. c.Color = C3(0,0,0)
  918. elseif c.ClassName == "Part" and c.Name == "Eye" then
  919. c.Color = C3(0,1,0)
  920. c.Material = "Neon"
  921. end
  922. end
  923.  
  924. Weapon.Parent = Character
  925. for _, c in pairs(Weapon:GetChildren()) do
  926. if c.ClassName == "Part" then
  927. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  928. end
  929. end
  930.  
  931. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false)
  932. PRT.Color = C3(0,0,0)
  933. local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0))
  934. CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0))
  935.  
  936. if Character:FindFirstChildOfClass("Accessory") then
  937. Character:FindFirstChildOfClass("Accessory"):remove()
  938. elseif Character:FindFirstChildOfClass("Hat") then
  939. Character:FindFirstChildOfClass("Hat"):remove()
  940. end
  941. if Head:FindFirstChild("face") then
  942. Head.face.Texture = "rbxassetid://403870689"
  943. if Character:FindFirstChildOfClass("Accessory") then
  944. Character:FindFirstChildOfClass("Accessory"):remove()
  945. elseif Character:FindFirstChildOfClass("Hat") then
  946. Character:FindFirstChildOfClass("Hat"):remove()
  947. end
  948. if Character:FindFirstChildOfClass("Accessory") then
  949. Character:FindFirstChildOfClass("Accessory"):remove()
  950. elseif Character:FindFirstChildOfClass("Hat") then
  951. Character:FindFirstChildOfClass("Hat"):remove()
  952. end
  953. if Character:FindFirstChildOfClass("Accessory") then
  954. Character:FindFirstChildOfClass("Accessory"):remove()
  955. elseif Character:FindFirstChildOfClass("Hat") then
  956. Character:FindFirstChildOfClass("Hat"):remove()
  957. end
  958. if Character:FindFirstChildOfClass("Accessory") then
  959. Character:FindFirstChildOfClass("Accessory"):remove()
  960. elseif Character:FindFirstChildOfClass("Hat") then
  961. Character:FindFirstChildOfClass("Hat"):remove()
  962. end
  963. if Character:FindFirstChildOfClass("Accessory") then
  964. Character:FindFirstChildOfClass("Accessory"):remove()
  965. elseif Character:FindFirstChildOfClass("Hat") then
  966. Character:FindFirstChildOfClass("Hat"):remove()
  967. end
  968. end
  969.  
  970. function ParticleEmitter(Table)
  971. local PRTCL = Particle:Clone()
  972. local Speed = Table.Speed or 5
  973. local Drag = Table.Drag or 0
  974. local Size1 = Table.Size1 or 1
  975. local Size2 = Table.Size2 or 5
  976. local Lifetime1 = Table.Lifetime1 or 1
  977. local Lifetime2 = Table.Lifetime2 or 1.5
  978. local Parent = Table.Parent or Torso
  979. local Emit = Table.Emit or 100
  980. local Offset = Table.Offset or 360
  981. local Acel = Table.Acel or VT(0,0,0)
  982. local Enabled = Table.Enabled or false
  983. PRTCL.Parent = Parent
  984. PRTCL.Size = NumberSequence.new(Size1,Size2)
  985. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  986. PRTCL.Speed = NumberRange.new(Speed)
  987. PRTCL.VelocitySpread = Offset
  988. PRTCL.Drag = Drag
  989. PRTCL.Acceleration = Acel
  990. if Enabled == false then
  991. PRTCL:Emit(Emit)
  992. Debris:AddItem(PRTCL,Lifetime2)
  993. else
  994. PRTCL.Enabled = true
  995. end
  996. return PRTCL
  997. end
  998.  
  999. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  1000. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  1001. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1002. MakeForm(Part,"Wedge")
  1003. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  1004. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  1005. MakeForm(Part,"Wedge")
  1006. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  1007. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  1008. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1009. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  1010. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1011. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  1012. MakeForm(Part,"Cyl")
  1013. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1014. for i = 1, 8 do
  1015. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  1016. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1017. end
  1018. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  1019. MakeForm(Part,"Cyl")
  1020. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1021. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  1022. MakeForm(Part,"Ball")
  1023. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1024. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  1025. MakeForm(Part,"Wedge")
  1026. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  1027. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  1028. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1029. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  1030. MakeForm(Part,"Cyl")
  1031. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1032. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  1033. MakeForm(Part,"Cyl")
  1034. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1035. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  1036. MakeForm(Part,"Cyl")
  1037. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1038. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1039. MakeForm(Part,"Wedge")
  1040. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1041. local LASTPART = Handle
  1042. for i = 1, 10 do
  1043. if LASTPART == Handle then
  1044. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  1045. LASTPART = Part
  1046. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1047. else
  1048. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  1049. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  1050. LASTPART = Part
  1051. end
  1052. end
  1053.  
  1054. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  1055. MakeForm(Barrel,"Cyl")
  1056. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1057. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  1058. MakeForm(Part,"Cyl")
  1059. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  1060. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  1061. MakeForm(Part,"Wedge")
  1062. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1063. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  1064. MakeForm(Hole,"Cyl")
  1065. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  1066. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  1067. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1068. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  1069. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  1070. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1071. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  1072. coroutine.resume(coroutine.create(function()
  1073. while wait() do
  1074. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  1075. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  1076. end
  1077. end))
  1078.  
  1079. ParticleEmitter({Speed = 0.2, 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)})
  1080. --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)})
  1081.  
  1082. for _, c in pairs(Weapon:GetDescendants()) do
  1083. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1084. c.Material = "Glass"
  1085. c.Color = C3(0.05,0.05,0.05)
  1086. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1087. c.Color = C3(0,1,0)
  1088. c.Material = "Neon"
  1089. end
  1090. end
  1091.  
  1092. Weapon.Parent = Character
  1093. for _, c in pairs(Weapon:GetChildren()) do
  1094. if c.ClassName == "Part" then
  1095. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1096. end
  1097. end
  1098.  
  1099. local SKILLTEXTCOLOR = C3(0,1,0)
  1100. local SKILLFONT = "Antique"
  1101. local SKILLTEXTSIZE = 7
  1102.  
  1103. Humanoid.Died:connect(function()
  1104. ATTACK = true
  1105. end)
  1106.  
  1107.  
  1108. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.0, 1, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  1109. --[[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")
  1110. 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")
  1111. 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")
  1112. 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")
  1113. ]]
  1114. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  1115. --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  1116. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  1117. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  1118. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  1119. ]]
  1120. function printbye(Name)
  1121. 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, "}
  1122. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  1123. end
  1124.  
  1125. workspace.ChildAdded:connect(function(instance)
  1126. for BANISH = 1, #TOBANISH do
  1127. if TOBANISH[BANISH] ~= nil then
  1128. if instance.Name == TOBANISH[BANISH] then
  1129. coroutine.resume(coroutine.create(function()
  1130. printbye(instance.Name)
  1131. instance:ClearAllChildren()
  1132. Debris:AddItem(instance,0.0005)
  1133. end))
  1134. end
  1135. end
  1136. end
  1137. end)
  1138.  
  1139. --//=================================\\
  1140. --|| DAMAGING
  1141. --\\=================================//
  1142.  
  1143. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1144. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  1145. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  1146. wave.CFrame = CFRAME
  1147. coroutine.resume(coroutine.create(function(PART)
  1148. for i = 1, WAIT do
  1149. Swait()
  1150. mesh.Scale = mesh.Scale + GROW
  1151. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1152. if DOESROT == true then
  1153. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1154. end
  1155. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1156. if wave.Transparency > 0.99 then
  1157. wave:remove()
  1158. end
  1159. end
  1160. end))
  1161. end
  1162.  
  1163. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  1164. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  1165. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0,0,0))
  1166. wave.CFrame = CFRAME
  1167. coroutine.resume(coroutine.create(function(PART)
  1168. for i = 1, WAIT do
  1169. Swait()
  1170. mesh.Scale = mesh.Scale + GROW
  1171. if DOESROT == true then
  1172. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1173. end
  1174. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1175. if wave.Transparency > 0.99 then
  1176. wave:remove()
  1177. end
  1178. end
  1179. end))
  1180. end
  1181.  
  1182. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  1183. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  1184. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
  1185. wave.CFrame = CFRAME
  1186. coroutine.resume(coroutine.create(function(PART)
  1187. for i = 1, WAIT do
  1188. Swait()
  1189. mesh.Scale = mesh.Scale + GROW
  1190. wave.Transparency = wave.Transparency + (1/WAIT)
  1191. if wave.Transparency > 0.99 then
  1192. wave:remove()
  1193. end
  1194. end
  1195. end))
  1196. end
  1197.  
  1198. function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW)
  1199. local mesh = nil
  1200. if KIND == "Base" then
  1201. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  1202. elseif KIND == "Thin" then
  1203. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  1204. elseif KIND == "Round" then
  1205. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  1206. end
  1207. wave.CFrame = CFRAME
  1208. coroutine.resume(coroutine.create(function(PART)
  1209. for i = 1, WAIT do
  1210. Swait()
  1211. mesh.Scale = mesh.Scale + GROW/10
  1212. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1213. if wave.Transparency > 0.99 then
  1214. wave:remove()
  1215. end
  1216. end
  1217. end))
  1218. end
  1219.  
  1220. function Ragdoll(Character2, CharTorso, Headless, Velocity)
  1221. local svch = Character2
  1222. Character2:BreakJoints()
  1223. local hum = Character2:findFirstChild("Humanoid")
  1224. local q = Character2:GetChildren()
  1225. local CLONE = IT("Model", Effects)
  1226. for i = 1, #q do
  1227. if q[i].ClassName == "Accessory" and Headless == true then
  1228. q[i]:remove()
  1229. elseif q[i].ClassName ~= "Humanoid" and q[i].ClassName ~= "LocalScript" and q[i].ClassName ~= "Script" and q[i].ClassName ~= "Gear" then
  1230. q[i].Parent = CLONE
  1231. elseif q[i].ClassName ~= "Humanoid" then
  1232. q[i]:remove()
  1233. end
  1234. end
  1235. local chrclone = CLONE
  1236. local ch = chrclone:GetChildren()
  1237. local i
  1238. for i = 1, #ch do
  1239. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
  1240. ch[i]:remove()
  1241. end
  1242. end
  1243. local function Scan(ch)
  1244. local e
  1245. for e = 1, #ch do
  1246. Scan(ch[e]:GetChildren())
  1247. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  1248. ch[e]:remove()
  1249. end
  1250. end
  1251. end
  1252. Character2:remove()
  1253. local NEWHUM = IT("Humanoid")
  1254. NEWHUM.Name = "Corpse"
  1255. NEWHUM.Health = 0
  1256. NEWHUM.MaxHealth = 0
  1257. NEWHUM.PlatformStand = true
  1258. NEWHUM.Parent = CLONE
  1259. NEWHUM.DisplayDistanceType = "None"
  1260. Scan(chrclone:GetChildren())
  1261. local ch = Character2:GetChildren()
  1262. local i
  1263. for i = 1, #ch do
  1264. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  1265. ch[i]:remove()
  1266. end
  1267. end
  1268. local ch = Character2:GetChildren()
  1269. local i
  1270. for i = 1, #ch do
  1271. if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  1272. ch[i]:remove()
  1273. end
  1274. end
  1275. Character2 = chrclone
  1276. local Torso2 = Character2.Torso
  1277. local movevector = Vector3.new()
  1278. if Torso2 then
  1279. movevector = CFrame.new(CharTorso.Position, Torso2.Position).lookVector
  1280. local Head = Character2:FindFirstChild("Head")
  1281. if Head then
  1282. local Neck = Instance.new("Weld")
  1283. Neck.Name = "Neck"
  1284. Neck.Part0 = Torso2
  1285. Neck.Part1 = Head
  1286. Neck.C0 = CFrame.new(0, 1.5, 0)
  1287. Neck.C1 = CFrame.new()
  1288. Neck.Parent = Torso2
  1289. if Headless == true then
  1290. Head.Transparency = 1
  1291. Head:ClearAllChildren()
  1292. end
  1293. end
  1294. local Limb = Character2:FindFirstChild("Right Arm")
  1295. if Limb then
  1296. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  1297. local Joint = Instance.new("Glue")
  1298. Joint.Name = "RightShoulder"
  1299. Joint.Part0 = Torso2
  1300. Joint.Part1 = Limb
  1301. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1302. Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1303. Joint.Parent = Torso2
  1304. local B = Instance.new("Part")
  1305. B.TopSurface = 0
  1306. B.BottomSurface = 0
  1307. B.formFactor = "Symmetric"
  1308. B.Size = Vector3.new(1, 1, 1)
  1309. B.Transparency = 1
  1310. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1311. B.Parent = Character2
  1312. local W = Instance.new("Weld")
  1313. W.Part0 = Limb
  1314. W.Part1 = B
  1315. W.C0 = CFrame.new(0, -0.5, 0)
  1316. W.Parent = Limb
  1317. end
  1318. local Limb = Character2:FindFirstChild("Left Arm")
  1319. if Limb then
  1320. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  1321. local Joint = Instance.new("Glue")
  1322. Joint.Name = "LeftShoulder"
  1323. Joint.Part0 = Torso2
  1324. Joint.Part1 = Limb
  1325. Joint.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1326. Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1327. Joint.Parent = Torso2
  1328. local B = Instance.new("Part")
  1329. B.TopSurface = 0
  1330. B.BottomSurface = 0
  1331. B.formFactor = "Symmetric"
  1332. B.Size = Vector3.new(1, 1, 1)
  1333. B.Transparency = 1
  1334. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1335. B.Parent = Character2
  1336. local W = Instance.new("Weld")
  1337. W.Part0 = Limb
  1338. W.Part1 = B
  1339. W.C0 = CFrame.new(0, -0.5, 0)
  1340. W.Parent = Limb
  1341. end
  1342. local Limb = Character2:FindFirstChild("Right Leg")
  1343. if Limb then
  1344. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  1345. local Joint = Instance.new("Glue")
  1346. Joint.Name = "RightHip"
  1347. Joint.Part0 = Torso2
  1348. Joint.Part1 = Limb
  1349. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1350. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1351. Joint.Parent = Torso2
  1352. local B = Instance.new("Part")
  1353. B.TopSurface = 0
  1354. B.BottomSurface = 0
  1355. B.formFactor = "Symmetric"
  1356. B.Size = Vector3.new(1, 1, 1)
  1357. B.Transparency = 1
  1358. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1359. B.Parent = Character2
  1360. local W = Instance.new("Weld")
  1361. W.Part0 = Limb
  1362. W.Part1 = B
  1363. W.C0 = CFrame.new(0, -0.5, 0)
  1364. W.Parent = Limb
  1365. end
  1366. local Limb = Character2:FindFirstChild("Left Leg")
  1367. if Limb then
  1368. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  1369. local Joint = Instance.new("Glue")
  1370. Joint.Name = "LeftHip"
  1371. Joint.Part0 = Torso2
  1372. Joint.Part1 = Limb
  1373. Joint.C0 = CFrame.new(-0.5, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1374. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1375. Joint.Parent = Torso2
  1376. local B = Instance.new("Part")
  1377. B.TopSurface = 0
  1378. B.BottomSurface = 0
  1379. B.formFactor = "Symmetric"
  1380. B.Size = Vector3.new(1, 1, 1)
  1381. B.Transparency = 1
  1382. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1383. B.Parent = Character2
  1384. local W = Instance.new("Weld")
  1385. W.Part0 = Limb
  1386. W.Part1 = B
  1387. W.C0 = CFrame.new(0, -0.5, 0)
  1388. W.Parent = Limb
  1389. end
  1390. local Bar = Instance.new("Part")
  1391. Bar.TopSurface = 0
  1392. Bar.BottomSurface = 0
  1393. Bar.formFactor = "Symmetric"
  1394. Bar.Size = Vector3.new(1, 1, 1)
  1395. Bar.Transparency = 1
  1396. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  1397. Bar.Parent = Character2
  1398. local Weld = Instance.new("Weld")
  1399. Weld.Part0 = Torso2
  1400. Weld.Part1 = Bar
  1401. Weld.C0 = CFrame.new(0, 0.5, 0)
  1402. Weld.Parent = Torso2
  1403. end
  1404. Character2.Parent = Weapon
  1405. if movevector ~= Vector3.new() then
  1406. for i = 1, 10 do
  1407. Torso2.Velocity = movevector * Velocity
  1408. end
  1409. end
  1410. Character2.Name = "Corpse"
  1411. return Character2, Torso2
  1412. end
  1413.  
  1414. function Banish(Foe)
  1415. if Foe then
  1416. coroutine.resume(coroutine.create(function()
  1417. --if game.Players:FindFirstChild(Foe.Name) then
  1418. table.insert(TOBANISH,Foe.Name)
  1419. printbye(Foe.Name)
  1420. --end
  1421. Foe.Archivable = true
  1422. local CLONE = Foe:Clone()
  1423. Foe:Destroy()
  1424. CLONE.Parent = Effects
  1425. CLONE:BreakJoints()
  1426. local MATERIALS = {"Glass","Neon"}
  1427. for _, c in pairs(CLONE:GetDescendants()) do
  1428. if c:IsA("BasePart") then
  1429. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1430. CreateSound(340722848, c, 10, 1, false)
  1431. end
  1432. c.Anchored = true
  1433. c.Transparency = c.Transparency + 0.2
  1434. c.Material = MATERIALS[MRANDOM(1,2)]
  1435. c.Color = C3(0,1,0)
  1436. if c.ClassName == "MeshPart" then
  1437. c.TextureID = ""
  1438. end
  1439. if c:FindFirstChildOfClass("SpecialMesh") then
  1440. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1441. end
  1442. if c:FindFirstChildOfClass("Decal") then
  1443. c:FindFirstChildOfClass("Decal"):remove()
  1444. end
  1445. c.Name = "Banished"
  1446. c.CanCollide = false
  1447. else
  1448. c:remove()
  1449. end
  1450. end
  1451. local A = false
  1452. for i = 1, 35 do
  1453. if A == false then
  1454. A = true
  1455. elseif A == true then
  1456. A = false
  1457. end
  1458. for _, c in pairs(CLONE:GetDescendants()) do
  1459. if c:IsA("BasePart") then
  1460. c.Anchored = true
  1461. c.Material = MATERIALS[MRANDOM(1,2)]
  1462. c.Transparency = c.Transparency + 0.8/35
  1463. if A == false then
  1464. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1465. elseif A == true then
  1466. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1467. end
  1468. end
  1469. end
  1470. Swait()
  1471. end
  1472. CLONE:remove()
  1473. end))
  1474. end
  1475. end
  1476.  
  1477. function PuddleOfBlood(Position, MaxDrop, Model, MaxSize)
  1478. local HITFLOOR, HITPOS, NORMAL = Raycast(Position, CF(Position, Position + VT(0, -1, 0)).lookVector, MaxDrop, Model)
  1479. if HITFLOOR ~= nil and HITFLOOR.Parent ~= Weapon and HITFLOOR.Parent ~= Character then
  1480. if HITFLOOR.Name == "BloodPuddle" then
  1481. local DIST = (Position - HITFLOOR.Position).Magnitude
  1482. if HITFLOOR.Size.Z <= 5 and MaxSize > HITFLOOR.Size.Z or HITFLOOR.Size.Z > 5 and MaxSize > HITFLOOR.Size.Z and DIST < HITFLOOR.Size.Z / 3 then
  1483. HITFLOOR.Size = HITFLOOR.Size + VT(0.1, 0, 0.1)
  1484. end
  1485. elseif HITFLOOR.Anchored == true then
  1486. do
  1487. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Lime green", "BloodPuddle", VT(2, 0, 2))
  1488. BLOOD.CFrame = CF(HITPOS, HITPOS + NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0))
  1489. MakeForm(BLOOD, "Cyl")
  1490. coroutine.resume(coroutine.create(function()
  1491. Swait(75)
  1492. while true do
  1493. Swait()
  1494. BLOOD.Size = BLOOD.Size - VT(0.02, 0, 0.02)
  1495. if BLOOD.Size.Z < 0.051 then
  1496. BLOOD:remove()
  1497. break
  1498. end
  1499. end
  1500. end))
  1501. end
  1502. end
  1503. end
  1504. end
  1505.  
  1506. function SprayBlood(POSITION, DIRECTION, BloodSize)
  1507. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Lime green", "BloodPuddle", VT(1, 1, 1), false)
  1508. BLOOD.CFrame = CF(POSITION)
  1509. MakeForm(BLOOD, "Ball")
  1510. local bv = Instance.new("BodyVelocity", BLOOD)
  1511. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1512. bv.velocity = CF(POSITION, DIRECTION + VT(MRANDOM(-3, 3) / 30, MRANDOM(-3, 3) / 30, MRANDOM(-3, 3) / 30)).lookVector * 25
  1513. bv.Name = "MOVE"
  1514. Debris:AddItem(bv, 0.05)
  1515. coroutine.resume(coroutine.create(function()
  1516. local HASTOUCHEDGROUND = false
  1517. local HIT = BLOOD.Touched:Connect(function(hit)
  1518. if hit.Anchored == true then
  1519. HASTOUCHEDGROUND = true
  1520. PuddleOfBlood(BLOOD.Position + VT(0, 1, 0), 2, BLOOD, BloodSize)
  1521. end
  1522. end)
  1523. wait(5)
  1524. if HASTOUCHEDGROUND == false then
  1525. BLOOD:remove()
  1526. end
  1527. end))
  1528. end
  1529. function ApplyDamage(Humanoid, Damage, TorsoPart)
  1530. local defence = Instance.new("BoolValue", Humanoid.Parent)
  1531. defence.Name = "HitBy" .. Player.Name
  1532. game:GetService("Debris"):AddItem(defence, 0.001)
  1533. Damage = Damage * DAMAGEMULTIPLIER
  1534. if Humanoid.Health ~= 0 then
  1535. local CritChance = MRANDOM(1, 100)
  1536. if Damage > Humanoid.Health then
  1537. Damage = math.ceil(Humanoid.Health)
  1538. if Damage == 0 then
  1539. Damage = 0.1
  1540. end
  1541. end
  1542. Humanoid.Health = Humanoid.Health - Damage
  1543. StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0))
  1544. end
  1545. end
  1546.  
  1547. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1548. local CHILDREN = workspace:GetDescendants()
  1549. for index, CHILD in pairs(CHILDREN) do
  1550. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1551. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1552. if HUM then
  1553. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1554. if TORSO then
  1555. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1556. if ISBANISH == true then
  1557. Banish(CHILD)
  1558. else
  1559. if ISBANISH == "Gravity" then
  1560. HUM.PlatformStand = true
  1561. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1562. local grav = Instance.new("BodyPosition",TORSO)
  1563. grav.D = 15
  1564. grav.P = 20000
  1565. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1566. grav.position = TORSO.Position
  1567. grav.Name = "V3BanishForce"..Player.Name
  1568. else
  1569. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1570. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1571. end
  1572. else
  1573. HUM.PlatformStand = false
  1574. end
  1575. end
  1576. elseif ISBANISH == "Gravity" then
  1577. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1578. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1579. HUM.PlatformStand = false
  1580. end
  1581. end
  1582. end
  1583. end
  1584. end
  1585. end
  1586. end
  1587.  
  1588. function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,CanBeDodgedByJumping)
  1589. local dmg = math.random(min,max)
  1590. for i,v in ipairs(workspace:GetChildren()) do
  1591. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  1592. local body = v:GetChildren()
  1593. for part = 1, #body do
  1594. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1595. if(body[part].Position - position).Magnitude < radius then
  1596. if v.ClassName == "Model" then
  1597. if v:FindFirstChildOfClass("Humanoid") then
  1598. if CanBeDodgedByJumping == true then
  1599. if body[part].Position.Y < position.Y+5 then
  1600. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  1601. end
  1602. else
  1603. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  1604. end
  1605. local bv = Instance.new("BodyVelocity")
  1606. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1607. bv.velocity = RootPart.CFrame.lookVector*maxstrength
  1608. bv.Parent = body[part]
  1609. Debris:AddItem(bv,0.2)
  1610. end
  1611. end
  1612. end
  1613. end
  1614. end
  1615. end
  1616. if v:FindFirstChild("HitBy"..Player.Name) then
  1617. v:FindFirstChild("HitBy"..Player.Name):remove()
  1618. end
  1619. end
  1620. end
  1621.  
  1622.  
  1623. --//=================================\\
  1624. --|| ATTACK FUNCTIONS AND STUFF
  1625. --\\=================================//
  1626.  
  1627. function ShadowCloak()
  1628. if ANIM ~= "Fall" and ANIM ~= "Jump" then
  1629. ATTACK = true
  1630. Rooted = false
  1631. UNANCHOR = false
  1632. FADERS = false
  1633. coroutine.resume(coroutine.create(function()
  1634. coroutine.resume(coroutine.create(function()
  1635. for i=1, 25 do
  1636. Swait()
  1637. RootPart.CFrame = RootPart.CFrame*CF(0,(25-i)/25,0)
  1638. end
  1639. end))
  1640. repeat
  1641. Swait()
  1642. BLADE.Transparency = Torso.Transparency
  1643. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1644. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(MRANDOM(-5,5)), RAD(MRANDOM(-5,5))), 1 / Animation_Speed)
  1645. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25+MRANDOM(-5,5)), RAD(-15+MRANDOM(-5,5)), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1646. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25+MRANDOM(-5,5)), RAD(15+MRANDOM(-5,5)), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1647. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.1) * ANGLES(RAD(0), RAD(85), RAD(MRANDOM(-5,5))) * ANGLES(RAD(-1), RAD(0), RAD(-12)), 1 / Animation_Speed)
  1648. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.1) * ANGLES(RAD(0), RAD(-85), RAD(MRANDOM(-5,5))) * ANGLES(RAD(-1), RAD(0), RAD(12)), 1 / Animation_Speed)
  1649. until ATTACK == false
  1650. end))
  1651. WACKYEFFECT({Time = 65, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(25,1,25), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 814168787, SoundPitch = 0.6, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 12})
  1652. WACKYEFFECT({Time = 65, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(25,1,25), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 814168787, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
  1653. for i = 1, 50 do
  1654. Swait()
  1655. CharacterFade(C3(0,1,0),12,R_RANDOM(Torso.CFrame,1.25).p)
  1656. for index, CHILD in pairs(Character:GetChildren()) do
  1657. if CHILD:IsA("BasePart") then
  1658. CHILD.Transparency = CHILD.Transparency + 1/50
  1659. elseif CHILD:IsA("Accessory") then
  1660. CHILD.Handle.Transparency = CHILD.Handle.Transparency + 1/50
  1661. end
  1662. end
  1663. end
  1664. for i = 1, 25 do
  1665. Swait()
  1666. CharacterFade(C3(0,1,0),12,R_RANDOM(Torso.CFrame,1.25).p)
  1667. end
  1668. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,12,0)) * ANGLES(RAD(0), RAD(RootPart.Orientation.Y), RAD(0))
  1669. for i = 1, 5 do
  1670. WACKYEFFECT({Time = 50, EffectType = "Round Slash", Size = VT(0,0,0), Size2 = VT(0.3,0,0.3), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 10})
  1671. end
  1672. ApplyAoE(Torso.Position,15,12,22,150,false)
  1673. CreateSound(331666014,Torso,5,1,false)
  1674. for i = 1, 12 do
  1675. Swait()
  1676. CharacterFade(C3(0,1,0),12,R_RANDOM(Torso.CFrame,1.25).p)
  1677. end
  1678. for i = 1, 50 do
  1679. Swait()
  1680. CharacterFade(C3(0,1,0),12,R_RANDOM(Torso.CFrame,1.25).p)
  1681. for index, CHILD in pairs(Character:GetChildren()) do
  1682. if CHILD:IsA("BasePart") then
  1683. CHILD.Transparency = CHILD.Transparency - 1/50
  1684. elseif CHILD:IsA("Accessory") then
  1685. CHILD.Handle.Transparency = CHILD.Handle.Transparency - 1/50
  1686. end
  1687. end
  1688. end
  1689. UNANCHOR = true
  1690. ATTACK = false
  1691. Rooted = false
  1692. FADERS = true
  1693. end
  1694. end
  1695.  
  1696. function Neck_Snap()
  1697. ATTACK = true
  1698. Rooted = false
  1699. local TARGET, HUM, WLD
  1700. local HIT = RightArm.Touched:Connect(function(hit)
  1701. if hit.Parent ~= nil and hit.Parent:FindFirstChildOfClass("Humanoid") then
  1702. local H = hit.Parent:FindFirstChildOfClass("Humanoid")
  1703. if H.Health > 0 then
  1704. local TORSO = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1705. if TORSO then
  1706. HUM = H
  1707. TARGET = TORSO
  1708. H.PlatformStand = true
  1709. CreateSound("260411131", TORSO, 10, 1)
  1710. WLD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, TORSO, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
  1711. end
  1712. end
  1713. end
  1714. end)
  1715. for i = 0, 1, 0.1 / Animation_Speed do
  1716. Swait()
  1717. if TARGET ~= nil then
  1718. break
  1719. end
  1720. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  1721. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.5 / Animation_Speed)
  1722. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.45, -0.3) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1723. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1724. if ANIM == "Idle" then
  1725. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1726. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1727. elseif ANIM == "Walk" then
  1728. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1729. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1730. elseif ANIM == "Jump" or ANIM == "Fall" then
  1731. 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)
  1732. 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)
  1733. end
  1734. end
  1735. HIT:disconnect()
  1736. if TARGET ~= nil then
  1737. if TARGET.Name == "Torso" then
  1738. for i = 0, 2, 0.1 / Animation_Speed do
  1739. Swait()
  1740. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1741. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1742. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(65), RAD(25), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1743. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(120), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1744. if ANIM == "Idle" then
  1745. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1746. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1747. elseif ANIM == "Walk" then
  1748. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1749. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1750. elseif ANIM == "Jump" or ANIM == "Fall" then
  1751. 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)
  1752. 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)
  1753. end
  1754. end
  1755. WLD:remove()
  1756. local HEAD = TARGET.Parent:FindFirstChild("Head")
  1757. if HEAD then
  1758. UNANCHOR = false
  1759. RootPart.Anchored = true
  1760. local HD = HEAD:Clone()
  1761. HD.Name = "FakeHead"
  1762. for i = 1, 7 do
  1763. SprayBlood(TARGET.CFrame * CF(0, TARGET.Size.Y / 2, 0).p, TARGET.CFrame * CF(MRANDOM(25, 55), MRANDOM(-25, 25), MRANDOM(25, 55)).p, 15)
  1764. end
  1765. local RAGDOLL, RAGTORSO = Ragdoll(TARGET.Parent, Torso, true, 0)
  1766. local RAGWELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RAGTORSO, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
  1767. HD.Parent = RAGDOLL
  1768. CreateSound("264486467", RAGTORSO, 10, 1)
  1769. local HEADWELD = CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, HD, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
  1770. for i = 0, 2, 0.1 / Animation_Speed do
  1771. Swait()
  1772. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1773. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1774. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1775. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(150), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1776. if ANIM == "Idle" then
  1777. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1778. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1779. elseif ANIM == "Walk" then
  1780. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1781. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1782. elseif ANIM == "Jump" or ANIM == "Fall" then
  1783. 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)
  1784. 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)
  1785. end
  1786. end
  1787. HEADWELD:remove()
  1788. for i = 0, 0.5, 0.1 / Animation_Speed do
  1789. Swait()
  1790. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1791. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1792. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1793. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1794. if ANIM == "Idle" then
  1795. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1796. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1797. elseif ANIM == "Walk" then
  1798. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1799. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1800. elseif ANIM == "Jump" or ANIM == "Fall" then
  1801. 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)
  1802. 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)
  1803. end
  1804. end
  1805. CreateSound("907333406", Torso, 10, 1)
  1806. for i = 0, 0.25, 0.1 / Animation_Speed do
  1807. Swait()
  1808. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1809. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1810. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1811. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1812. if ANIM == "Idle" then
  1813. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1814. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1815. elseif ANIM == "Walk" then
  1816. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1817. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1818. elseif ANIM == "Jump" or ANIM == "Fall" then
  1819. 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)
  1820. 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)
  1821. end
  1822. end
  1823. RAGWELD:remove()
  1824. local bv = Instance.new("BodyVelocity")
  1825. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1826. bv.velocity = CF(Torso.Position, RAGTORSO.Position).lookVector * 75
  1827. bv.Parent = RAGTORSO
  1828. Debris:AddItem(bv, 0.05)
  1829. Debris:AddItem(RAGDOLL, 5)
  1830. for i = 0, 0.15, 0.1 / Animation_Speed do
  1831. Swait()
  1832. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1833. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1834. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1835. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1836. if ANIM == "Idle" then
  1837. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1838. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1839. elseif ANIM == "Walk" then
  1840. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1841. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1842. elseif ANIM == "Jump" or ANIM == "Fall" then
  1843. 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)
  1844. 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)
  1845. end
  1846. end
  1847. UNANCHOR = true
  1848. RootPart.Anchored = false
  1849. end
  1850. else
  1851. UNANCHOR = false
  1852. RootPart.Anchored = true
  1853. for i = 0, 0.5, 0.1 / Animation_Speed do
  1854. Swait()
  1855. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1856. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1857. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1858. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1859. if ANIM == "Idle" then
  1860. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1861. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1862. elseif ANIM == "Walk" then
  1863. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1864. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1865. elseif ANIM == "Jump" or ANIM == "Fall" then
  1866. 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)
  1867. 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)
  1868. end
  1869. end
  1870. for i = 0, 0.25, 0.1 / Animation_Speed do
  1871. Swait()
  1872. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1873. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1874. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1875. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1876. if ANIM == "Idle" then
  1877. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1878. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1879. elseif ANIM == "Walk" then
  1880. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1881. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1882. elseif ANIM == "Jump" or ANIM == "Fall" then
  1883. 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)
  1884. 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)
  1885. end
  1886. end
  1887. WLD:remove()
  1888. TARGET.Parent:BreakJoints()
  1889. for _, c in pairs(TARGET.Parent:GetChildren()) do
  1890. if c:IsA("BasePart") then
  1891. local bv = Instance.new("BodyVelocity")
  1892. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1893. bv.velocity = CF(Torso.Position, c.Position).lookVector * 75
  1894. bv.Parent = c
  1895. Debris:AddItem(bv, 0.05)
  1896. end
  1897. end
  1898. for i = 0, 0.15, 0.1 / Animation_Speed do
  1899. Swait()
  1900. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1901. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1902. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1903. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1904. if ANIM == "Idle" then
  1905. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1906. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1907. elseif ANIM == "Walk" then
  1908. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1909. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1910. elseif ANIM == "Jump" or ANIM == "Fall" then
  1911. 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)
  1912. 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)
  1913. end
  1914. end
  1915. UNANCHOR = true
  1916. RootPart.Anchored = false
  1917. end
  1918. end
  1919. ATTACK = false
  1920. Rooted = false
  1921. end
  1922.  
  1923. function Banisher_Bullet()
  1924. ATTACK = true
  1925. Rooted = false
  1926. for i=0, 0.4, 0.1 / Animation_Speed do
  1927. Swait()
  1928. turnto(Mouse.Hit.p)
  1929. Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1)
  1930. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1931. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1932. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1933. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1934. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1935. end
  1936. repeat
  1937. for i=0, 0.2, 0.1 / Animation_Speed do
  1938. Swait()
  1939. turnto(Mouse.Hit.p)
  1940. Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1)
  1941. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1942. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1943. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1944. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1945. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1946. end
  1947. local HIT,POS = CastProperRay(Hole2.Position, Mouse.Hit.p, 1000, Character)
  1948. SpawnTrail(Hole2.Position,POS)
  1949. if HIT ~= nil then
  1950. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1951. Banish(HIT.Parent)
  1952. end
  1953. end
  1954. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  1955. SpawnTrail(Hole.Position,POS)
  1956. if HIT ~= nil then
  1957. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1958. Banish(HIT.Parent)
  1959. end
  1960. end
  1961. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), 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(0,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1962. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1963. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), 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(0,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1964. 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(0,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1965. for i=0, 0.3, 0.1 / Animation_Speed do
  1966. Swait()
  1967. Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1)
  1968. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1969. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(106), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1970. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(106), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1971. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(78), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1972. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(-78), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1973. end
  1974. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(5,5,5).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1975. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1976. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), 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(0,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1977. 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(0,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1978. until KEYHOLD == false
  1979. ATTACK = false
  1980. Rooted = false
  1981. end
  1982.  
  1983. function AttackTemplate()
  1984. ATTACK = true
  1985. Rooted = false
  1986. for i=0, 1, 0.1 / Animation_Speed do
  1987. Swait()
  1988. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1989. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1990. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(100), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1991. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1992. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1993. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1994. end
  1995. ATTACK = false
  1996. Rooted = false
  1997. end
  1998.  
  1999. --//=================================\\
  2000. --|| ASSIGN THINGS TO KEYS
  2001. --\\=================================//
  2002.  
  2003. function MouseDown(Mouse)
  2004. if ATTACK == false then
  2005. end
  2006. end
  2007.  
  2008. function MouseUp(Mouse)
  2009. HOLD = false
  2010. end
  2011.  
  2012. function KeyDown(Key)
  2013. KEYHOLD = true
  2014. if Key == "z" and ATTACK == false then
  2015. Banisher_Bullet()
  2016. end
  2017.  
  2018. if Key == "b" and ATTACK == false then
  2019. Neck_Snap()
  2020. end
  2021.  
  2022. if Key == "c" and ATTACK == false then
  2023. ShadowCloak()
  2024. end
  2025.  
  2026. if Key == "v" and ATTACK == false then
  2027. end
  2028.  
  2029. if Key == "x" and ATTACK == false then
  2030. end
  2031. end
  2032.  
  2033. function KeyUp(Key)
  2034. KEYHOLD = false
  2035. end
  2036.  
  2037. Mouse.Button1Down:connect(function(NEWKEY)
  2038. MouseDown(NEWKEY)
  2039. end)
  2040. Mouse.Button1Up:connect(function(NEWKEY)
  2041. MouseUp(NEWKEY)
  2042. end)
  2043. Mouse.KeyDown:connect(function(NEWKEY)
  2044. KeyDown(NEWKEY)
  2045. end)
  2046. Mouse.KeyUp:connect(function(NEWKEY)
  2047. KeyUp(NEWKEY)
  2048. end)
  2049.  
  2050. --//=================================\\
  2051. --\\=================================//
  2052.  
  2053.  
  2054. function unanchor()
  2055. if UNANCHOR == true then
  2056. g = Character:GetChildren()
  2057. for i = 1, #g do
  2058. if g[i].ClassName == "Part" then
  2059. g[i].Anchored = false
  2060. end
  2061. end
  2062. end
  2063. end
  2064.  
  2065.  
  2066. --//=================================\\
  2067. --|| WRAP THE WHOLE SCRIPT UP
  2068. --\\=================================//
  2069.  
  2070. Humanoid.Changed:connect(function(Jump)
  2071. if Jump == "Jump" and (Disable_Jump == true) then
  2072. Humanoid.Jump = false
  2073. end
  2074. end)
  2075.  
  2076. local CONNECT = nil
  2077.  
  2078. while true do
  2079. Swait()
  2080. ANIMATE.Parent = nil
  2081. if Character:FindFirstChildOfClass("Humanoid") == nil then
  2082. Humanoid = IT("Humanoid",Character)
  2083. end
  2084. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  2085. v:Stop();
  2086. end
  2087. SINE = SINE + CHANGE
  2088. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2089. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2090. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2091. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  2092. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  2093. 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)
  2094. 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)
  2095. 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)
  2096. 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)
  2097. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2098. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2099. 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)
  2100. 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)
  2101. 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)
  2102. end
  2103. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2104. ANIM = "Jump"
  2105. if ATTACK == false then
  2106. Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1)
  2107. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2108. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2109. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2110. 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)
  2111. 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)
  2112. end
  2113. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2114. ANIM = "Fall"
  2115. if ATTACK == false then
  2116. Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1)
  2117. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2118. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2119. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2120. 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)
  2121. 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)
  2122. end
  2123. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2124. ANIM = "Idle"
  2125. if ATTACK == false then
  2126. Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1)
  2127. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2128. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2129. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2130. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2131. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2132. end
  2133. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2134. ANIM = "Walk"
  2135. if ATTACK == false then
  2136. Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1)
  2137. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2138. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2139. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2140. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  2141. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  2142. end
  2143. end
  2144. unanchor()
  2145. Humanoid.MaxHealth = "inf"
  2146. Humanoid.Health = "inf"
  2147. if Rooted == false then
  2148. Disable_Jump = false
  2149. Humanoid.WalkSpeed = Speed
  2150. elseif Rooted == true then
  2151. Disable_Jump = true
  2152. Humanoid.WalkSpeed = 0
  2153. end
  2154. sick.Parent = Torso
  2155. sick:resume()
  2156. sick.Volume = 5
  2157. sick.Pitch = 1
  2158. sick.SoundId = "rbxassetid://933032912"
  2159. sick.Name = "BanishV3Music"
  2160. end
  2161.  
  2162. --//=================================\\
  2163. --\\=================================//
  2164.  
  2165.  
  2166.  
  2167.  
  2168.  
  2169. --//====================================================\\--
  2170. --|| END OF SCRIPT
  2171. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement