Advertisement
asdasdwrfd

Untitled

Jul 26th, 2019
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 119.42 KB | None | 0 0
  1. ---------------------------
  2. --/ \--
  3. -- Script By: 123jl123 --
  4. --\ /--
  5. ---------------------------
  6. --local remote = NS ([=[
  7.  
  8. local TweenService = game:GetService("TweenService")
  9. local RbxUtility = LoadLibrary("RbxUtility")
  10. local Create = RbxUtility.Create
  11.  
  12.  
  13.  
  14. local Player = game:GetService("Players"):WaitForChild(script.PlayerName.Value)
  15. if Player.Character == nil then
  16. while Player.Character == nil do wait()
  17.  
  18. end end
  19.  
  20. EffectPack = script.Extras:Clone()
  21. script.Extras:Destroy()
  22.  
  23. ZTfade=false
  24. ZT=false
  25. OverClocking = false
  26. local Jets = false
  27. MHIT = Vector3.new()
  28. Character= Player.Character
  29. Torso = Character.Torso
  30. Head = Character.Head
  31. Humanoid = Character.Humanoid
  32. LeftArm = Character["Left Arm"]
  33. LeftLeg = Character["Left Leg"]
  34. RightArm = Character["Right Arm"]
  35. RightLeg = Character["Right Leg"]
  36. RootPart = Character["HumanoidRootPart"]
  37. local Anim="Idle"
  38. local inairvel=0
  39. local WalkAnimStep = 0
  40. local sine = 0
  41. local change = 1
  42. Animstep = 0
  43. WalkAnimMove=0.1
  44. Combo = 0
  45. local attack=false
  46. local RJ = Character.HumanoidRootPart:FindFirstChild("RootJoint")
  47. local Neck = Character.Torso:FindFirstChild("Neck")
  48. local visn = 0
  49. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  50. local NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  51. IsXray = false
  52.  
  53. local forWFB = 0
  54. local forWRL = 0
  55. FF = Instance.new("ForceField",Character)
  56. FF.Visible = false
  57. FF.Name = "FatForce"
  58. Effects=Instance.new("Folder",Character)
  59. Effects.Name="Effects"
  60. it=Instance.new
  61. vt=Vector3.new
  62. cf=CFrame.new
  63. euler=CFrame.fromEulerAnglesXYZ
  64. angles=CFrame.Angles
  65. local cn = CFrame.new
  66. mr=math.rad
  67. mememode=false
  68. IT = Instance.new
  69. CF = CFrame.new
  70. VT = Vector3.new
  71. RAD = math.rad
  72. C3 = Color3.new
  73. UD2 = UDim2.new
  74. BRICKC = BrickColor.new
  75. ANGLES = CFrame.Angles
  76. EULER = CFrame.fromEulerAnglesXYZ
  77. COS = math.cos
  78. ACOS = math.acos
  79. SIN = math.sin
  80. ASIN = math.asin
  81. ABS = math.abs
  82. MRANDOM = math.random
  83. FLOOR = math.floor
  84.  
  85. local lastid= "http://www.roblox.com/asset/?id=146364977"
  86. local s2=it("Sound",Torso)
  87. local CurId = 1
  88. s2.EmitterSize = 30
  89. local s2c=s2:Clone()
  90.  
  91. playsong = true
  92.  
  93. s2.SoundId = lastid
  94. if playsong == true then
  95. s2:play()
  96. elseif playsong == false then
  97. s2:stop()
  98. end
  99. lastsongpos= 0
  100.  
  101. crosshair = Instance.new("BillboardGui",Character)
  102. crosshair.Size = UDim2.new(10,0,10,0)
  103. crosshair.Enabled = false
  104. imgl = Instance.new("ImageLabel",crosshair)
  105. imgl.Position = UDim2.new(0,0,0,0)
  106. imgl.Size = UDim2.new(1,0,1,0)
  107. imgl.Image = "rbxassetid://578065407"
  108. imgl.BackgroundTransparency = 1
  109. imgl.ImageTransparency = .7
  110. imgl.ImageColor3 = Color3.new(1,1,1)
  111. crosshair.StudsOffset = Vector3.new(0,0,-1)
  112.  
  113. --//=================================\\
  114. --|| LOCAL IDS
  115. --\\=================================//
  116.  
  117. local GROWL = 1544355717
  118. local ROAR = 528589382
  119. local ECHOBLAST = 376976397
  120. local CAST = 459523898
  121. local ALCHEMY = 424195979
  122. local BUILDUP = 698824317
  123. local BIGBUILDUP = 874376217
  124. local IMPACT = 231917744
  125. local LARGE_EXPLOSION = 168513088
  126. local TURNUP = 299058146
  127.  
  128. if Character:FindFirstChild("Animate")then
  129. Character.Animate:Destroy()
  130. end
  131.  
  132. function RemoveOutlines(part)
  133. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  134. end
  135.  
  136.  
  137.  
  138.  
  139. CFuncs = {
  140. Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  141.  
  142. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  143. RemoveOutlines(Part)
  144. return Part
  145. end
  146. }
  147. ,
  148. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  149.  
  150. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  151. if Mesh == "SpecialMesh" then
  152. Msh.MeshType = MeshType
  153. Msh.MeshId = MeshId
  154. end
  155. return Msh
  156. end
  157. }
  158. ,
  159. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  160.  
  161. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  162. if Mesh == "SpecialMesh" then
  163. Msh.MeshType = MeshType
  164. Msh.MeshId = MeshId
  165. end
  166. return Msh
  167. end
  168. }
  169. ,
  170. Weld = {Create = function(Parent, Part0, Part1, C0, C1)
  171.  
  172. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  173. return Weld
  174. end
  175. }
  176. ,
  177. Sound = {Create = function(id, par, vol, pit)
  178.  
  179. coroutine.resume(coroutine.create(function()
  180.  
  181. local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = "http://www.roblox.com/asset/?id="..id, Parent = par or workspace})
  182. wait()
  183. S:play()
  184. game:GetService("Debris"):AddItem(S, 6)
  185. end
  186. ))
  187. end
  188. }
  189. ,
  190. ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  191.  
  192. local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread})
  193. return fp
  194. end
  195. }
  196. }
  197.  
  198.  
  199.  
  200.  
  201.  
  202. coroutine.resume(coroutine.create(function()
  203. if Head:FindFirstChildOfClass("Decal") then
  204. local face = Head:FindFirstChildOfClass("Decal")
  205. face:Destroy()
  206. end
  207.  
  208. end))
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216. for i, v in pairs(Character:GetDescendants()) do
  217. if v:IsA("Accessory") or v:IsA("Sound") then
  218. v:Destroy()
  219. end
  220. end
  221. coroutine.resume(coroutine.create(function()
  222. Character:WaitForChild("Sound"):Destroy()
  223. end))
  224.  
  225.  
  226. --139248234
  227. --//=================================\\
  228. --|| SAZERENOS ARTIFICIAL HEARTBEAT
  229. --\\=================================//
  230. Frame_Speed = 1 / 30
  231. ArtificialHB = Instance.new("BindableEvent", script)
  232. ArtificialHB.Name = "ArtificialHB"
  233.  
  234. script:WaitForChild("ArtificialHB")
  235.  
  236. frame = Frame_Speed
  237. tf = 0
  238. allowframeloss = false
  239. tossremainder = false
  240. lastframe = tick()
  241. script.ArtificialHB:Fire()
  242.  
  243. game:GetService("RunService").Heartbeat:connect(function(s, p)
  244. tf = tf + s
  245. if tf >= frame then
  246. if allowframeloss then
  247. script.ArtificialHB:Fire()
  248. lastframe = tick()
  249. else
  250. for i = 1, math.floor(tf / frame) do
  251. script.ArtificialHB:Fire()
  252. end
  253. lastframe = tick()
  254. end
  255. if tossremainder then
  256. tf = 0
  257. else
  258. tf = tf - frame * math.floor(tf / frame)
  259. end
  260. end
  261. end)
  262.  
  263. --//=================================\\
  264. --\\=================================//
  265.  
  266. function Swait(NUMBER)
  267. if NUMBER == 0 or NUMBER == nil then
  268. ArtificialHB.Event:wait()
  269. else
  270. for i = 1, NUMBER do
  271. ArtificialHB.Event:wait()
  272. end
  273. end
  274. end
  275.  
  276.  
  277. ---------------
  278. --[Functions]--
  279. ---------------
  280. so = function(id, par, vol, pit)
  281.  
  282. CFuncs.Sound.Create(id, par, vol, pit)
  283.  
  284.  
  285. end
  286.  
  287. function weld(parent,part0,part1,c0)
  288. local weld=it("Weld")
  289. weld.Parent=parent
  290. weld.Part0=part0
  291. weld.Part1=part1
  292. weld.C0=c0
  293. return weld
  294. end
  295. function joint(parent,part0,part1,c0)
  296. local weld=it("Motor6D")
  297. weld.Parent=parent
  298. weld.Part0=part0
  299. weld.Part1=part1
  300. weld.C0=c0
  301. return weld
  302. end
  303. ArmorParts = {}
  304. --ArmorParts = {}
  305. function WeldAllTo(Part1,Part2,scan,Extra)
  306. local EXCF = Part2.CFrame * Extra
  307. for i, v3 in pairs(scan:GetDescendants()) do
  308. if v3:isA("BasePart") then
  309. local STW=weld(v3,v3,Part1,EXCF:toObjectSpace(v3.CFrame):inverse() )
  310. v3.Anchored=false
  311. v3.Massless = true
  312. v3.CanCollide=false
  313. v3.Parent = Part1
  314. v3.Locked = true
  315. if not v3:FindFirstChild("Destroy") then
  316. table.insert(ArmorParts,{Part = v3,Par = v3.Parent,Col = v3.Color,Mat=v3.Material.Name })
  317. else
  318. v3:Destroy()
  319. end
  320. end
  321. end
  322. Part1.Transparency=1
  323. --Part2:Destroy()
  324. end
  325.  
  326.  
  327.  
  328. function JointAllTo(Part1,Part2,scan,Extra)
  329. local EXCF = Part2.CFrame * Extra
  330. for i, v3 in pairs(scan:GetDescendants()) do
  331. if v3:isA("BasePart") then
  332. local STW=joint(v3,v3,Part1,EXCF:toObjectSpace(v3.CFrame):inverse() )
  333. v3.Anchored=false
  334. v3.Massless = true
  335. v3.CanCollide=false
  336. v3.Parent = Part1
  337. v3.Locked = true
  338. if not v3:FindFirstChild("Destroy") then
  339. -- table.insert(ArmorParts,{Part = v3,Par = v3.Parent,Col = v3.Color,Mat=v3.Material.Name })
  340. else
  341. v3:Destroy()
  342. end
  343. end
  344. end
  345. Part1.Transparency=1
  346. --Part2:Destroy()
  347. end
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355. --------------------------------------------H1a
  356. local ChestPart = EffectPack.Part:Clone()
  357. ChestPart.Parent = Character
  358. ChestPart.Name = "H1a"
  359. H1a=weld(Torso,Torso,ChestPart,cf(0,.5,-.4))
  360.  
  361. --------------------------------------------MissileBox
  362. local MissileBox = EffectPack.Part:Clone()
  363. MissileBox.Parent = Character
  364. MissileBox.Name = "MissileBox"
  365. MX1w=weld(Torso,Torso,MissileBox,cf(0,-.7,-.25))
  366. --------------------------------------------FlameThrower
  367.  
  368. local FlameThrower = EffectPack.Part:Clone()
  369. FlameThrower.Parent = Character
  370. FlameThrower.Name = "FlameThrower"
  371. FlameW=weld(RightArm,RightArm,FlameThrower,cf(0,0,0))
  372. --------------------------------------------Hand
  373. local Finger1 = EffectPack.Part:Clone()
  374. Finger1.Parent = Character
  375. Finger1.Name = "RightLow1"
  376. Fg1=weld(RightArm,RightArm,Finger1,cf(0,0,0))
  377. --------------------------------------------Hand
  378. local Finger2 = EffectPack.Part:Clone()
  379. Finger2.Parent = Character
  380. Finger2.Name = "RightLow2"
  381. Fg2=weld(RightArm,RightArm,Finger2,cf(0,0,0))
  382. --------------------------------------------Hand
  383. local Finger3 = EffectPack.Part:Clone()
  384. Finger3.Parent = Character
  385. Finger3.Name = "RightLow3"
  386. Fg3=weld(RightArm,RightArm,Finger3,cf(0,0,0))
  387. --------------------------------------------Hand
  388. local Finger4 = EffectPack.Part:Clone()
  389. Finger4.Parent = Character
  390. Finger4.Name = "RightLow4"
  391. Fg4=weld(RightArm,RightArm,Finger4,cf(0,0,0))
  392. --------------------------------------------Boot
  393. local Boot1 = EffectPack.Part:Clone()
  394. Boot1.Parent = Character
  395. Boot1.Name = "RightFrontBoot"
  396. RB1=weld(RightLeg,RightLeg,Boot1,cf(0,0,0))
  397. --------------------------------------------Boot
  398. local Boot2 = EffectPack.Part:Clone()
  399. Boot2.Parent = Character
  400. Boot2.Name = "RightBackBoot"
  401. RB2=weld(RightLeg,RightLeg,Boot2,cf(0,0,0))
  402. --------------------------------------------Boot
  403. local Boot3 = EffectPack.Part:Clone()
  404. Boot3.Parent = Character
  405. Boot3.Name = "LeftFrontBoot"
  406. LB1=weld(LeftLeg,LeftLeg,Boot3,cf(0,0,0))
  407. --------------------------------------------Boot
  408. local Boot4 = EffectPack.Part:Clone()
  409. Boot4.Parent = Character
  410. Boot4.Name = "LeftBackBoot"
  411. LB2=weld(LeftLeg,LeftLeg,Boot4,cf(0,0,0))
  412. --------------------------------------------LeftHand
  413. local LHP = EffectPack.Part:Clone()
  414. LHP.Parent = Character
  415. LHP.Name = "LeftHand"
  416. LHP2=weld(LeftArm,LeftArm,LHP,cf(0,0,0))
  417. --------------------------------------------end
  418.  
  419.  
  420. for _,v in pairs(script.Armor:children()) do
  421. if v:IsA("Model") then
  422.  
  423. if Character:FindFirstChild(""..v.Name) then
  424. local Part1=Character:FindFirstChild(""..v.Name)
  425. local Part2=v.Handle
  426.  
  427. WeldAllTo(Part1,Part2,v,CFrame.new(0,0,0))
  428.  
  429. end
  430.  
  431.  
  432. end
  433. end
  434.  
  435. rayCast = function(Pos, Dir, Max, Ignore)
  436.  
  437. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  438. end
  439.  
  440. function SetTween(SPart,CFr,MoveStyle2,outorin2,AnimTime)
  441. local MoveStyle = Enum.EasingStyle[MoveStyle2]
  442. local outorin = Enum.EasingDirection[outorin2]
  443.  
  444.  
  445. local dahspeed=1
  446. if attack == true and mememode == true then
  447. dahspeed=5
  448. end
  449.  
  450. if SPart.Name=="Bullet" then
  451. dahspeed=1
  452. end
  453.  
  454. local tweeningInformation = TweenInfo.new(
  455. AnimTime/dahspeed,
  456. MoveStyle,
  457. outorin,
  458. 0,
  459. false,
  460. 0
  461. )
  462. local MoveCF = CFr
  463. local tweenanim = TweenService:Create(SPart,tweeningInformation,MoveCF)
  464. tweenanim:Play()
  465. end
  466.  
  467. function GatherAllInstances(Parent,ig)
  468. local Instances = {}
  469. local Ignore=nil
  470. if ig ~= nil then
  471. Ignore = ig
  472. end
  473.  
  474. local function GatherInstances(Parent,Ignore)
  475. for i, v in pairs(Parent:GetChildren()) do
  476.  
  477. if v ~= Ignore then
  478. GatherInstances(v,Ignore)
  479. table.insert(Instances, v) end
  480. end
  481. end
  482. GatherInstances(Parent,Ignore)
  483. return Instances
  484. end
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494. function WeldAllTo(Part1,Part2,Extra)
  495.  
  496. local EXCF = Part2.CFrame * Extra
  497.  
  498. for i, v3 in pairs(GatherAllInstances(Part2)) do
  499. if v3:isA("BasePart") then
  500.  
  501.  
  502. local STW=weld(v3,v3,Part1,EXCF:toObjectSpace(v3.CFrame):inverse() )
  503.  
  504.  
  505. v3.Anchored=false
  506. --v3.Transparency=0
  507. v3.CanCollide=false
  508.  
  509. v3.Parent = Part1
  510.  
  511. end
  512. end
  513.  
  514.  
  515. Part2:Destroy()
  516.  
  517. end
  518. local SToneTexture = Create("Texture")({
  519.  
  520.  
  521. Texture = "http://www.roblox.com/asset/?id=1693385655",
  522. Color3 = Color3.new(17/255, 17/255, 17/255),
  523.  
  524. })
  525.  
  526. function AddStoneTexture(part)
  527. coroutine.resume(coroutine.create(function()
  528. for i = 0,6,1 do
  529. local Tx = SToneTexture:Clone()
  530. Tx.Face = i
  531. Tx.Parent=part
  532. end
  533. end))
  534. end
  535.  
  536. New = function(Object, Parent, Name, Data)
  537. local Object = Instance.new(Object)
  538. for Index, Value in pairs(Data or {}) do
  539. Object[Index] = Value
  540. end
  541. Object.Parent = Parent
  542. Object.Name = Name
  543. return Object
  544. end
  545.  
  546.  
  547.  
  548. function Tran(Num)
  549. local GivenLeter = ""
  550. if Num == "1" then
  551. GivenLeter = "a"
  552. elseif Num == "2" then
  553. GivenLeter = "b"
  554. elseif Num == "3" then
  555. GivenLeter = "c"
  556. elseif Num == "4" then
  557. GivenLeter = "d"
  558. elseif Num == "5" then
  559. GivenLeter = "e"
  560. elseif Num == "6" then
  561. GivenLeter = "f"
  562. elseif Num == "7" then
  563. GivenLeter = "g"
  564. elseif Num == "8" then
  565. GivenLeter = "h"
  566. elseif Num == "9" then
  567. GivenLeter = "i"
  568. elseif Num == "10" then
  569. GivenLeter = "j"
  570. elseif Num == "11" then
  571. GivenLeter = "k"
  572. elseif Num == "12" then
  573. GivenLeter = "l"
  574. elseif Num == "13" then
  575. GivenLeter = "m"
  576. elseif Num == "14" then
  577. GivenLeter = "n"
  578. elseif Num == "15" then
  579. GivenLeter = "o"
  580. elseif Num == "16" then
  581. GivenLeter = "p"
  582. elseif Num == "17" then
  583. GivenLeter = "q"
  584. elseif Num == "18" then
  585. GivenLeter = "r"
  586. elseif Num == "19" then
  587. GivenLeter = "s"
  588. elseif Num == "20" then
  589. GivenLeter = "t"
  590. elseif Num == "21" then
  591. GivenLeter = "u"
  592. elseif Num == "22" then
  593. GivenLeter = "v"
  594. elseif Num == "23" then
  595. GivenLeter = "w"
  596. elseif Num == "24" then
  597. GivenLeter = "x"
  598. elseif Num == "25" then
  599. GivenLeter = "y"
  600. elseif Num == "26" then
  601. GivenLeter = "z"
  602. elseif Num == "27" then
  603. GivenLeter = "_"
  604. elseif Num == "28" then
  605. GivenLeter = "0"
  606. elseif Num == "29" then
  607. GivenLeter = "1"
  608. elseif Num == "30" then
  609. GivenLeter = "2"
  610. elseif Num == "31" then
  611. GivenLeter = "3"
  612. elseif Num == "32" then
  613. GivenLeter = "4"
  614. elseif Num == "33" then
  615. GivenLeter = "5"
  616. elseif Num == "34" then
  617. GivenLeter = "6"
  618. elseif Num == "35" then
  619. GivenLeter = "7"
  620. elseif Num == "36" then
  621. GivenLeter = "8"
  622. elseif Num == "37" then
  623. GivenLeter = "9"
  624. end
  625. return GivenLeter
  626.  
  627. end
  628.  
  629. function MaybeOk(Mode,Extra)
  630. local ReturningValue = ""
  631. if Mode == 1 then
  632.  
  633.  
  634.  
  635. -- v.C0 = CFrame.new(1,1,1)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  636.  
  637. --print(v.C0)
  638. local GivenText = ""
  639. local msg = Extra
  640. local Txt = ""
  641. local FoundTime=0
  642. local LastFound = 0
  643. delay(wait(0),function()
  644. for v3 = 1, #msg do
  645.  
  646. if string.sub(msg,0+v3,v3) == "," then
  647.  
  648. local TheN = string.sub(msg,LastFound,v3-1)
  649.  
  650.  
  651. local NumTranslate = Tran(string.sub(msg,LastFound,v3-1))
  652.  
  653.  
  654.  
  655. FoundTime = FoundTime + 1
  656.  
  657.  
  658. GivenText = GivenText..NumTranslate
  659.  
  660. LastFound=v3+1
  661. Txt=""
  662. end
  663. Txt=string.sub(msg,1,v3)
  664.  
  665.  
  666. -- Gui.ExtentsOffset = Vector3.new(0,3,0)
  667.  
  668.  
  669. -- Gui.ExtentsOffset = Vector3.new(0,3,0)
  670. wait()
  671. -- Gui.ExtentsOffset = Vector3.new(0,3,0)
  672. end;
  673.  
  674. ReturningValue=GivenText
  675. for v3 = 1, #Txt do
  676. Txt=string.sub(msg,-1,v3)
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684. end;
  685. -- Gui:remove()
  686. end)
  687.  
  688.  
  689. elseif Mode == 2 then
  690.  
  691. print("fat")
  692. end
  693.  
  694.  
  695.  
  696. while ReturningValue == "" do wait() end
  697. return ReturningValue
  698.  
  699. end
  700.  
  701. function CreateMesh2(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  702. local NEWMESH = IT(MESH)
  703. if MESH == "SpecialMesh" then
  704. NEWMESH.MeshType = MESHTYPE
  705. if MESHID ~= "nil" and MESHID ~= "" then
  706. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  707. end
  708. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  709. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  710. end
  711. end
  712. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  713. NEWMESH.Scale = SCALE
  714. NEWMESH.Parent = PARENT
  715. return NEWMESH
  716. end
  717.  
  718. function CreatePart2(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  719. local NEWPART = IT("Part")
  720. NEWPART.formFactor = FORMFACTOR
  721. NEWPART.Reflectance = REFLECTANCE
  722. NEWPART.Transparency = TRANSPARENCY
  723. NEWPART.CanCollide = false
  724. NEWPART.Locked = true
  725. NEWPART.Anchored = true
  726. if ANCHOR == false then
  727. NEWPART.Anchored = false
  728. end
  729. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  730. NEWPART.Name = NAME
  731. NEWPART.Size = SIZE
  732. NEWPART.Position = Torso.Position
  733. NEWPART.Material = MATERIAL
  734. NEWPART:BreakJoints()
  735. NEWPART.Parent = PARENT
  736. return NEWPART
  737. end
  738.  
  739. local S = IT("Sound")
  740. function CreateSound2(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  741. local NEWSOUND = nil
  742. coroutine.resume(coroutine.create(function()
  743. NEWSOUND = S:Clone()
  744. NEWSOUND.Parent = PARENT
  745. NEWSOUND.Volume = VOLUME
  746. NEWSOUND.Pitch = PITCH
  747. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  748. NEWSOUND:play()
  749. if DOESLOOP == true then
  750. NEWSOUND.Looped = true
  751. else
  752. repeat wait(1) until NEWSOUND.Playing == false
  753. NEWSOUND:remove()
  754. end
  755. end))
  756. return NEWSOUND
  757. end
  758.  
  759.  
  760. function WACKYEFFECT(Table)
  761. local TYPE = (Table.EffectType or "Sphere")
  762. local SIZE = (Table.Size or VT(1,1,1))
  763. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  764. local TRANSPARENCY = (Table.Transparency or 0)
  765. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  766. local CFRAME = (Table.CFrame or Torso.CFrame)
  767. local MOVEDIRECTION = (Table.MoveToPos or nil)
  768. local ROTATION1 = (Table.RotationX or 0)
  769. local ROTATION2 = (Table.RotationY or 0)
  770. local ROTATION3 = (Table.RotationZ or 0)
  771. local MATERIAL = (Table.Material or "Neon")
  772. local COLOR = (Table.Color or C3(1,1,1))
  773. local TIME = (Table.Time or 45)
  774. local SOUNDID = (Table.SoundID or nil)
  775. local SOUNDPITCH = (Table.SoundPitch or nil)
  776. local SOUNDVOLUME = (Table.SoundVolume or nil)
  777. coroutine.resume(coroutine.create(function()
  778. local PLAYSSOUND = false
  779. local SOUND = nil
  780. local EFFECT = CreatePart2(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  781. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  782. PLAYSSOUND = true
  783. SOUND = CreateSound2(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  784. end
  785. EFFECT.Color = COLOR
  786. local MSH = nil
  787. if TYPE == "Sphere" then
  788. MSH = CreateMesh2("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  789. elseif TYPE == "Cylinder" then
  790. MSH = CreateMesh2("SpecialMesh", EFFECT, "Cylinder", "", "", SIZE, VT(0,0,0))
  791. elseif TYPE == "Block" then
  792. MSH = IT("BlockMesh",EFFECT)
  793. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  794. elseif TYPE == "Cube" then
  795. MSH = IT("BlockMesh",EFFECT)
  796. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  797.  
  798. elseif TYPE == "Wave" then
  799. MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  800. elseif TYPE == "Ring" then
  801. MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  802. elseif TYPE == "Slash" then
  803. MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  804. elseif TYPE == "Round Slash" then
  805. MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  806. elseif TYPE == "Swirl" then
  807. MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  808. elseif TYPE == "Skull" then
  809. MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  810. elseif TYPE == "Crystal" then
  811. MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  812. elseif TYPE == "Crown" then
  813. MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "173770780", "", SIZE, VT(0,0,0))
  814. end
  815. if MSH ~= nil then
  816. local MOVESPEED = nil
  817. if MOVEDIRECTION ~= nil then
  818. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  819. end
  820. local GROWTH = SIZE - ENDSIZE
  821. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  822. if TYPE == "Block" then
  823.  
  824. SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",TIME/60)
  825. else
  826.  
  827. SetTween(EFFECT,{CFrame = CFRAME},"Linear","InOut",0)
  828.  
  829. end
  830.  
  831.  
  832.  
  833. wait()
  834.  
  835. SetTween(EFFECT,{Transparency = EFFECT.Transparency - TRANS},"Linear","InOut",TIME/60)
  836.  
  837. if TYPE == "Block" then
  838.  
  839. SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",0)
  840. else
  841.  
  842. SetTween(EFFECT,{CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))},"Linear","InOut",0)
  843.  
  844. end
  845. if MOVEDIRECTION ~= nil then
  846. local ORI = EFFECT.Orientation
  847.  
  848. SetTween(EFFECT,{CFrame=CF(MOVEDIRECTION)},"Linear","InOut",TIME/60)
  849. SetTween(EFFECT,{Orientation=ORI},"Linear","InOut",TIME/60)
  850.  
  851.  
  852. end
  853. MSH.Scale = MSH.Scale - GROWTH/TIME
  854. SetTween(MSH,{Scale=ENDSIZE},"Linear","InOut",TIME/60)
  855. if TYPE == "Wave" then
  856.  
  857. SetTween(MSH,{Offset=VT(0,0,-MSH.Scale.X/8)},"Linear","InOut",TIME/60)
  858. end
  859. for LOOP = 1, TIME+1 do
  860. wait(.05)
  861.  
  862. --SetTween(EFFECT,{Transparency = EFFECT.Transparency - TRANS/TIME},"Linear","InOut",0)
  863.  
  864.  
  865. if TYPE == "Block" then
  866.  
  867. -- SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",0)
  868. else
  869.  
  870. -- SetTween(EFFECT,{CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))},"Linear","InOut",0)
  871.  
  872. end
  873. if MOVEDIRECTION ~= nil then
  874. local ORI = EFFECT.Orientation
  875.  
  876. -- SetTween(EFFECT,{CFrame=CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)},"Linear","InOut",0)
  877. -- SetTween(EFFECT,{Orientation=ORI},"Linear","InOut",0)
  878.  
  879.  
  880. end
  881. end
  882. game:GetService("Debris"):AddItem(EFFECT, 15)
  883. if PLAYSSOUND == false then
  884. EFFECT:remove()
  885. else
  886. SOUND.Stopped:Connect(function()
  887. EFFECT:remove()
  888. end)
  889. end
  890. else
  891. if PLAYSSOUND == false then
  892. EFFECT:remove()
  893. else
  894. repeat wait() until SOUND.Playing == false
  895. EFFECT:remove()
  896. end
  897. end
  898. end))
  899. end
  900. ----------------------
  901. --[End Of Functions]--
  902. ----------------------
  903.  
  904.  
  905.  
  906.  
  907.  
  908.  
  909. ------------------
  910. --[Gun]--
  911. ------------------
  912.  
  913.  
  914.  
  915.  
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922.  
  923.  
  924. function CreatePart( Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  925. local Part = Create("Part"){
  926.  
  927. Parent = Parent,
  928. Reflectance = Reflectance,
  929. Transparency = Transparency,
  930. CanCollide = false,
  931. Locked = true,
  932. BrickColor = BrickColor.new(tostring(BColor)),
  933. Name = Name,
  934. Size = Size,
  935. Material = Material,
  936. }
  937. RemoveOutlines(Part)
  938. return Part
  939. end
  940.  
  941. ------------------
  942. --[End of Gun]--
  943. ------------------
  944.  
  945. ---------------
  946. --[Particles]--
  947. ---------------
  948.  
  949.  
  950. local Particle2_1 = Create("ParticleEmitter"){
  951. Color = ColorSequence.new(Color3.new (1,1,1), Color3.new (170/255, 255/255, 255/255)),
  952. Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.75,.4),NumberSequenceKeypoint.new(1,1)}),
  953. Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,.0)}),
  954. Texture = "rbxassetid://241922778",
  955. Lifetime = NumberRange.new(0.55,0.95),
  956. Rate = 100,
  957. VelocitySpread = 180,
  958. Rotation = NumberRange.new(0),
  959. RotSpeed = NumberRange.new(-200,200),
  960. Speed = NumberRange.new(8.0),
  961. LightEmission = 1,
  962. LockedToPart = false,
  963. Acceleration = Vector3.new(0, 0, 0),
  964. EmissionDirection = "Top",
  965. Drag = 4,
  966. Enabled = false
  967. }
  968.  
  969.  
  970. local BEGONE_Particle = Create("ParticleEmitter"){
  971. Color = ColorSequence.new(Color3.new (1,1,1), Color3.new (1, 1, 1)),
  972. Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.1,0),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(0.5,.2),NumberSequenceKeypoint.new(1,1)}),
  973. Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.15,1.5),NumberSequenceKeypoint.new(.75,1.5),NumberSequenceKeypoint.new(1,0)}),
  974. Texture = "rbxassetid://936193661",
  975. Lifetime = NumberRange.new(1.5),
  976. Rate = 100,
  977. VelocitySpread = 0,
  978. Rotation = NumberRange.new(0),
  979. RotSpeed = NumberRange.new(-10,10),
  980. Speed = NumberRange.new(0),
  981. LightEmission = .25,
  982. LockedToPart = true,
  983. Acceleration = Vector3.new(0, -0, 0),
  984. EmissionDirection = "Top",
  985. Drag = 4,
  986. ZOffset = 1,
  987. Enabled = false
  988. }
  989.  
  990.  
  991. ----------------------
  992. --[End Of Particles]--
  993. ----------------------
  994.  
  995. function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans,SizeAdd,Time,Dely) -- Lightning module
  996. --[[Part0 = Vector3 (Start pos)
  997. Part1 = Vector3 (End pos)
  998. Times = number (Amount of lightning parts)
  999. Offset = number (Offset)
  1000. Color = color (brickcolor value)
  1001. Thickness = number (thickness)
  1002. Trans = number (transparency)
  1003. ]]--
  1004. coroutine.resume(coroutine.create(function()
  1005. local magz = (Part0 - Part1).magnitude
  1006. local curpos = Part0
  1007. local trz = {-Offset,Offset}
  1008. local Time2 = 0.07
  1009. if Time ~= nil then
  1010. Time2 = Time
  1011. end
  1012. for i=1,Times do
  1013. local li = Instance.new("Part", Torso)
  1014. li.Name = "Lightning"
  1015. li.TopSurface =0
  1016. li.Material = "Neon"
  1017. li.BottomSurface = 0
  1018. li.Anchored = true
  1019. li.Locked = true
  1020. li.Transparency = Trans or 0
  1021. li.BrickColor = Color
  1022. li.formFactor = "Custom"
  1023. li.CanCollide = false
  1024. -- MakeForm(li,"Ball")
  1025. li.Size = Vector3.new(0,0,magz/Times)
  1026. local Offzet = Vector3.new(trz[(math.random(1,2)*100)/100],trz[(math.random(1,2)*100)/100],trz[(math.random(1,2)*100)/100])
  1027. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  1028. if Times == i then
  1029. local magz2 = (curpos - Part1).magnitude
  1030. li.Size = Vector3.new(0,0,magz2)
  1031. SetTween(li,{Size = VT(Thickness*(1-(i/Times+.1)),Thickness*(1-(i/Times+.1)),magz2),Transparency=1},"Back","Out",Time)
  1032.  
  1033. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  1034. else
  1035. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  1036. SetTween(li,{Size = VT(Thickness*(1-(i/Times)),Thickness*(1-(i/Times)),magz/Times),Transparency=1},"Back","Out",Time)
  1037.  
  1038. end
  1039. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  1040. coroutine.resume(coroutine.create(function()
  1041. wait(Time)
  1042. li:Destroy()
  1043. end))
  1044. --game.Debris:AddItem(li,Time)
  1045.  
  1046. if Dely ~= nil then
  1047. Swait(Dely)
  1048. end
  1049.  
  1050.  
  1051. --BlockEffect(Color, li.CFrame, li.Size.X*20, li.Size.Y*20, li.Size.Z*20, SizeAdd, SizeAdd, 0, Time2,2)
  1052. end
  1053. end))
  1054. end
  1055.  
  1056.  
  1057. function MakeForm(PART,TYPE)
  1058. if TYPE == "Cyl" then
  1059. local MSH = IT("CylinderMesh",PART)
  1060. elseif TYPE == "Ball" then
  1061. local MSH = IT("SpecialMesh",PART)
  1062. MSH.MeshType = "Sphere"
  1063. elseif TYPE == "Wedge" then
  1064. local MSH = IT("SpecialMesh",PART)
  1065. MSH.MeshType = "Wedge"
  1066. end
  1067. end
  1068. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1069. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1070. end
  1071. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1072. local DIRECTION = CF(StartPos,EndPos).lookVector
  1073. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  1074. end
  1075. Debris = game:GetService("Debris")
  1076.  
  1077. -----------------
  1078.  
  1079.  
  1080.  
  1081. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1082.  
  1083. if hit.Parent == nil then
  1084. return
  1085. end
  1086. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1087. for _,v in pairs(hit.Parent:children()) do
  1088. if v:IsA("Humanoid") then
  1089. if h.Health > 0.0001 then
  1090. h = v else end
  1091. end
  1092. end
  1093.  
  1094. if h == nil then
  1095. return
  1096. elseif h ~= nil and h.Health < 0.001 then
  1097. return
  1098. elseif h ~= nil and h.Parent:FindFirstChild("Fly away") then
  1099. return
  1100. end
  1101.  
  1102.  
  1103. --gg
  1104.  
  1105. --local FoundTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1106. coroutine.resume(coroutine.create(function()
  1107. if h.Health >9999999 and minim <9999 and Type~= "IgnoreType" and(h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")) and not h.Parent:FindFirstChild("Fly away")then
  1108.  
  1109.  
  1110. local FATag = Instance.new("Model",h.Parent)
  1111.  
  1112. FATag.Name = "Fly away"
  1113. game:GetService("Debris"):AddItem(FATag, 2.5)
  1114.  
  1115.  
  1116. for _,v in pairs(h.Parent:children()) do
  1117. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1118. v.Anchored=true
  1119. end
  1120. end
  1121.  
  1122. wait(.25)
  1123.  
  1124. if h.Parent:FindFirstChildOfClass("Body Colors")then
  1125. h.Parent:FindFirstChildOfClass("Body Colors"):Destroy()
  1126. end
  1127.  
  1128.  
  1129. local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
  1130.  
  1131. coroutine.resume(coroutine.create(function()
  1132.  
  1133.  
  1134. local YourGone = Instance.new("Part")
  1135. YourGone.Reflectance = 0
  1136. YourGone.Transparency = 1
  1137. YourGone.CanCollide = false
  1138. YourGone.Locked = true
  1139. YourGone.Anchored=true
  1140. YourGone.BrickColor = BrickColor.new("Really blue")
  1141. YourGone.Name = "YourGone"
  1142. YourGone.Size = Vector3.new()
  1143. YourGone.Material = "SmoothPlastic"
  1144. YourGone:BreakJoints()
  1145. YourGone.Parent = FoundTorso
  1146. YourGone.CFrame = FoundTorso.CFrame
  1147.  
  1148. local NewParticle = Instance.new("ParticleEmitter")
  1149. NewParticle.Parent = YourGone
  1150. NewParticle.Acceleration = Vector3.new(0,0,0)
  1151. NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,.0)})
  1152. NewParticle.Color = ColorSequence.new(Color3.new (1,0,0), Color3.new (1, 0, 0))
  1153. NewParticle.Lifetime = NumberRange.new(0.55,0.95)
  1154. NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,.0),NumberSequenceKeypoint.new(1,1)})
  1155. NewParticle.Speed = NumberRange.new(0,0.0)
  1156. NewParticle.ZOffset = 2
  1157. NewParticle.Texture = "rbxassetid://243660364"
  1158. NewParticle.RotSpeed = NumberRange.new(-0,0)
  1159. NewParticle.Rotation = NumberRange.new(-180,180)
  1160. NewParticle.Enabled = false
  1161. game:GetService("Debris"):AddItem(YourGone, 3)
  1162. for i = 0,2,1 do
  1163. NewParticle:Emit(1)
  1164. so("1448044156", FoundTorso,2, 1)
  1165. h.Parent:BreakJoints()
  1166. YourGone.CFrame = FoundTorso.CFrame
  1167. for _,v in pairs(h.Parent:children()) do
  1168. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1169. v.Anchored=false
  1170. -- v.Material = "Neon"
  1171. --v.BrickColor = BrickColor.new("Really red")
  1172. if v:FindFirstChildOfClass("SpecialMesh")then
  1173. --v:Destroy()
  1174. end
  1175. if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
  1176. -- v:Destroy()
  1177. end
  1178. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
  1179.  
  1180. vp.Parent = v
  1181. game:GetService("Debris"):AddItem(vp, math.random(50,100)/1000)
  1182.  
  1183.  
  1184. end
  1185.  
  1186.  
  1187.  
  1188. end
  1189.  
  1190.  
  1191.  
  1192. wait(.2)
  1193. end
  1194. wait(.1)
  1195. NewParticle:Emit(3)
  1196. so("1448044156", FoundTorso,2, .8)
  1197. h.Parent:BreakJoints()
  1198. YourGone.CFrame = FoundTorso.CFrame
  1199. for _,v in pairs(h.Parent:children()) do
  1200. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1201. v.Anchored=false
  1202. -- v.Material = "Neon"
  1203. --v.BrickColor = BrickColor.new("Really red")
  1204. if v:FindFirstChildOfClass("SpecialMesh")then
  1205. --v:Destroy()
  1206. end
  1207. if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
  1208. -- v:Destroy()
  1209. end
  1210. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
  1211.  
  1212. vp.Parent = v
  1213. game:GetService("Debris"):AddItem(vp, math.random(100,200)/1000)
  1214.  
  1215.  
  1216. end
  1217.  
  1218.  
  1219.  
  1220. end
  1221.  
  1222.  
  1223.  
  1224.  
  1225. end))
  1226.  
  1227.  
  1228.  
  1229.  
  1230. wait(.1)
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238. end
  1239.  
  1240.  
  1241. end))
  1242. if h ~= nil and hit.Parent ~= Character and hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  1243. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1244. return
  1245. end
  1246. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  1247. game:GetService("Debris"):AddItem(c, 0.5)
  1248. if HitSound ~= nil and HitPitch ~= nil then
  1249. so(HitSound, hit, 1, HitPitch)
  1250. end
  1251. local Damage = math.random(minim, maxim)
  1252. local blocked = false
  1253. local block = hit.Parent:findFirstChild("Block")
  1254. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1255. blocked = true
  1256. block.Value = block.Value - 1
  1257. print(block.Value)
  1258. end
  1259. if blocked == false then
  1260. h.Health = h.Health - Damage
  1261. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Color3.new(0,0,0))
  1262. else
  1263. h.Health = h.Health - Damage / 2
  1264. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Color3.new(0,0,0))
  1265.  
  1266. end
  1267.  
  1268. if Type == "Knockdown" then
  1269. local hum = h
  1270.  
  1271. hum.PlatformStand = true
  1272. coroutine.resume(coroutine.create(function(HHumanoid)
  1273.  
  1274. wait(.2)
  1275. HHumanoid.PlatformStand = false
  1276. end
  1277. ), hum)
  1278.  
  1279.  
  1280.  
  1281. local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
  1282. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1283. local bodvol = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,FoundTorso.Position).lookVector * knockback, Parent = hit})
  1284. local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  1285. game:GetService("Debris"):AddItem(bodvol, .2)
  1286. game:GetService("Debris"):AddItem(rl, 0.2)
  1287.  
  1288.  
  1289.  
  1290. elseif Type == "Knockdown2" then
  1291. local hum = h
  1292.  
  1293. hum.PlatformStand = true
  1294. coroutine.resume(coroutine.create(function(HHumanoid)
  1295.  
  1296.  
  1297. Combo = 1 wait(.2)
  1298. HHumanoid.PlatformStand = false
  1299. end
  1300. ), hum)
  1301. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1302. local bodvol = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,Property.Position).lookVector * knockback})
  1303. local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  1304. game:GetService("Debris"):AddItem(bodvol, 0.2)
  1305. game:GetService("Debris"):AddItem(rl, 0.2)
  1306.  
  1307.  
  1308.  
  1309.  
  1310.  
  1311.  
  1312. local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 60, 0), P = 5000, maxForce = Vector3.new(8000, 12000, 8000), Parent = RootPart})
  1313. game:GetService("Debris"):AddItem(bodyVelocity2, 0.1)
  1314.  
  1315. elseif Type == "Normal" then
  1316. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,Property.Position).lookVector * knockback})
  1317. if knockback > 0 then
  1318.  
  1319. local HTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1320. vp.Parent = HTorso
  1321. end
  1322. game:GetService("Debris"):AddItem(vp, 0.25)
  1323.  
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329.  
  1330. elseif Type== "Fire" then
  1331. local HTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1332.  
  1333. local tags = 0
  1334. for _,v2 in next, HTorso:GetChildren() do
  1335. if v2:IsA("Folder") and v2.Name == "OnFire" then
  1336. tags=tags+1
  1337. end
  1338. end
  1339.  
  1340. if tags < 2 then
  1341.  
  1342. local fireef = EffectPack.FireEffect:Clone()
  1343.  
  1344. local tag = Instance.new("Folder",HTorso)
  1345. tag.Name = "OnFire"
  1346. game:GetService("Debris"):AddItem(tag, 4.5)
  1347. for _,v in next, fireef:GetDescendants() do if v:IsA("ParticleEmitter") or v:IsA("SpotLight") then game:GetService("Debris"):AddItem(v, 5) v.Parent = HTorso
  1348. coroutine.resume(coroutine.create(function()
  1349. for i = 1,35 do
  1350. coroutine.resume(coroutine.create(function()
  1351. v:Emit(2) end))
  1352. coroutine.resume(coroutine.create(function()
  1353. Damagefunc(HTorso, HTorso, 4/2, 6/2, 0, "Normal", RootPart, 0.1, "1273118342", math.random(10,30)/10)
  1354. end))
  1355. if HTorso.Parent:FindFirstChildOfClass("Humanoid") and HTorso.Parent:FindFirstChildOfClass("Humanoid").Health > .01 then
  1356. else for _,v2 in next, HTorso.Parent:GetDescendants() do if v2:isA("BasePart") then SetTween(v2,{Color=C3(0,0,0)},"Quad","Out",.5) end end break
  1357. end
  1358. wait(.1)
  1359. end
  1360. end))
  1361.  
  1362. end end
  1363.  
  1364.  
  1365. fireef:Destroy()
  1366. else-- print("Hit Max")
  1367. end
  1368. elseif Type== "Instakill" then
  1369. coroutine.resume(coroutine.create(function()
  1370. if (h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")) and not h.Parent:FindFirstChild("Fly away")then
  1371.  
  1372.  
  1373. local FATag = Instance.new("Model",h.Parent)
  1374.  
  1375. FATag.Name = "Fly away"
  1376. game:GetService("Debris"):AddItem(FATag, 2.5)
  1377.  
  1378.  
  1379. for _,v in pairs(h.Parent:children()) do
  1380. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1381. v.Anchored=true
  1382. end
  1383. end
  1384.  
  1385. wait(.25)
  1386.  
  1387. if h.Parent:FindFirstChildOfClass("Body Colors")then
  1388. h.Parent:FindFirstChildOfClass("Body Colors"):Destroy()
  1389. end
  1390.  
  1391.  
  1392. local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
  1393.  
  1394. coroutine.resume(coroutine.create(function()
  1395.  
  1396.  
  1397. local YourGone = Instance.new("Part")
  1398. YourGone.Reflectance = 0
  1399. YourGone.Transparency = 1
  1400. YourGone.CanCollide = false
  1401. YourGone.Locked = true
  1402. YourGone.Anchored=true
  1403. YourGone.BrickColor = BrickColor.new("Really blue")
  1404. YourGone.Name = "YourGone"
  1405. YourGone.Size = Vector3.new()
  1406. YourGone.Material = "SmoothPlastic"
  1407. YourGone:BreakJoints()
  1408. YourGone.Parent = FoundTorso
  1409. YourGone.CFrame = FoundTorso.CFrame
  1410.  
  1411. local NewParticle = Instance.new("ParticleEmitter")
  1412. NewParticle.Parent = YourGone
  1413. NewParticle.Acceleration = Vector3.new(0,0,0)
  1414. NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,.0)})
  1415. NewParticle.Color = ColorSequence.new(Color3.new (1,0,0), Color3.new (1, 0, 0))
  1416. NewParticle.Lifetime = NumberRange.new(0.55,0.95)
  1417. NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,.0),NumberSequenceKeypoint.new(1,1)})
  1418. NewParticle.Speed = NumberRange.new(0,0.0)
  1419. NewParticle.ZOffset = 2
  1420. NewParticle.Texture = "rbxassetid://243660364"
  1421. NewParticle.RotSpeed = NumberRange.new(-0,0)
  1422. NewParticle.Rotation = NumberRange.new(-180,180)
  1423. NewParticle.Enabled = false
  1424. game:GetService("Debris"):AddItem(YourGone, 3)
  1425. for i = 0,2,1 do
  1426. NewParticle:Emit(1)
  1427. so("1448044156", FoundTorso,2, 1)
  1428. h.Parent:BreakJoints()
  1429. YourGone.CFrame = FoundTorso.CFrame
  1430. for _,v in pairs(h.Parent:children()) do
  1431. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1432. v.Anchored=false
  1433. -- v.Material = "Neon"
  1434. --v.BrickColor = BrickColor.new("Really red")
  1435. if v:FindFirstChildOfClass("SpecialMesh")then
  1436. --v:Destroy()
  1437. end
  1438. if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
  1439. -- v:Destroy()
  1440. end
  1441. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
  1442.  
  1443. vp.Parent = v
  1444. game:GetService("Debris"):AddItem(vp, math.random(50,100)/1000)
  1445.  
  1446.  
  1447. end
  1448.  
  1449.  
  1450.  
  1451. end
  1452.  
  1453.  
  1454.  
  1455. wait(.2)
  1456. end
  1457. wait(.1)
  1458. NewParticle:Emit(3)
  1459. so("1448044156", FoundTorso,2, .8)
  1460. h.Parent:BreakJoints()
  1461. YourGone.CFrame = FoundTorso.CFrame
  1462. for _,v in pairs(h.Parent:children()) do
  1463. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1464. v.Anchored=false
  1465. -- v.Material = "Neon"
  1466. --v.BrickColor = BrickColor.new("Really red")
  1467. if v:FindFirstChildOfClass("SpecialMesh")then
  1468. --v:Destroy()
  1469. end
  1470. if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
  1471. -- v:Destroy()
  1472. end
  1473. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
  1474.  
  1475. vp.Parent = v
  1476. game:GetService("Debris"):AddItem(vp, math.random(100,200)/1000)
  1477.  
  1478.  
  1479. end
  1480.  
  1481.  
  1482.  
  1483. end
  1484.  
  1485.  
  1486.  
  1487.  
  1488. end))
  1489.  
  1490.  
  1491.  
  1492.  
  1493. wait(.1)
  1494.  
  1495.  
  1496.  
  1497.  
  1498.  
  1499.  
  1500.  
  1501. end
  1502.  
  1503.  
  1504. end))
  1505.  
  1506.  
  1507. elseif Type == "HPSteal" then
  1508. Humanoid.Health = Humanoid.Health + Damage
  1509. local hum = h
  1510.  
  1511. hum.PlatformStand = true
  1512. coroutine.resume(coroutine.create(function(HHumanoid)
  1513.  
  1514.  
  1515. Combo = 1 wait(.2)
  1516. HHumanoid.PlatformStand = false
  1517. end
  1518. ), hum)
  1519. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1520. local bodvol = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,Property.Position).lookVector * knockback})
  1521. local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  1522. game:GetService("Debris"):AddItem(bodvol, 0.2)
  1523. game:GetService("Debris"):AddItem(rl, 0.2)
  1524.  
  1525.  
  1526.  
  1527.  
  1528.  
  1529.  
  1530. local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 60, 0), P = 5000, maxForce = Vector3.new(8000, 12000, 8000), Parent = RootPart})
  1531. game:GetService("Debris"):AddItem(bodyVelocity2, 0.1)
  1532.  
  1533.  
  1534. elseif Type == "Impale" then
  1535.  
  1536.  
  1537.  
  1538.  
  1539.  
  1540.  
  1541.  
  1542.  
  1543. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, .8, 2)
  1544. hit.Parent.Humanoid.PlatformStand = true
  1545.  
  1546.  
  1547. wait(1)
  1548. hit.Parent.Humanoid.PlatformStand = false
  1549. elseif Type == "IgnoreType" then
  1550.  
  1551.  
  1552.  
  1553.  
  1554.  
  1555. elseif Type == "Up" then
  1556. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1557. game:GetService("Debris"):AddItem(bodyVelocity, 0.1)
  1558. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1559. game:GetService("Debris"):AddItem(bodyVelocity, .1)
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567. elseif Type == "Snare" then
  1568. local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = (h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso"))})
  1569. game:GetService("Debris"):AddItem(bp, 1)
  1570.  
  1571.  
  1572.  
  1573. elseif Type == "Freeze2" then
  1574. local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  1575. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  1576. hit.Parent.Torso.Anchored = true
  1577. coroutine.resume(coroutine.create(function(Part)
  1578.  
  1579. wait(1.5)
  1580. Part.Anchored = false
  1581. end
  1582. ), hit.Parent.Torso)
  1583. game:GetService("Debris"):AddItem(BodPos, 3)
  1584. game:GetService("Debris"):AddItem(BodGy, 3)
  1585. end
  1586. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  1587. game:GetService("Debris"):AddItem(debounce, Delay)
  1588. c = Instance.new("ObjectValue")
  1589. c.Name = "creator"
  1590. c.Value = Player
  1591. c.Parent = h
  1592. game:GetService("Debris"):AddItem(c, 0.5)
  1593. end
  1594. end
  1595.  
  1596.  
  1597.  
  1598. ShowDamage = function(Pos, Text, Time, Color)
  1599.  
  1600. local Rate = 0.033333333333333
  1601. if not Pos then
  1602. local Pos = Vector3.new(0, 0, 0)
  1603. end
  1604. local Text = Text or ""
  1605. local Time = Time or 2
  1606. if not Color then
  1607. local Color = Color3.new(1, 0, 1)
  1608. end
  1609. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1610. EffectPart.Anchored = true
  1611. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(2, 0, 2, 0), Adornee = EffectPart, Parent = EffectPart})
  1612. local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = "DMG: "..Text.."", TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
  1613. TextLabel.TextTransparency=1
  1614. game.Debris:AddItem(EffectPart, Time + 0.1)
  1615. EffectPart.Parent = game:GetService("Workspace")
  1616. delay(0, function()
  1617.  
  1618. local Frames = Time / Rate
  1619.  
  1620.  
  1621.  
  1622. --print(Frames)
  1623.  
  1624. EffectPart.CFrame=CFrame.new(Pos)
  1625. wait() TextLabel.TextTransparency=0
  1626. SetTween(TextLabel,{TextTransparency=1},"Quad","In",Frames/60)
  1627. SetTween(TextLabel,{Rotation=math.random(-25,25)},"Elastic","InOut",Frames/60)
  1628. SetTween(TextLabel,{TextColor3=Color3.new(1,0,0)},"Elastic","InOut",Frames/60)
  1629.  
  1630. SetTween(EffectPart,{CFrame = CFrame.new(Pos) + Vector3.new(math.random(-5,5), math.random(1,5), math.random(-5,5))},"Linear","InOut",Frames/60)
  1631.  
  1632.  
  1633. wait(Frames/60)
  1634.  
  1635. if EffectPart and EffectPart.Parent then
  1636. EffectPart:Destroy()
  1637. end
  1638. end
  1639. )
  1640. end
  1641.  
  1642. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type2)
  1643.  
  1644.  
  1645.  
  1646.  
  1647. local Type=""
  1648.  
  1649.  
  1650.  
  1651.  
  1652. if mememode == true then
  1653.  
  1654. Type= "Instakill"
  1655.  
  1656. else
  1657. Type=Type2
  1658. end
  1659. if Type2 == "NormalKnockdown" then
  1660. Type= "Knockdown"
  1661. end
  1662.  
  1663. for _,c in pairs(workspace:children()) do
  1664.  
  1665.  
  1666.  
  1667.  
  1668.  
  1669. local hum = c:FindFirstChild("Humanoid")
  1670. for _,v in pairs(c:children()) do
  1671. if v:IsA("Humanoid") then
  1672. hum = v
  1673. end
  1674. end
  1675.  
  1676.  
  1677.  
  1678.  
  1679. if hum ~= nil then
  1680. local head = c:findFirstChild("Head")
  1681. if head ~= nil then
  1682. local targ = head.Position - Part.Position
  1683. local mag = targ.magnitude
  1684. if mag <= magni and c.Name ~= Player.Name then
  1685. Damagefunc(Part, head, mindam, maxdam, knock, Type, RootPart, 0.1, "851453784", 1.2)
  1686. end
  1687. end
  1688. end
  1689. end
  1690. end
  1691.  
  1692.  
  1693. function CFMagniDamage(HTCF,magni, mindam, maxdam, knock, Type)
  1694. local DGP = Instance.new("Part")
  1695.  
  1696. DGP.Parent = Character
  1697. DGP.Size = Vector3.new(0.05, 0.05, 0.05)
  1698. DGP.Transparency = 1
  1699. DGP.CanCollide = false
  1700. DGP.Anchored = true
  1701. RemoveOutlines(DGP)
  1702. DGP.Position=DGP.Position + Vector3.new(0,-.1,0)
  1703. DGP.CFrame = HTCF
  1704.  
  1705. coroutine.resume(coroutine.create(function()
  1706. MagniDamage(DGP, magni, mindam, maxdam, knock, Type)
  1707. end))
  1708. game:GetService("Debris"):AddItem(DGP, .05)
  1709.  
  1710.  
  1711. DGP.Archivable = false
  1712. end
  1713.  
  1714.  
  1715.  
  1716.  
  1717.  
  1718. -----------------
  1719. function findNearestTorso(pos,dist1)
  1720. local list = game.Workspace:children()
  1721. local torso = nil
  1722. local dist = dist1 or 1000
  1723. local temp = nil
  1724. local human = nil
  1725. local temp2 = nil
  1726. for x = 1, #list do
  1727. temp2 = list[x]
  1728. if (temp2.className == "Model") and (temp2 ~= Character) then
  1729. temp = (temp2:FindFirstChild("Torso") or temp2:FindFirstChild("UpperTorso"))
  1730. human = temp2:findFirstChildOfClass("Humanoid")
  1731. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1732. if (temp.Position - pos).magnitude < dist then
  1733. torso = temp
  1734. dist = (temp.Position - pos).magnitude
  1735. end
  1736. end
  1737. end
  1738. end
  1739. return torso
  1740. end
  1741. function BulletHitEffectSpawn(EffectCF,EffectName)
  1742. local MainEffectHolder=Instance.new("Part",Effects)
  1743. MainEffectHolder.Reflectance = 0
  1744. MainEffectHolder.Transparency = 1
  1745. MainEffectHolder.CanCollide = false
  1746. MainEffectHolder.Locked = true
  1747. MainEffectHolder.Anchored=true
  1748. MainEffectHolder.BrickColor = BrickColor.new("Bright green")
  1749. MainEffectHolder.Name = "Bullet"
  1750. MainEffectHolder.Size = Vector3.new(.05,.05,.05)
  1751. MainEffectHolder.Material = "Neon"
  1752. MainEffectHolder:BreakJoints()
  1753. MainEffectHolder.CFrame = EffectCF
  1754. local EffectAttach=Instance.new("Attachment",MainEffectHolder)
  1755. game:GetService("Debris"):AddItem(MainEffectHolder, 15)
  1756.  
  1757. if EffectName == "Explode" then
  1758. EffectAttach.Orientation = Vector3.new(90,0,0)
  1759.  
  1760.  
  1761.  
  1762.  
  1763. local SpawnedParticle1 = EffectPack.Explode_Fire_Effect:Clone()
  1764. SpawnedParticle1.Parent = MainEffectHolder
  1765. SpawnedParticle1:Emit(150)
  1766.  
  1767.  
  1768.  
  1769. local SpawnedParticle2 = EffectPack.Explode_Smoke2_Effect:Clone()
  1770. SpawnedParticle2.Parent = MainEffectHolder
  1771. SpawnedParticle2:Emit(25)
  1772.  
  1773.  
  1774.  
  1775. local SpawnedParticle3 = EffectPack.Explode_Smoke_Effect:Clone()
  1776. SpawnedParticle3.Parent = MainEffectHolder
  1777. SpawnedParticle3:Emit(185)
  1778. game:GetService("Debris"):AddItem(MainEffectHolder, 2)
  1779.  
  1780.  
  1781. end
  1782.  
  1783.  
  1784.  
  1785.  
  1786.  
  1787.  
  1788. if EffectName == "Spark" then
  1789.  
  1790. EffectAttach.Orientation = Vector3.new(90,0,0)
  1791.  
  1792.  
  1793.  
  1794.  
  1795. local SpawnedParticle1 = EffectPack.Spark:Clone()
  1796. SpawnedParticle1.Parent = MainEffectHolder
  1797. SpawnedParticle1:Emit(math.random(2,5))
  1798.  
  1799.  
  1800.  
  1801.  
  1802. game:GetService("Debris"):AddItem(MainEffectHolder, 2)
  1803.  
  1804.  
  1805. end
  1806.  
  1807.  
  1808.  
  1809.  
  1810.  
  1811. if EffectName == "Nuke" then
  1812. so(923073285,MainEffectHolder,8,2)
  1813. EffectAttach.Orientation = Vector3.new(0,0,0)
  1814. local EffectAttach2=Instance.new("Attachment",MainEffectHolder)
  1815. EffectAttach2.Orientation = Vector3.new(0,0,0)
  1816.  
  1817.  
  1818.  
  1819.  
  1820. local SpawnedParticle1 = EffectPack.Nuke_Flash:Clone()
  1821. SpawnedParticle1.Parent = EffectAttach
  1822. SpawnedParticle1:Emit(20)
  1823.  
  1824.  
  1825.  
  1826. local SpawnedParticle2 = EffectPack.Nuke_Smoke:Clone()
  1827. SpawnedParticle2.Parent = EffectAttach2
  1828. SpawnedParticle2.Enabled = true
  1829. coroutine.resume(coroutine.create(function()
  1830.  
  1831. for i = 0,2,.025/1.5 do
  1832.  
  1833.  
  1834. SpawnedParticle2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.15,.5+(i/4)),NumberSequenceKeypoint.new(.95,.5+(i/4)),NumberSequenceKeypoint.new(1,1)})
  1835. Swait()
  1836. end
  1837. SpawnedParticle2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,1)})
  1838.  
  1839. SpawnedParticle2.Enabled = false
  1840. end))
  1841.  
  1842.  
  1843. local SpawnedParticle3 = EffectPack.Nuke_Wave:Clone()
  1844. SpawnedParticle3.Parent = EffectAttach
  1845. SpawnedParticle3:Emit(185)
  1846. game:GetService("Debris"):AddItem(EffectAttach, 10)
  1847.  
  1848.  
  1849. end
  1850.  
  1851.  
  1852.  
  1853.  
  1854.  
  1855.  
  1856.  
  1857.  
  1858.  
  1859.  
  1860.  
  1861.  
  1862. end
  1863.  
  1864. function ProjectileDmg(MinDmg1,MaxDmg1,Lookpos1,Lookray1,Aura1,Type,Partf)
  1865.  
  1866. if Lookray1 ~= nil and Lookray1.Parent:FindFirstChildOfClass("Humanoid") then
  1867. coroutine.resume(coroutine.create(function()
  1868. Damagefunc(Partf, Lookray1, MinDmg1, MaxDmg1, MinDmg1, Type, RootPart, 0.1, "851453784", 1.2) end))
  1869. else
  1870. CFMagniDamage(CF(Lookpos1),Aura1, MinDmg1, MaxDmg1, MinDmg1, Type)
  1871. end
  1872.  
  1873.  
  1874.  
  1875.  
  1876.  
  1877. end
  1878.  
  1879.  
  1880. function FireSoul(SpawnCF)
  1881.  
  1882.  
  1883. local GhostHolder = EffectPack.Missile:Clone()
  1884. GhostHolder.Parent = Effects
  1885. GhostHolder.CFrame = SpawnCF
  1886.  
  1887.  
  1888. local Missile = GhostHolder
  1889. for i, v3 in pairs(GatherAllInstances(Missile)) do
  1890. if v3:IsA("ParticleEmitter") then
  1891. v3.Enabled = true
  1892. end
  1893. end
  1894.  
  1895.  
  1896.  
  1897.  
  1898. coroutine.resume(coroutine.create(function()
  1899. Missile["Rocket Thrust Loop"]:Play()
  1900. end))
  1901.  
  1902.  
  1903. so(771710614,Missile,1,1)
  1904.  
  1905. wait()
  1906.  
  1907.  
  1908. game:GetService("Debris"):AddItem(GhostHolder, 60)
  1909.  
  1910. coroutine.resume(coroutine.create(function()
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917. GhostHolder.Transparency = 0
  1918.  
  1919.  
  1920.  
  1921.  
  1922. end))
  1923.  
  1924.  
  1925.  
  1926. --GhostHolder.Touched:connect(onTouch)
  1927.  
  1928. --GhostHolder:BreakJoints()
  1929. --GhostHolder.Anchored = false
  1930.  
  1931.  
  1932. --Acthing(GhostHolder,"1698327723",Vector3.new(1.41,1.42,1.41),BrickColor.new("Really black"),"Glass",0.0,cn(0,.0325,0)*angles(math.rad(0), math.rad(180), math.rad(0)),Color3.new(0,0,0),GhostHolder,2)
  1933. local GhostTarget=nil
  1934.  
  1935. coroutine.resume(coroutine.create(function()
  1936.  
  1937.  
  1938. local lookdir=RootPart.CFrame.lookVector *15
  1939.  
  1940. while GhostHolder.Parent == Effects do
  1941.  
  1942.  
  1943. GhostTarget = findNearestTorso(GhostHolder.Position)
  1944.  
  1945.  
  1946. if GhostTarget ~=nil then
  1947.  
  1948.  
  1949.  
  1950.  
  1951.  
  1952.  
  1953. if OverClocking ==false then
  1954. SetTween(GhostHolder,{CFrame =CFrame.new(GhostHolder.Position+GhostHolder.CFrame.lookVector*20,(GhostTarget.Position+GhostHolder.CFrame.lookVector*30 )-VT(math.random(-10,10),math.random(-15,15),math.random(-10,10)))},"Linear","Out",.2)
  1955. --GhostForce.velocity =GhostHolder.CFrame.lookVector *80
  1956. else
  1957. SetTween(GhostHolder,{CFrame =CFrame.new(GhostHolder.Position+GhostHolder.CFrame.lookVector*20,(GhostTarget.Position+GhostHolder.CFrame.lookVector*21 ))},"Linear","Out",.1)
  1958.  
  1959. end
  1960.  
  1961. else
  1962. if OverClocking ==false then
  1963. SetTween(GhostHolder,{CFrame =CFrame.new(GhostHolder.Position+GhostHolder.CFrame.LookVector*20,GhostHolder.Position+VT(0,-1,0)+GhostHolder.CFrame.LookVector*30)},"Linear","Out",.2)
  1964.  
  1965. else
  1966. SetTween(GhostHolder,{CFrame =CFrame.new(GhostHolder.Position+GhostHolder.CFrame.LookVector*20,GhostHolder.Position+VT(0,-1,0)+GhostHolder.CFrame.LookVector*30)},"Linear","Out",.2)
  1967.  
  1968.  
  1969.  
  1970. end
  1971. end
  1972. local Lookray,Lookpos,test1 = rayCast(GhostHolder.Position, GhostHolder.CFrame.lookVector, 10, Character)
  1973. if Lookray ~= nil then
  1974. --onTouch(Lookray)
  1975.  
  1976.  
  1977.  
  1978.  
  1979.  
  1980. so(2814355743,GhostHolder,3,2)
  1981. BulletHitEffectSpawn(CF(Lookpos,Lookpos+test1),"Explode")
  1982.  
  1983. ProjectileDmg(30,45,Lookpos,nil,15,"Knockdown",GhostHolder)
  1984.  
  1985.  
  1986.  
  1987.  
  1988.  
  1989.  
  1990. coroutine.resume(coroutine.create(function()
  1991. GhostHolder["Rocket Thrust Loop"]:Stop()
  1992. end))
  1993.  
  1994.  
  1995.  
  1996.  
  1997. for i, v3 in pairs(GatherAllInstances(GhostHolder)) do
  1998. if v3:IsA("ParticleEmitter") then
  1999. v3.Enabled = false
  2000. end
  2001. end
  2002.  
  2003.  
  2004. SetTween(GhostHolder,{Transparency=1},"Quad","Out",1)
  2005. game:GetService("Debris"):AddItem(GhostHolder, 2)
  2006.  
  2007.  
  2008. break
  2009.  
  2010.  
  2011.  
  2012. end
  2013. --wait(1.35)
  2014. Swait() end
  2015. --GhostHolder:Destroy()
  2016. end))
  2017.  
  2018.  
  2019. end
  2020.  
  2021.  
  2022.  
  2023.  
  2024.  
  2025.  
  2026.  
  2027.  
  2028.  
  2029.  
  2030.  
  2031. --[[
  2032. for i, v in pairs(C:GetChildren()) do
  2033. if v:IsA("Accessory")then
  2034. v:Destroy()
  2035. end
  2036. if v:IsA("BasePart")then
  2037. v.Transparency =1
  2038. if v.Name == "Head" then
  2039. v:FindFirstChildOfClass("Decal"):Destroy()
  2040. end
  2041. end
  2042. end--]]
  2043. --[[
  2044.  
  2045.  
  2046.  
  2047.  
  2048.  
  2049.  
  2050.  
  2051.  
  2052.  
  2053.  
  2054.  
  2055.  
  2056.  
  2057. local tweeningInformation = TweenInfo.new(
  2058. 0.5,
  2059. Enum.EasingStyle.Back,
  2060. Enum.EasingDirection.Out,
  2061. 0,
  2062. false,
  2063. 0
  2064. )
  2065. --]]
  2066.  
  2067.  
  2068. local RJW=weld(RJ.Parent,RJ.Part0,RJ.Part1,RJ.C0)
  2069. RJW.C1 = RJ.C1
  2070. RJW.Name = RJ.Name
  2071.  
  2072. local NeckW=weld(Neck.Parent,Neck.Part0,Neck.Part1,Neck.C0)
  2073. NeckW.C1 = Neck.C1
  2074. NeckW.Name = Neck.Name
  2075.  
  2076.  
  2077. --print(WRJ.Parent.Name)
  2078.  
  2079. local RW=weld(Torso,Torso,RightArm,cf(0,0,0))
  2080.  
  2081. local LW=weld(Torso,Torso,LeftArm,cf(0,0,0))
  2082.  
  2083. local RH=weld(Torso,Torso,RightLeg,cf(0,0,0))
  2084.  
  2085. local LH=weld(Torso,Torso,LeftLeg,cf(0,0,0))
  2086.  
  2087.  
  2088.  
  2089. RW.C1 = cn(0, 0.5, 0)
  2090. LW.C1 = cn(0, 0.5, 0)
  2091. RH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  2092. LH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  2093.  
  2094.  
  2095.  
  2096.  
  2097.  
  2098.  
  2099. --------
  2100. --(#Torso)
  2101. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)},"Quad","InOut",0.1)
  2102. --------
  2103. --(#Head)
  2104. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)},"Quad","InOut",0.1)
  2105. --------
  2106. --(#Right Arm)
  2107. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)},"Quad","InOut",0.1)
  2108. --------
  2109. --(#Left Arm)
  2110. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)},"Quad","InOut",0.1)
  2111. --------
  2112. --(#Right Leg)
  2113. SetTween(RH,{C0=CFrame.new(.5, -0.90, 0)},"Quad","InOut",0.1)
  2114. --------
  2115. --(#Left Leg)
  2116. SetTween(LH,{C0=CFrame.new(-.5, -0.90, 0)},"Quad","InOut",0.1)
  2117.  
  2118.  
  2119.  
  2120. --[[
  2121. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  2122. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  2123. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1)
  2124. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1)
  2125. SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  2126. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  2127. --]]
  2128.  
  2129.  
  2130.  
  2131. Humanoid.MaxHealth = 99999
  2132.  
  2133. Humanoid.Health = 99999
  2134. GainCharge = function()
  2135. Humanoid.MaxHealth = 99999
  2136. Humanoid.Health = 99999
  2137. end
  2138.  
  2139. Humanoid.HealthChanged:connect(function() GainCharge(Humanoid) end)
  2140.  
  2141.  
  2142. function SpawnDrone(SPCF)
  2143. coroutine.resume(coroutine.create(function()
  2144. local DroneModel = nil --EffectPack.Drone:Clone()
  2145. if math.random(1,30) == 1 then
  2146. DroneModel = EffectPack.Toaster:Clone()
  2147. else
  2148. DroneModel = EffectPack.Drone:Clone()
  2149.  
  2150. end
  2151. local Drone = EffectPack.Part:Clone()
  2152. Drone.Parent = Effects
  2153. Drone.Name = "Drone"
  2154. Drone.Anchored = true
  2155.  
  2156. local Part1=Drone
  2157. local Part2=DroneModel.Handle
  2158. --game:GetService("Debris"):AddItem(Drone, 60)
  2159. coroutine.resume(coroutine.create(function()
  2160. wait(60)
  2161. Drone:Destroy()
  2162. end))
  2163. Drone.CFrame = SPCF*CF(0,10,600)
  2164. JointAllTo(Part1,Part2,DroneModel,CFrame.new(0,0,0))
  2165. SetTween(Drone,{CFrame=SPCF*CF(math.random(-100,100)/10,math.random(5,20),math.random(-10,10)/10)},"Quad","Out",1)
  2166. wait(1)
  2167. local v2 = findNearestTorso(Drone.Position,70)
  2168. if v2 ~= nil then
  2169. SetTween(Drone,{CFrame=CF(Drone.CFrame.p,v2.CFrame.p)},"Quad","InOut",.5)
  2170. end
  2171. Swait(0.15*30)
  2172. for i2 =1,16 do
  2173. for i = 1,2,1 do
  2174. local v = findNearestTorso(Drone.Position,70)
  2175. if v~=nil then
  2176.  
  2177. SetTween(Drone,{CFrame=CF(Drone.CFrame.p,v2.CFrame.p)},"Quad","Out",.25)
  2178.  
  2179. local lighth,lightp,test1 = rayCast(Drone["gun"..i].CFrame.p, CFrame.new(Drone["gun"..i].CFrame.p, v.CFrame.p).lookVector, 70, Character)
  2180. if DroneModel.Name ~= "Toaster" then
  2181. Lightning(Drone["gun"..i].CFrame.p,lightp , 5, .2, BrickColor.new("Persimmon"), .15, .5,-.25*2,.5,nil)
  2182. BulletHitEffectSpawn(CF(lightp,lightp+test1),"Spark")
  2183. coroutine.resume(coroutine.create(function()
  2184. so("168586621", Drone,1.6, math.random(120,220)/100)
  2185.  
  2186. so("1225795839", Drone,2, math.random(120,220)/100)
  2187. CFMagniDamage(CF(lightp),10,5,10,10,"Knockdown")
  2188.  
  2189. end))Swait(0.15*30)
  2190. else
  2191.  
  2192. Lightning(Drone["gun"..i].CFrame.p,lightp , 15, 1, BrickColor.new("Persimmon"), 2, 0,-.25*2,1,nil)
  2193. BulletHitEffectSpawn(CF(lightp,lightp+test1),"Explode")
  2194. coroutine.resume(coroutine.create(function()
  2195. -- so("168586621", Drone,1.0, math.random(120,220)/100)
  2196.  
  2197. so("1578823908", Drone,4, math.random(100,150)/100)
  2198. CFMagniDamage(CF(lightp),20,25,40,-50,"Knockdown")
  2199.  
  2200. end))
  2201. SetTween(Drone,{CFrame=CF(Drone.CFrame.p,v2.CFrame.p)*CF(0,5,-2.5)},"Quad","InOut",.45)
  2202. Swait(0.45*30)
  2203. end
  2204.  
  2205. end
  2206.  
  2207. end
  2208.  
  2209. v2 = findNearestTorso(Drone.Position,70)
  2210. if v2~=nil then
  2211.  
  2212. SetTween(Drone,{CFrame=CF((Drone.CFrame).p,v2.CFrame.p)},"Quad","InOut",.1)
  2213.  
  2214.  
  2215. --Swait(0.2*30)
  2216. end
  2217.  
  2218.  
  2219. end
  2220. SetTween(Drone,{CFrame=Drone.CFrame*CF(0,1000,100)},"Quad","InOut",6)
  2221. wait(6)
  2222. Drone:Destroy()
  2223. end))
  2224. end
  2225.  
  2226.  
  2227. function Attack1()
  2228. attack = true
  2229. Humanoid.JumpPower = 0
  2230. Humanoid.WalkSpeed = 0
  2231. so("418302853", Torso,4, 2)
  2232. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-.6)*angles(math.rad(10),math.rad(0),math.rad(0))},"Back","Out",0.3)
  2233. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0))},"Back","Out",0.3)
  2234. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(45),math.rad(0),math.rad(10))},"Back","Out",0.3)
  2235. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(20),math.rad(0),math.rad(-10))},"Back","Out",0.3)
  2236. SetTween(RH,{C0=CFrame.new(.5, -.7, -.2)*angles(math.rad(30),math.rad(0),math.rad(0))},"Back","Out",0.3)
  2237. SetTween(LH,{C0=CFrame.new(-.5, -1.0, -.75)*angles(math.rad(-50),math.rad(0),math.rad(0))},"Back","Out",0.3)
  2238. wait(.3)
  2239. for i2 = 1,2 do
  2240. for i = 1,3 do
  2241. FireSoul(CF(MissileBox["MissileSlot"..i].CFrame.p,MissileBox["MissileSlot"..i].CFrame.p+MissileBox["MissileSlot"..i].CFrame.RightVector))
  2242. SetTween(MissileBox["MissileSlot"..i],{Color=C3(0,0,0)},"Quad","InOut",.05)
  2243. SetTween(MX1w,{C0=CF(0,0,.15)*ANGLES(mr(40),0,0)},"Quad","Out",.1)
  2244.  
  2245. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-.6)*angles(math.rad(0),math.rad(0),math.rad(0))},"Back","Out",0.1)
  2246. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0))},"Back","Out",0.1)
  2247. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(35),math.rad(0),math.rad(20))},"Back","Out",0.1)
  2248. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(10),math.rad(0),math.rad(-20))},"Back","Out",0.1)
  2249. SetTween(RH,{C0=CFrame.new(.5, -.7, -.2)*angles(math.rad(20),math.rad(0),math.rad(0))},"Back","Out",0.1)
  2250. SetTween(LH,{C0=CFrame.new(-.5, -1.0, -.75)*angles(math.rad(-60),math.rad(0),math.rad(0))},"Back","Out",0.1)
  2251.  
  2252. Swait(2)
  2253. SetTween(MX1w,{C0=CF(0,.1,.30)*ANGLES(mr(20),0,0)},"Quad","Out",.1)
  2254. SetTween(MissileBox["MissileSlot"..i],{Color=C3(255/255, 89/255, 89/255)},"Quad","InOut",.25)
  2255. SetTween(RJW,{C0=RootCF*CFrame.new(0,-.25,-.55)*angles(math.rad(10),math.rad(0),math.rad(0))},"Back","Out",0.2)
  2256. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0))},"Back","Out",0.2)
  2257. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(45),math.rad(0),math.rad(10))},"Back","Out",0.2)
  2258. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(20),math.rad(0),math.rad(-10))},"Back","Out",0.2)
  2259. SetTween(RH,{C0=CFrame.new(.5, -.7, -.2)*angles(math.rad(30),math.rad(0),math.rad(0))},"Back","Out",0.2)
  2260. SetTween(LH,{C0=CFrame.new(-.5, -1.0, -.75)*angles(math.rad(-50),math.rad(0),math.rad(0))},"Back","Out",0.2)
  2261. Swait(2) end
  2262.  
  2263.  
  2264. Swait(4)
  2265. end
  2266.  
  2267. attack = false
  2268.  
  2269. end
  2270.  
  2271. eyehold=false
  2272. function Attack2()
  2273.  
  2274.  
  2275.  
  2276. attack = true
  2277. Humanoid.JumpPower = 0
  2278. Humanoid.WalkSpeed=0
  2279.  
  2280.  
  2281. local eyeffect1 = EffectPack.Light:Clone()
  2282.  
  2283. eyeffect1.Parent = Torso.TorsoLaser.Attachment
  2284.  
  2285.  
  2286. eyeffect1.Enabled = true
  2287. so("1841310110",Torso,3,1)
  2288.  
  2289. for i = 1,3.5,.1 do
  2290. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-.3)*angles(math.rad(40),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  2291. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  2292. SetTween(RW,{C0=CFrame.new(1.2 , 0.5, -.2)*angles(math.rad(75+math.random(-5,5)),math.rad(0),math.rad(-40+math.random(-5,5)))},"Quad","Out",0.1)
  2293. SetTween(LW,{C0=CFrame.new(-1.2, 0.5, -.2)*angles(math.rad(75+math.random(-5,5)),math.rad(0),math.rad(40+math.random(-5,5)))},"Quad","Out",0.1)
  2294. SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(40),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  2295. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(40),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  2296. Swait() end
  2297. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 10, 0)+RootPart.CFrame.lookVector*30, P = 5000, maxForce = Vector3.new(800000, 800000 , 800000), Parent = RootPart})
  2298. so("341301373",Torso,4,0.6)
  2299.  
  2300. --wait(.5)
  2301. eyehold= true
  2302.  
  2303.  
  2304. local Beam1 = Instance.new("Beam",Torso.TorsoLaser)
  2305.  
  2306. local WalkPart = Instance.new("Part",Effects)
  2307. WalkPart.Transparency = 1
  2308. WalkPart.CanCollide = false
  2309. WalkPart.Anchored = true
  2310. WalkPart.CFrame = CFrame.new(0,0,0)
  2311. WalkPart.Size = Vector3.new(.1,.1,.1)
  2312. local Attach2 = Instance.new("Attachment",WalkPart)
  2313.  
  2314.  
  2315.  
  2316.  
  2317.  
  2318.  
  2319.  
  2320. local NewParticle = Particle2_1:Clone()
  2321. NewParticle.Parent = Attach2
  2322. NewParticle.Acceleration = Vector3.new(0,0,0)
  2323. if OverClocking ==false then
  2324. NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2),NumberSequenceKeypoint.new(1,0)})
  2325.  
  2326. else
  2327.  
  2328. NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50),NumberSequenceKeypoint.new(1,0)})
  2329.  
  2330.  
  2331. end
  2332. NewParticle.Color = ColorSequence.new(Color3.new (151/255, 0/255, 0/255), Color3.new (1, .2, .2))
  2333. NewParticle.Lifetime = NumberRange.new(.2,.3)
  2334. NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,0),NumberSequenceKeypoint.new(1,1)})
  2335. NewParticle.Speed = NumberRange.new(0)
  2336. NewParticle.ZOffset = 6
  2337. NewParticle.RotSpeed = NumberRange.new(-40,40)
  2338. NewParticle.Rotation = NumberRange.new(-180,180)
  2339. NewParticle.Texture = "rbxassetid://217245118"
  2340. NewParticle.Rate = 50
  2341. --NewParticle.Enabled = true
  2342.  
  2343. local NewParticle2 = NewParticle:Clone()
  2344. NewParticle2.LockedToPart = true
  2345. NewParticle2.Parent = Attach2
  2346.  
  2347. NewParticle.Speed = NumberRange.new(10)
  2348. NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,.5),NumberSequenceKeypoint.new(1,1)})
  2349.  
  2350. NewParticle.Texture = "rbxassetid://445231898"
  2351. if OverClocking ==false then
  2352. NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,2)})
  2353. else
  2354. NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5),NumberSequenceKeypoint.new(1,28)})
  2355.  
  2356. end
  2357. NewParticle.Lifetime = NumberRange.new(.3,.5)
  2358. NewParticle.ZOffset = 4
  2359. NewParticle.Speed = NumberRange.new(1)
  2360. --NewParticle:Emit(2)
  2361.  
  2362.  
  2363.  
  2364.  
  2365.  
  2366. coroutine.resume(coroutine.create(function()
  2367. if eyehold==true then
  2368.  
  2369.  
  2370.  
  2371.  
  2372.  
  2373. coroutine.resume(coroutine.create(function()
  2374.  
  2375. while eyehold==true do
  2376. wait(.5)
  2377.  
  2378. so("2162238374",Torso.TorsoLaser,4,2.0)
  2379.  
  2380.  
  2381. end
  2382. for i = 1,10 do
  2383. for _,v in pairs(Torso.TorsoLaser:children()) do
  2384. if v:isA("Sound") then
  2385. v.Volume = v.Volume - .4
  2386. end
  2387. end
  2388. Swait()
  2389. end
  2390. end))
  2391.  
  2392.  
  2393. while eyehold == true do
  2394. Swait()
  2395.  
  2396.  
  2397.  
  2398. Humanoid.JumpPower = 0
  2399. change = .6
  2400.  
  2401.  
  2402.  
  2403.  
  2404.  
  2405.  
  2406.  
  2407.  
  2408.  
  2409.  
  2410.  
  2411.  
  2412. Humanoid.WalkSpeed=2
  2413.  
  2414.  
  2415.  
  2416. coroutine.resume(coroutine.create(function()
  2417. local GunPart = Torso.TorsoLaser
  2418.  
  2419.  
  2420. --so("610359515",Head,1.5,.8,4)
  2421. for i = 1,1 do
  2422.  
  2423.  
  2424.  
  2425.  
  2426.  
  2427.  
  2428. coroutine.resume(coroutine.create(function()
  2429.  
  2430. local Glow1 = Color3.new (255/255, 0/255, 0/255)
  2431. local Glow2 = Color3.new (255/255, 0/255, 0/255)
  2432. local hitray,pos,test1 = rayCast(GunPart.Position, GunPart.CFrame.lookVector, 500, Character)
  2433.  
  2434.  
  2435.  
  2436.  
  2437.  
  2438. local mag=(Torso.TorsoLaser.Position-pos).magnitude
  2439.  
  2440.  
  2441.  
  2442. Attach2.Position = pos
  2443. --Attach1.Position = Vector3.new(0,0,0)
  2444. NewParticle.Enabled = true
  2445. NewParticle2.Enabled = true
  2446. eyeffect1.Enabled = true
  2447.  
  2448.  
  2449. Beam1.Texture = "rbxassetid://1134824633"
  2450.  
  2451. Beam1.FaceCamera = true
  2452. Beam1.Color = ColorSequence.new(Glow1,Glow2)
  2453. Beam1.Transparency = NumberSequence.new(0,0)
  2454. Beam1.TextureLength = .1*(mag)
  2455. Beam1.Attachment0 = Torso.TorsoLaser.Attachment
  2456. Beam1.Attachment1 = Attach2
  2457. Beam1.TextureSpeed = 15
  2458. Beam1.LightEmission = 1
  2459. Beam1.Width0 = 2
  2460.  
  2461. if OverClocking ==false then
  2462. Beam1.Width1 = 3
  2463. else
  2464. Beam1.Width1 = 20
  2465. end
  2466.  
  2467.  
  2468.  
  2469.  
  2470.  
  2471. if OverClocking ==false then
  2472. CFMagniDamage(CFrame.new(pos),5, 350, 500, 0, "Normal")
  2473. else
  2474. CFMagniDamage(CFrame.new(pos),30, 350, 500, 0, "Normal")
  2475.  
  2476. end
  2477. coroutine.resume(coroutine.create(function()
  2478. if hitray~=nil then
  2479. for i = 1, 1 do
  2480. local Color = hitray.BrickColor
  2481. local Materials = hitray.Material
  2482. local groundpart = CFuncs.Part.Create( Effects, "SmoothPlastic", 0, 0, Color, "Ground", Vector3.new(math.random(50, 200) / 200, math.random(50, 200) / 200, math.random(50, 200) / 200))
  2483. groundpart.Anchored = false
  2484. groundpart.Material = Materials
  2485. groundpart.CanCollide = true
  2486. groundpart.Friction = 2
  2487. groundpart.Velocity = Vector3.new(math.random(-50, 50), math.random(25, 50), math.random(-50, 50))
  2488. groundpart.CFrame = CF(pos,pos+test1) * cn(math.random(-250, 250) / 100, 0.5, math.random(-250, 250) / 100) * CFrame.Angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)))
  2489. groundpart:SetNetworkOwner(Player)
  2490. game:GetService("Debris"):AddItem(groundpart, 1.0)
  2491. SetTween(groundpart,{Size = VT(),Transparency=1},"Quad","In",1)
  2492.  
  2493. end
  2494. for i = 1, 0 do
  2495. local Color = hitray.BrickColor
  2496. local Materials = hitray.Material
  2497. local groundpart = CFuncs.Part.Create( Effects, "SmoothPlastic", 0, 0, Color, "Ground", Vector3.new(math.random(25, 150) / 200, math.random(25, 150) / 200, math.random(25, 150) / 200))
  2498. groundpart.Anchored = false
  2499. groundpart.Material = Materials
  2500. groundpart.CanCollide = true
  2501. groundpart.Friction = 2
  2502. groundpart.Velocity = Vector3.new(math.random(-50, 50), math.random(25, 50), math.random(-50, 50))
  2503. groundpart.CFrame = CF(pos,pos+test1) * cn(math.random(-250, 250) / 100, 0.5, math.random(-250, 250) / 100) * CFrame.Angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)),math.rad( math.random(-50, 50)))
  2504. groundpart:SetNetworkOwner(Player)
  2505. game:GetService("Debris"):AddItem(groundpart, 1.0)
  2506. SetTween(groundpart,{Size = VT(),Transparency=1},"Quad","In",1)
  2507.  
  2508.  
  2509. --game:GetService("Debris"):AddItem(WalkPart2, .4)
  2510.  
  2511. end
  2512.  
  2513. end
  2514.  
  2515. end))
  2516. coroutine.resume(coroutine.create(function()
  2517. if hitray ~= nil then
  2518.  
  2519.  
  2520.  
  2521.  
  2522.  
  2523.  
  2524.  
  2525.  
  2526.  
  2527.  
  2528.  
  2529. -- MakeBeamWaveEffect(Effects,Color3.new(1, 0, 0),HitEffectPart.Position- Vector3.new(0, 0, 0),2.0,0,0.06,15,0,10,CFrame.new(((RootPart.Velocity * Vector3.new(1, 0, 1))/40)+Vector3.new(0, 0, 0))*angles(math.rad(math.random(-6,6)),math.rad(math.random(-6,6)),math.rad(math.random(-6,6))))
  2530.  
  2531.  
  2532. else
  2533. --Beam1.Transparency = NumberSequence.new(0,1)
  2534. end
  2535.  
  2536.  
  2537.  
  2538. --GunPart.Transparency = i*1.5
  2539. --GunPart.Size = Vector3.new(0.85-i,.85-i,.05)
  2540.  
  2541.  
  2542.  
  2543.  
  2544.  
  2545.  
  2546.  
  2547. --game:GetService("Debris"):AddItem(WalkPart2, .4)
  2548. --game:GetService("Debris"):AddItem(WalkPart, .4)
  2549. --game:GetService("Debris"):AddItem(Attach1, .4)
  2550. --game:GetService("Debris"):AddItem(Attach2, .4)
  2551.  
  2552. end))
  2553.  
  2554.  
  2555.  
  2556.  
  2557.  
  2558.  
  2559.  
  2560.  
  2561. end))
  2562.  
  2563.  
  2564.  
  2565.  
  2566. end
  2567.  
  2568.  
  2569.  
  2570. end))
  2571.  
  2572.  
  2573.  
  2574. end
  2575. end
  2576.  
  2577.  
  2578.  
  2579.  
  2580. coroutine.resume(coroutine.create(function()
  2581.  
  2582. for i = 0,4,0.3 do Swait()
  2583. Beam1.Transparency = NumberSequence.new(i,(i)/2)
  2584.  
  2585. end
  2586. end))
  2587.  
  2588. NewParticle.Enabled = false
  2589. NewParticle2.Enabled = false
  2590. eyeffect1.Enabled = false
  2591.  
  2592. game:GetService("Debris"):AddItem(WalkPart, 1)
  2593. --game:GetService("Debris"):AddItem(Attach1, .4)
  2594. game:GetService("Debris"):AddItem(Attach2, 1)
  2595. game:GetService("Debris"):AddItem(Beam1, 1)
  2596.  
  2597. game:GetService("Debris"):AddItem(NewParticle, 1)
  2598. game:GetService("Debris"):AddItem(NewParticle2, 1)
  2599. game:GetService("Debris"):AddItem(eyeffect1, 1)
  2600.  
  2601. so("1229184354",Torso,5,2)
  2602. end))
  2603.  
  2604. for i = 1,4,.075 do
  2605. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(40-10*i),math.rad(0),math.rad(0))},"Linear","InOut",0.1)
  2606. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  2607. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(90+math.random(-5,5)),math.rad(0),math.rad(math.random(-5,5)+(45/2)*i ))},"Quad","Out",0.1)
  2608. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(90+math.random(-5,5)),math.rad(0),math.rad(math.random(-5,5)-(45/2)*i))},"Quad","Out",0.1)
  2609. SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad((45/2)*(i)),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  2610. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad((45/2)*(i)),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  2611. bodyVelocity.velocity = Vector3.new(0, 1, 0)+Torso.CFrame.lookVector*-40 Swait() end
  2612. eyehold = false
  2613. Swait()
  2614. bodyVelocity.velocity = Vector3.new(0, 0, 0)
  2615. bodyVelocity.maxForce = Vector3.new(8000000, 0 , 8000000)
  2616. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2617. for i = 1,11,.7 do
  2618. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(-36*i),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  2619. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  2620. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(-90),math.rad(0),math.rad(90))},"Quad","Out",0.1)
  2621. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(-90),math.rad(0),math.rad(-90))},"Quad","Out",0.1)
  2622. SetTween(RH,{C0=CFrame.new(.5, -.5, -.25)*angles(math.rad(-50),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  2623. SetTween(LH,{C0=CFrame.new(-.5, -.5, -.25)*angles(math.rad(-50),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  2624.  
  2625.  
  2626. Swait() end
  2627.  
  2628.  
  2629.  
  2630.  
  2631.  
  2632. attack = false
  2633. end
  2634. dancing = false
  2635.  
  2636. function Tuant2()
  2637. attack = true
  2638.  
  2639. dancing = true
  2640. while dancing == true do
  2641. local dahspeed=.5+visn/100
  2642. change = (0.60*1)*dahspeed
  2643. Humanoid.JumpPower = 0
  2644. Humanoid.WalkSpeed=2
  2645. local speed = 1 + visn/1000
  2646. SetTween(RJW,{C0=RootCF*CFrame.new(0+(.75*math.cos(sine/8)),0+(.2*math.sin(sine/16)),-.25+(-.1*math.cos(sine/4)))*angles(math.rad(-10-10*math.sin(sine/16)),math.rad(0),math.rad(0+(20*math.sin(sine/8))))},"Quad","InOut",0.1/speed)
  2647. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20*math.sin(sine/16)),math.rad(0),math.rad(0-(20*math.sin(sine/32))))},"Quad","InOut",0.1/speed)
  2648. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(120+(-20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(25+(25*math.cos(sine/8)) ))},"Quad","Out",0.1/speed)
  2649. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(120+(20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(-25+(25*math.cos(sine/8))))},"Quad","Out",0.1/speed)
  2650. SetTween(RH,{C0=CFrame.new(.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))-(5*math.sin(sine/8)) ),math.rad(-20+(-20*math.sin(sine/8))),math.rad(10+(20*math.cos(sine/8))))},"Quad","InOut",0.1/speed)
  2651. SetTween(LH,{C0=CFrame.new(-.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))+(5*math.sin(sine/8)) ),math.rad(20+(-20*math.sin(sine/8))),math.rad(-10+(20*math.cos(sine/8))))},"Quad","InOut",0.1/speed)
  2652.  
  2653. Swait()
  2654. end
  2655. Humanoid.JumpPower = 60
  2656. Humanoid.WalkSpeed=16
  2657. attack = false
  2658. end
  2659.  
  2660. function UpdateJets()
  2661. if Jets == true then
  2662. -- Jets=true
  2663. SetTween(RB1,{C0=CF(0,.25,-.05)*ANGLES(mr(25),0,0)},"Back","Out",.5)
  2664. SetTween(RB2,{C0=CF(0,.25,.05)*ANGLES(mr(-25),0,0)},"Back","Out",.5)
  2665. SetTween(LB1,{C0=CF(0,.25,-.05)*ANGLES(mr(25),0,0)},"Back","Out",.5)
  2666. SetTween(LB2,{C0=CF(0,.25,.05)*ANGLES(mr(-25),0,0)},"Back","Out",.5)
  2667. for _,v in next, RightLeg:GetDescendants() do if v:IsA("ParticleEmitter") then v.Enabled = true end end
  2668.  
  2669. for _,v in next, LeftLeg:GetDescendants() do if v:IsA("ParticleEmitter") then v.Enabled = true end end
  2670.  
  2671. else
  2672. -- Jets=false
  2673. SetTween(RB1,{C0=CF(0,-0,0)*ANGLES(0,0,0)},"Back","Out",.5)
  2674. SetTween(RB2,{C0=CF(0,-0,0)*ANGLES(0,0,0)},"Back","Out",.5)
  2675. SetTween(LB1,{C0=CF(0,-0,0)*ANGLES(0,0,0)},"Back","Out",.5)
  2676. SetTween(LB2,{C0=CF(0,-0,0)*ANGLES(0,0,0)},"Back","Out",.5)
  2677. for _,v in next, RightLeg:GetDescendants() do if v:IsA("ParticleEmitter") then v.Enabled = false end end
  2678.  
  2679. for _,v in next, LeftLeg:GetDescendants() do if v:IsA("ParticleEmitter") then v.Enabled = false end end
  2680.  
  2681. end
  2682. end
  2683.  
  2684.  
  2685.  
  2686. function DroneSwarm()
  2687. attack = true
  2688. --[
  2689. local randomtuant = math.random(1,4)
  2690. if randomtuant == 1 then
  2691. so("159972582", Head,2, 1)
  2692. elseif randomtuant == 2 then
  2693. so("159882410", Head,2, 1)
  2694. elseif randomtuant == 3 then
  2695. so("159882578", Head,2, 1)
  2696. elseif randomtuant == 4 then
  2697. so("159882417", Head,2, 1)
  2698. end
  2699. for _,v in pairs(Head:children()) do
  2700. if v:isA("Sound") then
  2701. EffectPack.Echo2:Clone().Parent = v
  2702. EffectPack.PT:Clone().Parent = v
  2703. end
  2704. end
  2705. local fatsavecf = MHIT
  2706. coroutine.resume(coroutine.create(function()
  2707. for i = 1,math.random(2,4) do Swait(math.random(1,10)) SpawnDrone(fatsavecf)
  2708. end end))
  2709. --]]
  2710.  
  2711. for i = 0,1,0.1 do
  2712.  
  2713.  
  2714. change = (0.60*5)
  2715. Humanoid.JumpPower = 10
  2716. Humanoid.WalkSpeed=0
  2717.  
  2718. local speed = 1
  2719.  
  2720.  
  2721. if weps == false then
  2722. SetTween(RJW,{C0=RootCF*cn(0, 0, -0.1 + 0.05 * math.cos(sine / 8 )) * angles(math.rad(-5 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-20))},"Quad","InOut",0.1/speed)
  2723. SetTween(NeckW,{C0=NeckCF*angles(math.rad(20.5*1 - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad(10+(math.random(-5,5)*1)), math.rad(20 - -0+(math.random(-5,5)*1) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed)
  2724. SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(0 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(10 +( math.random(0,5)*1) * math.cos(sine / 8)))},"Linear","Out",0.1/speed)
  2725. else
  2726. SetTween(RJW,{C0=RootCF*cn(0, 0, -0.3 + 0.05 * math.cos(sine / 8 )) * angles(math.rad(-5 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-20))},"Quad","InOut",0.1/speed)
  2727. SetTween(NeckW,{C0=NeckCF*angles(math.rad(20.5*1 - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad(10+(math.random(-5,5)*1)), math.rad(20 - 0+(math.random(-5,5)*1) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed)
  2728. SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(40 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(30 +( math.random(0,5)*1) * math.cos(sine / 8)))},"Linear","Out",0.1/speed)
  2729.  
  2730.  
  2731. end
  2732. SetTween(LW,{C0=cf(-1.46 + .0 * math.cos(sine / 8), 0.5 + .05 * math.cos(sine / 8), 0) * angles(math.rad(170 - 2 * math.cos(sine / 8 )), math.rad(5), math.rad(18 - (math.random(0,5)*1) * math.cos(sine / 8 )))},"Linear","Out",0.1/speed)
  2733. SetTween(RH,{C0=CFrame.new(.5, -0.9- .1 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(-5.5 - 0 * math.cos(sine / 8)),math.rad(-5),math.rad(6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed)
  2734. SetTween(LH,{C0=CFrame.new(-.5, -0.9- .1 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(-5.5 - 0 * math.cos(sine / 8)),math.rad(5),math.rad(-6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed)
  2735.  
  2736.  
  2737. Swait()
  2738. end
  2739.  
  2740. for i = 0,3,0.1 do
  2741.  
  2742.  
  2743. change = (0.60*5)
  2744. Humanoid.JumpPower = 10
  2745. Humanoid.WalkSpeed=0
  2746.  
  2747. local speed = 1
  2748.  
  2749.  
  2750. if weps == false then
  2751. SetTween(RJW,{C0=RootCF*cn(0, 0, -0.1 + 0.05 * math.cos(sine / 8 )) * angles(math.rad(-5 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(20))},"Quad","InOut",0.1/speed)
  2752. SetTween(NeckW,{C0=NeckCF*angles(math.rad(-5-20.5*1 - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad((math.random(-5,5)*1)), math.rad(-20 - -0+(math.random(-5,5)*1) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed)
  2753. SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(90 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(10 +( math.random(0,5)*1) * math.cos(sine / 8)))},"Linear","Out",0.1/speed)
  2754. else
  2755. SetTween(RJW,{C0=RootCF*cn(0, 0, -0.3 + 0.05 * math.cos(sine / 8 )) * angles(math.rad(-5 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(20))},"Quad","InOut",0.1/speed)
  2756. SetTween(NeckW,{C0=NeckCF*angles(math.rad(-5+20.5*1 - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad((math.random(-5,5)*1)), math.rad(-20 - 0+(math.random(-5,5)*1) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed)
  2757. SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(90 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(30 +( math.random(0,5)*1) * math.cos(sine / 8)))},"Linear","Out",0.1/speed)
  2758.  
  2759.  
  2760. end
  2761. SetTween(LW,{C0=cf(-1.46 + .0 * math.cos(sine / 8), 0.5 + .05 * math.cos(sine / 8), 0) * angles(math.rad(170 - 2 * math.cos(sine / 8 )), math.rad(5), math.rad(18 - (math.random(0,5)*1) * math.cos(sine / 8 )))},"Linear","Out",0.1/speed)
  2762. SetTween(RH,{C0=CFrame.new(.5, -0.9- .1 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(-5.5 - 0 * math.cos(sine / 8)),math.rad(-5),math.rad(6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed)
  2763. SetTween(LH,{C0=CFrame.new(-.5, -0.9- .1 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(-5.5 - 0 * math.cos(sine / 8)),math.rad(5),math.rad(-6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed)
  2764.  
  2765.  
  2766. Swait()
  2767. end
  2768. attack = false
  2769. end
  2770.  
  2771.  
  2772. ----------------------------------------------------------------------------------------------------
  2773. flying = false
  2774.  
  2775. function FlyMove()
  2776. attack = true
  2777. local NextAnimSpeed=0.1
  2778. local dahspeed=1
  2779. flying = true
  2780. so(2157448269,Torso,2,1)
  2781. Jets = true
  2782. UpdateJets()
  2783. local bg2 = Instance.new("BodyGyro", RootPart)
  2784. for i = 0,1,NextAnimSpeed do Swait()
  2785. local inairvel2 = 0
  2786.  
  2787. Humanoid.PlatformStand = false
  2788. change = (0.60*2)*dahspeed
  2789. Humanoid.JumpPower = 0
  2790. Humanoid.WalkSpeed=0
  2791.  
  2792. coroutine.resume(coroutine.create(function()
  2793.  
  2794. bg2.D = 300
  2795. bg2.P = 9999
  2796. bg2.maxTorque = Vector3.new(1e+005,1e+000,1e+005)*math.huge
  2797. bg2.CFrame = CFrame.new(RootPart.Position,Vector3.new(MHIT.p.x,RootPart.Position.y,MHIT.p.z))
  2798.  
  2799. end))
  2800.  
  2801.  
  2802. local ADNum = 0
  2803. SetTween(RJW,{C0=RootCF*cn(0, 0+ .25 * math.cos(sine / 8), 1.5 + .4 * math.sin(sine / 8 +ADNum* math.cos(sine / 8*2))) * angles(math.rad(45 - 2.5 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(20))},"Quad","InOut",0.1)
  2804. SetTween(NeckW,{C0=NeckCF*angles(math.rad(23.5 - 1.5 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(2.5-5.5 * math.cos(sine / 16)), math.rad(-20 - 0.5 * math.cos(sine / 15 +.4* math.cos(sine / 10))))},"Quad","InOut",0.1)
  2805. SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.5 + .05 * math.sin(sine / 8), .0) * angles(math.rad(-20 + 5 * math.cos(sine / 8 )), math.rad(-5), math.rad(10 + 4 * math.sin(sine / 8)))},"Quad","Out",0.1)
  2806. SetTween(LW,{C0=cf(-1.45 + .0 * math.cos(sine / 8), 0.5 + .05 * math.sin(sine / 8), .0) * angles(math.rad(-20 + 5 * math.cos(sine / 8 )), math.rad(5), math.rad(-18 - 4 * math.sin(sine / 8 )))},"Quad","Out",0.1)
  2807. SetTween(RH,{C0=CFrame.new(.5, -0.45+ .1 * math.sin(sine / 8 +ADNum* math.sin(sine / 8*2)), -0.3) * CFrame.Angles(math.rad(45.5+ 10 * math.sin(sine / 8)),math.rad(-25),math.rad(2.5- 0.0 * math.sin(sine / 8)))},"Quad","InOut",0.1)
  2808. SetTween(LH,{C0=CFrame.new(-.5, -0.85+.1 * math.sin(sine / 8 +ADNum* math.sin(sine / 8*2)), -.1) * CFrame.Angles(math.rad(11.5 + 5 * math.sin(sine / 8)),math.rad(25),math.rad(-2.5- 0.0 * math.sin(sine / 8)))},"Quad","InOut",0.1)
  2809.  
  2810.  
  2811.  
  2812. --CGPT:Emit(1)
  2813. end
  2814. if flying==true then
  2815.  
  2816.  
  2817.  
  2818.  
  2819.  
  2820.  
  2821. coroutine.resume(coroutine.create(function()
  2822. while true do
  2823.  
  2824. so("169572883",Torso,3,1.0)
  2825. wait(.5)
  2826. if flying == false then
  2827. break
  2828. end
  2829.  
  2830. end
  2831. end)) end
  2832. if flying == true then
  2833.  
  2834.  
  2835. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, .1, 0)+RootPart.CFrame.lookVector*60, P = 5000, maxForce = Vector3.new(80000, 80000, 80000), Parent = RootPart})
  2836.  
  2837.  
  2838.  
  2839. for i = 1,40,.25 do if flying == true then Swait() end
  2840. local inairvel2 = 0
  2841.  
  2842. Humanoid.PlatformStand = true
  2843. change = (0.60*3)*dahspeed
  2844. Humanoid.JumpPower = 0
  2845. Humanoid.WalkSpeed=0
  2846. coroutine.resume(coroutine.create(function()
  2847.  
  2848. bg2.D = 300
  2849. bg2.P = 9999
  2850. bg2.maxTorque = Vector3.new(1e+005,1e+000,1e+005)*math.huge
  2851. bg2.CFrame = CFrame.new(RootPart.Position,MHIT.p)
  2852.  
  2853. end))
  2854. if OverClocking == false then
  2855. bodyVelocity.velocity=Vector3.new(0, .1, 0)+RootPart.CFrame.lookVector*100
  2856. else
  2857. bodyVelocity.velocity=Vector3.new(0, .1, 0)+RootPart.CFrame.lookVector*200
  2858. end
  2859. if OverClocking == true and flying == true then
  2860. Lightning((RootPart.CFrame*CF(math.random(-2,2),math.random(-1,1),-0)).p,(RootPart.CFrame*CF(math.random(-36,36),math.random(-36,36),70)).p, 10, 0.6, BrickColor.new("Persimmon"), 1.5, .9,-.25*2,.55,1)
  2861. end
  2862. local ADNum = 0
  2863. SetTween(RJW,{C0=RootCF*cn(0, 1, 0) * angles(math.rad(60 - 6.5 * math.cos(sine / 8)), math.rad(0), math.rad(0))},"Quad","InOut",0.08)
  2864. SetTween(NeckW,{C0=NeckCF*angles(math.rad(-13.5 - 5.5 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(2.5-5.5 * math.cos(sine / 16)), math.rad(0 - 0.5 * math.cos(sine / 15 +.4* math.cos(sine / 10))))},"Quad","InOut",0.1)
  2865. SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.5 + .05 * math.sin(sine / 8), .0) * angles(math.rad(-20 + 4 * math.cos(sine / 8 )), math.rad(-5), math.rad(28 + 4 * math.sin(sine / 8)))},"Quad","Out",0.2)
  2866. SetTween(LW,{C0=cf(-1.45 + .0 * math.cos(sine / 8), 0.5 + .05 * math.sin(sine / 8), .0) * angles(math.rad(-20 + 4 * math.cos(sine / 8 )), math.rad(5), math.rad(-28 - 4 * math.sin(sine / 8 )))},"Quad","Out",0.2)
  2867. SetTween(RH,{C0=CFrame.new(.5, -0.85+ .1 * math.sin(sine / 8 +ADNum* math.sin(sine / 8*2)), -0.1) * CFrame.Angles(math.rad(-11.5+ 5 * math.sin(sine / 8)),math.rad(-15),math.rad(12.5- 0.0 * math.sin(sine / 8)))},"Quad","InOut",0.1)
  2868. SetTween(LH,{C0=CFrame.new(-.5, -0.85+.1 * math.sin(sine / 8 +ADNum* math.sin(sine / 8*2)), -.1) * CFrame.Angles(math.rad(-11.5 + 5 * math.sin(sine / 8)),math.rad(15),math.rad(-12.5- 0.0 * math.sin(sine / 8)))},"Quad","InOut",0.1)
  2869.  
  2870.  
  2871.  
  2872. --CGPT:Emit(1)
  2873.  
  2874.  
  2875. end coroutine.resume(coroutine.create(function()
  2876. game:GetService("Debris"):AddItem(bodyVelocity, 0.1) end))
  2877. end
  2878. so(1053625322,LeftLeg,2,0.5)
  2879. so(1053625322,RightLeg,2,0.5)
  2880. for i = 0,1.0,.15 do Swait()
  2881. Humanoid.PlatformStand = false
  2882.  
  2883. local inairvel2 = 0
  2884.  
  2885.  
  2886. change = (0.60*2)*dahspeed
  2887. Humanoid.JumpPower = 0
  2888. Humanoid.WalkSpeed=0
  2889.  
  2890.  
  2891.  
  2892. local ADNum = 0
  2893. SetTween(RJW,{C0=RootCF*cn(0, 0+ .25 * math.cos(sine / 8), 1.5 + .4 * math.sin(sine / 8 +ADNum* math.cos(sine / 8*2))) * angles(math.rad(-20 - 2.5 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(20))},"Quad","InOut",0.12)
  2894. SetTween(NeckW,{C0=NeckCF*angles(math.rad(43.5 - 1.5 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(2.5-5.5 * math.cos(sine / 16)), math.rad(-20 - 0.5 * math.cos(sine / 15 +.4* math.cos(sine / 10))))},"Quad","InOut",0.2)
  2895. SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.5 + .05 * math.sin(sine / 8), .0) * angles(math.rad(-20 + 5 * math.cos(sine / 8 )), math.rad(-5), math.rad(0 + 4 * math.sin(sine / 8)))},"Quad","Out",0.2)
  2896. SetTween(LW,{C0=cf(-1.45 + .0 * math.cos(sine / 8), 0.5 + .05 * math.sin(sine / 8), .0) * angles(math.rad(-20 + 5 * math.cos(sine / 8 )), math.rad(5), math.rad(-28 - 4 * math.sin(sine / 8 )))},"Quad","Out",0.2)
  2897. SetTween(RH,{C0=CFrame.new(.5, -0.45+ .1 * math.sin(sine / 8 +ADNum* math.sin(sine / 8*2)), -0.3) * CFrame.Angles(math.rad(21.5+ 10 * math.sin(sine / 8)),math.rad(-25),math.rad(2.5- 0.0 * math.sin(sine / 8)))},"Quad","InOut",0.1)
  2898. SetTween(LH,{C0=CFrame.new(-.5, -0.85+.1 * math.sin(sine / 8 +ADNum* math.sin(sine / 8*2)), -.1) * CFrame.Angles(math.rad(11.5 + 5 * math.sin(sine / 8)),math.rad(25),math.rad(-2.5- 0.0 * math.sin(sine / 8)))},"Quad","InOut",0.1)
  2899.  
  2900.  
  2901.  
  2902. coroutine.resume(coroutine.create(function()
  2903.  
  2904. bg2.D = 300
  2905. bg2.P = 9999
  2906. bg2.maxTorque = Vector3.new(1e+005,1e+000,1e+005)*math.huge
  2907. bg2.CFrame = CFrame.new(RootPart.Position,Vector3.new(MHIT.p.x,RootPart.Position.y,MHIT.p.z))
  2908.  
  2909. end))
  2910. end
  2911. wait(.1)
  2912. coroutine.resume(coroutine.create(function()
  2913.  
  2914. bg2:Destroy()
  2915.  
  2916. end))
  2917.  
  2918. coroutine.resume(coroutine.create(function()
  2919.  
  2920. for i = 1,10 do
  2921. for _,v in pairs(Torso:children()) do
  2922. if v:isA("Sound") then
  2923. v.Volume = v.Volume - .2
  2924. end
  2925. end
  2926. Swait()
  2927. end
  2928. end))
  2929. flying = false
  2930. Jets = false
  2931. UpdateJets()
  2932. for i = 0,0.75,.10 do Swait()
  2933. Humanoid.PlatformStand = false
  2934.  
  2935. local inairvel2 = 0
  2936.  
  2937.  
  2938. change = (0.60*2)*dahspeed
  2939. Humanoid.JumpPower = 0
  2940. Humanoid.WalkSpeed=0
  2941.  
  2942.  
  2943.  
  2944. local ADNum = 0
  2945. SetTween(RJW,{C0=RootCF*cn(0, 0+ .25 * math.cos(sine / 8), -0.2 + .1 * math.sin(sine / 8 +ADNum* math.cos(sine / 8*2))) * angles(math.rad(-20 - 2.5 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(20))},"Quad","InOut",0.08)
  2946. SetTween(NeckW,{C0=NeckCF*angles(math.rad(43.5 - 1.5 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(2.5-5.5 * math.cos(sine / 16)), math.rad(-20 - 0.5 * math.cos(sine / 15 +.4* math.cos(sine / 10))))},"Quad","InOut",0.08)
  2947. SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.5 + .05 * math.sin(sine / 8), .0) * angles(math.rad(-20 + 5 * math.cos(sine / 8 )), math.rad(-5), math.rad(0 + 4 * math.sin(sine / 8)))},"Quad","Out",0.2)
  2948. SetTween(LW,{C0=cf(-1.45 + .0 * math.cos(sine / 8), 0.5 + .05 * math.sin(sine / 8), .0) * angles(math.rad(-20 + 5 * math.cos(sine / 8 )), math.rad(5), math.rad(-28 - 4 * math.sin(sine / 8 )))},"Quad","Out",0.2)
  2949. SetTween(RH,{C0=CFrame.new(.5, -0.45+ .1 * math.sin(sine / 8 +ADNum* math.sin(sine / 8*2)), -0.3) * CFrame.Angles(math.rad(-21.5+ 10 * math.sin(sine / 8)),math.rad(-25),math.rad(2.5- 0.0 * math.sin(sine / 8)))},"Quad","InOut",0.08)
  2950. SetTween(LH,{C0=CFrame.new(-.5, -0.85+.1 * math.sin(sine / 8 +ADNum* math.sin(sine / 8*2)), -.1) * CFrame.Angles(math.rad(-11.5 + 5 * math.sin(sine / 8)),math.rad(25),math.rad(-2.5- 0.0 * math.sin(sine / 8)))},"Quad","InOut",0.08)
  2951.  
  2952.  
  2953.  
  2954.  
  2955. end
  2956.  
  2957. Humanoid.JumpPower = 20
  2958. Humanoid.WalkSpeed=10
  2959. attack = false
  2960. end
  2961.  
  2962.  
  2963. function Tesla()
  2964. attack=true
  2965. local dahspeed=1
  2966. if attack == true and mememode == true then
  2967. dahspeed=3 --speedstuff --5
  2968. end --/dahspeed
  2969. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50))},"Quad","InOut",.3/dahspeed)
  2970. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50))},"Quad","InOut",.3/dahspeed)
  2971. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(-20))},"Quad","InOut",.3/dahspeed)
  2972. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(-30),math.rad(0),math.rad(-20))},"Quad","InOut",.3/dahspeed)
  2973. SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.3/dahspeed)
  2974. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.3/dahspeed)
  2975.  
  2976. --SetTween(SwordW,{C0=CFrame.new(0,-1,0)*angles(math.rad(-30+90),math.rad(-90),math.rad(0))},"Quad","InOut",.3)
  2977. SetTween(LHP2,{C0=CF(0,0,0)},"Quad","InOut",.1)
  2978. if OverClocking ==true then
  2979.  
  2980. SetTween(LHP.Glow,{Transparency = 1},"Quad","InOut",0.1)
  2981.  
  2982. end
  2983.  
  2984. wait(.3/dahspeed)
  2985. --DGT()
  2986.  
  2987.  
  2988. coroutine.resume(coroutine.create(function()
  2989. so("348663022", RightArm,4, 1.2)
  2990. wait(.1/dahspeed)
  2991.  
  2992.  
  2993. CFMagniDamage(LeftArm.CFrame,5,40,60,math.random(500,1000)/10,"Knockdown")
  2994.  
  2995.  
  2996. end))
  2997.  
  2998. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-.4)*angles(math.rad(0),math.rad(-0),math.rad(-20))},"Back","Out",.3/dahspeed)
  2999. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(30),math.rad(-0),math.rad(20))},"Back","Out",.3/dahspeed)
  3000. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(-10),math.rad(0),math.rad(10))},"Back","Out",.3/dahspeed)
  3001. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(150),math.rad(-0),math.rad(-20))},"Back","Out",.4/dahspeed)
  3002. SetTween(RH,{C0=CFrame.new(.5, -.8, -.1)*angles(math.rad(-20),math.rad(0),math.rad(20))},"Back","Out",.3/dahspeed)
  3003. SetTween(LH,{C0=CFrame.new(-.5, -.8, -.1)*angles(math.rad(30),math.rad(40),math.rad(-20))},"Back","Out",.3/dahspeed)
  3004.  
  3005. --SetTween(SwordW,{C0=CFrame.new(0,-1,0)*angles(math.rad(120),math.rad(-90),math.rad(0))},"Back","Out",.15)
  3006.  
  3007. SetTween(LHP2,{C0=CF(0,-.85,0)},"Quad","InOut",0.05)
  3008.  
  3009. if OverClocking ==true then
  3010.  
  3011. SetTween(LHP.Glow,{Transparency = .15},"Quad","InOut",0.05)
  3012.  
  3013. end
  3014. for i = 1,50 do Swait(1)
  3015. for i = 1,math.random(1,3) do
  3016. local lighth,lightp,test1 = rayCast(LHP.Glow.CFrame.p, CF(VT(0,0,0),VT(math.random(-100,100),math.random(-100,100),math.random(-100,100))).lookVector, 50, Character)
  3017.  
  3018. if lighth~=nil then
  3019. BulletHitEffectSpawn(CF(lightp,lightp+test1),"Spark")
  3020. Lightning(LHP.Glow.CFrame.p,lightp , 5, 2.6, BrickColor.new("Persimmon"), 2, .5,-.25*2,.5,nil) end
  3021. end
  3022.  
  3023. local v = findNearestTorso(LHP.Glow.Position,50)
  3024.  
  3025. if v ~= nil then
  3026. local lighth2,lightp2,test12 = rayCast(LHP.Glow.CFrame.p, CF(LHP.Glow.CFrame.p,v.Position).lookVector, 50, Character)
  3027.  
  3028. Lightning(LHP.Glow.CFrame.p,lightp2 , 5, 2.6, BrickColor.new("Persimmon"), 2, .5,-.25*2,.5,nil)
  3029. BulletHitEffectSpawn(CF(lightp2,lightp2+test12),"Spark")
  3030.  
  3031. CFMagniDamage(CF(lightp2),10,45,80,20,"Knockdown")
  3032.  
  3033. end
  3034.  
  3035. end
  3036.  
  3037.  
  3038.  
  3039.  
  3040.  
  3041.  
  3042.  
  3043. SetTween(LHP2,{C0=CF(0,0,0)},"Quad","InOut",.25)
  3044. SetTween(LHP.Glow,{Transparency = 1},"Quad","InOut",0.25)
  3045. attack = false
  3046. end
  3047.  
  3048.  
  3049.  
  3050.  
  3051. function AT1()
  3052. attack=true
  3053. local dahspeed=1
  3054. if attack == true and mememode == true then
  3055. dahspeed=3 --speedstuff --5
  3056. end --/dahspeed
  3057. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50))},"Quad","InOut",.3/dahspeed)
  3058. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50))},"Quad","InOut",.3/dahspeed)
  3059. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(30),math.rad(0),math.rad(-20))},"Quad","InOut",.3/dahspeed)
  3060. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(60),math.rad(0),math.rad(-0))},"Quad","InOut",.3/dahspeed)
  3061. SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.3/dahspeed)
  3062. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.3/dahspeed)
  3063.  
  3064. --SetTween(SwordW,{C0=CFrame.new(0,-1,0)*angles(math.rad(-30+90),math.rad(-90),math.rad(0))},"Quad","InOut",.3)
  3065. SetTween(LHP2,{C0=CF(0,0,0)},"Quad","InOut",.1)
  3066. if OverClocking ==true then
  3067.  
  3068. SetTween(LHP.Glow,{Transparency = 1},"Quad","InOut",0.1)
  3069.  
  3070. end
  3071.  
  3072. wait(.3/dahspeed)
  3073. --DGT()
  3074.  
  3075.  
  3076. coroutine.resume(coroutine.create(function()
  3077. so("1428541279", RightArm,1.6, math.random(120,220)/100)
  3078. wait(.1/dahspeed)
  3079.  
  3080. if OverClocking ==false then
  3081. CFMagniDamage(LeftArm.CFrame,5,40,60,math.random(500,1000)/10,"Knockdown")
  3082.  
  3083. else
  3084.  
  3085. local v = findNearestTorso(LHP.Glow.Position,20)
  3086.  
  3087. if v ~= nil then
  3088.  
  3089. Lightning(LHP.Glow.CFrame.p,v.Position, 10, 0.6, BrickColor.new("Persimmon"), .5, .5,-.25*2,.5,nil)
  3090. Lightning(LHP.Glow.CFrame.p,v.Position, 10, 0.6, BrickColor.new("Persimmon"), .5, .5,-.25*2,.5,nil)
  3091.  
  3092. CFMagniDamage(LHP.Glow.CFrame,20,45,80,math.random(320,520)/10,"Knockdown")
  3093.  
  3094. end
  3095.  
  3096. end
  3097. end))
  3098.  
  3099. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-.4)*angles(math.rad(0),math.rad(-40),math.rad(-60))},"Back","Out",.1/dahspeed)
  3100. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(60))},"Back","Out",.1/dahspeed)
  3101. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(90),math.rad(0),math.rad(-40))},"Back","Out",.1/dahspeed)
  3102. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(90),math.rad(-45),math.rad(-30))},"Back","Out",.1/dahspeed)
  3103. SetTween(RH,{C0=CFrame.new(.5, -.8, -.6)*angles(math.rad(-20),math.rad(0),math.rad(40))},"Back","Out",.1/dahspeed)
  3104. SetTween(LH,{C0=CFrame.new(-.5, -.8, -.5)*angles(math.rad(30),math.rad(0),math.rad(20))},"Back","Out",.1/dahspeed)
  3105.  
  3106. --SetTween(SwordW,{C0=CFrame.new(0,-1,0)*angles(math.rad(120),math.rad(-90),math.rad(0))},"Back","Out",.15)
  3107.  
  3108. SetTween(LHP2,{C0=CF(0,-.85,0)},"Quad","InOut",0.05)
  3109.  
  3110. if OverClocking ==true then
  3111.  
  3112. SetTween(LHP.Glow,{Transparency = .75},"Quad","InOut",0.05)
  3113.  
  3114. end
  3115.  
  3116.  
  3117. wait(.15/dahspeed)
  3118.  
  3119. SetTween(LHP2,{C0=CF(0,0,0)},"Quad","InOut",.25)
  3120. SetTween(LHP.Glow,{Transparency = 1},"Quad","InOut",0.25)
  3121. attack = false
  3122. end
  3123.  
  3124. gui = Instance.new("ScreenGui",Player.PlayerGui)
  3125. gui.Name = "Xgui"
  3126. guifat = Instance.new("Frame",gui)
  3127. guifat.Size = UDim2.new(1, 0, 1, 0)
  3128. guifat.Name = "FAT"
  3129. guifat.BackgroundTransparency = 1
  3130. viewport = Instance.new("ViewportFrame",guifat)
  3131. viewport.Size = UDim2.new(1, 0, 1, 0)
  3132. viewport.BackgroundTransparency = 1
  3133. viewport.BackgroundColor3 = C3(1,1,1)
  3134. function Attack6()
  3135. SetTween(viewport,{BackgroundTransparency=.15,BackgroundColor3 = C3(0,0,0)},"Bounce","InOut",.25)
  3136. IsXray = true
  3137.  
  3138.  
  3139. print("ran")
  3140. for _,v in next, workspace:GetDescendants() do if v:IsA("Humanoid")and v~=Humanoid then
  3141. print(""..v.Parent.Name)
  3142. for _,v2 in next, v.Parent:GetDescendants() do
  3143. if v2:IsA("BasePart") then
  3144. -- print(""..v2.Name)
  3145. local Xpart = EffectPack.Part:Clone()
  3146. Xpart.Parent = viewport
  3147. Xpart.Name = "Xray"
  3148. Xpart.Size = v2.Size+VT(0.05,0.05,0.05)
  3149. Xpart.Material = "ForceField"
  3150. Xpart.Transparency = 0
  3151. Xpart.CFrame = v2.CFrame
  3152. if v2:FindFirstChildOfClass("SpecialMesh") then
  3153. coroutine.resume(coroutine.create(function()
  3154. v2:FindFirstChildOfClass("SpecialMesh").Archivable = false
  3155.  
  3156. local clone = v2:FindFirstChildOfClass("SpecialMesh").Clone()
  3157. clone.Parent = Xpart end))
  3158. end
  3159.  
  3160. local value = Instance.new("ObjectValue",Xpart)
  3161. value.Value = v2
  3162. value.Name = "val"
  3163. Xpart.BrickColor = BrickColor.new("Really red")
  3164. --local Xweld=weld(Xpart,v2,Xpart,cf(0,0,0))
  3165. end
  3166.  
  3167. end
  3168.  
  3169.  
  3170. end end
  3171.  
  3172. while IsXray == true do Swait(5) end
  3173.  
  3174.  
  3175. SetTween(viewport,{BackgroundTransparency=1,BackgroundColor3 = C3(1,1,1)},"Bounce","InOut",.5)
  3176. for _,v in next, viewport:GetDescendants() do
  3177. v:Destroy()
  3178. end
  3179.  
  3180.  
  3181. end
  3182.  
  3183. function ClickCombo()
  3184. if Anim == "Fall" or Anim == "Jump" then
  3185. if Combo == 0 then
  3186. --DownAT()
  3187. end
  3188. else
  3189. if Combo == 0 then
  3190. AT1()
  3191. Combo = 0
  3192. elseif Combo == 1 then
  3193. AT2()
  3194. Combo = 0
  3195. elseif Combo == 2 then
  3196. AT3()
  3197. Combo = 0
  3198. end
  3199. end
  3200. end
  3201.  
  3202.  
  3203.  
  3204. local Hold = false
  3205. local weps = false
  3206.  
  3207. Button1DownF=function()
  3208. Hold = true
  3209. if weps and attack == false then
  3210. for _,v in next, FlameThrower.Thrower:GetDescendants() do if v:IsA("ParticleEmitter") or v:IsA("SpotLight") then v.Enabled = true end end
  3211. while Hold == true do coroutine.resume(coroutine.create(function() for i = 1,6 do CFMagniDamage(RightArm.CFrame*CF(0,2-2*i,0),2.5*(i/2.5), 10/2, 25/2, 0, "Fire") end end)) so("1273118342", RightArm,2, math.random(10,20)/10) Swait(2) end
  3212.  
  3213. end
  3214.  
  3215. if weps == false and attack == false then
  3216.  
  3217. ClickCombo()
  3218. end
  3219.  
  3220.  
  3221. end
  3222.  
  3223.  
  3224.  
  3225. Button1UpF=function()
  3226.  
  3227. if Hold==true then
  3228.  
  3229. Hold = false
  3230. for _,v in next, FlameThrower.Thrower:GetDescendants() do if v:IsA("ParticleEmitter") or v:IsA("SpotLight") then v.Enabled = false end end
  3231.  
  3232. end
  3233.  
  3234. end
  3235.  
  3236. so("420194643", Head,1, 1)
  3237.  
  3238.  
  3239. KeyUpF=function(key)
  3240.  
  3241. if key == "e" then
  3242. if flying == true then
  3243. flying=false
  3244. end
  3245.  
  3246. end
  3247.  
  3248. end
  3249.  
  3250. KeyDownF=function(key)
  3251. if key == "f" and attack == false and (weps == false or Hold == false) then
  3252.  
  3253. if weps == false then
  3254. weps = true else weps = false
  3255. end
  3256. if weps == true then
  3257. so("420194643", Head.Handle,1, .8)
  3258. so("420997245", Head.Handle,5, 0.7)
  3259. for _,v in pairs(Head.Handle:children()) do
  3260. if v:isA("Sound") then
  3261. EffectPack.Echo:Clone().Parent = v
  3262. end
  3263. end
  3264. coroutine.resume(coroutine.create(function()
  3265. FlameThrower.Lighter.Fire.Enabled = true end))
  3266. SetTween(FlameW,{C0=CF(0,-.5,0)},"Back","Out",1)
  3267. SetTween(H1a,{C0=CF(0,-.5,-.4)},"Quad","In",1)
  3268.  
  3269. --SetTween(RightArm.Lower,{Transparency = 1},"Quad","Out",0.8)
  3270.  
  3271. SetTween(Fg1,{C0=CF(-.0,.25,-.0)*ANGLES(mr(25),mr(0),mr(-15))},"Back","Out",.5)
  3272. SetTween(Fg2,{C0=CF(.0,.25,-.0)*ANGLES(mr(25),mr(0),mr(15))},"Back","Out",.5)
  3273. SetTween(Fg3,{C0=CF(.0,.25,.0)*ANGLES(mr(-25),mr(0),mr(15))},"Back","Out",.5)
  3274. SetTween(Fg4,{C0=CF(-.0,.25,.0)*ANGLES(mr(-25),mr(0),mr(-15))},"Back","Out",.5)
  3275.  
  3276.  
  3277. SetTween(MX1w,{C0=CF(0,0,.15)*ANGLES(mr(90),0,0)},"Back","Out",1/2)
  3278.  
  3279. wait(.25)
  3280.  
  3281. SetTween(MX1w,{C0=CF(0,.1,.30)*ANGLES(mr(20),0,0)},"Back","Out",.25)
  3282. else
  3283. so("420194643", Head.Handle,1, 1)
  3284. so("332757260", Head.Handle,3, 1.75)
  3285.  
  3286. for _,v in pairs(Head.Handle:children()) do
  3287. if v:isA("Sound") then
  3288. EffectPack.Echo:Clone().Parent = v
  3289. end
  3290. end
  3291. coroutine.resume(coroutine.create(function()
  3292. FlameThrower.Lighter.Fire.Enabled = false end))
  3293. SetTween(FlameW,{C0=CF(0,0,0)*ANGLES(0,0,0)},"Quad","Out",.5)
  3294. SetTween(H1a,{C0=CF(0,.5,-.4)},"Quad","InOut",.5)
  3295.  
  3296. --SetTween(RightArm.Lower,{Transparency = 0},"Quad","In",1)
  3297.  
  3298. SetTween(Fg1,{C0=CF(0,-0,0)},"Quad","In",.5)
  3299. SetTween(Fg2,{C0=CF(0,-0,0)},"Quad","In",.5)
  3300. SetTween(Fg3,{C0=CF(0,-0,0)},"Quad","In",.5)
  3301. SetTween(Fg4,{C0=CF(0,-0,0)},"Quad","In",.5)
  3302.  
  3303. SetTween(MX1w,{C0=CF(0,0,.15)*ANGLES(mr(90),0,0)},"Back","Out",1/2)
  3304.  
  3305. wait(.25)
  3306. SetTween(MX1w,{C0=CF(0,-.7,-.25)},"Quad","InOut",.25)
  3307. end
  3308.  
  3309. end
  3310. if key == "z" and attack == false and weps == true then
  3311. Attack1()
  3312. end
  3313. if key == "x" and attack == false and weps == false and OverClocking == true then
  3314. Tesla()
  3315. end
  3316.  
  3317. if key == "x" and attack == false and weps == true then
  3318. Attack2()
  3319. end
  3320. if key == "e" and attack == false then
  3321. FlyMove()
  3322. end
  3323. if key == "y" then
  3324. if dancing == false and attack == false then
  3325. Tuant2()
  3326. elseif dancing == true and attack == true then
  3327. dancing = false
  3328. end
  3329.  
  3330.  
  3331. end
  3332. if key == "v" and attack == false and weps == true then
  3333.  
  3334. DroneSwarm()
  3335.  
  3336. end
  3337.  
  3338.  
  3339.  
  3340. if key == "q" and attack == false then
  3341. if OverClocking == false then
  3342. CurId=CurId-1
  3343. OverClocking = true
  3344. for i = 1,4 do
  3345. for _,v in next, Character:GetDescendants() do if v:IsA("ParticleEmitter") and v.Name == "OverClock"..i then v.Enabled = true end end
  3346. end
  3347. lastid= "http://www.roblox.com/asset/?id=1534958855"
  3348.  
  3349. lastsongpos = 0
  3350. s2.TimePosition = lastsongpos
  3351.  
  3352. so(254873067,Torso,2,1)
  3353. so(1567217295,Torso,3,.8)
  3354. so(147060085,Torso,5,1)
  3355.  
  3356. else
  3357. OverClocking = false
  3358. for i = 1,4 do
  3359. for _,v in next, Character:GetDescendants() do if v:IsA("ParticleEmitter") and v.Name == "OverClock"..i then v.Enabled = false end end
  3360. end
  3361.  
  3362. end
  3363.  
  3364.  
  3365.  
  3366. KeyDownF("n")
  3367.  
  3368. end
  3369.  
  3370.  
  3371.  
  3372.  
  3373.  
  3374. if key == "k" and attack == false then
  3375. --Attack5()
  3376. end
  3377. if key == "g" and attack == false then
  3378. if IsXray == false then
  3379. Attack6()
  3380. else
  3381. IsXray = false
  3382. end
  3383. end
  3384. if key == "t" and attack == false then
  3385. --Tuant()
  3386. attack = true
  3387. so("137473066", Head,2, 1.2)
  3388. for _,v in pairs(Head:children()) do
  3389. if v:isA("Sound") then
  3390. EffectPack.Echo2:Clone().Parent = v
  3391. EffectPack.PT:Clone().Parent = v
  3392. end
  3393. end
  3394.  
  3395. for i = 0,2,0.1 do
  3396.  
  3397.  
  3398. change = (0.60*5)
  3399. Humanoid.JumpPower = 10
  3400. Humanoid.WalkSpeed=0
  3401.  
  3402. local speed = 1
  3403.  
  3404.  
  3405. if weps == false then
  3406. SetTween(RJW,{C0=RootCF*cn(0, 0, -0.1 + 0.05 * math.cos(sine / 8 )) * angles(math.rad(-5 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-20))},"Quad","InOut",0.1/speed)
  3407. SetTween(NeckW,{C0=NeckCF*angles(math.rad(20.5*1 - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad(10+(math.random(-5,5)*1)), math.rad(20 - -0+(math.random(-5,5)*1) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed)
  3408. SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(0 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(10 +( math.random(0,5)*1) * math.cos(sine / 8)))},"Linear","Out",0.1/speed)
  3409. else
  3410. SetTween(RJW,{C0=RootCF*cn(0, 0, -0.3 + 0.05 * math.cos(sine / 8 )) * angles(math.rad(-5 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-20))},"Quad","InOut",0.1/speed)
  3411. SetTween(NeckW,{C0=NeckCF*angles(math.rad(20.5*1 - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad(10+(math.random(-5,5)*1)), math.rad(20 - 0+(math.random(-5,5)*1) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed)
  3412. SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(40 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(30 +( math.random(0,5)*1) * math.cos(sine / 8)))},"Linear","Out",0.1/speed)
  3413.  
  3414.  
  3415. end
  3416. SetTween(LW,{C0=cf(-1.46 + .0 * math.cos(sine / 8), 0.5 + .05 * math.cos(sine / 8), 0) * angles(math.rad(0 - 2 * math.cos(sine / 8 )), math.rad(5), math.rad(-18 - (math.random(0,5)*1) * math.cos(sine / 8 )))},"Linear","Out",0.1/speed)
  3417. SetTween(RH,{C0=CFrame.new(.5, -0.9- .1 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(-5.5 - 0 * math.cos(sine / 8)),math.rad(-5),math.rad(6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed)
  3418. SetTween(LH,{C0=CFrame.new(-.5, -0.9- .1 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(-5.5 - 0 * math.cos(sine / 8)),math.rad(5),math.rad(-6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed)
  3419.  
  3420.  
  3421. Swait()
  3422. end
  3423.  
  3424. for i = 0,4,0.1 do
  3425.  
  3426.  
  3427. change = (0.60*5)
  3428. Humanoid.JumpPower = 10
  3429. Humanoid.WalkSpeed=0
  3430.  
  3431. local speed = 1
  3432.  
  3433.  
  3434. if weps == false then
  3435. SetTween(RJW,{C0=RootCF*cn(0, 0, -0.1 + 0.05 * math.cos(sine / 8 )) * angles(math.rad(-5 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-60))},"Quad","InOut",0.1/speed)
  3436. SetTween(NeckW,{C0=NeckCF*angles(math.rad(-5-20.5*1 - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad((math.random(-5,5)*1)), math.rad(60 - -0+(math.random(-5,5)*1) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed)
  3437. SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(20 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(10 +( math.random(0,5)*1) * math.cos(sine / 8)))},"Linear","Out",0.1/speed)
  3438. else
  3439. SetTween(RJW,{C0=RootCF*cn(0, 0, -0.3 + 0.05 * math.cos(sine / 8 )) * angles(math.rad(-5 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-60))},"Quad","InOut",0.1/speed)
  3440. SetTween(NeckW,{C0=NeckCF*angles(math.rad(-5+20.5*1 - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad((math.random(-5,5)*1)), math.rad(60 - 0+(math.random(-5,5)*1) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed)
  3441. SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(90 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(30 +( math.random(0,5)*1) * math.cos(sine / 8)))},"Linear","Out",0.1/speed)
  3442.  
  3443.  
  3444. end
  3445. SetTween(LW,{C0=cf(-1.46 + .0 * math.cos(sine / 8), 0.5 + .05 * math.cos(sine / 8), 0) * angles(math.rad(90 - 2 * math.cos(sine / 8 )), math.rad(5), math.rad(-18 - (math.random(0,5)*1) * math.cos(sine / 8 )))},"Linear","Out",0.1/speed)
  3446. SetTween(RH,{C0=CFrame.new(.5, -0.9- .1 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(-5.5 - 0 * math.cos(sine / 8)),math.rad(-5),math.rad(6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed)
  3447. SetTween(LH,{C0=CFrame.new(-.5, -0.9- .1 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(-5.5 - 0 * math.cos(sine / 8)),math.rad(5),math.rad(-6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed)
  3448.  
  3449.  
  3450. Swait()
  3451. end
  3452. attack = false
  3453. end
  3454. if key == "p" and attack == false and Player.Name=="123jl123" then
  3455. if mememode == false then
  3456. mememode=true
  3457.  
  3458. --so("1499015636", Character,3, 1)
  3459. lastid= "http://www.roblox.com/asset/?id=319658286"
  3460.  
  3461.  
  3462.  
  3463.  
  3464.  
  3465.  
  3466.  
  3467.  
  3468.  
  3469.  
  3470.  
  3471. lastsongpos = 0
  3472. s2.TimePosition = lastsongpos
  3473.  
  3474.  
  3475. else
  3476. mememode=false
  3477. CurId=CurId-1
  3478. KeyDownF("n")
  3479.  
  3480. end
  3481. end
  3482.  
  3483.  
  3484. if key == "0" then
  3485. if isruning == false then
  3486. isruning=true
  3487. end
  3488. end
  3489.  
  3490.  
  3491.  
  3492.  
  3493.  
  3494.  
  3495. if key == "m" then
  3496.  
  3497. if playsong == true then
  3498. playsong = false
  3499. s2:stop()
  3500. elseif playsong == false then
  3501. playsong = true
  3502.  
  3503.  
  3504. s2:play()
  3505. end
  3506.  
  3507. end
  3508.  
  3509.  
  3510.  
  3511. if key == "n" and not (mememode == true or OverClocking == true) then
  3512.  
  3513.  
  3514.  
  3515.  
  3516.  
  3517.  
  3518. CurId = CurId + 1
  3519.  
  3520. if CurId > 18 then
  3521. CurId = 1
  3522.  
  3523. end
  3524. warn("now playing song Nr"..CurId)
  3525. if CurId == 1 then
  3526. lastid= "http://www.roblox.com/asset/?id=146364977"
  3527. elseif CurId == 2 then
  3528. lastid= "http://www.roblox.com/asset/?id=340902917"
  3529. elseif CurId == 3 then
  3530. lastid= "http://www.roblox.com/asset/?id=287794839"
  3531. elseif CurId == 4 then
  3532. lastid= "http://www.roblox.com/asset/?id=628579255"
  3533. elseif CurId == 5 then
  3534. lastid= "http://www.roblox.com/asset/?id=273857798"
  3535. elseif CurId == 6 then
  3536. lastid= "http://www.roblox.com/asset/?id=273837018"
  3537. elseif CurId == 7 then
  3538. lastid= "http://www.roblox.com/asset/?id=571227431"
  3539. elseif CurId == 8 then
  3540. lastid= "http://www.roblox.com/asset/?id=172576479"
  3541. elseif CurId == 9 then
  3542. lastid= "http://www.roblox.com/asset/?id=2808524036"
  3543. elseif CurId == 10 then
  3544. lastid= "http://www.roblox.com/asset/?id=1646375621"
  3545.  
  3546. elseif CurId == 11 then
  3547. lastid= "http://www.roblox.com/asset/?id=1349958157"
  3548. elseif CurId == 12 then
  3549. lastid= "http://www.roblox.com/asset/?id=1755770760"
  3550. elseif CurId == 13 then
  3551. lastid= "http://www.roblox.com/asset/?id=2577867501"
  3552. elseif CurId == 14 then
  3553. lastid= "http://www.roblox.com/asset/?id=340265439"
  3554. elseif CurId == 15 then
  3555. lastid= "http://www.roblox.com/asset/?id=2441582257"
  3556. elseif CurId == 16 then
  3557. lastid= "http://www.roblox.com/asset/?id=2496523226"
  3558. elseif CurId == 17 then
  3559. lastid= "http://www.roblox.com/asset/?id=283208073"
  3560. elseif CurId == 18 then
  3561. lastid= "http://www.roblox.com/asset/?id=2279798034"
  3562.  
  3563. end
  3564.  
  3565.  
  3566. lastsongpos = 0
  3567. s2.TimePosition = lastsongpos
  3568.  
  3569.  
  3570. end
  3571.  
  3572.  
  3573. end
  3574.  
  3575. local OverClockEffect1 = EffectPack.OverClock1:Clone()
  3576. OverClockEffect1.Parent = Torso
  3577. OverClockEffect1.Enabled = false
  3578. local OverClockEffect2 = EffectPack.OverClock2:Clone()
  3579. OverClockEffect2.Parent = Torso
  3580. OverClockEffect2.Enabled = false
  3581. local OverClockEffect3 = EffectPack.OverClock3:Clone()
  3582. OverClockEffect3.Parent = Torso
  3583. OverClockEffect3.Enabled = false
  3584.  
  3585. coroutine.resume(coroutine.create(function()
  3586. local OverClockEffect4 = EffectPack.OverClock4:Clone()
  3587. OverClockEffect4.Enabled = false
  3588. OverClockEffect4.Parent = Torso
  3589. OverClockEffect4:Clone().Parent = Head
  3590. OverClockEffect4:Clone().Parent = RightArm
  3591. OverClockEffect4:Clone().Parent = LeftArm
  3592. OverClockEffect4:Clone().Parent = RightLeg
  3593. OverClockEffect4:Clone().Parent = LeftLeg
  3594.  
  3595. end))
  3596. coroutine.resume(coroutine.create(function()
  3597. while Humanoid.Health>0.001 do
  3598. sine = sine + change
  3599. hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  3600.  
  3601. local torvel = (Humanoid.MoveDirection * Vector3.new(1, 0, 1)).magnitude
  3602. local velderp = RootPart.Velocity.y
  3603. if RootPart.Velocity.y > 1 and hitfloor == nil then
  3604. Anim = "Jump"
  3605.  
  3606. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  3607. Anim = "Fall"
  3608. elseif Humanoid.Sit == true then
  3609. Anim = "Sit"
  3610. elseif torvel < .5 and hitfloor ~= nil then
  3611. Anim = "Idle"
  3612. elseif torvel > .5 and hitfloor ~= nil then
  3613.  
  3614. Anim = "Walk"
  3615.  
  3616.  
  3617.  
  3618.  
  3619. else
  3620. Anim = ""
  3621.  
  3622. end
  3623.  
  3624.  
  3625. local Ccf=Torso.CFrame
  3626. --warn(Humanoid.MoveDirection*RootPart.CFrame.lookVector)
  3627. local Walktest1 = Humanoid.MoveDirection*Ccf.LookVector
  3628. local Walktest2 = Humanoid.MoveDirection*Ccf.RightVector
  3629. --warn(Walktest1.Z.."/"..Walktest1.X)
  3630. --warn(Walktest2.Z.."/"..Walktest2.X)
  3631. forWFB = Walktest1.X+Walktest1.Z
  3632. forWRL = Walktest2.X+Walktest2.Z
  3633.  
  3634.  
  3635.  
  3636.  
  3637.  
  3638. --print(Humanoid.MoveDirection)
  3639. --warn(Torso.CFrame.lookVector)
  3640.  
  3641.  
  3642.  
  3643. coroutine.resume(coroutine.create(function()
  3644.  
  3645.  
  3646. if s2.Parent == nil or s2 == nil then
  3647.  
  3648. s2 = s2c:Clone()
  3649. s2.Parent = Torso
  3650. s2.Name = "BGMusic"
  3651. -- s2.SoundId = lastid
  3652. s2.Pitch = 1
  3653. s2.Volume = 1.5
  3654. s2.Looped = true
  3655. s2.archivable = false
  3656. s2.TimePosition = lastsongpos
  3657. if playsong == true then
  3658. s2:play()
  3659. elseif playsong == false then
  3660. s2:stop()
  3661. end
  3662.  
  3663.  
  3664. else
  3665. lastsongpos=s2.TimePosition
  3666. s2.Pitch = 1
  3667.  
  3668. s2.Volume = 1.5
  3669. s2.Name = "BGMusic"
  3670. s2.Looped = true
  3671. s2.SoundId = lastid
  3672. s2.EmitterSize = 30
  3673. end
  3674.  
  3675.  
  3676.  
  3677. end))
  3678.  
  3679.  
  3680.  
  3681.  
  3682. inairvel=torvel*1
  3683.  
  3684. --forWRL
  3685. if inairvel > 30 then
  3686. inairvel=30
  3687. end
  3688. inairvel=inairvel/50*2
  3689.  
  3690.  
  3691.  
  3692. if attack == false then
  3693. if Anim == "Jump" then
  3694. change = 0.60*2
  3695. SetTween(RJW,{C0=RootCF* cn(0, 0 + (0.0395/2) * math.cos(sine / 8), -0.1 + 0.0395 * math.cos(sine / 8)) * angles(math.rad(-6.5 - 1.5 * math.cos(sine / 8))+(inairvel*forWFB)/2, math.rad(0)-(inairvel*forWRL)/2, math.rad(0))},"Quad","Out",0.25)
  3696. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(-26.5 + 2.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0))},"Quad","Out",0.25)
  3697. SetTween(RW,{C0=cf(1.4 + .05 * math.cos(sine / 8) , 0.5 + .05 * math.cos(sine / 8), .0) * angles(math.rad(140 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(8 + 4 * math.cos(sine / 8)))},"Quad","Out",0.2)
  3698. SetTween(LW,{C0=cf(-1.4 + .05 * math.cos(sine / 8), 0.5 + .05 * math.cos(sine / 8), .0) * angles(math.rad(140 - 2 * math.cos(sine / 8 )), math.rad(5), math.rad(-8 - 4 * math.cos(sine / 8 )))},"Quad","Out",0.2)
  3699. SetTween(RH,{C0=CFrame.new(.5, -0.85+ .05 * math.cos(sine / 15), -.2) * CFrame.Angles(math.rad(-15 -1* math.cos(sine / 10)),math.rad(0),math.rad(0))},"Quad","InOut",0.075)
  3700. SetTween(LH,{C0=CFrame.new(-.5, -0.35+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(-25 +1* math.cos(sine / 10)),math.rad(0),math.rad(0))},"Quad","InOut",0.075)
  3701.  
  3702.  
  3703.  
  3704. elseif Anim == "Fall" then
  3705. change = 0.60*2
  3706. SetTween(RJW,{C0=RootCF*cn(0, 0 + (0.0395/2) * math.cos(sine / 8), -0.5 + 0.0395 * math.cos(sine / 8)) * angles(math.rad(5.5 - 1.5 * math.cos(sine / 8))-(inairvel*forWFB)/2, math.rad(0)+(inairvel*forWRL)/2, math.rad(0))},"Quad","Out",0.35)
  3707. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(26.5 + 2.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0))},"Quad","Out",0.25)
  3708. SetTween(RW,{C0=cf(1.4 + .05 * math.cos(sine / 8) , 0.5 + .05 * math.cos(sine / 8), .0) * angles(math.rad(105 - 2 * math.cos(sine / 8 )), math.rad(-15), math.rad(80 + 4 * math.cos(sine / 8)))},"Quad","Out",0.2)
  3709. SetTween(LW,{C0=cf(-1.4 + .05 * math.cos(sine / 8), 0.5 + .05 * math.cos(sine / 8), .0) * angles(math.rad(105 - 2 * math.cos(sine / 8 )), math.rad(15), math.rad(-80 - 4 * math.cos(sine / 8 )))},"Quad","Out",0.2)
  3710. SetTween(RH,{C0=CFrame.new(.5, -0.15+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(-15 -1* math.cos(sine / 10)),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  3711. SetTween(LH,{C0=CFrame.new(-.5, -0.55+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(-0 +1* math.cos(sine / 10)),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  3712.  
  3713.  
  3714.  
  3715. elseif Anim == "Idle" then
  3716.  
  3717. local dahspeed=0+visn/100
  3718.  
  3719.  
  3720. change = (0.60*1)*dahspeed
  3721. Humanoid.JumpPower = 60
  3722. Humanoid.WalkSpeed=16
  3723.  
  3724. local speed = .5 + visn/1000
  3725.  
  3726. local ADNum = 1
  3727. if weps == false then
  3728. SetTween(RJW,{C0=RootCF*cn(0, 0, -0.1 + 0.0395 * math.cos(sine / 8 )) * angles(math.rad(10 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-30))},"Quad","InOut",0.1/speed)
  3729. SetTween(NeckW,{C0=NeckCF*angles(math.rad(-5+40.5*(visn/1000) - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad((math.random(-25,25)*(visn/1000))), math.rad(0 - -30+(math.random(-25,25)*(visn/1000)) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed)
  3730. SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(20 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(10 +( math.random(0,15)*(visn/1000)) * math.cos(sine / 8)))},"Linear","Out",0.1/speed)
  3731. else
  3732. SetTween(RJW,{C0=RootCF*cn(0, 0, -0.1 + 0.0395 * math.cos(sine / 8 )) * angles(math.rad(10 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(30))},"Quad","InOut",0.1/speed)
  3733. SetTween(NeckW,{C0=NeckCF*angles(math.rad(-5+40.5*(visn/1000) - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad((math.random(-25,25)*(visn/1000))), math.rad(0 - 30+(math.random(-25,25)*(visn/1000)) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.075/speed)
  3734. SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(90 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(30 +( math.random(0,15)*(visn/1000)) * math.cos(sine / 8)))},"Linear","Out",0.1/speed)
  3735.  
  3736.  
  3737. end
  3738. SetTween(LW,{C0=cf(-1.46 + .0 * math.cos(sine / 8), 0.5 + .05 * math.cos(sine / 8), 0) * angles(math.rad(20 - 2 * math.cos(sine / 8 )), math.rad(5), math.rad(-18 - (math.random(0,15)*(visn/1000)) * math.cos(sine / 8 )))},"Linear","Out",0.1/speed)
  3739. SetTween(RH,{C0=CFrame.new(.5, -0.95- .04 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(10.5 - 0 * math.cos(sine / 8)),math.rad(-20),math.rad(6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed)
  3740. SetTween(LH,{C0=CFrame.new(-.5, -0.95- .04 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(10.5 - 0 * math.cos(sine / 8)),math.rad(20),math.rad(-6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed)
  3741.  
  3742.  
  3743. --SetTween(FlameW,{C0=CF(0,0,0)*ANGLES(mr(20),0,0)},"Quad","InOut",0.1)
  3744. --SetTween(H1a,{C0=CF(0,.5,-.4)},"Quad","InOut",0.1)
  3745. -- SetTween(MX1w,{C0=CF(0,-.7,-.25)},"Quad","InOut",0.1)
  3746. --SetTween(FlameW,{C0=CF(0,-.5,0)},"Quad","InOut",0.1)
  3747. --SetTween(H1a,{C0=CF(0,-.5,-.4)},"Quad","InOut",0.1)
  3748. --SetTween(MX1w,{C0=CF(0,.1,.30)*ANGLES(mr(20),0,0)},"Quad","InOut",0.1)
  3749.  
  3750.  
  3751.  
  3752. elseif Anim == "Walk" then
  3753. local speed=0.7
  3754.  
  3755. if OverClocking ==false then
  3756. speed = speed+0.75*(visn/1000)
  3757. else
  3758. speed = speed+1.75*(visn/1000)
  3759. end
  3760. if mememode == true then
  3761. speed=4
  3762. end
  3763.  
  3764.  
  3765. change = 2.6*speed
  3766. Humanoid.JumpPower = 60*speed
  3767. Humanoid.WalkSpeed=16*speed
  3768.  
  3769.  
  3770. local RH2 = cf(-forWRL/7 * math.cos(sine / 8 ),0,forWFB/7 * math.cos(sine / 8 ))*angles(math.sin(-forWFB) * math.cos(sine / 8 ),0,math.sin(-forWRL) * math.cos(sine / 8 ))
  3771. local LH2 = cf(forWRL/7 * math.cos(sine / 8 ),0,-forWFB/7 * math.cos(sine / 8 ))*angles(math.sin(forWFB) * math.cos(sine / 8 ),0,math.sin(forWRL) * math.cos(sine / 8 ))
  3772.  
  3773. if weps == false then
  3774. SetTween(RJW,{C0=RootCF*CFrame.new(0, 0 , -0.185 + 0.055 * math.cos(sine / 4) + -math.sin(sine / 4) / 8) * angles(math.rad((forWFB*2 - forWFB * math.cos(sine / 4))*10), math.rad((-forWRL - -forWRL * math.cos(sine / 4))*5) , math.rad(8 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed)
  3775. SetTween(NeckW,{C0=NeckCF*CFrame.new(0, 0, 0 + 0.025 * math.cos(sine / 4)) * angles((math.rad((-forWFB*2 - -forWFB * math.cos(sine / 4))*8))+math.rad(math.random(-10,20)*(visn/500)), math.rad((forWRL - forWRL * math.cos(sine / 4))*5)+math.rad(math.random(-20,20)*(visn/500)), math.rad((0+(math.random(-25,25)*(visn/1000)) * math.cos(sine / 15 +.4* math.cos(sine / 20)))-forWRL*45+-8 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed)
  3776. SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.5 + forWRL/50* math.cos(sine / 8), 0) * angles(math.rad(0 + forWFB*25 * math.cos(sine / 8 )), math.rad(0), math.rad(8 + forWRL*5 * math.cos(sine / 8)))},"Quad","Out",WalkAnimMove/speed)
  3777. else
  3778.  
  3779.  
  3780. SetTween(RJW,{C0=RootCF*CFrame.new(0, 0 , -0.185 + 0.055 * math.cos(sine / 4) + -math.sin(sine / 4) / 8) * angles(math.rad((forWFB*2 - forWFB * math.cos(sine / 4))*10), math.rad((-forWRL - -forWRL * math.cos(sine / 4))*5) , math.rad(10+8 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed)
  3781. SetTween(NeckW,{C0=NeckCF*CFrame.new(0, 0, 0 + 0.025 * math.cos(sine / 4)) * angles((math.rad((-forWFB*2 - -forWFB * math.cos(sine / 4))*8))+math.rad(math.random(-10,20)*(visn/500)), math.rad((forWRL - forWRL * math.cos(sine / 4))*5)+math.rad(math.random(-20,20)*(visn/500)), math.rad(-0+(0+(math.random(-25,25)*(visn/1000)) * math.cos(sine / 15 +.4* math.cos(sine / 20)))-forWRL*45+-8 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed)
  3782.  
  3783. SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.5 + forWRL/50* math.cos(sine / 8), 0) * angles(math.rad((75 + forWFB*20)+ forWFB*5 * math.sin(sine / 8 ) ), math.rad(0), math.rad(10 + forWRL*5 * math.cos(sine / 8)))},"Quad","Out",.1)
  3784.  
  3785. end
  3786. SetTween(LW,{C0=cf(-1.45 + .0 * math.cos(sine / 8), 0.5 + forWRL/50 * math.cos(sine / 8), 0) * angles(math.rad(0 - forWFB*25 * math.cos(sine / 8 )), math.rad(0), math.rad(-8 - forWRL*5 * math.cos(sine / 8 )))},"Quad","Out",WalkAnimMove/speed)
  3787. SetTween(RH,{C0=CFrame.new(.5, -0.75+ .35 * math.sin(sine / 8 ), -.25+.15* math.cos(sine / 8 ))*RH2 * CFrame.Angles(math.rad(0 - 5 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed)
  3788. SetTween(LH,{C0=CFrame.new(-.5, -0.75- .35 * math.sin(sine / 8 ), -.25-.15* math.cos(sine / 8 ))*LH2 * CFrame.Angles(math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed)
  3789.  
  3790.  
  3791.  
  3792. elseif Anim == "Sit" then
  3793. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  3794. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  3795. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1)
  3796. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1)
  3797. SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  3798. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  3799. Humanoid.JumpPower = 60
  3800. end
  3801. end
  3802.  
  3803. Swait(Animstep)
  3804. end
  3805. end))
  3806. coroutine.resume(coroutine.create(function()
  3807. local remote = Instance.new 'RemoteFunction';
  3808. remote.Parent = Character;
  3809. remote.OnServerInvoke = function (player, request, ...)
  3810. if (player ~= Player) then
  3811. return error ('You cannot invoke this remote', 0);
  3812. end;
  3813.  
  3814.  
  3815.  
  3816. if (request == 1) then
  3817. local k = ...;
  3818.  
  3819. KeyDownF(k)
  3820.  
  3821.  
  3822.  
  3823. end;
  3824. if (request == 2) then
  3825. local k = ...;
  3826.  
  3827. KeyUpF(k)
  3828.  
  3829.  
  3830.  
  3831. end;
  3832. if (request == 3) then
  3833. local k = ...;
  3834. if k == "Down" then
  3835. Button1DownF(k)
  3836. elseif k == "Up" then
  3837. Button1UpF(k)
  3838. end
  3839. end;
  3840.  
  3841.  
  3842. if (request == 4) then
  3843. local k=...;
  3844. --MTARGET=k
  3845. end
  3846. if (request == 5) then
  3847. local k=...;
  3848. MHIT=k
  3849.  
  3850. end
  3851. if (request == 6) then
  3852. local k=...;
  3853. visn=k
  3854. -- print(visn)
  3855.  
  3856. end
  3857.  
  3858.  
  3859.  
  3860.  
  3861.  
  3862. end;
  3863.  
  3864.  
  3865.  
  3866.  
  3867.  
  3868.  
  3869.  
  3870.  
  3871.  
  3872.  
  3873.  
  3874.  
  3875.  
  3876. remote.Name = 'ServerRemote';
  3877. --local remote = NLS ([=[
  3878. local localscript = script.Keys
  3879. localscript.Name = Player.Name
  3880. localscript.Parent = Character
  3881.  
  3882. --]=], Player.Character)
  3883. end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement