Advertisement
AgentVK

OK THEN

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