Advertisement
yabagaba

Untitled

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