Advertisement
Marcsosa

Untitled

Mar 9th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.36 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.  
  32. IT = Instance.new
  33. CF = CFrame.new
  34. VT = Vector3.new
  35. RAD = math.rad
  36. C3 = Color3.new
  37. UD2 = UDim2.new
  38. BRICKC = BrickColor.new
  39. ANGLES = CFrame.Angles
  40. EULER = CFrame.fromEulerAnglesXYZ
  41. COS = math.cos
  42. ACOS = math.acos
  43. SIN = math.sin
  44. ASIN = math.asin
  45. ABS = math.abs
  46. MRANDOM = math.random
  47. FLOOR = math.floor
  48.  
  49. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  50. local NEWMESH = IT(MESH)
  51. if MESH == "SpecialMesh" then
  52. NEWMESH.MeshType = MESHTYPE
  53. if MESHID ~= "nil" and MESHID ~= "" then
  54. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  55. end
  56. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  57. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  58. end
  59. end
  60. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  61. NEWMESH.Scale = SCALE
  62. NEWMESH.Parent = PARENT
  63. return NEWMESH
  64. end
  65.  
  66. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  67. local NEWPART = IT("Part")
  68. NEWPART.formFactor = FORMFACTOR
  69. NEWPART.Reflectance = REFLECTANCE
  70. NEWPART.Transparency = TRANSPARENCY
  71. NEWPART.CanCollide = false
  72. NEWPART.Locked = true
  73. NEWPART.Anchored = true
  74. if ANCHOR == false then
  75. NEWPART.Anchored = false
  76. end
  77. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  78. NEWPART.Name = NAME
  79. NEWPART.Size = SIZE
  80. NEWPART.Position = Torso.Position
  81. NEWPART.Material = MATERIAL
  82. NEWPART:BreakJoints()
  83. NEWPART.Parent = PARENT
  84. return NEWPART
  85. end
  86.  
  87. --//=================================\\
  88. --|| CUSTOMIZATION
  89. --\\=================================//
  90.  
  91. Class_Name = "Immortal curse"
  92. Weapon_Name = "Add-ons"
  93.  
  94. Custom_Colors = {
  95. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  96. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  97.  
  98. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  99. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  100. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  101. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  102. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  103.  
  104. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  105. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  106. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  107. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  108. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  109. }
  110.  
  111.  
  112. Player_Size = 1 --Size of the player.
  113. Animation_Speed = 3
  114. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  115.  
  116. local Speed = 16
  117. local Effects2 = {}
  118.  
  119. --//=================================\\
  120. --|| END OF CUSTOMIZATION
  121. --\\=================================//
  122.  
  123. local function weldBetween(a, b)
  124. local weldd = Instance.new("ManualWeld")
  125. weldd.Part0 = a
  126. weldd.Part1 = b
  127. weldd.C0 = CFrame.new()
  128. weldd.C1 = b.CFrame:inverse() * a.CFrame
  129. weldd.Parent = a
  130. return weldd
  131. end
  132.  
  133. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  134. local acs = Instance.new("Part")
  135. acs.CanCollide = false
  136. acs.Anchored = false
  137. acs.Size = Vector3.new(0,0,0)
  138. acs.CFrame = attachmentpart.CFrame
  139. acs.Parent = Character
  140. acs.BrickColor = color
  141. local meshs = Instance.new("SpecialMesh")
  142. meshs.MeshId = mesh
  143. meshs.TextureId = texture
  144. meshs.Parent = acs
  145. meshs.Scale = scale
  146. meshs.Offset = offset
  147. weldBetween(attachmentpart,acs)
  148. end
  149.  
  150. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  151. if TYPE == "Gem" then
  152. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  153. acs.Anchored = false
  154. acs.CanCollide = false
  155. acs.CFrame = PART.CFrame
  156. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  157. weldBetween(PART,acs)
  158. elseif TYPE == "Skull" 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", "4770583", "", SIZE, OFFSET)
  164. weldBetween(PART,acs)
  165. elseif TYPE == "Eye" then
  166. local acs = CreatePart(3, Character, "Neon", 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, "Sphere", "", "", SIZE, OFFSET)
  171. weldBetween(PART,acs)
  172. end
  173. end
  174.  
  175. --//=================================\\
  176. --|| USEFUL VALUES
  177. --\\=================================//
  178.  
  179. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  180. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  181. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  182. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  183. local CHANGEDEFENSE = 0
  184. local CHANGEDAMAGE = 0
  185. local CHANGEMOVEMENT = 0
  186. local ANIM = "Idle"
  187. local ATTACK = false
  188. local EQUIPPED = false
  189. local HOLD = false
  190. local COMBO = 1
  191. local Rooted = false
  192. local SINE = 0
  193. local KEYHOLD = false
  194. local CHANGE = 2 / Animation_Speed
  195. local WALKINGANIM = false
  196. local WALK = 0
  197. local VALUE1 = false
  198. local VALUE2 = false
  199. local ROBLOXIDLEANIMATION = IT("Animation")
  200. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  201. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  202. --ROBLOXIDLEANIMATION.Parent = Humanoid
  203. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  204. WEAPONGUI.Name = "Weapon GUI"
  205. local Weapon = IT("Model")
  206. Weapon.Name = Weapon_Name
  207. local Effects = IT("Folder", Weapon)
  208. Effects.Name = "Effects"
  209. local ANIMATOR = Humanoid.Animator
  210. local ANIMATE = Character.Animate
  211. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  212. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  213. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  214. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  215. local UNANCHOR = true
  216.  
  217. local SKILLTEXTCOLOR = C3(0,0,0)
  218.  
  219. --//=================================\\
  220. --\\=================================//
  221.  
  222.  
  223. --//=================================\\
  224. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  225. --\\=================================//
  226.  
  227. ArtificialHB = Instance.new("BindableEvent", script)
  228. ArtificialHB.Name = "ArtificialHB"
  229.  
  230. script:WaitForChild("ArtificialHB")
  231.  
  232. frame = Frame_Speed
  233. tf = 0
  234. allowframeloss = false
  235. tossremainder = false
  236. lastframe = tick()
  237. script.ArtificialHB:Fire()
  238.  
  239. game:GetService("RunService").Heartbeat:connect(function(s, p)
  240. tf = tf + s
  241. if tf >= frame then
  242. if allowframeloss then
  243. script.ArtificialHB:Fire()
  244. lastframe = tick()
  245. else
  246. for i = 1, math.floor(tf / frame) do
  247. script.ArtificialHB:Fire()
  248. end
  249. lastframe = tick()
  250. end
  251. if tossremainder then
  252. tf = 0
  253. else
  254. tf = tf - frame * math.floor(tf / frame)
  255. end
  256. end
  257. end)
  258.  
  259. --//=================================\\
  260. --\\=================================//
  261.  
  262.  
  263.  
  264.  
  265.  
  266. --//=================================\\
  267. --|| SOME FUNCTIONS
  268. --\\=================================//
  269.  
  270. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  271. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  272. end
  273.  
  274. function PositiveAngle(NUMBER)
  275. if NUMBER >= 0 then
  276. NUMBER = 0
  277. end
  278. return NUMBER
  279. end
  280.  
  281. function NegativeAngle(NUMBER)
  282. if NUMBER <= 0 then
  283. NUMBER = 0
  284. end
  285. return NUMBER
  286. end
  287.  
  288. function Swait(NUMBER)
  289. if NUMBER == 0 or NUMBER == nil then
  290. ArtificialHB.Event:wait()
  291. else
  292. for i = 1, NUMBER do
  293. ArtificialHB.Event:wait()
  294. end
  295. end
  296. end
  297.  
  298. function QuaternionFromCFrame(cf)
  299. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  300. local trace = m00 + m11 + m22
  301. if trace > 0 then
  302. local s = math.sqrt(1 + trace)
  303. local recip = 0.5 / s
  304. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  305. else
  306. local i = 0
  307. if m11 > m00 then
  308. i = 1
  309. end
  310. if m22 > (i == 0 and m00 or m11) then
  311. i = 2
  312. end
  313. if i == 0 then
  314. local s = math.sqrt(m00 - m11 - m22 + 1)
  315. local recip = 0.5 / s
  316. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  317. elseif i == 1 then
  318. local s = math.sqrt(m11 - m22 - m00 + 1)
  319. local recip = 0.5 / s
  320. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  321. elseif i == 2 then
  322. local s = math.sqrt(m22 - m00 - m11 + 1)
  323. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  324. end
  325. end
  326. end
  327.  
  328. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  329. local xs, ys, zs = x + x, y + y, z + z
  330. local wx, wy, wz = w * xs, w * ys, w * zs
  331. local xx = x * xs
  332. local xy = x * ys
  333. local xz = x * zs
  334. local yy = y * ys
  335. local yz = y * zs
  336. local zz = z * zs
  337. 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))
  338. end
  339.  
  340. function QuaternionSlerp(a, b, t)
  341. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  342. local startInterp, finishInterp;
  343. if cosTheta >= 0.0001 then
  344. if (1 - cosTheta) > 0.0001 then
  345. local theta = ACOS(cosTheta)
  346. local invSinTheta = 1 / SIN(theta)
  347. startInterp = SIN((1 - t) * theta) * invSinTheta
  348. finishInterp = SIN(t * theta) * invSinTheta
  349. else
  350. startInterp = 1 - t
  351. finishInterp = t
  352. end
  353. else
  354. if (1 + cosTheta) > 0.0001 then
  355. local theta = ACOS(-cosTheta)
  356. local invSinTheta = 1 / SIN(theta)
  357. startInterp = SIN((t - 1) * theta) * invSinTheta
  358. finishInterp = SIN(t * theta) * invSinTheta
  359. else
  360. startInterp = t - 1
  361. finishInterp = t
  362. end
  363. end
  364. 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
  365. end
  366.  
  367. function Clerp(a, b, t)
  368. local qa = {QuaternionFromCFrame(a)}
  369. local qb = {QuaternionFromCFrame(b)}
  370. local ax, ay, az = a.x, a.y, a.z
  371. local bx, by, bz = b.x, b.y, b.z
  372. local _t = 1 - t
  373. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  374. end
  375.  
  376. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  377. local frame = IT("Frame")
  378. frame.BackgroundTransparency = TRANSPARENCY
  379. frame.BorderSizePixel = BORDERSIZEPIXEL
  380. frame.Position = POSITION
  381. frame.Size = SIZE
  382. frame.BackgroundColor3 = COLOR
  383. frame.BorderColor3 = BORDERCOLOR
  384. frame.Name = NAME
  385. frame.Parent = PARENT
  386. return frame
  387. end
  388.  
  389. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  390. local label = IT("TextLabel")
  391. label.BackgroundTransparency = 1
  392. label.Size = UD2(1, 0, 1, 0)
  393. label.Position = UD2(0, 0, 0, 0)
  394. label.TextColor3 = TEXTCOLOR
  395. label.TextStrokeTransparency = STROKETRANSPARENCY
  396. label.TextTransparency = TRANSPARENCY
  397. label.FontSize = TEXTFONTSIZE
  398. label.Font = TEXTFONT
  399. label.BorderSizePixel = BORDERSIZEPIXEL
  400. label.TextScaled = false
  401. label.Text = TEXT
  402. label.Name = NAME
  403. label.Parent = PARENT
  404. return label
  405. end
  406.  
  407. function NoOutlines(PART)
  408. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  409. end
  410.  
  411.  
  412. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  413. local NEWWELD = IT(TYPE)
  414. NEWWELD.Part0 = PART0
  415. NEWWELD.Part1 = PART1
  416. NEWWELD.C0 = C0
  417. NEWWELD.C1 = C1
  418. NEWWELD.Parent = PARENT
  419. return NEWWELD
  420. end
  421.  
  422. function CreateSound(ID, PARENT, VOLUME, PITCH)
  423. local NEWSOUND = nil
  424. coroutine.resume(coroutine.create(function()
  425. NEWSOUND = IT("Sound", PARENT)
  426. NEWSOUND.Volume = VOLUME
  427. NEWSOUND.Pitch = PITCH
  428. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  429. Swait()
  430. NEWSOUND:play()
  431. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  432. end))
  433. return NEWSOUND
  434. end
  435.  
  436. function CFrameFromTopBack(at, top, back)
  437. local right = top:Cross(back)
  438. 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)
  439. end
  440.  
  441. function CreateWave(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
  442. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  443. local mesh = IT("SpecialMesh",wave)
  444. mesh.MeshType = "FileMesh"
  445. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  446. mesh.Scale = VT(size,size,size)
  447. mesh.Offset = VT(0,0,-size/8)
  448. wave.CFrame = cframe
  449. coroutine.resume(coroutine.create(function(PART)
  450. for i = 1, waitt do
  451. Swait()
  452. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  453. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  454. if doesrotate == true then
  455. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  456. end
  457. wave.Transparency = wave.Transparency + (0.5/waitt)
  458. if wave.Transparency > 0.99 then
  459. wave:remove()
  460. end
  461. end
  462. end))
  463. end
  464.  
  465. function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
  466. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  467. local mesh = IT("SpecialMesh",wave)
  468. mesh.MeshType = "FileMesh"
  469. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  470. mesh.Scale = VT(size,size,size)
  471. wave.CFrame = cframe
  472. coroutine.resume(coroutine.create(function(PART)
  473. for i = 1, waitt do
  474. Swait()
  475. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  476. if doesrotate == true then
  477. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  478. end
  479. wave.Transparency = wave.Transparency + (0.5/waitt)
  480. if wave.Transparency > 0.99 then
  481. wave:remove()
  482. end
  483. end
  484. end))
  485. end
  486.  
  487. function MakeForm(PART,TYPE)
  488. if TYPE == "Cyl" then
  489. local MSH = IT("CylinderMesh",PART)
  490. elseif TYPE == "Ball" then
  491. local MSH = IT("SpecialMesh",PART)
  492. MSH.MeshType = "Sphere"
  493. elseif TYPE == "Wedge" then
  494. local MSH = IT("SpecialMesh",PART)
  495. MSH.MeshType = "Wedge"
  496. end
  497. end
  498.  
  499. function CreateTornado(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
  500. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  501. local mesh = IT("SpecialMesh",wave)
  502. mesh.MeshType = "FileMesh"
  503. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  504. mesh.Scale = VT(size,size,size)
  505. wave.CFrame = cframe
  506. coroutine.resume(coroutine.create(function(PART)
  507. for i = 1, waitt do
  508. Swait()
  509. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  510. if doesrotate == true then
  511. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  512. end
  513. wave.Transparency = wave.Transparency + (0.5/waitt)
  514. if wave.Transparency > 0.99 then
  515. wave:remove()
  516. end
  517. end
  518. end))
  519. end
  520.  
  521. function CreateRing(inair,size,doesrotate,rotatedirection,waitt,cframe,spin1,spin2,color)
  522. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  523. local mesh = IT("SpecialMesh",wave)
  524. mesh.MeshType = "FileMesh"
  525. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  526. mesh.Scale = VT(size,size,size)
  527. mesh.Offset = VT(0,0,0)
  528. wave.CFrame = cframe
  529. coroutine.resume(coroutine.create(function(PART)
  530. for i = 1, waitt do
  531. Swait()
  532. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  533. if doesrotate == true then
  534. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1)
  535. end
  536. wave.Transparency = wave.Transparency + (0.5/waitt)
  537. if wave.Transparency > 0.99 then
  538. wave:remove()
  539. end
  540. end
  541. end))
  542. end
  543.  
  544. function MagicSphere(size,waitt,cframe,color)
  545. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1), true)
  546. local mesh = IT("SpecialMesh",wave)
  547. mesh.MeshType = "Sphere"
  548. mesh.Scale = VT(size,size,size)
  549. mesh.Offset = VT(0,0,0)
  550. wave.CFrame = cframe
  551. coroutine.resume(coroutine.create(function(PART)
  552. for i = 1, waitt do
  553. Swait()
  554. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  555. wave.Transparency = wave.Transparency + (1/waitt)
  556. if wave.Transparency > 0.99 then
  557. wave:remove()
  558. end
  559. end
  560. end))
  561. end
  562.  
  563. function MagicSphere2(size,waitt,cframe,color)
  564. local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1), true)
  565. local mesh = IT("SpecialMesh",wave)
  566. mesh.MeshType = "Sphere"
  567. mesh.Scale = VT(size,size,size)
  568. mesh.Offset = VT(0,0,0)
  569. wave.CFrame = cframe
  570. coroutine.resume(coroutine.create(function(PART)
  571. for i = 1, waitt do
  572. Swait()
  573. mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt)
  574. wave.Transparency = wave.Transparency - (1/waitt)
  575. end
  576. wave:remove()
  577. end))
  578. end
  579.  
  580. function MagicBlock(size,waitt,cframe,color)
  581. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(size,size,size), true)
  582. local mesh = IT("BlockMesh",wave)
  583. wave.CFrame = cframe
  584. coroutine.resume(coroutine.create(function(PART)
  585. for i = 1, waitt do
  586. Swait()
  587. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  588. wave.CFrame = cframe * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
  589. wave.Transparency = wave.Transparency + (1/waitt)
  590. if wave.Transparency > 0.99 then
  591. wave:remove()
  592. end
  593. end
  594. end))
  595. end
  596.  
  597. function MagicBlock2(size,waitt,cframe,color)
  598. local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(size,size,size), true)
  599. local mesh = IT("BlockMesh",wave)
  600. wave.CFrame = cframe
  601. coroutine.resume(coroutine.create(function(PART)
  602. for i = 1, waitt do
  603. Swait()
  604. mesh.Scale = mesh.Scale - VT(1/waitt,1/waitt,1/waitt)
  605. wave.CFrame = cframe * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
  606. wave.Transparency = wave.Transparency - (1/waitt)
  607. end
  608. wave:Destroy()
  609. end))
  610. end
  611.  
  612. function MagicBlock(size,waitt,cframe,color)
  613. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(size,size,size))
  614. local mesh = IT("BlockMesh",wave)
  615. wave.CFrame = cframe
  616. coroutine.resume(coroutine.create(function(PART)
  617. for i = 1, waitt do
  618. Swait()
  619. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  620. wave.CFrame = CF(wave.Position) * ANGLES(RAD(math(-360,360)),RAD(math(-360,360)),RAD(math(-360,360)))
  621. wave.Transparency = wave.Transparency + (1/waitt)
  622. if wave.Transparency > 0.99 then
  623. wave:remove()
  624. end
  625. end
  626. end))
  627. end
  628.  
  629. function CheckTableForString(Table, String)
  630. for i, v in pairs(Table) do
  631. if string.find(string.lower(String), string.lower(v)) then
  632. return true
  633. end
  634. end
  635. return false
  636. end
  637.  
  638. function CheckIntangible(Hit)
  639. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  640. if Hit and Hit.Parent then
  641. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  642. return true
  643. end
  644. end
  645. return false
  646. end
  647.  
  648. Debris = game:GetService("Debris")
  649.  
  650. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  651. local Direction = CFrame.new(StartPos, Vec).lookVector
  652. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  653. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  654. if RayHit and CheckIntangible(RayHit) then
  655. if DelayIfHit then
  656. wait()
  657. end
  658. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  659. end
  660. return RayHit, RayPos, RayNormal
  661. end
  662.  
  663. function turnto(position)
  664. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  665. end
  666.  
  667. --//=================================\\
  668. --|| WEAPON CREATION
  669. --\\=================================//
  670.  
  671. for _, c in pairs(Weapon:GetChildren()) do
  672. if c.ClassName == "Part" then
  673. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  674. end
  675. end
  676.  
  677. Weapon.Parent = Character
  678.  
  679. Humanoid.Died:connect(function()
  680. ATTACK = true
  681. end)
  682.  
  683. print(Class_Name.." loaded.")
  684.  
  685. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  686. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[X] Toggle [ON]", SKILLTEXTCOLOR, 8, "SciFi", 0, 2, 1, "Text 1")
  687.  
  688. --//=================================\\
  689. --|| DAMAGE FUNCTIONS
  690. --\\=================================//
  691.  
  692. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  693. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  694. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  695. local BODYGYRO = IT("BodyGyro", STATPART)
  696. local BODYPOSITION = IT("BodyPosition", STATPART)
  697. BODYPOSITION.P = 2000
  698. BODYPOSITION.D = 100
  699. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  700. if LABELTYPE == "Normal" then
  701. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  702. elseif LABELTYPE == "Debuff" then
  703. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2))
  704. elseif LABELTYPE == "Interruption" then
  705. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2))
  706. end
  707. game:GetService("Debris"):AddItem(STATPART ,5)
  708. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  709. BILLBOARDGUI.Adornee = STATPART
  710. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  711. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  712. BILLBOARDGUI.AlwaysOnTop = false
  713. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  714. TEXTLABEL.BackgroundTransparency = 1
  715. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  716. TEXTLABEL.Text = TEXT
  717. TEXTLABEL.Font = "SciFi"
  718. TEXTLABEL.FontSize="Size42"
  719. TEXTLABEL.TextColor3 = COLOR
  720. TEXTLABEL.TextStrokeTransparency = 1
  721. TEXTLABEL.TextScaled = true
  722. TEXTLABEL.TextWrapped = true
  723. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  724. wait(0.2)
  725. for i=1, 5 do
  726. wait()
  727. THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0)
  728. end
  729. wait(1.2)
  730. for i=1, 5 do
  731. wait()
  732. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
  733. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
  734. THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0)
  735. end
  736. THEPART.Parent = nil
  737. end),STATPART, BODYPOSITION, TEXTLABEL)
  738. end
  739.  
  740.  
  741. --//=================================\\
  742. --|| DAMAGING
  743. --\\=================================//
  744.  
  745. function GoDeeper(object,position,range,maxstrength,hasdugdeep)
  746. if object ~= Character and object~= Effects then
  747. local body = object:GetChildren()
  748. for part = 1, #body do
  749. if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") then
  750. if (body[part].Position - position).Magnitude < range then
  751. if body[part]:FindFirstChild("OOF") == nil then
  752. CastBlast(range/2)
  753. local defence = Instance.new("BoolValue",body[part])
  754. defence.Name = ("OOF")
  755. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  756. end
  757. if hasdugdeep == true then
  758. body[part]:Destroy()
  759. end
  760. end
  761. elseif body[part].ClassName == "Model" or body[part].ClassName == "Folder" then
  762. GoDeeper(body[part],position,range,maxstrength,true)
  763. end
  764. end
  765. end
  766. end
  767.  
  768. function CastEffective(position,range,maxstrength)
  769. for i,v in ipairs(workspace:GetChildren()) do
  770. GoDeeper(v,position,range,maxstrength,false)
  771. local body = v:GetChildren()
  772. for part = 1, #body do
  773. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  774. if(body[part].Position - position).Magnitude < range then
  775. if v.ClassName == "Model" then
  776. v:BreakJoints()
  777. end
  778. if body[part]:FindFirstChild("OOF") == nil then
  779. CastBlast(range/2)
  780. local defence = Instance.new("BoolValue",body[part])
  781. defence.Name = ("OOF")
  782. end
  783. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  784. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  785. end
  786. end
  787. end
  788. if v.ClassName == "Part" then
  789. if v.Anchored == false and (v.Position - position).Magnitude < range then
  790. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  791. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  792. end
  793. end
  794. end
  795. end
  796.  
  797. --//=================================\\
  798. --|| ATTACK FUNCTIONS AND STUFF
  799. --\\=================================//
  800.  
  801. function CastBlast(size)
  802. coroutine.resume(coroutine.create(function()
  803. for i = 1, 3 do
  804. CreateSwirl(0,size*0.8,true,-0.2,25,Torso.CFrame * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),"Pear")
  805. end
  806. local wave = CreatePart(3, Effects, "Neon", 0, 0.8, BRICKC("Pearl"), "Effect", VT(1,1,1))
  807. local mesh = IT("SpecialMesh",wave)
  808. mesh.MeshType = "Sphere"
  809. mesh.Scale = VT(size,size,size)
  810. mesh.Offset = VT(0,0,0)
  811. wave.CFrame = Torso.CFrame
  812. coroutine.resume(coroutine.create(function(PART)
  813. for i = 1, 25 do
  814. Swait()
  815. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  816. wave.Transparency = wave.Transparency + (0.2/25)
  817. end
  818. wave:remove()
  819. end))
  820. end))
  821. end
  822.  
  823. --//=================================\\
  824. --|| ASSIGN THINGS TO KEYS
  825. --\\=================================//
  826.  
  827. function MouseDown(Mouse)
  828. if ATTACK == false then
  829. end
  830. end
  831.  
  832. function MouseUp(Mouse)
  833. HOLD = false
  834. end
  835.  
  836. function KeyDown(Key)
  837. KEYHOLD = true
  838. if Key == "x" and ATTACK == false then
  839. if VALUE1 == true then
  840. VALUE1 = false
  841. SKILL1TEXT.Text = "[X] Toggle [OFF]"
  842. elseif VALUE1 == false then
  843. VALUE1 = true
  844. SKILL1TEXT.Text = "[X] Toggle [ON]"
  845. end
  846. end
  847. end
  848.  
  849. function KeyUp(Key)
  850. KEYHOLD = false
  851. end
  852.  
  853. Mouse.Button1Down:connect(function(NEWKEY)
  854. MouseDown(NEWKEY)
  855. end)
  856. Mouse.Button1Up:connect(function(NEWKEY)
  857. MouseUp(NEWKEY)
  858. end)
  859. Mouse.KeyDown:connect(function(NEWKEY)
  860. KeyDown(NEWKEY)
  861. end)
  862. Mouse.KeyUp:connect(function(NEWKEY)
  863. KeyUp(NEWKEY)
  864. end)
  865.  
  866. --//=================================\\
  867. --\\=================================//
  868.  
  869.  
  870. function unanchor()
  871. if UNANCHOR == true then
  872. g = Character:GetChildren()
  873. for i = 1, #g do
  874. if g[i].ClassName == "Part" then
  875. g[i].Anchored = false
  876. end
  877. end
  878. end
  879. end
  880.  
  881. local ff = IT("ForceField",Character)
  882. ff.Visible = false
  883.  
  884. --//=================================\\
  885. --|| WRAP THE WHOLE SCRIPT UP
  886. --\\=================================//
  887.  
  888. Humanoid.HealthChanged:connect(function()
  889. if Humanoid.Health ~= "inf" then
  890. Humanoid.Health = "inf"
  891. end
  892. if Humanoid.MaxHealth ~= "inf" then
  893. Humanoid.MaxHealth = "inf"
  894. end
  895. end)
  896.  
  897.  
  898. VALUE1 = true
  899.  
  900. while true do
  901. Swait()
  902. if #Effects2>0 then
  903. for e=1,#Effects2 do
  904. if Effects2[e]~=nil then
  905. local Thing=Effects2[e]
  906. if Thing~=nil then
  907. local Part=Thing[1]
  908. local Mode=Thing[2]
  909. local Delay=Thing[3]
  910. local IncX=Thing[4]
  911. local IncY=Thing[5]
  912. local IncZ=Thing[6]
  913. local Part2=Thing[8]
  914. if Thing[1].Transparency<=1 then
  915. if Thing[2]=="Block1" then
  916. Thing[1].CFrame=Thing[1].CFrame
  917. Mesh=Thing[1].Mesh
  918. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  919. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  920. elseif Thing[2]=="Cylinder" then
  921. Mesh=Thing[1].Mesh
  922. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  923. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  924. elseif Thing[2]=="Blood" then
  925. Mesh=Thing[7]
  926. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  927. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  928. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  929. elseif Thing[2]=="Elec" then
  930. Mesh=Thing[1].Mesh
  931. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  932. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  933. elseif Thing[2]=="Disappear" then
  934. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  935. end
  936. else
  937. Part.Parent=nil
  938. table.remove(Effects2,e)
  939. end
  940. end
  941. end
  942. end
  943. end
  944. unanchor()
  945. Humanoid.MaxHealth = "inf"
  946. Humanoid.Health = "inf"
  947. if VALUE1 == true then
  948. CastEffective(Torso.Position,10,100)
  949. end
  950. local MATHS = {"A","C","E","G","I","K","N","P"}
  951. Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]
  952. end
  953.  
  954. --//=================================\\
  955. --\\=================================//
  956.  
  957.  
  958.  
  959.  
  960.  
  961. --//====================================================\\--
  962. --|| END OF SCRIPT
  963. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement