Advertisement
Guest User

asd

a guest
Apr 23rd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.92 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4.  
  5.  
  6.  
  7. wait(0.2)
  8.  
  9.  
  10.  
  11. Player = game:GetService("Players").LocalPlayer
  12. PlayerGui = Player.PlayerGui
  13. Cam = workspace.CurrentCamera
  14. Backpack = Player.Backpack
  15. Character = Player.Character
  16. Humanoid = Character.Humanoid
  17. Mouse = Player:GetMouse()
  18. RootPart = Character["HumanoidRootPart"]
  19. Torso = Character["Torso"]
  20. Head = Character["Head"]
  21. RightArm = Character["Right Arm"]
  22. LeftArm = Character["Left Arm"]
  23. RightLeg = Character["Right Leg"]
  24. LeftLeg = Character["Left Leg"]
  25. RootJoint = RootPart["RootJoint"]
  26. Neck = Torso["Neck"]
  27. RightShoulder = Torso["Right Shoulder"]
  28. LeftShoulder = Torso["Left Shoulder"]
  29. RightHip = Torso["Right Hip"]
  30. LeftHip = Torso["Left Hip"]
  31. local sick = Instance.new("Sound",Character)
  32. sick.SoundId = "rbxassetid://1117396305"
  33. sick.Looped = true
  34. sick.Pitch = 1
  35. sick.Volume = 1
  36. sick:Play()
  37.  
  38. IT = Instance.new
  39. CF = CFrame.new
  40. VT = Vector3.new
  41. RAD = math.rad
  42. C3 = Color3.new
  43. UD2 = UDim2.new
  44. BRICKC = BrickColor.new
  45. ANGLES = CFrame.Angles
  46. EULER = CFrame.fromEulerAnglesXYZ
  47. COS = math.cos
  48. ACOS = math.acos
  49. SIN = math.sin
  50. ASIN = math.asin
  51. ABS = math.abs
  52. MRANDOM = math.random
  53. FLOOR = math.floor
  54. text.Text = "Edited IvanPortero1"
  55.  
  56. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  57. local NEWMESH = IT(MESH)
  58. if MESH == "SpecialMesh" then
  59. NEWMESH.MeshType = MESHTYPE
  60. if MESHID ~= "nil" and MESHID ~= "" then
  61. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  62. end
  63. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  64. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  65. end
  66. end
  67. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  68. NEWMESH.Scale = SCALE
  69. NEWMESH.Parent = PARENT
  70. return NEWMESH
  71. end
  72.  
  73. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  74. local NEWPART = IT("Part")
  75. NEWPART.formFactor = FORMFACTOR
  76. NEWPART.Reflectance = REFLECTANCE
  77. NEWPART.Transparency = TRANSPARENCY
  78. NEWPART.CanCollide = false
  79. NEWPART.Locked = true
  80. NEWPART.Anchored = true
  81. if ANCHOR == false then
  82. NEWPART.Anchored = false
  83. end
  84. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  85. NEWPART.Name = NAME
  86. NEWPART.Size = SIZE
  87. NEWPART.Position = Torso.Position
  88. NEWPART.Material = MATERIAL
  89. NEWPART:BreakJoints()
  90. NEWPART.Parent = PARENT
  91. return NEWPART
  92. end
  93.  
  94. --//=================================\\
  95. --|| CUSTOMIZATION
  96. --\\=================================//
  97.  
  98. Class_Name = "Template"
  99. Weapon_Name = "Add-ons"
  100.  
  101. Custom_Colors = {
  102. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  103. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  104.  
  105. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  106. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  107. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  108. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  109. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  110.  
  111. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  112. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  113. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  114. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  115. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  116. }
  117.  
  118.  
  119. Player_Size = 1 --Size of the player.
  120. Animation_Speed = 3
  121. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  122.  
  123. local Speed = 16
  124. local Effects2 = {}
  125.  
  126. --//=================================\\
  127. --|| END OF CUSTOMIZATION
  128. --\\=================================//
  129.  
  130. local function weldBetween(a, b)
  131. local weldd = Instance.new("ManualWeld")
  132. weldd.Part0 = a
  133. weldd.Part1 = b
  134. weldd.C0 = CFrame.new()
  135. weldd.C1 = b.CFrame:inverse() * a.CFrame
  136. weldd.Parent = a
  137. return weldd
  138. end
  139.  
  140. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  141. local acs = Instance.new("Part")
  142. acs.CanCollide = false
  143. acs.Anchored = false
  144. acs.Size = Vector3.new(0,0,0)
  145. acs.CFrame = attachmentpart.CFrame
  146. acs.Parent = Character
  147. acs.BrickColor = color
  148. local meshs = Instance.new("SpecialMesh")
  149. meshs.MeshId = mesh
  150. meshs.TextureId = texture
  151. meshs.Parent = acs
  152. meshs.Scale = scale
  153. meshs.Offset = offset
  154. weldBetween(attachmentpart,acs)
  155. end
  156.  
  157. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  158. if TYPE == "Gem" then
  159. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  160. acs.Anchored = false
  161. acs.CanCollide = false
  162. acs.CFrame = PART.CFrame
  163. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  164. weldBetween(PART,acs)
  165. elseif TYPE == "Skull" then
  166. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  167. acs.Anchored = false
  168. acs.CanCollide = false
  169. acs.CFrame = PART.CFrame
  170. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  171. weldBetween(PART,acs)
  172. elseif TYPE == "Eye" then
  173. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  174. acs.Anchored = false
  175. acs.CanCollide = false
  176. acs.CFrame = PART.CFrame
  177. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  178. weldBetween(PART,acs)
  179. end
  180. end
  181.  
  182. --//=================================\\
  183. --|| USEFUL VALUES
  184. --\\=================================//
  185.  
  186. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  187. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  188. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  189. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  190. local CHANGEDEFENSE = 0
  191. local CHANGEDAMAGE = 0
  192. local CHANGEMOVEMENT = 0
  193. local ANIM = "Idle"
  194. local ATTACK = false
  195. local EQUIPPED = false
  196. local HOLD = false
  197. local COMBO = 1
  198. local Rooted = false
  199. local SINE = 0
  200. local KEYHOLD = false
  201. local CHANGE = 2 / Animation_Speed
  202. local WALKINGANIM = false
  203. local WALK = 0
  204. local VALUE1 = false
  205. local VALUE2 = false
  206. local ROBLOXIDLEANIMATION = IT("Animation")
  207. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  208. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  209. --ROBLOXIDLEANIMATION.Parent = Humanoid
  210. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  211. WEAPONGUI.Name = "Weapon GUI"
  212. local Weapon = IT("Model")
  213. Weapon.Name = Weapon_Name
  214. local Effects = IT("Folder", Weapon)
  215. Effects.Name = "Effects"
  216. local ANIMATOR = Humanoid.Animator
  217. local ANIMATE = Character.Animate
  218. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  219. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  220. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  221. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  222. local UNANCHOR = true
  223.  
  224. local SKILLTEXTCOLOR = C3(1,0,0)
  225.  
  226. --//=================================\\
  227. --\\=================================//
  228.  
  229.  
  230. --//=================================\\
  231. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  232. --\\=================================//
  233.  
  234. ArtificialHB = Instance.new("BindableEvent", script)
  235. ArtificialHB.Name = "ArtificialHB"
  236.  
  237. script:WaitForChild("ArtificialHB")
  238.  
  239. frame = Frame_Speed
  240. tf = 0
  241. allowframeloss = false
  242. tossremainder = false
  243. lastframe = tick()
  244. script.ArtificialHB:Fire()
  245.  
  246. game:GetService("RunService").Heartbeat:connect(function(s, p)
  247. tf = tf + s
  248. if tf >= frame then
  249. if allowframeloss then
  250. script.ArtificialHB:Fire()
  251. lastframe = tick()
  252. else
  253. for i = 1, math.floor(tf / frame) do
  254. script.ArtificialHB:Fire()
  255. end
  256. lastframe = tick()
  257. end
  258. if tossremainder then
  259. tf = 0
  260. else
  261. tf = tf - frame * math.floor(tf / frame)
  262. end
  263. end
  264. end)
  265.  
  266. --//=================================\\
  267. --\\=================================//
  268.  
  269.  
  270.  
  271.  
  272.  
  273. --//=================================\\
  274. --|| SOME FUNCTIONS
  275. --\\=================================//
  276.  
  277. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  278. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  279. end
  280.  
  281. function PositiveAngle(NUMBER)
  282. if NUMBER >= 0 then
  283. NUMBER = 0
  284. end
  285. return NUMBER
  286. end
  287.  
  288. function NegativeAngle(NUMBER)
  289. if NUMBER <= 0 then
  290. NUMBER = 0
  291. end
  292. return NUMBER
  293. end
  294.  
  295. function Swait(NUMBER)
  296. if NUMBER == 0 or NUMBER == nil then
  297. ArtificialHB.Event:wait()
  298. else
  299. for i = 1, NUMBER do
  300. ArtificialHB.Event:wait()
  301. end
  302. end
  303. end
  304.  
  305. function QuaternionFromCFrame(cf)
  306. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  307. local trace = m00 + m11 + m22
  308. if trace > 0 then
  309. local s = math.sqrt(1 + trace)
  310. local recip = 0.5 / s
  311. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  312. else
  313. local i = 0
  314. if m11 > m00 then
  315. i = 1
  316. end
  317. if m22 > (i == 0 and m00 or m11) then
  318. i = 2
  319. end
  320. if i == 0 then
  321. local s = math.sqrt(m00 - m11 - m22 + 1)
  322. local recip = 0.5 / s
  323. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  324. elseif i == 1 then
  325. local s = math.sqrt(m11 - m22 - m00 + 1)
  326. local recip = 0.5 / s
  327. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  328. elseif i == 2 then
  329. local s = math.sqrt(m22 - m00 - m11 + 1)
  330. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  331. end
  332. end
  333. end
  334.  
  335. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  336. local xs, ys, zs = x + x, y + y, z + z
  337. local wx, wy, wz = w * xs, w * ys, w * zs
  338. local xx = x * xs
  339. local xy = x * ys
  340. local xz = x * zs
  341. local yy = y * ys
  342. local yz = y * zs
  343. local zz = z * zs
  344. 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))
  345. end
  346.  
  347. function QuaternionSlerp(a, b, t)
  348. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  349. local startInterp, finishInterp;
  350. if cosTheta >= 0.0001 then
  351. if (1 - cosTheta) > 0.0001 then
  352. local theta = ACOS(cosTheta)
  353. local invSinTheta = 1 / SIN(theta)
  354. startInterp = SIN((1 - t) * theta) * invSinTheta
  355. finishInterp = SIN(t * theta) * invSinTheta
  356. else
  357. startInterp = 1 - t
  358. finishInterp = t
  359. end
  360. else
  361. if (1 + cosTheta) > 0.0001 then
  362. local theta = ACOS(-cosTheta)
  363. local invSinTheta = 1 / SIN(theta)
  364. startInterp = SIN((t - 1) * theta) * invSinTheta
  365. finishInterp = SIN(t * theta) * invSinTheta
  366. else
  367. startInterp = t - 1
  368. finishInterp = t
  369. end
  370. end
  371. 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
  372. end
  373.  
  374. function Clerp(a, b, t)
  375. local qa = {QuaternionFromCFrame(a)}
  376. local qb = {QuaternionFromCFrame(b)}
  377. local ax, ay, az = a.x, a.y, a.z
  378. local bx, by, bz = b.x, b.y, b.z
  379. local _t = 1 - t
  380. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  381. end
  382.  
  383. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  384. local frame = IT("Frame")
  385. frame.BackgroundTransparency = TRANSPARENCY
  386. frame.BorderSizePixel = BORDERSIZEPIXEL
  387. frame.Position = POSITION
  388. frame.Size = SIZE
  389. frame.BackgroundColor3 = COLOR
  390. frame.BorderColor3 = BORDERCOLOR
  391. frame.Name = NAME
  392. frame.Parent = PARENT
  393. return frame
  394. end
  395.  
  396. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  397. local label = IT("TextLabel")
  398. label.BackgroundTransparency = 1
  399. label.Size = UD2(1, 0, 1, 0)
  400. label.Position = UD2(0, 0, 0, 0)
  401. label.TextColor3 = TEXTCOLOR
  402. label.TextStrokeTransparency = STROKETRANSPARENCY
  403. label.TextTransparency = TRANSPARENCY
  404. label.FontSize = TEXTFONTSIZE
  405. label.Font = TEXTFONT
  406. label.BorderSizePixel = BORDERSIZEPIXEL
  407. label.TextScaled = false
  408. label.Text = TEXT
  409. label.Name = NAME
  410. label.Parent = PARENT
  411. return label
  412. end
  413.  
  414. function NoOutlines(PART)
  415. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  416. end
  417.  
  418.  
  419. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  420. local NEWWELD = IT(TYPE)
  421. NEWWELD.Part0 = PART0
  422. NEWWELD.Part1 = PART1
  423. NEWWELD.C0 = C0
  424. NEWWELD.C1 = C1
  425. NEWWELD.Parent = PARENT
  426. return NEWWELD
  427. end
  428.  
  429. function CreateSound(ID, PARENT, VOLUME, PITCH)
  430. local NEWSOUND = nil
  431. coroutine.resume(coroutine.create(function()
  432. NEWSOUND = IT("Sound", PARENT)
  433. NEWSOUND.Volume = VOLUME
  434. NEWSOUND.Pitch = PITCH
  435. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  436. Swait()
  437. NEWSOUND:play()
  438. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  439. end))
  440. return NEWSOUND
  441. end
  442.  
  443. function CFrameFromTopBack(at, top, back)
  444. local right = top:Cross(back)
  445. 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)
  446. end
  447.  
  448. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  449. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  450. local mesh = IT("SpecialMesh",wave)
  451. mesh.MeshType = "FileMesh"
  452. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  453. mesh.Scale = SIZE
  454. mesh.Offset = VT(0,0,-SIZE.X/8)
  455. wave.CFrame = CFRAME
  456. coroutine.resume(coroutine.create(function(PART)
  457. for i = 1, WAIT do
  458. Swait()
  459. mesh.Scale = mesh.Scale + GROW
  460. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  461. if DOESROT == true then
  462. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  463. end
  464. wave.Transparency = wave.Transparency + (0.5/WAIT)
  465. if wave.Transparency > 0.99 then
  466. wave:remove()
  467. end
  468. end
  469. end))
  470. end
  471.  
  472. function CreateCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  473. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  474. local mesh = IT("SpecialMesh",wave)
  475. mesh.MeshType = "FileMesh"
  476. mesh.MeshId = "http://www.roblox.com/asset/?id=1078075"
  477. mesh.Scale = SIZE
  478. mesh.Offset = VT(0,0,-SIZE.X/8)
  479. wave.CFrame = CFRAME
  480. coroutine.resume(coroutine.create(function(PART)
  481. for i = 1, WAIT do
  482. Swait()
  483. mesh.Scale = mesh.Scale + GROW
  484. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  485. if DOESROT == true then
  486. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  487. end
  488. wave.Transparency = wave.Transparency + (0.5/WAIT)
  489. if wave.Transparency > 0.99 then
  490. wave:remove()
  491. end
  492. end
  493. end))
  494. end
  495.  
  496. function CreateIceCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  497. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  498. local mesh = IT("SpecialMesh",wave)
  499. mesh.MeshType = "FileMesh"
  500. mesh.MeshId = "http://www.roblox.com/asset/?id=1323306"
  501. mesh.Scale = SIZE
  502. mesh.Offset = VT(0,0,-SIZE.X/8)
  503. wave.CFrame = CFRAME
  504. coroutine.resume(coroutine.create(function(PART)
  505. for i = 1, WAIT do
  506. Swait()
  507. mesh.Scale = mesh.Scale + GROW
  508. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  509. if DOESROT == true then
  510. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  511. end
  512. wave.Transparency = wave.Transparency + (0.5/WAIT)
  513. if wave.Transparency > 0.99 then
  514. wave:remove()
  515. end
  516. end
  517. end))
  518. end
  519.  
  520. function CreateSpikeball(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  521. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  522. local mesh = IT("SpecialMesh",wave)
  523. mesh.MeshType = "FileMesh"
  524. mesh.MeshId = "http://www.roblox.com/asset/?id=9982590"
  525. mesh.Scale = SIZE
  526. mesh.Offset = VT(0,0,-SIZE.X/8)
  527. wave.CFrame = CFRAME
  528. coroutine.resume(coroutine.create(function(PART)
  529. for i = 1, WAIT do
  530. Swait()
  531. mesh.Scale = mesh.Scale + GROW
  532. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  533. if DOESROT == true then
  534. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  535. end
  536. wave.Transparency = wave.Transparency + (0.5/WAIT)
  537. if wave.Transparency > 0.99 then
  538. wave:remove()
  539. end
  540. end
  541. end))
  542. end
  543.  
  544. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  545. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  546. local mesh = IT("SpecialMesh",wave)
  547. mesh.MeshType = "FileMesh"
  548. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  549. mesh.Scale = SIZE
  550. wave.CFrame = CFRAME
  551. coroutine.resume(coroutine.create(function(PART)
  552. for i = 1, WAIT do
  553. Swait()
  554. mesh.Scale = mesh.Scale + GROW
  555. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  556. if DOESROT == true then
  557. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  558. end
  559. wave.Transparency = wave.Transparency + (0.5/WAIT)
  560. if wave.Transparency > 0.99 then
  561. wave:remove()
  562. end
  563. end
  564. end))
  565. end
  566.  
  567. function CreateTornado(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  568. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  569. local mesh = IT("SpecialMesh",wave)
  570. mesh.MeshType = "FileMesh"
  571. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  572. mesh.Scale = SIZE
  573. wave.CFrame = CFRAME
  574. coroutine.resume(coroutine.create(function(PART)
  575. for i = 1, WAIT do
  576. Swait()
  577. mesh.Scale = mesh.Scale + GROW
  578. if DOESROT == true then
  579. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  580. end
  581. wave.Transparency = wave.Transparency + (0.5/WAIT)
  582. if wave.Transparency > 0.99 then
  583. wave:remove()
  584. end
  585. end
  586. end))
  587. end
  588.  
  589. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  590. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  591. local mesh = IT("SpecialMesh",wave)
  592. mesh.MeshType = "FileMesh"
  593. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  594. mesh.Scale = SIZE
  595. mesh.Offset = VT(0,0,0)
  596. wave.CFrame = CFRAME
  597. coroutine.resume(coroutine.create(function(PART)
  598. for i = 1, WAIT do
  599. Swait()
  600. mesh.Scale = mesh.Scale + GROW
  601. if DOESROT == true then
  602. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  603. end
  604. wave.Transparency = wave.Transparency + (0.5/WAIT)
  605. if wave.Transparency > 0.99 then
  606. wave:remove()
  607. end
  608. end
  609. end))
  610. end
  611.  
  612. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  613. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  614. local mesh = IT("SpecialMesh",wave)
  615. mesh.MeshType = "Sphere"
  616. mesh.Scale = SIZE
  617. mesh.Offset = VT(0,0,0)
  618. wave.CFrame = CFRAME
  619. coroutine.resume(coroutine.create(function(PART)
  620. for i = 1, WAIT do
  621. Swait()
  622. mesh.Scale = mesh.Scale + GROW
  623. wave.Transparency = wave.Transparency + (1/WAIT)
  624. if wave.Transparency > 0.99 then
  625. wave:remove()
  626. end
  627. end
  628. end))
  629. return wave
  630. end
  631.  
  632. function MagicBlock(SIZE,WAIT,CFRAME,COLOR,GROW)
  633. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true)
  634. local mesh = IT("BlockMesh",wave)
  635. wave.CFrame = CFRAME
  636. coroutine.resume(coroutine.create(function(PART)
  637. for i = 1, WAIT do
  638. Swait()
  639. mesh.Scale = mesh.Scale + GROW
  640. wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
  641. wave.Transparency = wave.Transparency + (1/WAIT)
  642. if wave.Transparency > 0.99 then
  643. wave:remove()
  644. end
  645. end
  646. end))
  647. end
  648.  
  649. function MakeForm(PART,TYPE)
  650. if TYPE == "Cyl" then
  651. local MSH = IT("CylinderMesh",PART)
  652. elseif TYPE == "Ball" then
  653. local MSH = IT("SpecialMesh",PART)
  654. MSH.MeshType = "Sphere"
  655. elseif TYPE == "Wedge" then
  656. local MSH = IT("SpecialMesh",PART)
  657. MSH.MeshType = "Wedge"
  658. end
  659. end
  660.  
  661. function CheckTableForString(Table, String)
  662. for i, v in pairs(Table) do
  663. if string.find(string.lower(String), string.lower(v)) then
  664. return true
  665. end
  666. end
  667. return false
  668. end
  669.  
  670. function CheckIntangible(Hit)
  671. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  672. if Hit and Hit.Parent then
  673. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  674. return true
  675. end
  676. end
  677. return false
  678. end
  679.  
  680. Debris = game:GetService("Debris")
  681.  
  682. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  683. local Direction = CFrame.new(StartPos, Vec).lookVector
  684. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  685. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  686. if RayHit and CheckIntangible(RayHit) then
  687. if DelayIfHit then
  688. wait()
  689. end
  690. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  691. end
  692. return RayHit, RayPos, RayNormal
  693. end
  694.  
  695. function turnto(position)
  696. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  697. end
  698.  
  699. --//=================================\\
  700. --|| SPEECH
  701. --\\=================================//
  702.  
  703. function chatfunc(text,waitt)
  704. local chat = coroutine.wrap(function()
  705. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  706. Character:FindFirstChild("TalkingBillBoard"):destroy()
  707. end
  708. local naeeym2 = Instance.new("BillboardGui",Character)
  709. naeeym2.Size = UDim2.new(0,100,0,40)
  710. naeeym2.StudsOffset = Vector3.new(0,5,0)
  711. naeeym2.Adornee = Character.Head
  712. naeeym2.Name = "TalkingBillBoard"
  713. naeeym2.AlwaysOnTop = true
  714. local tecks2 = Instance.new("TextLabel",naeeym2)
  715. tecks2.BackgroundTransparency = 1
  716. tecks2.BorderSizePixel = 0
  717. tecks2.Text = ""
  718. tecks2.Font = "SciFi"
  719. tecks2.TextSize = 30
  720. tecks2.TextStrokeTransparency = 1
  721. tecks2.TextColor3 = SKILLTEXTCOLOR
  722. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  723. tecks2.Size = UDim2.new(1,0,0.5,0)
  724. for i = 1,string.len(text),1 do
  725. tecks2.Text = string.sub(text,1,i)
  726. Swait()
  727. end
  728. wait(waitt)
  729. coroutine.resume(coroutine.create(function()
  730. for i = 1, 10 do
  731. tecks2.TextTransparency = tecks2.TextTransparency + 0.1
  732. Swait()
  733. end
  734. naeeym2:Destroy()
  735. end))
  736. end)
  737. chat()
  738. end
  739.  
  740. --//=================================\\
  741. --|| WEAPON CREATION
  742. --\\=================================//
  743.  
  744. for _, c in pairs(Weapon:GetChildren()) do
  745. if c.ClassName == "Part" then
  746. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  747. end
  748. end
  749.  
  750. Weapon.Parent = Character
  751.  
  752. Humanoid.Died:connect(function()
  753. ATTACK = true
  754. end)
  755.  
  756. local MANA = 0
  757. local MAXMANA = 600
  758.  
  759. print(Class_Name.." loaded.")
  760.  
  761. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  762. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  763. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  764.  
  765. local MANABAR = 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),"Mana Bar")
  766. local MANACOVER = CreateFrame(MANABAR, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(0,0,0), C3(0, 0, 0),"Mana Cover")
  767. local MANATEXT = CreateLabel(MANABAR, "ENERGY ["..FLOOR(MANA).."]", C3(1, 1, 1), "Size32", "SciFi", 1, 2, 1, "Mana Text")
  768.  
  769. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Blood arrow", SKILLTEXTCOLOR, 6, "Legacy", 0, 2, 1, "Text 1")
  770. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Blood pillar", SKILLTEXTCOLOR, 6, "Legacy", 0, 2, 1, "Text 2")
  771. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[V] Violence", SKILLTEXTCOLOR, 6, "Legacy", 0, 2, 1, "Text 3")
  772. SKILL3TEXT.TextTransparency = 1
  773.  
  774. --//=================================\\
  775. --|| DAMAGE FUNCTIONS
  776. --\\=================================//
  777.  
  778. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  779. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  780. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  781. local BODYGYRO = IT("BodyGyro", STATPART)
  782. local BODYPOSITION = IT("BodyPosition", STATPART)
  783. BODYPOSITION.P = 2000
  784. BODYPOSITION.D = 100
  785. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  786. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  787. game:GetService("Debris"):AddItem(STATPART ,5)
  788. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  789. BILLBOARDGUI.Adornee = STATPART
  790. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  791. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  792. BILLBOARDGUI.AlwaysOnTop = false
  793. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  794. TEXTLABEL.BackgroundTransparency = 1
  795. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  796. TEXTLABEL.Text = TEXT
  797. TEXTLABEL.Font = "SciFi"
  798. TEXTLABEL.FontSize="Size42"
  799. TEXTLABEL.TextColor3 = COLOR
  800. TEXTLABEL.TextStrokeTransparency = 1
  801. TEXTLABEL.TextScaled = true
  802. TEXTLABEL.TextWrapped = true
  803. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  804. if LABELTYPE == "Normal" then
  805. for i = 1, 20 do
  806. STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
  807. TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/20)
  808. end
  809. elseif LABELTYPE == "Debuff" then
  810. for i = 1, 20 do
  811. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  812. TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/20)
  813. end
  814. elseif LABELTYPE == "Shock" then
  815. local ORIGIN = STATPART.Position
  816. for i = 1, 20 do
  817. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  818. TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/20)
  819. end
  820. end
  821. THEPART.Parent = nil
  822. end),STATPART, BODYPOSITION, TEXTLABEL)
  823. end
  824.  
  825.  
  826. --//=================================\\
  827. --|| DAMAGING
  828. --\\=================================//
  829.  
  830. function AddMana(amount)
  831. MANA = MANA + amount
  832. end
  833.  
  834. function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping,DoesPoison)
  835. local dmg = math.random(min,max)
  836. for i,v in ipairs(workspace:GetChildren()) do
  837. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  838. local body = v:GetChildren()
  839. for part = 1, #body do
  840. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  841. if(body[part].Position - position).Magnitude < radius then
  842. if v.ClassName == "Model" then
  843. if v:FindFirstChild("Humanoid") then
  844. if v.Humanoid.Health ~= 0 then
  845. if CanBeDodgedByJumping == true then
  846. if body[part].Position.Y < position.Y+5 then
  847. if math.random(1,100) < critrate+1 then
  848. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  849. AddMana(dmg*critmultiplier)
  850. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  851. else
  852. v.Humanoid.Health = v.Humanoid.Health - dmg
  853. AddMana(dmg)
  854. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  855. end
  856. local defence = Instance.new("BoolValue",v)
  857. defence.Name = ("HitBy"..Player.Name)
  858. game:GetService("Debris"):AddItem(defence, 0.005)
  859. end
  860. else
  861. if beserk == true then
  862. v.Humanoid.Health = 0
  863. end
  864. if math.random(1,100) < critrate+1 then
  865. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  866. AddMana(dmg*critmultiplier)
  867. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  868. else
  869. v.Humanoid.Health = v.Humanoid.Health - dmg
  870. AddMana(dmg)
  871. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  872. end
  873. local defence = Instance.new("BoolValue",v)
  874. defence.Name = ("HitBy"..Player.Name)
  875. game:GetService("Debris"):AddItem(defence, 0.005)
  876. end
  877. end
  878. end
  879. end
  880. if DoesPoison == true then
  881. if v:FindFirstChildOfClass("Humanoid") then
  882. Poison(v:FindFirstChildOfClass("Humanoid"),MRANDOM(7,23)*2,1)
  883. end
  884. end
  885. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  886. end
  887. end
  888. end
  889. if v.ClassName == "Part" then
  890. if v.Anchored == false and (v.Position - position).Magnitude < radius then
  891. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  892. end
  893. end
  894. end
  895. end
  896. end
  897.  
  898. function Poison(HUMANOID,LAST,DAMAGE)
  899. if HUMANOID.Parent:FindFirstChild("PoisonedBy"..Player.Name) == nil then
  900. local defence = Instance.new("BoolValue",HUMANOID.Parent)
  901. defence.Name = ("PoisonedBy"..Player.Name)
  902. game:GetService("Debris"):AddItem(defence, LAST)
  903. coroutine.resume(coroutine.create(function()
  904. for i = 1, LAST/2 do
  905. if HUMANOID.Parent:FindFirstChild("Head") then
  906. StatLabel("Normal", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "POISON/"..DAMAGE, C3(0,1,0))
  907. end
  908. Swait(2)
  909. AddMana(DAMAGE)
  910. HUMANOID.Health = HUMANOID.Health - DAMAGE
  911. end
  912. end))
  913. end
  914. end
  915.  
  916. --//=================================\\
  917. --|| ATTACK FUNCTIONS AND STUFF
  918. --\\=================================//
  919.  
  920. function clerp(a, b, t)
  921. return a:lerp(b, t)
  922. end
  923.  
  924. function newBezier(startpos, pos2, pos3, endpos, t)
  925. local A = clerp(startpos, pos2, t)
  926. local B = clerp(pos2, pos3, t)
  927. local C = clerp(pos3, endpos, t)
  928. local lerp1 = clerp(A, B, t)
  929. local lerp2 = clerp(B, C, t)
  930. local cubic = clerp(lerp1, lerp2, t)
  931. return cubic
  932. end
  933.  
  934. function BloodArrow(Target)
  935. ATTACK = true
  936. local newball = Instance.new("Part", workspace)
  937. newball.Anchored = true
  938. newball.Shape = "Ball"
  939. newball.Material = "Neon"
  940. newball.Size = Vector3.new(0,0,0)
  941. newball.CanCollide = false
  942. newball.CFrame = CF(Target)
  943. newball.BrickColor = BRICKC"Cyan"
  944. newball.Transparency = 1
  945. local POS = Mouse.Hit.p
  946. local onefourth = Target:Lerp(POS, 0.25) + Vector3.new(0,0,0)
  947. local threefourths = Target:Lerp(POS, 0.75) + Vector3.new(0,0,0)
  948. local A1 = IT("Attachment",newball)
  949. A1.Position = Vector3.new(0, 0.5, 0)
  950. local A2 = IT("Attachment",newball)
  951. A2.Position = Vector3.new(0, -0.5, 0)
  952. local Trail = IT("Trail",newball)
  953. Trail.LightEmission = 1
  954. Trail.FaceCamera = true
  955. Trail.Texture = "rbxassetid://945758042"
  956. Trail.Attachment0 = A1
  957. Trail.Attachment1 = A2
  958. Trail.Lifetime = 2
  959. Trail.MinLength = 0
  960. Trail.Transparency = NumberSequence.new(0, 1)
  961. Trail.Color = ColorSequence.new(newball.Color)
  962. coroutine.resume(coroutine.create(function()
  963. for i = 0, 1, 0.07 do
  964. Swait()
  965. newball.CFrame = CFrame.new(newBezier(Target, onefourth, threefourths, POS, i))
  966. end
  967. newball.Transparency = 1
  968. CreateSound("514867425", newball, 3, 1)
  969. AoEDamage(newball.Position,5,15,25,5,false,2,2,false,false)
  970. MagicSphere(VT(22,22,22),55,newball.CFrame,"Cyan",VT(0.2,0.2,0.2))
  971. MagicSphere(VT(20,20,20),55,newball.CFrame,"Pearl",VT(0.2,0.2,0.2))
  972. game:GetService("Debris"):AddItem(newball, 5)
  973. end))
  974. ATTACK = false
  975. end
  976.  
  977. function BloodPillar()
  978. ATTACK = true
  979. coroutine.resume(coroutine.create(function()
  980. local CFRAME = CF(Mouse.Hit.p)
  981. MagicSphere(VT(15,6500,15),55,CF(Mouse.Hit.p),"Cyan",VT(-15/55,0,-15/55))
  982. MagicSphere(VT(14,6500,14),55,CF(Mouse.Hit.p),"Pearl",VT(-14/55,0,-14/55))
  983. Swait(55)
  984. AoEDamage(Mouse.Hit.p,5,15,25,5,false,2,2,false,false)
  985. local aaaa = MagicSphere(VT(22,22,22),55,CFRAME,"Cyan",VT(0.2,0.2,0.2))
  986. MagicSphere(VT(20,20,20),55,CFRAME,"Pearl",VT(0.2,0.2,0.2))
  987. CreateSound("514867425", aaaa, 3, 1)
  988. end))
  989. ATTACK = false
  990. end
  991.  
  992. function Violence()
  993. ATTACK = true
  994. coroutine.resume(coroutine.create(function()
  995. local CFRAME = CF(Mouse.Hit.p)
  996. MagicSphere(VT(35,6500,35),155,CF(Mouse.Hit.p),"Cyan",VT(-35/155,0,-35/155))
  997. MagicSphere(VT(34,6500,34),155,CF(Mouse.Hit.p),"Pearl",VT(-34/155,0,-34/155))
  998. Swait(155)
  999. AoEDamage(Mouse.Hit.p,65,1500,2500,45,false,2,2,false,false)
  1000. local aaaa = MagicSphere(VT(62,62,62),155,CFRAME,"Cyan",VT(2,2,2))
  1001. MagicSphere(VT(60,60,60),155,CFRAME,"Pearl",VT(2,2,2))
  1002. CreateSound("514867425", aaaa, 16, 0.85)
  1003. MANA = 0
  1004. end))
  1005. ATTACK = false
  1006. end
  1007.  
  1008. --//=================================\\
  1009. --|| ASSIGN THINGS TO KEYS
  1010. --\\=================================//
  1011.  
  1012. function MouseDown(Mouse)
  1013. if ATTACK == false then
  1014. end
  1015. end
  1016.  
  1017. function MouseUp(Mouse)
  1018. HOLD = false
  1019. end
  1020.  
  1021. function KeyDown(Key)
  1022. KEYHOLD = true
  1023. if Key == "z" and ATTACK == false then
  1024. BloodArrow(Torso.CFrame*CF(0,1,0).p)
  1025. end
  1026.  
  1027. if Key == "b" and ATTACK == false then
  1028. BloodPillar()
  1029. end
  1030.  
  1031. if Key == "v" and ATTACK == false and MANA >= MAXMANA then
  1032. Violence()
  1033. end
  1034. end
  1035.  
  1036. function KeyUp(Key)
  1037. KEYHOLD = false
  1038. end
  1039.  
  1040. Mouse.Button1Down:connect(function(NEWKEY)
  1041. MouseDown(NEWKEY)
  1042. end)
  1043. Mouse.Button1Up:connect(function(NEWKEY)
  1044. MouseUp(NEWKEY)
  1045. end)
  1046. Mouse.KeyDown:connect(function(NEWKEY)
  1047. KeyDown(NEWKEY)
  1048. end)
  1049. Mouse.KeyUp:connect(function(NEWKEY)
  1050. KeyUp(NEWKEY)
  1051. end)
  1052.  
  1053. --//=================================\\
  1054. --\\=================================//
  1055.  
  1056.  
  1057. function unanchor()
  1058. if UNANCHOR == true then
  1059. g = Character:GetChildren()
  1060. for i = 1, #g do
  1061. if g[i].ClassName == "Part" then
  1062. g[i].Anchored = false
  1063. end
  1064. end
  1065. end
  1066. end
  1067.  
  1068.  
  1069. --//=================================\\
  1070. --|| WRAP THE WHOLE SCRIPT UP
  1071. --\\=================================//
  1072.  
  1073. Humanoid.Changed:connect(function(Jump)
  1074. if Jump == "Jump" and (Disable_Jump == true) then
  1075. Humanoid.Jump = false
  1076. end
  1077. end)
  1078.  
  1079. while true do
  1080. Swait()
  1081. ANIMATE.Parent = nil
  1082. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1083. IDLEANIMATION:Play()
  1084. SINE = SINE + CHANGE
  1085. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1086. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1087. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1088. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1089. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1090. if TORSOVELOCITY < 1 then
  1091. ANIM = "Idle"
  1092. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.3 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1093. 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)
  1094. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1095. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1096. 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)
  1097. 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)
  1098. elseif TORSOVELOCITY > 1 then
  1099. ANIM = "Walk"
  1100. WALK = WALK + 1 / Animation_Speed
  1101. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1102. WALK = 0
  1103. if WALKINGANIM == true then
  1104. WALKINGANIM = false
  1105. elseif WALKINGANIM == false then
  1106. WALKINGANIM = true
  1107. end
  1108. end
  1109. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1110. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1111. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.3 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1112. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-7.5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1113. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1114. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1115. 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)
  1116. 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)
  1117. end
  1118. if #Effects2>0 then
  1119. for e=1,#Effects2 do
  1120. if Effects2[e]~=nil then
  1121. local Thing=Effects2[e]
  1122. if Thing~=nil then
  1123. local Part=Thing[1]
  1124. local Mode=Thing[2]
  1125. local Delay=Thing[3]
  1126. local IncX=Thing[4]
  1127. local IncY=Thing[5]
  1128. local IncZ=Thing[6]
  1129. local Part2=Thing[8]
  1130. if Thing[1].Transparency<=1 then
  1131. if Thing[2]=="Block1" then
  1132. Thing[1].CFrame=Thing[1].CFrame
  1133. Mesh=Thing[1].Mesh
  1134. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1135. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1136. elseif Thing[2]=="Cylinder" then
  1137. Mesh=Thing[1].Mesh
  1138. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1139. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1140. elseif Thing[2]=="Blood" then
  1141. Mesh=Thing[7]
  1142. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1143. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1144. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1145. elseif Thing[2]=="Elec" then
  1146. Mesh=Thing[1].Mesh
  1147. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1148. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1149. elseif Thing[2]=="Disappear" then
  1150. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1151. end
  1152. else
  1153. Part.Parent=nil
  1154. table.remove(Effects2,e)
  1155. end
  1156. end
  1157. end
  1158. end
  1159. end
  1160. unanchor()
  1161. Humanoid.MaxHealth = "inf"
  1162. Humanoid.Health = "inf"
  1163. if Rooted == false then
  1164. Disable_Jump = false
  1165. Humanoid.WalkSpeed = Speed
  1166. elseif Rooted == true then
  1167. Disable_Jump = true
  1168. Humanoid.WalkSpeed = 0
  1169. end
  1170. if Head:FindFirstChild("face") then
  1171. Head.face:remove()
  1172. end
  1173. if Head:FindFirstChildOfClass("Sound") then
  1174. Head:FindFirstChildOfClass("Sound"):remove()
  1175. end
  1176. MANACOVER:TweenSize(UD2(1 * (MANA / MAXMANA), 0, 1, 0), "Out", "Quad", 0.1, 0.1)
  1177. MANATEXT.Text = "ENERGY ["..FLOOR(MANA).."]"
  1178. if MANA >= MAXMANA then
  1179. MANACOVER.Transparency = 1
  1180. SKILL3TEXT.TextTransparency = 0
  1181. else
  1182. MANACOVER.Transparency = 0
  1183. SKILL3TEXT.TextTransparency = 1
  1184. end
  1185. end
  1186.  
  1187. --//=================================\\
  1188. --\\=================================//
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194. --//====================================================\\--
  1195. --|| END OF SCRIPT
  1196. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement