Advertisement
Deyer

free

Feb 28th, 2023
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 170.16 KB | None | 0 0
  1. game.Players.LocalPlayer.Character.Head.face:remove()
  2.  
  3. --I guide me by pendulum hub to make this convert
  4.  
  5. if "u wanna use myworlds reanimation" then
  6. --reanimate by MyWorld#4430 discord.gg/pYVHtSJmEY
  7. local v3_net, v3_808 = Vector3.new(0, 25.1, 0), Vector3.new(8, 0, 8)
  8. local function getNetlessVelocity(realPartVelocity)
  9. local mag = realPartVelocity.Magnitude
  10. if mag > 1 then
  11. local unit = realPartVelocity.Unit
  12. if (unit.Y > 0.25) or (unit.Y < -0.75) then
  13. return unit * (25.1 / unit.Y)
  14. end
  15. end
  16. return v3_net + realPartVelocity * v3_808
  17. end
  18. local simradius = "shp" --simulation radius (net bypass) method
  19. --"shp" - sethiddenproperty
  20. --"ssr" - setsimulationradius
  21. --false - disable
  22. local simrad = 1000 --simulation radius value
  23. local healthHide = false --moves your head away every 3 seconds so players dont see your health bar (alignmode 4 only)
  24. local reclaim = true --if you lost control over a part this will move your primary part to the part so you get it back (alignmode 4)
  25. local novoid = true --prevents parts from going under workspace.FallenPartsDestroyHeight if you control them (alignmode 4 only)
  26. local physp = nil --PhysicalProperties.new(0.01, 0, 1, 0, 0) --sets .CustomPhysicalProperties to this for each part
  27. local noclipAllParts = false --set it to true if you want noclip
  28. local antiragdoll = true --removes hingeConstraints and ballSocketConstraints from your character
  29. local newanimate = false --disables the animate script and enables after reanimation
  30. local discharscripts = true --disables all localScripts parented to your character before reanimation
  31. local R15toR6 = true --tries to convert your character to r6 if its r15
  32. local hatcollide = false --makes hats cancollide (credit to ShownApe) (works only with reanimate method 0)
  33. local humState16 = true --enables collisions for limbs before the humanoid dies (using hum:ChangeState)
  34. local addtools = false --puts all tools from backpack to character and lets you hold them after reanimation
  35. local hedafterneck = true --disable aligns for head and enable after neck or torso is removed
  36. local loadtime = game:GetService("Players").RespawnTime + 1000000 --anti respawn delay
  37. local method = 3 --reanimation method
  38. --methods:
  39. --0 - breakJoints (takes [loadtime] seconds to load)
  40. --1 - limbs
  41. --2 - limbs + anti respawn
  42. --3 - limbs + breakJoints after [loadtime] seconds
  43. --4 - remove humanoid + breakJoints
  44. --5 - remove humanoid + limbst
  45. local alignmode = 4 --AlignPosition mode
  46. --modes:
  47. --1 - AlignPosition rigidity enabled true
  48. --2 - 2 AlignPositions rigidity enabled both true and false
  49. --3 - AlignPosition rigidity enabled false
  50. --4 - CFrame
  51. local flingpart = "Left Leg" --name of the part or the hat used for flinging
  52. --the fling function
  53. --usage: fling(target, duration, velocity)
  54. --target can be set to: basePart, CFrame, Vector3, character model or humanoid (flings at mouse.Hit if argument not provided))
  55. --duration (fling time in seconds) can be set to a number or a string convertable to the number (0.5s if not provided),
  56. --velocity (fling part rotation velocity) can be set to a vector3 value (Vector3.new(20000, 20000, 20000) if not provided)
  57.  
  58. local lp = game:GetService("Players").LocalPlayer
  59. local rs, ws, sg = game:GetService("RunService"), game:GetService("Workspace"), game:GetService("StarterGui")
  60. local stepped, heartbeat, renderstepped = rs.Stepped, rs.Heartbeat, rs.RenderStepped
  61. local twait, tdelay, rad, inf, abs, clamp = task.wait, task.delay, math.rad, math.huge, math.abs, math.clamp
  62. local cf, v3 = CFrame.new, Vector3.new
  63. local angles = CFrame.Angles
  64. local v3_0, cf_0 = v3(0, 0, 0), cf(0, 0, 0)
  65.  
  66. local c = lp.Character
  67. if not (c and c.Parent) then
  68. return
  69. end
  70.  
  71. c:GetPropertyChangedSignal("Parent"):Connect(function()
  72. if not (c and c.Parent) then
  73. c = nil
  74. end
  75. end)
  76.  
  77. local clone, destroy, getchildren, getdescendants, isa = c.Clone, c.Destroy, c.GetChildren, c.GetDescendants, c.IsA
  78.  
  79. local function gp(parent, name, className)
  80. if typeof(parent) == "Instance" then
  81. for i, v in pairs(getchildren(parent)) do
  82. if (v.Name == name) and isa(v, className) then
  83. return v
  84. end
  85. end
  86. end
  87. return nil
  88. end
  89.  
  90. local fenv = getfenv()
  91.  
  92. local shp = fenv.sethiddenproperty or fenv.set_hidden_property or fenv.set_hidden_prop or fenv.sethiddenprop
  93. local ssr = fenv.setsimulationradius or fenv.set_simulation_radius or fenv.set_sim_radius or fenv.setsimradius or fenv.setsimrad or fenv.set_sim_rad
  94.  
  95. healthHide = healthHide and ((method == 0) or (method == 3)) and gp(c, "Head", "BasePart")
  96.  
  97. local reclaim, lostpart = reclaim and c.PrimaryPart, nil
  98.  
  99. local function align(Part0, Part1)
  100.  
  101. local att0 = Instance.new("Attachment")
  102. att0.Position, att0.Orientation, att0.Name = v3_0, v3_0, "att0_" .. Part0.Name
  103. local att1 = Instance.new("Attachment")
  104. att1.Position, att1.Orientation, att1.Name = v3_0, v3_0, "att1_" .. Part1.Name
  105.  
  106. if alignmode == 4 then
  107.  
  108. local hide = false
  109. if Part0 == healthHide then
  110. healthHide = false
  111. tdelay(0, function()
  112. while twait(2.9) and Part0 and c do
  113. hide = #Part0:GetConnectedParts() == 1
  114. twait(0.1)
  115. hide = false
  116. end
  117. end)
  118. end
  119.  
  120. local rot = rad(0.05)
  121. local con0, con1 = nil, nil
  122. con0 = stepped:Connect(function()
  123. if not (Part0 and Part1) then return con0:Disconnect() and con1:Disconnect() end
  124. Part0.RotVelocity = Part1.RotVelocity
  125. end)
  126. local lastpos = Part0.Position
  127. con1 = heartbeat:Connect(function(delta)
  128. if not (Part0 and Part1 and att1) then return con0:Disconnect() and con1:Disconnect() end
  129. if (not Part0.Anchored) and (Part0.ReceiveAge == 0) then
  130. if lostpart == Part0 then
  131. lostpart = nil
  132. end
  133. rot = -rot
  134. local newcf = Part1.CFrame * att1.CFrame * angles(0, 0, rot)
  135. if Part1.Velocity.Magnitude > 0.01 then
  136. Part0.Velocity = getNetlessVelocity(Part1.Velocity)
  137. else
  138. Part0.Velocity = getNetlessVelocity((newcf.Position - lastpos) / delta)
  139. end
  140. lastpos = newcf.Position
  141. if lostpart and (Part0 == reclaim) then
  142. newcf = lostpart.CFrame
  143. elseif hide then
  144. newcf += v3(0, 3000, 0)
  145. end
  146. if novoid and (newcf.Y < ws.FallenPartsDestroyHeight + 0.1) then
  147. newcf += v3(0, ws.FallenPartsDestroyHeight + 0.1 - newcf.Y, 0)
  148. end
  149. Part0.CFrame = newcf
  150. elseif (not Part0.Anchored) and (abs(Part0.Velocity.X) < 45) and (abs(Part0.Velocity.Y) < 25) and (abs(Part0.Velocity.Z) < 45) then
  151. lostpart = Part0
  152. end
  153. end)
  154.  
  155. else
  156.  
  157. Part0.CustomPhysicalProperties = physp
  158. if (alignmode == 1) or (alignmode == 2) then
  159. local ape = Instance.new("AlignPosition")
  160. ape.MaxForce, ape.MaxVelocity, ape.Responsiveness = inf, inf, inf
  161. ape.ReactionForceEnabled, ape.RigidityEnabled, ape.ApplyAtCenterOfMass = false, true, false
  162. ape.Attachment0, ape.Attachment1, ape.Name = att0, att1, "AlignPositionRtrue"
  163. ape.Parent = att0
  164. end
  165.  
  166. if (alignmode == 2) or (alignmode == 3) then
  167. local apd = Instance.new("AlignPosition")
  168. apd.MaxForce, apd.MaxVelocity, apd.Responsiveness = inf, inf, inf
  169. apd.ReactionForceEnabled, apd.RigidityEnabled, apd.ApplyAtCenterOfMass = false, false, false
  170. apd.Attachment0, apd.Attachment1, apd.Name = att0, att1, "AlignPositionRfalse"
  171. apd.Parent = att0
  172. end
  173.  
  174. local ao = Instance.new("AlignOrientation")
  175. ao.MaxAngularVelocity, ao.MaxTorque, ao.Responsiveness = inf, inf, inf
  176. ao.PrimaryAxisOnly, ao.ReactionTorqueEnabled, ao.RigidityEnabled = false, false, false
  177. ao.Attachment0, ao.Attachment1 = att0, att1
  178. ao.Parent = att0
  179.  
  180. local con0, con1 = nil, nil
  181. local vel = Part0.Velocity
  182. con0 = renderstepped:Connect(function()
  183. if not (Part0 and Part1) then return con0:Disconnect() and con1:Disconnect() end
  184. Part0.Velocity = vel
  185. end)
  186. local lastpos = Part0.Position
  187. con1 = heartbeat:Connect(function(delta)
  188. if not (Part0 and Part1) then return con0:Disconnect() and con1:Disconnect() end
  189. vel = Part0.Velocity
  190. if Part1.Velocity.Magnitude > 0.01 then
  191. Part0.Velocity = getNetlessVelocity(Part1.Velocity)
  192. else
  193. Part0.Velocity = getNetlessVelocity((Part0.Position - lastpos) / delta)
  194. end
  195. lastpos = Part0.Position
  196. end)
  197.  
  198. end
  199.  
  200. att0:GetPropertyChangedSignal("Parent"):Connect(function()
  201. Part0 = att0.Parent
  202. if not isa(Part0, "BasePart") then
  203. att0 = nil
  204. if lostpart == Part0 then
  205. lostpart = nil
  206. end
  207. Part0 = nil
  208. end
  209. end)
  210. att0.Parent = Part0
  211.  
  212. att1:GetPropertyChangedSignal("Parent"):Connect(function()
  213. Part1 = att1.Parent
  214. if not isa(Part1, "BasePart") then
  215. att1 = nil
  216. Part1 = nil
  217. end
  218. end)
  219. att1.Parent = Part1
  220. end
  221.  
  222. local function respawnrequest()
  223. local ccfr, c = ws.CurrentCamera.CFrame, lp.Character
  224. lp.Character = nil
  225. lp.Character = c
  226. local con = nil
  227. con = ws.CurrentCamera.Changed:Connect(function(prop)
  228. if (prop ~= "Parent") and (prop ~= "CFrame") then
  229. return
  230. end
  231. ws.CurrentCamera.CFrame = ccfr
  232. con:Disconnect()
  233. end)
  234. end
  235.  
  236. local destroyhum = (method == 4) or (method == 5)
  237. local breakjoints = (method == 0) or (method == 4)
  238. local antirespawn = (method == 0) or (method == 2) or (method == 3)
  239.  
  240. hatcollide = hatcollide and (method == 0)
  241.  
  242. addtools = addtools and lp:FindFirstChildOfClass("Backpack")
  243.  
  244. if type(simrad) ~= "number" then simrad = 1000 end
  245. if shp and (simradius == "shp") then
  246. tdelay(0, function()
  247. while c do
  248. shp(lp, "SimulationRadius", simrad)
  249. heartbeat:Wait()
  250. end
  251. end)
  252. elseif ssr and (simradius == "ssr") then
  253. tdelay(0, function()
  254. while c do
  255. ssr(simrad)
  256. heartbeat:Wait()
  257. end
  258. end)
  259. end
  260.  
  261. if antiragdoll then
  262. antiragdoll = function(v)
  263. if isa(v, "HingeConstraint") or isa(v, "BallSocketConstraint") then
  264. v.Parent = nil
  265. end
  266. end
  267. for i, v in pairs(getdescendants(c)) do
  268. antiragdoll(v)
  269. end
  270. c.DescendantAdded:Connect(antiragdoll)
  271. end
  272.  
  273. if antirespawn then
  274. respawnrequest()
  275. end
  276.  
  277. if method == 0 then
  278. twait(loadtime)
  279. if not c then
  280. return
  281. end
  282. end
  283.  
  284. if discharscripts then
  285. for i, v in pairs(getdescendants(c)) do
  286. if isa(v, "LocalScript") then
  287. v.Disabled = true
  288. end
  289. end
  290. elseif newanimate then
  291. local animate = gp(c, "Animate", "LocalScript")
  292. if animate and (not animate.Disabled) then
  293. animate.Disabled = true
  294. else
  295. newanimate = false
  296. end
  297. end
  298.  
  299. if addtools then
  300. for i, v in pairs(getchildren(addtools)) do
  301. if isa(v, "Tool") then
  302. v.Parent = c
  303. end
  304. end
  305. end
  306.  
  307. pcall(function()
  308. settings().Physics.AllowSleep = false
  309. settings().Physics.PhysicsEnvironmentalThrottle = Enum.EnviromentalPhysicsThrottle.Disabled
  310. end)
  311.  
  312. local OLDscripts = {}
  313.  
  314. for i, v in pairs(getdescendants(c)) do
  315. if v.ClassName == "Script" then
  316. OLDscripts[v.Name] = true
  317. end
  318. end
  319.  
  320. local scriptNames = {}
  321.  
  322. for i, v in pairs(getdescendants(c)) do
  323. if isa(v, "BasePart") then
  324. local newName, exists = tostring(i), true
  325. while exists do
  326. exists = OLDscripts[newName]
  327. if exists then
  328. newName = newName .. "_"
  329. end
  330. end
  331. table.insert(scriptNames, newName)
  332. Instance.new("Script", v).Name = newName
  333. end
  334. end
  335.  
  336. local hum = c:FindFirstChildOfClass("Humanoid")
  337. if hum then
  338. for i, v in pairs(hum:GetPlayingAnimationTracks()) do
  339. v:Stop()
  340. end
  341. end
  342. c.Archivable = true
  343. local cl = clone(c)
  344. if hum and humState16 then
  345. hum:ChangeState(Enum.HumanoidStateType.Physics)
  346. if destroyhum then
  347. twait(1.6)
  348. end
  349. end
  350. if destroyhum then
  351. pcall(destroy, hum)
  352. end
  353.  
  354. if not c then
  355. return
  356. end
  357.  
  358. local head, torso, root = gp(c, "Head", "BasePart"), gp(c, "Torso", "BasePart") or gp(c, "UpperTorso", "BasePart"), gp(c, "HumanoidRootPart", "BasePart")
  359. if hatcollide then
  360. pcall(destroy, torso)
  361. pcall(destroy, root)
  362. pcall(destroy, c:FindFirstChildOfClass("BodyColors") or gp(c, "Health", "Script"))
  363. end
  364.  
  365. local model = Instance.new("Model", c)
  366. model:GetPropertyChangedSignal("Parent"):Connect(function()
  367. if not (model and model.Parent) then
  368. model = nil
  369. end
  370. end)
  371.  
  372. for i, v in pairs(getchildren(c)) do
  373. if v ~= model then
  374. if addtools and isa(v, "Tool") then
  375. for i1, v1 in pairs(getdescendants(v)) do
  376. if v1 and v1.Parent and isa(v1, "BasePart") then
  377. local bv = Instance.new("BodyVelocity")
  378. bv.Velocity, bv.MaxForce, bv.P, bv.Name = v3_0, v3(1000, 1000, 1000), 1250, "bv_" .. v.Name
  379. bv.Parent = v1
  380. end
  381. end
  382. end
  383. v.Parent = model
  384. end
  385. end
  386.  
  387. if breakjoints then
  388. model:BreakJoints()
  389. else
  390. if head and torso then
  391. for i, v in pairs(getdescendants(model)) do
  392. if isa(v, "JointInstance") then
  393. local save = false
  394. if (v.Part0 == torso) and (v.Part1 == head) then
  395. save = true
  396. end
  397. if (v.Part0 == head) and (v.Part1 == torso) then
  398. save = true
  399. end
  400. if save then
  401. if hedafterneck then
  402. hedafterneck = v
  403. end
  404. else
  405. pcall(destroy, v)
  406. end
  407. end
  408. end
  409. end
  410. if method == 3 then
  411. task.delay(loadtime, pcall, model.BreakJoints, model)
  412. end
  413. end
  414.  
  415. cl.Parent = ws
  416. for i, v in pairs(getchildren(cl)) do
  417. v.Parent = c
  418. end
  419. pcall(destroy, cl)
  420.  
  421. local uncollide, noclipcon = nil, nil
  422. if noclipAllParts then
  423. uncollide = function()
  424. if c then
  425. for i, v in pairs(getdescendants(c)) do
  426. if isa(v, "BasePart") then
  427. v.CanCollide = false
  428. end
  429. end
  430. else
  431. noclipcon:Disconnect()
  432. end
  433. end
  434. else
  435. uncollide = function()
  436. if model then
  437. for i, v in pairs(getdescendants(model)) do
  438. if isa(v, "BasePart") then
  439. v.CanCollide = false
  440. end
  441. end
  442. else
  443. noclipcon:Disconnect()
  444. end
  445. end
  446. end
  447. noclipcon = stepped:Connect(uncollide)
  448. uncollide()
  449.  
  450. for i, scr in pairs(getdescendants(model)) do
  451. if (scr.ClassName == "Script") and table.find(scriptNames, scr.Name) then
  452. local Part0 = scr.Parent
  453. if isa(Part0, "BasePart") then
  454. for i1, scr1 in pairs(getdescendants(c)) do
  455. if (scr1.ClassName == "Script") and (scr1.Name == scr.Name) and (not scr1:IsDescendantOf(model)) then
  456. local Part1 = scr1.Parent
  457. if (Part1.ClassName == Part0.ClassName) and (Part1.Name == Part0.Name) then
  458. align(Part0, Part1)
  459. pcall(destroy, scr)
  460. pcall(destroy, scr1)
  461. break
  462. end
  463. end
  464. end
  465. end
  466. end
  467. end
  468.  
  469. for i, v in pairs(getdescendants(c)) do
  470. if v and v.Parent and (not v:IsDescendantOf(model)) then
  471. if isa(v, "Decal") then
  472. v.Transparency = 1
  473. elseif isa(v, "BasePart") then
  474. v.Transparency = 1
  475. v.Anchored = false
  476. elseif isa(v, "ForceField") then
  477. v.Visible = false
  478. elseif isa(v, "Sound") then
  479. v.Playing = false
  480. elseif isa(v, "BillboardGui") or isa(v, "SurfaceGui") or isa(v, "ParticleEmitter") or isa(v, "Fire") or isa(v, "Smoke") or isa(v, "Sparkles") then
  481. v.Enabled = false
  482. end
  483. end
  484. end
  485.  
  486. if newanimate then
  487. local animate = gp(c, "Animate", "LocalScript")
  488. if animate then
  489. animate.Disabled = false
  490. end
  491. end
  492.  
  493. if addtools then
  494. for i, v in pairs(getchildren(c)) do
  495. if isa(v, "Tool") then
  496. v.Parent = addtools
  497. end
  498. end
  499. end
  500.  
  501. local hum0, hum1 = model:FindFirstChildOfClass("Humanoid"), c:FindFirstChildOfClass("Humanoid")
  502. if hum0 then
  503. hum0:GetPropertyChangedSignal("Parent"):Connect(function()
  504. if not (hum0 and hum0.Parent) then
  505. hum0 = nil
  506. end
  507. end)
  508. end
  509. if hum1 then
  510. hum1:GetPropertyChangedSignal("Parent"):Connect(function()
  511. if not (hum1 and hum1.Parent) then
  512. hum1 = nil
  513. end
  514. end)
  515.  
  516. ws.CurrentCamera.CameraSubject = hum1
  517. local camSubCon = nil
  518. local function camSubFunc()
  519. camSubCon:Disconnect()
  520. if c and hum1 then
  521. ws.CurrentCamera.CameraSubject = hum1
  522. end
  523. end
  524. camSubCon = renderstepped:Connect(camSubFunc)
  525. if hum0 then
  526. hum0:GetPropertyChangedSignal("Jump"):Connect(function()
  527. if hum1 then
  528. hum1.Jump = hum0.Jump
  529. end
  530. end)
  531. else
  532. respawnrequest()
  533. end
  534. end
  535.  
  536. local rb = Instance.new("BindableEvent", c)
  537. rb.Event:Connect(function()
  538. pcall(destroy, rb)
  539. sg:SetCore("ResetButtonCallback", true)
  540. if destroyhum then
  541. if c then c:BreakJoints() end
  542. return
  543. end
  544. if model and hum0 and (hum0.Health > 0) then
  545. model:BreakJoints()
  546. hum0.Health = 0
  547. end
  548. if antirespawn then
  549. respawnrequest()
  550. end
  551. end)
  552. sg:SetCore("ResetButtonCallback", rb)
  553.  
  554. tdelay(0, function()
  555. while c do
  556. if hum0 and hum1 then
  557. hum1.Jump = hum0.Jump
  558. end
  559. wait()
  560. end
  561. sg:SetCore("ResetButtonCallback", true)
  562. end)
  563.  
  564. R15toR6 = R15toR6 and hum1 and (hum1.RigType == Enum.HumanoidRigType.R15)
  565. if R15toR6 then
  566. local part = gp(c, "HumanoidRootPart", "BasePart") or gp(c, "UpperTorso", "BasePart") or gp(c, "LowerTorso", "BasePart") or gp(c, "Head", "BasePart") or c:FindFirstChildWhichIsA("BasePart")
  567. if part then
  568. local cfr = part.CFrame
  569. local R6parts = {
  570. head = {
  571. Name = "Head",
  572. Size = v3(2, 1, 1),
  573. R15 = {
  574. Head = 0
  575. }
  576. },
  577. torso = {
  578. Name = "Torso",
  579. Size = v3(2, 2, 1),
  580. R15 = {
  581. UpperTorso = 0.2,
  582. LowerTorso = -0.8
  583. }
  584. },
  585. root = {
  586. Name = "HumanoidRootPart",
  587. Size = v3(2, 2, 1),
  588. R15 = {
  589. HumanoidRootPart = 0
  590. }
  591. },
  592. leftArm = {
  593. Name = "Left Arm",
  594. Size = v3(1, 2, 1),
  595. R15 = {
  596. LeftHand = -0.849,
  597. LeftLowerArm = -0.174,
  598. LeftUpperArm = 0.415
  599. }
  600. },
  601. rightArm = {
  602. Name = "Right Arm",
  603. Size = v3(1, 2, 1),
  604. R15 = {
  605. RightHand = -0.849,
  606. RightLowerArm = -0.174,
  607. RightUpperArm = 0.415
  608. }
  609. },
  610. leftLeg = {
  611. Name = "Left Leg",
  612. Size = v3(1, 2, 1),
  613. R15 = {
  614. LeftFoot = -0.85,
  615. LeftLowerLeg = -0.29,
  616. LeftUpperLeg = 0.49
  617. }
  618. },
  619. rightLeg = {
  620. Name = "Right Leg",
  621. Size = v3(1, 2, 1),
  622. R15 = {
  623. RightFoot = -0.85,
  624. RightLowerLeg = -0.29,
  625. RightUpperLeg = 0.49
  626. }
  627. }
  628. }
  629. for i, v in pairs(getchildren(c)) do
  630. if isa(v, "BasePart") then
  631. for i1, v1 in pairs(getchildren(v)) do
  632. if isa(v1, "Motor6D") then
  633. v1.Part0 = nil
  634. end
  635. end
  636. end
  637. end
  638. part.Archivable = true
  639. for i, v in pairs(R6parts) do
  640. local part = clone(part)
  641. part:ClearAllChildren()
  642. part.Name, part.Size, part.CFrame, part.Anchored, part.Transparency, part.CanCollide = v.Name, v.Size, cfr, false, 1, false
  643. for i1, v1 in pairs(v.R15) do
  644. local R15part = gp(c, i1, "BasePart")
  645. local att = gp(R15part, "att1_" .. i1, "Attachment")
  646. if R15part then
  647. local weld = Instance.new("Weld")
  648. weld.Part0, weld.Part1, weld.C0, weld.C1, weld.Name = part, R15part, cf(0, v1, 0), cf_0, "Weld_" .. i1
  649. weld.Parent = R15part
  650. R15part.Massless, R15part.Name = true, "R15_" .. i1
  651. R15part.Parent = part
  652. if att then
  653. att.Position = v3(0, v1, 0)
  654. att.Parent = part
  655. end
  656. end
  657. end
  658. part.Parent = c
  659. R6parts[i] = part
  660. end
  661. local R6joints = {
  662. neck = {
  663. Parent = R6parts.torso,
  664. Name = "Neck",
  665. Part0 = R6parts.torso,
  666. Part1 = R6parts.head,
  667. C0 = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),
  668. C1 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  669. },
  670. rootJoint = {
  671. Parent = R6parts.root,
  672. Name = "RootJoint" ,
  673. Part0 = R6parts.root,
  674. Part1 = R6parts.torso,
  675. C0 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),
  676. C1 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  677. },
  678. rightShoulder = {
  679. Parent = R6parts.torso,
  680. Name = "Right Shoulder",
  681. Part0 = R6parts.torso,
  682. Part1 = R6parts.rightArm,
  683. C0 = cf(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),
  684. C1 = cf(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  685. },
  686. leftShoulder = {
  687. Parent = R6parts.torso,
  688. Name = "Left Shoulder",
  689. Part0 = R6parts.torso,
  690. Part1 = R6parts.leftArm,
  691. C0 = cf(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  692. C1 = cf(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  693. },
  694. rightHip = {
  695. Parent = R6parts.torso,
  696. Name = "Right Hip",
  697. Part0 = R6parts.torso,
  698. Part1 = R6parts.rightLeg,
  699. C0 = cf(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),
  700. C1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  701. },
  702. leftHip = {
  703. Parent = R6parts.torso,
  704. Name = "Left Hip" ,
  705. Part0 = R6parts.torso,
  706. Part1 = R6parts.leftLeg,
  707. C0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  708. C1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  709. }
  710. }
  711. for i, v in pairs(R6joints) do
  712. local joint = Instance.new("Motor6D")
  713. for prop, val in pairs(v) do
  714. joint[prop] = val
  715. end
  716. R6joints[i] = joint
  717. end
  718. if hum1 then
  719. hum1.RigType, hum1.HipHeight = Enum.HumanoidRigType.R6, 0
  720. end
  721. end
  722. end
  723.  
  724. local torso1 = torso
  725. torso = gp(c, "Torso", "BasePart") or ((not R15toR6) and gp(c, torso.Name, "BasePart"))
  726. if (typeof(hedafterneck) == "Instance") and head and torso and torso1 then
  727. local conNeck, conTorso, conTorso1 = nil, nil, nil
  728. local aligns = {}
  729. local function enableAligns()
  730. conNeck:Disconnect()
  731. conTorso:Disconnect()
  732. conTorso1:Disconnect()
  733. for i, v in pairs(aligns) do
  734. v.Enabled = true
  735. end
  736. end
  737. conNeck = hedafterneck.Changed:Connect(function(prop)
  738. if table.find({"Part0", "Part1", "Parent"}, prop) then
  739. enableAligns()
  740. end
  741. end)
  742. conTorso = torso:GetPropertyChangedSignal("Parent"):Connect(enableAligns)
  743. conTorso1 = torso1:GetPropertyChangedSignal("Parent"):Connect(enableAligns)
  744. for i, v in pairs(getdescendants(head)) do
  745. if isa(v, "AlignPosition") or isa(v, "AlignOrientation") then
  746. i = tostring(i)
  747. aligns[i] = v
  748. v:GetPropertyChangedSignal("Parent"):Connect(function()
  749. aligns[i] = nil
  750. end)
  751. v.Enabled = false
  752. end
  753. end
  754. end
  755.  
  756. local flingpart0 = gp(model, flingpart, "BasePart") or gp(gp(model, flingpart, "Accessory"), "Handle", "BasePart")
  757. local flingpart1 = gp(c, flingpart, "BasePart") or gp(gp(c, flingpart, "Accessory"), "Handle", "BasePart")
  758.  
  759. local fling = function() end
  760. if flingpart0 and flingpart1 then
  761. flingpart0:GetPropertyChangedSignal("Parent"):Connect(function()
  762. if not (flingpart0 and flingpart0.Parent) then
  763. flingpart0 = nil
  764. fling = function() end
  765. end
  766. end)
  767. flingpart0.Archivable = true
  768. flingpart1:GetPropertyChangedSignal("Parent"):Connect(function()
  769. if not (flingpart1 and flingpart1.Parent) then
  770. flingpart1 = nil
  771. fling = function() end
  772. end
  773. end)
  774. local att0 = gp(flingpart0, "att0_" .. flingpart0.Name, "Attachment")
  775. local att1 = gp(flingpart1, "att1_" .. flingpart1.Name, "Attachment")
  776. if att0 and att1 then
  777. att0:GetPropertyChangedSignal("Parent"):Connect(function()
  778. if not (att0 and att0.Parent) then
  779. att0 = nil
  780. fling = function() end
  781. end
  782. end)
  783. att1:GetPropertyChangedSignal("Parent"):Connect(function()
  784. if not (att1 and att1.Parent) then
  785. att1 = nil
  786. fling = function() end
  787. end
  788. end)
  789. local lastfling = nil
  790. local mouse = lp:GetMouse()
  791. fling = function(target, duration, rotVelocity)
  792. if typeof(target) == "Instance" then
  793. if isa(target, "BasePart") then
  794. target = target.Position
  795. elseif isa(target, "Model") then
  796. target = gp(target, "HumanoidRootPart", "BasePart") or gp(target, "Torso", "BasePart") or gp(target, "UpperTorso", "BasePart") or target:FindFirstChildWhichIsA("BasePart")
  797. if target then
  798. target = target.Position
  799. else
  800. return
  801. end
  802. elseif isa(target, "Humanoid") then
  803. target = target.Parent
  804. if not (target and isa(target, "Model")) then
  805. return
  806. end
  807. target = gp(target, "HumanoidRootPart", "BasePart") or gp(target, "Torso", "BasePart") or gp(target, "UpperTorso", "BasePart") or target:FindFirstChildWhichIsA("BasePart")
  808. if target then
  809. target = target.Position
  810. else
  811. return
  812. end
  813. else
  814. return
  815. end
  816. elseif typeof(target) == "CFrame" then
  817. target = target.Position
  818. elseif typeof(target) ~= "Vector3" then
  819. target = mouse.Hit
  820. if target then
  821. target = target.Position
  822. else
  823. return
  824. end
  825. end
  826. if target.Y < ws.FallenPartsDestroyHeight + 5 then
  827. target = v3(target.X, ws.FallenPartsDestroyHeight + 5, target.Z)
  828. end
  829. lastfling = target
  830. if type(duration) ~= "number" then
  831. duration = tonumber(duration) or 0.05
  832. end
  833. if typeof(rotVelocity) ~= "Vector3" then
  834. rotVelocity = v3(200000000000000, 200000000000000, 200000000000000)
  835. end
  836. if not (target and flingpart0 and flingpart1 and att0 and att1) then
  837. return
  838. end
  839. flingpart0.Archivable = true
  840. local flingpart = clone(flingpart0)
  841. flingpart.Transparency = 1
  842. flingpart.CanCollide = false
  843. flingpart.Name = "flingpart_" .. flingpart0.Name
  844. flingpart.Anchored = true
  845. flingpart.Velocity = v3_0
  846. flingpart.RotVelocity = v3_0
  847. flingpart.Position = target
  848. flingpart:GetPropertyChangedSignal("Parent"):Connect(function()
  849. if not (flingpart and flingpart.Parent) then
  850. flingpart = nil
  851. end
  852. end)
  853. flingpart.Parent = flingpart1
  854. if flingpart0.Transparency > 0.5 then
  855. flingpart0.Transparency = 0.5
  856. end
  857. att1.Parent = flingpart
  858. local con = nil
  859. local rotchg = v3(1000000, rotVelocity.Unit.Y * -10000000, 1000000)
  860. con = heartbeat:Connect(function(delta)
  861. if target and (lastfling == target) and flingpart and flingpart0 and flingpart1 and att0 and att1 then
  862. flingpart.Orientation += rotchg * delta
  863. flingpart0.RotVelocity = rotVelocity
  864. else
  865. con:Disconnect()
  866. end
  867. end)
  868. if alignmode ~= 4 then
  869. local con = nil
  870. con = renderstepped:Connect(function()
  871. if flingpart0 and target then
  872. flingpart0.RotVelocity = v3_0
  873. else
  874. con:Disconnect()
  875. end
  876. end)
  877. end
  878. twait(duration)
  879. if lastfling ~= target then
  880. if flingpart then
  881. if att1 and (att1.Parent == flingpart) then
  882. att1.Parent = flingpart
  883. end
  884. pcall(destroy, flingpart)
  885. end
  886. return
  887. end
  888. target = nil
  889. if not (flingpart and flingpart0 and flingpart1 and att0 and att1) then
  890. return
  891. end
  892. flingpart0.RotVelocity = v3_0
  893. att1.Parent = flingpart0
  894. pcall(destroy, flingpart)
  895. end
  896. end
  897. end
  898.  
  899. --lp:GetMouse().Button1Down:Connect(fling) --click fling
  900. end
  901.  
  902. local folder = game:GetObjects("rbxassetid://9208704446")[1]--,GK.Extras
  903. folder.Parent = game:GetService("Players").LocalPlayer
  904.  
  905. ---------------------------
  906. --/ \--
  907. -- Script By: 123jl123 --
  908. --\ /--
  909. ---------------------------
  910. --local remote = NS ([=[
  911.  
  912. FELOADLIBRARY = {}
  913. loadstring(game:GetObjects("rbxassetid://5209815302")[1].Source)()
  914. local RbxUtility = FELOADLIBRARY
  915. local Create = RbxUtility.Create
  916.  
  917. local TweenService = game:GetService("TweenService")
  918. --local RbxUtility = require(script.RbxUtility)
  919. FELOADLIBRARY = {}
  920. loadstring(game:GetObjects("rbxassetid://5209815302")[1].Source)()
  921. local RbxUtility = FELOADLIBRARY
  922. local Create = RbxUtility.Create
  923.  
  924. --local Create = RbxUtility.Create
  925.  
  926.  
  927. local Player = game.Players.LocalPlayer
  928. --[[local Mouse,mouse,UserInputService,ContextActionService
  929. do
  930. script.Parent = Player.Character
  931. local CAS = {Actions={}}
  932. local Event = Instance.new("RemoteEvent")
  933. Event.Name = "UserInput_Event"
  934. Event.Parent = Player.Character
  935. local fakeEvent = function()
  936. local t = {_fakeEvent=true}
  937. t.Connect = function(self,f)self.Function=f end
  938. t.connect = t.Connect
  939. return t
  940. end
  941. end]]
  942.  
  943. EffectPack = folder.Extras:Clone()
  944. folder.Extras:Destroy()
  945.  
  946. ZTfade=false
  947. ZT=false
  948. OverClocking = false
  949. local Jets = false
  950. MHIT = Vector3.new()
  951. Character= Player.Character
  952. Torso = Character.Torso
  953. Head = Character.Head
  954. Humanoid = Character.Humanoid
  955. LeftArm = Character["Left Arm"]
  956. LeftLeg = Character["Left Leg"]
  957. RightArm = Character["Right Arm"]
  958. RightLeg = Character["Right Leg"]
  959. RootPart = Character["HumanoidRootPart"]
  960. local Hold = false
  961. local weps = false
  962.  
  963. local Anim="Idle"
  964. local inairvel=0
  965. local WalkAnimStep = 0
  966. local sine = 0
  967. local change = 1
  968. Animstep = 0
  969. WalkAnimMove=0.1
  970. Combo = 0
  971. local attack=false
  972. local RJ = Character.HumanoidRootPart:FindFirstChild("RootJoint")
  973. local Neck = Character.Torso:FindFirstChild("Neck")
  974. local visn = 0
  975. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  976. local NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  977. IsXray = false
  978. local spin = 1
  979. local spinto = 1
  980. local spinrad = 0
  981.  
  982. local forWFB = 0
  983. local forWRL = 0
  984. FF = Instance.new("ForceField",Character)
  985. FF.Visible = false
  986. FF.Name = "FatForce"
  987. Effects=Instance.new("Folder",Character)
  988. Effects.Name="Effects"
  989. it=Instance.new
  990. vt=Vector3.new
  991. cf=CFrame.new
  992. euler=CFrame.fromEulerAnglesXYZ
  993. angles=CFrame.Angles
  994. local cn = CFrame.new
  995. mr=math.rad
  996. mememode=false
  997. IT = Instance.new
  998. CF = CFrame.new
  999. VT = Vector3.new
  1000. RAD = math.rad
  1001. C3 = Color3.new
  1002. UD2 = UDim2.new
  1003. BRICKC = BrickColor.new
  1004. ANGLES = CFrame.Angles
  1005. EULER = CFrame.fromEulerAnglesXYZ
  1006. COS = math.cos
  1007. ACOS = math.acos
  1008. SIN = math.sin
  1009. ASIN = math.asin
  1010. ABS = math.abs
  1011. MRANDOM = math.random
  1012. FLOOR = math.floor
  1013.  
  1014. local lastid= "http://www.roblox.com/asset/?id=2984992418"--1052695866
  1015. local s2=it("Sound",Torso)
  1016. local CurId = 1
  1017. s2.EmitterSize = 30
  1018. local s2c=s2:Clone()
  1019.  
  1020. playsong = true
  1021.  
  1022. s2.SoundId = lastid
  1023. if playsong == true then
  1024. s2:play()
  1025. elseif playsong == false then
  1026. s2:stop()
  1027. end
  1028. lastsongpos= 0
  1029.  
  1030. crosshair = Instance.new("BillboardGui",Character)
  1031. crosshair.Size = UDim2.new(10,0,10,0)
  1032. crosshair.Enabled = false
  1033. imgl = Instance.new("ImageLabel",crosshair)
  1034. imgl.Position = UDim2.new(0,0,0,0)
  1035. imgl.Size = UDim2.new(1,0,1,0)
  1036. imgl.Image = "rbxassetid://578065407"
  1037. imgl.BackgroundTransparency = 1
  1038. imgl.ImageTransparency = .7
  1039. imgl.ImageColor3 = Color3.new(1,1,1)
  1040. crosshair.StudsOffset = Vector3.new(0,0,-1)
  1041.  
  1042. --//=================================\\
  1043. --|| LOCAL IDS
  1044. --\\=================================//
  1045.  
  1046. local GROWL = 1544355717
  1047. local ROAR = 528589382
  1048. local ECHOBLAST = 376976397
  1049. local CAST = 459523898
  1050. local ALCHEMY = 424195979
  1051. local BUILDUP = 698824317
  1052. local BIGBUILDUP = 874376217
  1053. local IMPACT = 231917744
  1054. local LARGE_EXPLOSION = 168513088
  1055. local TURNUP = 299058146
  1056.  
  1057. if Character:FindFirstChild("Animate")then
  1058. Character.Animate:Destroy()
  1059. end
  1060.  
  1061. function RemoveOutlines(part)
  1062. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1063. end
  1064.  
  1065.  
  1066.  
  1067.  
  1068. CFuncs = {
  1069. Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1070.  
  1071. 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})
  1072. RemoveOutlines(Part)
  1073. return Part
  1074. end
  1075. }
  1076. ,
  1077. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1078.  
  1079. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  1080. if Mesh == "SpecialMesh" then
  1081. Msh.MeshType = MeshType
  1082. Msh.MeshId = MeshId
  1083. end
  1084. return Msh
  1085. end
  1086. }
  1087. ,
  1088. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1089.  
  1090. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  1091. if Mesh == "SpecialMesh" then
  1092. Msh.MeshType = MeshType
  1093. Msh.MeshId = MeshId
  1094. end
  1095. return Msh
  1096. end
  1097. }
  1098. ,
  1099. Weld = {Create = function(Parent, Part0, Part1, C0, C1)
  1100.  
  1101. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  1102. return Weld
  1103. end
  1104. }
  1105. ,
  1106. Sound = {Create = function(id, par, vol, pit)
  1107.  
  1108. coroutine.resume(coroutine.create(function()
  1109.  
  1110. local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = "http://www.roblox.com/asset/?id="..id, Parent = par or workspace})
  1111. wait()
  1112. S:play()
  1113. game:GetService("Debris"):AddItem(S, 6)
  1114. end
  1115. ))
  1116. end
  1117. }
  1118. ,
  1119. ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1120.  
  1121. 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})
  1122. return fp
  1123. end
  1124. }
  1125. }
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131. coroutine.resume(coroutine.create(function()
  1132. if Head:FindFirstChildOfClass("Decal") then
  1133. local face = Head:FindFirstChildOfClass("Decal")
  1134. face:Destroy()
  1135. end
  1136.  
  1137. end))
  1138.  
  1139.  
  1140.  
  1141.  
  1142.  
  1143.  
  1144.  
  1145. for i, v in pairs(Character:GetDescendants()) do
  1146. if v:IsA("Accessory") or v:IsA("Sound") then
  1147. --v:Destroy()
  1148. end
  1149. end
  1150. coroutine.resume(coroutine.create(function()
  1151. --Character:WaitForChild("Sound"):Destroy()
  1152. end))
  1153.  
  1154.  
  1155. --139248234
  1156. --//=================================\\
  1157. --|| SAZERENOS ARTIFICIAL HEARTBEAT
  1158. --\\=================================//
  1159. Frame_Speed = 1 / 30
  1160. ArtificialHB = Instance.new("BindableEvent", folder)
  1161. ArtificialHB.Name = "ArtificialHB"
  1162.  
  1163. folder:WaitForChild("ArtificialHB")
  1164.  
  1165. frame = Frame_Speed
  1166. tf = 0
  1167. allowframeloss = false
  1168. tossremainder = false
  1169. lastframe = tick()
  1170. folder.ArtificialHB:Fire()
  1171.  
  1172. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1173. tf = tf + s
  1174. if tf >= frame then
  1175. if allowframeloss then
  1176. folder.ArtificialHB:Fire()
  1177. lastframe = tick()
  1178. else
  1179. for i = 1, math.floor(tf / frame) do
  1180. folder.ArtificialHB:Fire()
  1181. end
  1182. lastframe = tick()
  1183. end
  1184. if tossremainder then
  1185. tf = 0
  1186. else
  1187. tf = tf - frame * math.floor(tf / frame)
  1188. end
  1189. end
  1190. end)
  1191.  
  1192. --//=================================\\
  1193. --\\=================================//
  1194.  
  1195. function Swait(NUMBER)
  1196. if NUMBER == 0 or NUMBER == nil then
  1197. ArtificialHB.Event:wait()
  1198. else
  1199. for i = 1, NUMBER do
  1200. ArtificialHB.Event:wait()
  1201. end
  1202. end
  1203. end
  1204.  
  1205.  
  1206. ---------------
  1207. --[Functions]--
  1208. ---------------
  1209. so = function(id, par, vol, pit)
  1210.  
  1211. CFuncs.Sound.Create(id, par, vol, pit)
  1212.  
  1213.  
  1214. end
  1215.  
  1216. function weld(parent,part0,part1,c0)
  1217. local weld=it("Weld")
  1218. weld.Parent=parent
  1219. weld.Part0=part0
  1220. weld.Part1=part1
  1221. weld.C0=c0
  1222. return weld
  1223. end
  1224. function joint(parent,part0,part1,c0)
  1225. local weld=it("Motor6D")
  1226. weld.Parent=parent
  1227. weld.Part0=part0
  1228. weld.Part1=part1
  1229. weld.C0=c0
  1230. return weld
  1231. end
  1232. function MakeJoint(parent,part0,part1,c0)
  1233. local weld=it("Motor6D")
  1234. weld.Parent=parent
  1235. weld.Part0=part0
  1236. weld.Part1=part1
  1237. weld.C0=c0
  1238. return weld
  1239. end
  1240.  
  1241. ArmorParts = {}
  1242. --ArmorParts = {}
  1243. function WeldAllTo(Part1,Part2,scan,Extra)
  1244. local EXCF = Part2.CFrame * Extra
  1245. for i, v3 in pairs(scan:GetDescendants()) do
  1246. if v3:isA("BasePart") then
  1247. local STW=weld(v3,v3,Part1,EXCF:toObjectSpace(v3.CFrame):inverse() )
  1248. v3.Anchored=false
  1249. v3.Massless = true
  1250. v3.CanCollide=false
  1251. v3.Parent = Part1
  1252. v3.Locked = true
  1253. if not v3:FindFirstChild("Destroy") then
  1254. table.insert(ArmorParts,{Part = v3,Par = v3.Parent,Col = v3.Color,Mat=v3.Material.Name })
  1255. else
  1256. v3:Destroy()
  1257. end
  1258. end
  1259. end
  1260. Part1.Transparency=1
  1261. --Part2:Destroy()
  1262. end
  1263.  
  1264.  
  1265.  
  1266. function JointAllTo(Part1,Part2,scan,Extra)
  1267. local EXCF = Part2.CFrame * Extra
  1268. for i, v3 in pairs(scan:GetDescendants()) do
  1269. if v3:isA("BasePart") then
  1270. local STW=joint(v3,v3,Part1,EXCF:toObjectSpace(v3.CFrame):inverse() )
  1271. v3.Anchored=false
  1272. v3.Massless = true
  1273. v3.CanCollide=false
  1274. v3.Parent = Part1
  1275. v3.Locked = true
  1276. if not v3:FindFirstChild("Destroy") then
  1277. -- table.insert(ArmorParts,{Part = v3,Par = v3.Parent,Col = v3.Color,Mat=v3.Material.Name })
  1278. else
  1279. v3:Destroy()
  1280. end
  1281. end
  1282. end
  1283. Part1.Transparency=1
  1284. --Part2:Destroy()
  1285. end
  1286.  
  1287.  
  1288.  
  1289.  
  1290.  
  1291.  
  1292.  
  1293. --------------------------------------------H1a
  1294. local ChestPart = EffectPack.Part:Clone()
  1295. ChestPart.Parent = Character
  1296. ChestPart.Name = "H1a"
  1297. H1a=weld(Torso,Torso,ChestPart,cf(0,.5,-.4))
  1298.  
  1299. --------------------------------------------MissileBox
  1300. local MissileBox = EffectPack.Part:Clone()
  1301. MissileBox.Parent = Character
  1302. MissileBox.Name = "MissileBox"
  1303. MX1w=weld(Torso,Torso,MissileBox,cf(0,-.7,-.25))
  1304.  
  1305. --------------------------------------------MiniGun
  1306.  
  1307. local MiniGun = EffectPack.Part:Clone()
  1308. MiniGun.Parent = Character
  1309. MiniGun.Name = "MiniGun"
  1310. FlameW=weld(RightArm,RightArm,MiniGun,cf(0,0,0))
  1311. --------------------------------------------Hand
  1312.  
  1313. local SpinnyThingy = EffectPack.Part:Clone()
  1314. SpinnyThingy.Parent = Character
  1315. SpinnyThingy.Name = "SpinnyThingy"
  1316. SpinnyThingyWeld=weld(folder.Armor.MiniGun.SpinPos,folder.Armor.MiniGun.SpinPos,SpinnyThingy,cf(0,0,0))
  1317. --------------------------------------------Hand
  1318.  
  1319.  
  1320.  
  1321. for _,v in pairs(folder.Armor:children()) do
  1322. if v:IsA("Model") then
  1323.  
  1324. if Character:FindFirstChild(""..v.Name) then
  1325. local Part1=Character:FindFirstChild(""..v.Name)
  1326. local Part2=v.Handle
  1327.  
  1328. WeldAllTo(Part1,Part2,v,CFrame.new(0,0,0))
  1329.  
  1330. end
  1331.  
  1332.  
  1333. end
  1334. end
  1335.  
  1336. rayCast = function(Pos, Dir, Max, Ignore)
  1337.  
  1338. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1339. end
  1340.  
  1341. function SetTween(SPart,CFr,MoveStyle2,outorin2,AnimTime)
  1342. local MoveStyle = Enum.EasingStyle[MoveStyle2]
  1343. local outorin = Enum.EasingDirection[outorin2]
  1344.  
  1345.  
  1346. local dahspeed=1
  1347. if attack == true and mememode == true then
  1348. dahspeed=5
  1349. end
  1350.  
  1351. if SPart.Name=="Bullet" then
  1352. dahspeed=1
  1353. end
  1354.  
  1355. local tweeningInformation = TweenInfo.new(
  1356. AnimTime/dahspeed,
  1357. MoveStyle,
  1358. outorin,
  1359. 0,
  1360. false,
  1361. 0
  1362. )
  1363. local MoveCF = CFr
  1364. local tweenanim = TweenService:Create(SPart,tweeningInformation,MoveCF)
  1365. tweenanim:Play()
  1366. end
  1367.  
  1368. function GatherAllInstances(Parent,ig)
  1369. local Instances = {}
  1370. local Ignore=nil
  1371. if ig ~= nil then
  1372. Ignore = ig
  1373. end
  1374.  
  1375. local function GatherInstances(Parent,Ignore)
  1376. for i, v in pairs(Parent:GetChildren()) do
  1377.  
  1378. if v ~= Ignore then
  1379. GatherInstances(v,Ignore)
  1380. table.insert(Instances, v) end
  1381. end
  1382. end
  1383. GatherInstances(Parent,Ignore)
  1384. return Instances
  1385. end
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.  
  1394.  
  1395. function WeldAllTo(Part1,Part2,Extra)
  1396.  
  1397. local EXCF = Part2.CFrame * Extra
  1398.  
  1399. for i, v3 in pairs(GatherAllInstances(Part2)) do
  1400. if v3:isA("BasePart") then
  1401.  
  1402.  
  1403. local STW=weld(v3,v3,Part1,EXCF:toObjectSpace(v3.CFrame):inverse() )
  1404.  
  1405.  
  1406. v3.Anchored=false
  1407. --v3.Transparency=0
  1408. v3.CanCollide=false
  1409.  
  1410. v3.Parent = Part1
  1411.  
  1412. end
  1413. end
  1414.  
  1415.  
  1416. Part2:Destroy()
  1417.  
  1418. end
  1419. local SToneTexture = Create("Texture")({
  1420.  
  1421.  
  1422. Texture = "http://www.roblox.com/asset/?id=1693385655",
  1423. Color3 = Color3.new(17/255, 17/255, 17/255),
  1424.  
  1425. })
  1426.  
  1427. function AddStoneTexture(part)
  1428. coroutine.resume(coroutine.create(function()
  1429. for i = 0,6,1 do
  1430. local Tx = SToneTexture:Clone()
  1431. Tx.Face = i
  1432. Tx.Parent=part
  1433. end
  1434. end))
  1435. end
  1436.  
  1437. New = function(Object, Parent, Name, Data)
  1438. local Object = Instance.new(Object)
  1439. for Index, Value in pairs(Data or {}) do
  1440. Object[Index] = Value
  1441. end
  1442. Object.Parent = Parent
  1443. Object.Name = Name
  1444. return Object
  1445. end
  1446.  
  1447.  
  1448.  
  1449. function Tran(Num)
  1450. local GivenLeter = ""
  1451. if Num == "1" then
  1452. GivenLeter = "a"
  1453. elseif Num == "2" then
  1454. GivenLeter = "b"
  1455. elseif Num == "3" then
  1456. GivenLeter = "c"
  1457. elseif Num == "4" then
  1458. GivenLeter = "d"
  1459. elseif Num == "5" then
  1460. GivenLeter = "e"
  1461. elseif Num == "6" then
  1462. GivenLeter = "f"
  1463. elseif Num == "7" then
  1464. GivenLeter = "g"
  1465. elseif Num == "8" then
  1466. GivenLeter = "h"
  1467. elseif Num == "9" then
  1468. GivenLeter = "i"
  1469. elseif Num == "10" then
  1470. GivenLeter = "j"
  1471. elseif Num == "11" then
  1472. GivenLeter = "k"
  1473. elseif Num == "12" then
  1474. GivenLeter = "l"
  1475. elseif Num == "13" then
  1476. GivenLeter = "m"
  1477. elseif Num == "14" then
  1478. GivenLeter = "n"
  1479. elseif Num == "15" then
  1480. GivenLeter = "o"
  1481. elseif Num == "16" then
  1482. GivenLeter = "p"
  1483. elseif Num == "17" then
  1484. GivenLeter = "q"
  1485. elseif Num == "18" then
  1486. GivenLeter = "r"
  1487. elseif Num == "19" then
  1488. GivenLeter = "s"
  1489. elseif Num == "20" then
  1490. GivenLeter = "t"
  1491. elseif Num == "21" then
  1492. GivenLeter = "u"
  1493. elseif Num == "22" then
  1494. GivenLeter = "v"
  1495. elseif Num == "23" then
  1496. GivenLeter = "w"
  1497. elseif Num == "24" then
  1498. GivenLeter = "x"
  1499. elseif Num == "25" then
  1500. GivenLeter = "y"
  1501. elseif Num == "26" then
  1502. GivenLeter = "z"
  1503. elseif Num == "27" then
  1504. GivenLeter = "_"
  1505. elseif Num == "28" then
  1506. GivenLeter = "0"
  1507. elseif Num == "29" then
  1508. GivenLeter = "1"
  1509. elseif Num == "30" then
  1510. GivenLeter = "2"
  1511. elseif Num == "31" then
  1512. GivenLeter = "3"
  1513. elseif Num == "32" then
  1514. GivenLeter = "4"
  1515. elseif Num == "33" then
  1516. GivenLeter = "5"
  1517. elseif Num == "34" then
  1518. GivenLeter = "6"
  1519. elseif Num == "35" then
  1520. GivenLeter = "7"
  1521. elseif Num == "36" then
  1522. GivenLeter = "8"
  1523. elseif Num == "37" then
  1524. GivenLeter = "9"
  1525. end
  1526. return GivenLeter
  1527.  
  1528. end
  1529.  
  1530. function MaybeOk(Mode,Extra)
  1531. local ReturningValue = ""
  1532. if Mode == 1 then
  1533.  
  1534.  
  1535.  
  1536. -- v.C0 = CFrame.new(1,1,1)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  1537.  
  1538. --print(v.C0)
  1539. local GivenText = ""
  1540. local msg = Extra
  1541. local Txt = ""
  1542. local FoundTime=0
  1543. local LastFound = 0
  1544. delay(wait(0),function()
  1545. for v3 = 1, #msg do
  1546.  
  1547. if string.sub(msg,0+v3,v3) == "," then
  1548.  
  1549. local TheN = string.sub(msg,LastFound,v3-1)
  1550.  
  1551.  
  1552. local NumTranslate = Tran(string.sub(msg,LastFound,v3-1))
  1553.  
  1554.  
  1555.  
  1556. FoundTime = FoundTime + 1
  1557.  
  1558.  
  1559. GivenText = GivenText..NumTranslate
  1560.  
  1561. LastFound=v3+1
  1562. Txt=""
  1563. end
  1564. Txt=string.sub(msg,1,v3)
  1565.  
  1566.  
  1567. -- Gui.ExtentsOffset = Vector3.new(0,3,0)
  1568.  
  1569.  
  1570. -- Gui.ExtentsOffset = Vector3.new(0,3,0)
  1571. wait()
  1572. -- Gui.ExtentsOffset = Vector3.new(0,3,0)
  1573. end;
  1574.  
  1575. ReturningValue=GivenText
  1576. for v3 = 1, #Txt do
  1577. Txt=string.sub(msg,-1,v3)
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585. end;
  1586. -- Gui:remove()
  1587. end)
  1588.  
  1589.  
  1590. elseif Mode == 2 then
  1591.  
  1592. print("fat")
  1593. end
  1594.  
  1595.  
  1596.  
  1597. while ReturningValue == "" do wait() end
  1598. return ReturningValue
  1599.  
  1600. end
  1601.  
  1602. function CreateMesh2(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  1603. local NEWMESH = IT(MESH)
  1604. if MESH == "SpecialMesh" then
  1605. NEWMESH.MeshType = MESHTYPE
  1606. if MESHID ~= "nil" and MESHID ~= "" then
  1607. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  1608. end
  1609. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  1610. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  1611. end
  1612. end
  1613. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  1614. NEWMESH.Scale = SCALE
  1615. NEWMESH.Parent = PARENT
  1616. return NEWMESH
  1617. end
  1618.  
  1619. function CreatePart2(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  1620. local NEWPART = IT("Part")
  1621. NEWPART.formFactor = FORMFACTOR
  1622. NEWPART.Reflectance = REFLECTANCE
  1623. NEWPART.Transparency = TRANSPARENCY
  1624. NEWPART.CanCollide = false
  1625. NEWPART.Locked = true
  1626. NEWPART.Anchored = true
  1627. if ANCHOR == false then
  1628. NEWPART.Anchored = false
  1629. end
  1630. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  1631. NEWPART.Name = NAME
  1632. NEWPART.Size = SIZE
  1633. NEWPART.Position = Torso.Position
  1634. NEWPART.Material = MATERIAL
  1635. NEWPART:BreakJoints()
  1636. NEWPART.Parent = PARENT
  1637. return NEWPART
  1638. end
  1639.  
  1640. local S = IT("Sound")
  1641. function CreateSound2(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  1642. local NEWSOUND = nil
  1643. coroutine.resume(coroutine.create(function()
  1644. NEWSOUND = S:Clone()
  1645. NEWSOUND.Parent = PARENT
  1646. NEWSOUND.Volume = VOLUME
  1647. NEWSOUND.Pitch = PITCH
  1648. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  1649. NEWSOUND:play()
  1650. if DOESLOOP == true then
  1651. NEWSOUND.Looped = true
  1652. else
  1653. repeat wait(1) until NEWSOUND.Playing == false
  1654. NEWSOUND:remove()
  1655. end
  1656. end))
  1657. return NEWSOUND
  1658. end
  1659.  
  1660.  
  1661. function WACKYEFFECT(Table)
  1662. local TYPE = (Table.EffectType or "Sphere")
  1663. local SIZE = (Table.Size or VT(1,1,1))
  1664. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  1665. local TRANSPARENCY = (Table.Transparency or 0)
  1666. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  1667. local CFRAME = (Table.CFrame or Torso.CFrame)
  1668. local MOVEDIRECTION = (Table.MoveToPos or nil)
  1669. local ROTATION1 = (Table.RotationX or 0)
  1670. local ROTATION2 = (Table.RotationY or 0)
  1671. local ROTATION3 = (Table.RotationZ or 0)
  1672. local MATERIAL = (Table.Material or "Neon")
  1673. local COLOR = (Table.Color or C3(1,1,1))
  1674. local TIME = (Table.Time or 45)
  1675. local SOUNDID = (Table.SoundID or nil)
  1676. local SOUNDPITCH = (Table.SoundPitch or nil)
  1677. local SOUNDVOLUME = (Table.SoundVolume or nil)
  1678. coroutine.resume(coroutine.create(function()
  1679. local PLAYSSOUND = false
  1680. local SOUND = nil
  1681. local EFFECT = CreatePart2(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  1682. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1683. PLAYSSOUND = true
  1684. SOUND = CreateSound2(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  1685. end
  1686. EFFECT.Color = COLOR
  1687. local MSH = nil
  1688. if TYPE == "Sphere" then
  1689. MSH = CreateMesh2("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  1690. elseif TYPE == "Cylinder" then
  1691. MSH = CreateMesh2("SpecialMesh", EFFECT, "Cylinder", "", "", SIZE, VT(0,0,0))
  1692. elseif TYPE == "Block" then
  1693. MSH = IT("BlockMesh",EFFECT)
  1694. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  1695. elseif TYPE == "Cube" then
  1696. MSH = IT("BlockMesh",EFFECT)
  1697. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  1698.  
  1699. elseif TYPE == "Wave" then
  1700. MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  1701. elseif TYPE == "Ring" then
  1702. MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  1703. elseif TYPE == "Slash" then
  1704. MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1705. elseif TYPE == "Round Slash" then
  1706. MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1707. elseif TYPE == "Swirl" then
  1708. MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1709. elseif TYPE == "Skull" then
  1710. MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  1711. elseif TYPE == "Crystal" then
  1712. MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  1713. elseif TYPE == "Crown" then
  1714. MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "173770780", "", SIZE, VT(0,0,0))
  1715. end
  1716. if MSH ~= nil then
  1717. local MOVESPEED = nil
  1718. if MOVEDIRECTION ~= nil then
  1719. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1720. end
  1721. local GROWTH = SIZE - ENDSIZE
  1722. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1723. if TYPE == "Block" then
  1724.  
  1725. SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",TIME/60)
  1726. else
  1727.  
  1728. SetTween(EFFECT,{CFrame = CFRAME},"Linear","InOut",0)
  1729.  
  1730. end
  1731.  
  1732.  
  1733.  
  1734. wait()
  1735.  
  1736. SetTween(EFFECT,{Transparency = EFFECT.Transparency - TRANS},"Linear","InOut",TIME/60)
  1737.  
  1738. if TYPE == "Block" then
  1739.  
  1740. SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",0)
  1741. else
  1742.  
  1743. SetTween(EFFECT,{CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))},"Linear","InOut",0)
  1744.  
  1745. end
  1746. if MOVEDIRECTION ~= nil then
  1747. local ORI = EFFECT.Orientation
  1748.  
  1749. SetTween(EFFECT,{CFrame=CF(MOVEDIRECTION)},"Linear","InOut",TIME/60)
  1750. SetTween(EFFECT,{Orientation=ORI},"Linear","InOut",TIME/60)
  1751.  
  1752.  
  1753. end
  1754. MSH.Scale = MSH.Scale - GROWTH/TIME
  1755. SetTween(MSH,{Scale=ENDSIZE},"Linear","InOut",TIME/60)
  1756. if TYPE == "Wave" then
  1757.  
  1758. SetTween(MSH,{Offset=VT(0,0,-MSH.Scale.X/8)},"Linear","InOut",TIME/60)
  1759. end
  1760. for LOOP = 1, TIME+1 do
  1761. wait(.05)
  1762.  
  1763. --SetTween(EFFECT,{Transparency = EFFECT.Transparency - TRANS/TIME},"Linear","InOut",0)
  1764.  
  1765.  
  1766. if TYPE == "Block" then
  1767.  
  1768. -- SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",0)
  1769. else
  1770.  
  1771. -- SetTween(EFFECT,{CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))},"Linear","InOut",0)
  1772.  
  1773. end
  1774. if MOVEDIRECTION ~= nil then
  1775. local ORI = EFFECT.Orientation
  1776.  
  1777. -- SetTween(EFFECT,{CFrame=CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)},"Linear","InOut",0)
  1778. -- SetTween(EFFECT,{Orientation=ORI},"Linear","InOut",0)
  1779.  
  1780.  
  1781. end
  1782. end
  1783. game:GetService("Debris"):AddItem(EFFECT, 15)
  1784. if PLAYSSOUND == false then
  1785. EFFECT:remove()
  1786. else
  1787. SOUND.Stopped:Connect(function()
  1788. EFFECT:remove()
  1789. end)
  1790. end
  1791. else
  1792. if PLAYSSOUND == false then
  1793. EFFECT:remove()
  1794. else
  1795. repeat wait() until SOUND.Playing == false
  1796. EFFECT:remove()
  1797. end
  1798. end
  1799. end))
  1800. end
  1801. ----------------------
  1802. --[End Of Functions]--
  1803. ----------------------
  1804.  
  1805.  
  1806.  
  1807.  
  1808.  
  1809.  
  1810. ------------------
  1811. --[Gun]--
  1812. ------------------
  1813.  
  1814.  
  1815.  
  1816.  
  1817.  
  1818.  
  1819.  
  1820.  
  1821.  
  1822.  
  1823.  
  1824.  
  1825. function CreatePart( Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1826. local Part = Create("Part"){
  1827.  
  1828. Parent = Parent,
  1829. Reflectance = Reflectance,
  1830. Transparency = Transparency,
  1831. CanCollide = false,
  1832. Locked = true,
  1833. BrickColor = BrickColor.new(tostring(BColor)),
  1834. Name = Name,
  1835. Size = Size,
  1836. Material = Material,
  1837. }
  1838. RemoveOutlines(Part)
  1839. return Part
  1840. end
  1841.  
  1842. ------------------
  1843. --[End of Gun]--
  1844. ------------------
  1845.  
  1846. ---------------
  1847. --[Particles]--
  1848. ---------------
  1849.  
  1850.  
  1851. local Particle2_1 = Create("ParticleEmitter"){
  1852. Color = ColorSequence.new(Color3.new (1,1,1), Color3.new (170/255, 255/255, 255/255)),
  1853. Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.75,.4),NumberSequenceKeypoint.new(1,1)}),
  1854. Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,.0)}),
  1855. Texture = "rbxassetid://241922778",
  1856. Lifetime = NumberRange.new(0.55,0.95),
  1857. Rate = 100,
  1858. VelocitySpread = 180,
  1859. Rotation = NumberRange.new(0),
  1860. RotSpeed = NumberRange.new(-200,200),
  1861. Speed = NumberRange.new(8.0),
  1862. LightEmission = 1,
  1863. LockedToPart = false,
  1864. Acceleration = Vector3.new(0, 0, 0),
  1865. EmissionDirection = "Top",
  1866. Drag = 4,
  1867. Enabled = false
  1868. }
  1869.  
  1870.  
  1871. local BEGONE_Particle = Create("ParticleEmitter"){
  1872. Color = ColorSequence.new(Color3.new (1,1,1), Color3.new (1, 1, 1)),
  1873. 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)}),
  1874. Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.15,1.5),NumberSequenceKeypoint.new(.75,1.5),NumberSequenceKeypoint.new(1,0)}),
  1875. Texture = "rbxassetid://936193661",
  1876. Lifetime = NumberRange.new(1.5),
  1877. Rate = 100,
  1878. VelocitySpread = 0,
  1879. Rotation = NumberRange.new(0),
  1880. RotSpeed = NumberRange.new(-10,10),
  1881. Speed = NumberRange.new(0),
  1882. LightEmission = .25,
  1883. LockedToPart = true,
  1884. Acceleration = Vector3.new(0, -0, 0),
  1885. EmissionDirection = "Top",
  1886. Drag = 4,
  1887. ZOffset = 1,
  1888. Enabled = false
  1889. }
  1890.  
  1891.  
  1892. ----------------------
  1893. --[End Of Particles]--
  1894. ----------------------
  1895.  
  1896. function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans,SizeAdd,Time,Dely) -- Lightning module
  1897. --[[Part0 = Vector3 (Start pos)
  1898. Part1 = Vector3 (End pos)
  1899. Times = number (Amount of lightning parts)
  1900. Offset = number (Offset)
  1901. Color = color (brickcolor value)
  1902. Thickness = number (thickness)
  1903. Trans = number (transparency)
  1904. ]]--
  1905. coroutine.resume(coroutine.create(function()
  1906. local magz = (Part0 - Part1).magnitude
  1907. local curpos = Part0
  1908. local trz = {-Offset,Offset}
  1909. local Time2 = 0.07
  1910. if Time ~= nil then
  1911. Time2 = Time
  1912. end
  1913. for i=1,Times do
  1914. local li = Instance.new("Part", Torso)
  1915. li.Name = "Lightning"
  1916. li.TopSurface =0
  1917. li.Material = "Neon"
  1918. li.BottomSurface = 0
  1919. li.Anchored = true
  1920. li.Locked = true
  1921. li.Transparency = Trans or 0
  1922. li.BrickColor = Color
  1923. li.formFactor = "Custom"
  1924. li.CanCollide = false
  1925. -- MakeForm(li,"Ball")
  1926. li.Size = Vector3.new(0,0,magz/Times)
  1927. 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])
  1928. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  1929. if Times == i then
  1930. local magz2 = (curpos - Part1).magnitude
  1931. li.Size = Vector3.new(0,0,magz2)
  1932. SetTween(li,{Size = VT(Thickness*(1-(i/Times+.1)),Thickness*(1-(i/Times+.1)),magz2),Transparency=1},"Back","Out",Time)
  1933.  
  1934. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  1935. else
  1936. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  1937. SetTween(li,{Size = VT(Thickness*(1-(i/Times)),Thickness*(1-(i/Times)),magz/Times),Transparency=1},"Back","Out",Time)
  1938.  
  1939. game:GetService("Players").LocalPlayer.Character["TopHat"].Handle.att1_Handle.Parent = li
  1940. li.att1_Handle.Rotation = Vector3.new(0,0,0)
  1941.  
  1942. end
  1943. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  1944. coroutine.resume(coroutine.create(function()
  1945. wait(Time)
  1946. li:Destroy()
  1947. end))
  1948. --game.Debris:AddItem(li,Time)
  1949.  
  1950. if Dely ~= nil then
  1951. Swait(Dely)
  1952. end
  1953.  
  1954.  
  1955. --BlockEffect(Color, li.CFrame, li.Size.X*20, li.Size.Y*20, li.Size.Z*20, SizeAdd, SizeAdd, 0, Time2,2)
  1956. end
  1957. end))
  1958. end
  1959.  
  1960.  
  1961. function MakeForm(PART,TYPE)
  1962. if TYPE == "Cyl" then
  1963. local MSH = IT("CylinderMesh",PART)
  1964. elseif TYPE == "Ball" then
  1965. local MSH = IT("SpecialMesh",PART)
  1966. MSH.MeshType = "Sphere"
  1967. elseif TYPE == "Wedge" then
  1968. local MSH = IT("SpecialMesh",PART)
  1969. MSH.MeshType = "Wedge"
  1970. end
  1971. end
  1972. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1973. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1974. end
  1975. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1976. local DIRECTION = CF(StartPos,EndPos).lookVector
  1977. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  1978. end
  1979. Debris = game:GetService("Debris")
  1980.  
  1981. -----------------
  1982.  
  1983.  
  1984.  
  1985. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1986.  
  1987. if hit.Parent == nil then
  1988. return
  1989. end
  1990. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1991. for _,v in pairs(hit.Parent:children()) do
  1992. if v:IsA("Humanoid") then
  1993. if h.Health > 0.0001 then
  1994. h = v else end
  1995. end
  1996. end
  1997.  
  1998. if h == nil then
  1999. return
  2000. elseif h ~= nil and h.Health < 0.001 then
  2001. return
  2002. elseif h ~= nil and h.Parent:FindFirstChild("Fly away") then
  2003. return
  2004. end
  2005.  
  2006.  
  2007. --gg
  2008.  
  2009. --local FoundTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  2010. coroutine.resume(coroutine.create(function()
  2011. 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
  2012.  
  2013.  
  2014. local FATag = Instance.new("Model",h.Parent)
  2015.  
  2016. FATag.Name = "Fly away"
  2017. game:GetService("Debris"):AddItem(FATag, 2.5)
  2018.  
  2019.  
  2020. for _,v in pairs(h.Parent:children()) do
  2021. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  2022. v.Anchored=true
  2023. end
  2024. end
  2025.  
  2026. wait(.25)
  2027.  
  2028. if h.Parent:FindFirstChildOfClass("Body Colors")then
  2029. h.Parent:FindFirstChildOfClass("Body Colors"):Destroy()
  2030. end
  2031.  
  2032.  
  2033. local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
  2034.  
  2035. coroutine.resume(coroutine.create(function()
  2036.  
  2037.  
  2038. local YourGone = Instance.new("Part")
  2039. YourGone.Reflectance = 0
  2040. YourGone.Transparency = 1
  2041. YourGone.CanCollide = false
  2042. YourGone.Locked = true
  2043. YourGone.Anchored=true
  2044. YourGone.BrickColor = BrickColor.new("Really blue")
  2045. YourGone.Name = "YourGone"
  2046. YourGone.Size = Vector3.new()
  2047. YourGone.Material = "SmoothPlastic"
  2048. YourGone:BreakJoints()
  2049. YourGone.Parent = FoundTorso
  2050. YourGone.CFrame = FoundTorso.CFrame
  2051.  
  2052. local NewParticle = Instance.new("ParticleEmitter")
  2053. NewParticle.Parent = YourGone
  2054. NewParticle.Acceleration = Vector3.new(0,0,0)
  2055. NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,.0)})
  2056. NewParticle.Color = ColorSequence.new(Color3.new (1,0,0), Color3.new (1, 0, 0))
  2057. NewParticle.Lifetime = NumberRange.new(0.55,0.95)
  2058. NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,.0),NumberSequenceKeypoint.new(1,1)})
  2059. NewParticle.Speed = NumberRange.new(0,0.0)
  2060. NewParticle.ZOffset = 2
  2061. NewParticle.Texture = "rbxassetid://243660364"
  2062. NewParticle.RotSpeed = NumberRange.new(-0,0)
  2063. NewParticle.Rotation = NumberRange.new(-180,180)
  2064. NewParticle.Enabled = false
  2065. game:GetService("Debris"):AddItem(YourGone, 3)
  2066. for i = 0,2,1 do
  2067. NewParticle:Emit(1)
  2068. so("1448044156", FoundTorso,2, 1)
  2069. h.Parent:BreakJoints()
  2070. YourGone.CFrame = FoundTorso.CFrame
  2071. for _,v in pairs(h.Parent:children()) do
  2072. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  2073. v.Anchored=false
  2074. -- v.Material = "Neon"
  2075. --v.BrickColor = BrickColor.new("Really red")
  2076. if v:FindFirstChildOfClass("SpecialMesh")then
  2077. --v:Destroy()
  2078. end
  2079. if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
  2080. -- v:Destroy()
  2081. end
  2082. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
  2083.  
  2084. vp.Parent = v
  2085. game:GetService("Debris"):AddItem(vp, math.random(50,100)/1000)
  2086.  
  2087.  
  2088. end
  2089.  
  2090.  
  2091.  
  2092. end
  2093.  
  2094.  
  2095.  
  2096. wait(.2)
  2097. end
  2098. wait(.1)
  2099. NewParticle:Emit(3)
  2100. so("1448044156", FoundTorso,2, .8)
  2101. h.Parent:BreakJoints()
  2102. YourGone.CFrame = FoundTorso.CFrame
  2103. for _,v in pairs(h.Parent:children()) do
  2104. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  2105. v.Anchored=false
  2106. -- v.Material = "Neon"
  2107. --v.BrickColor = BrickColor.new("Really red")
  2108. if v:FindFirstChildOfClass("SpecialMesh")then
  2109. --v:Destroy()
  2110. end
  2111. if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
  2112. -- v:Destroy()
  2113. end
  2114. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
  2115.  
  2116. vp.Parent = v
  2117. game:GetService("Debris"):AddItem(vp, math.random(100,200)/1000)
  2118.  
  2119.  
  2120. end
  2121.  
  2122.  
  2123.  
  2124. end
  2125.  
  2126.  
  2127.  
  2128.  
  2129. end))
  2130.  
  2131.  
  2132.  
  2133.  
  2134. wait(.1)
  2135.  
  2136.  
  2137.  
  2138.  
  2139.  
  2140.  
  2141.  
  2142. end
  2143.  
  2144.  
  2145. end))
  2146. if h ~= nil and hit.Parent ~= Character and hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  2147. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  2148. return
  2149. end
  2150. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  2151. game:GetService("Debris"):AddItem(c, 0.5)
  2152. if HitSound ~= nil and HitPitch ~= nil then
  2153. so(HitSound, hit, 1, HitPitch)
  2154. end
  2155. local Damage = math.random(minim, maxim)
  2156. local blocked = false
  2157. local block = hit.Parent:findFirstChild("Block")
  2158. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  2159. blocked = true
  2160. block.Value = block.Value - 1
  2161. print(block.Value)
  2162. end
  2163. if blocked == false then
  2164. h.Health = h.Health - Damage
  2165. 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))
  2166. else
  2167. h.Health = h.Health - Damage / 2
  2168. 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))
  2169.  
  2170. end
  2171.  
  2172. if Type == "Knockdown" then
  2173. local hum = h
  2174.  
  2175. hum.PlatformStand = true
  2176. coroutine.resume(coroutine.create(function(HHumanoid)
  2177.  
  2178. wait(.2)
  2179. HHumanoid.PlatformStand = false
  2180. end
  2181. ), hum)
  2182.  
  2183.  
  2184.  
  2185. local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
  2186. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  2187. 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})
  2188. 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})
  2189. game:GetService("Debris"):AddItem(bodvol, .2)
  2190. game:GetService("Debris"):AddItem(rl, 0.2)
  2191.  
  2192.  
  2193.  
  2194. elseif Type == "Knockdown2" then
  2195. local hum = h
  2196.  
  2197. hum.PlatformStand = true
  2198. coroutine.resume(coroutine.create(function(HHumanoid)
  2199.  
  2200.  
  2201. Combo = 1 wait(.2)
  2202. HHumanoid.PlatformStand = false
  2203. end
  2204. ), hum)
  2205. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  2206. local bodvol = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,Property.Position).lookVector * knockback})
  2207. 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})
  2208. game:GetService("Debris"):AddItem(bodvol, 0.2)
  2209. game:GetService("Debris"):AddItem(rl, 0.2)
  2210.  
  2211.  
  2212.  
  2213.  
  2214.  
  2215.  
  2216. local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 60, 0), P = 5000, maxForce = Vector3.new(8000, 12000, 8000), Parent = RootPart})
  2217. game:GetService("Debris"):AddItem(bodyVelocity2, 0.1)
  2218.  
  2219. elseif Type == "Normal" then
  2220. local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
  2221. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  2222. 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})
  2223. game:GetService("Debris"):AddItem(bodvol, .2)
  2224.  
  2225.  
  2226.  
  2227. elseif Type== "Fire" then
  2228. local HTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  2229.  
  2230. local tags = 0
  2231. for _,v2 in next, HTorso:GetChildren() do
  2232. if v2:IsA("Folder") and v2.Name == "OnFire" then
  2233. tags=tags+1
  2234. end
  2235. end
  2236.  
  2237. if tags < 2 then
  2238.  
  2239. local fireef = EffectPack.FireEffect:Clone()
  2240.  
  2241. local tag = Instance.new("Folder",HTorso)
  2242. tag.Name = "OnFire"
  2243. game:GetService("Debris"):AddItem(tag, 4.5)
  2244. 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
  2245. coroutine.resume(coroutine.create(function()
  2246. for i = 1,35 do
  2247. coroutine.resume(coroutine.create(function()
  2248. v:Emit(2) end))
  2249. coroutine.resume(coroutine.create(function()
  2250. Damagefunc(HTorso, HTorso, 4/2, 6/2, 0, "Normal", RootPart, 0.1, "1273118342", math.random(10,30)/10)
  2251. end))
  2252. if HTorso.Parent:FindFirstChildOfClass("Humanoid") and HTorso.Parent:FindFirstChildOfClass("Humanoid").Health > .01 then
  2253. 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
  2254. end
  2255. wait(.1)
  2256. end
  2257. end))
  2258.  
  2259. end end
  2260.  
  2261.  
  2262. fireef:Destroy()
  2263. else-- print("Hit Max")
  2264. end
  2265. elseif Type== "Instakill" then
  2266. coroutine.resume(coroutine.create(function()
  2267. if (h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")) and not h.Parent:FindFirstChild("Fly away")then
  2268.  
  2269.  
  2270. local FATag = Instance.new("Model",h.Parent)
  2271.  
  2272. FATag.Name = "Fly away"
  2273. game:GetService("Debris"):AddItem(FATag, 2.5)
  2274.  
  2275.  
  2276. for _,v in pairs(h.Parent:children()) do
  2277. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  2278. v.Anchored=true
  2279. end
  2280. end
  2281.  
  2282. wait(.25)
  2283.  
  2284. if h.Parent:FindFirstChildOfClass("Body Colors")then
  2285. h.Parent:FindFirstChildOfClass("Body Colors"):Destroy()
  2286. end
  2287.  
  2288.  
  2289. local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
  2290.  
  2291. coroutine.resume(coroutine.create(function()
  2292.  
  2293.  
  2294. local YourGone = Instance.new("Part")
  2295. YourGone.Reflectance = 0
  2296. YourGone.Transparency = 1
  2297. YourGone.CanCollide = false
  2298. YourGone.Locked = true
  2299. YourGone.Anchored=true
  2300. YourGone.BrickColor = BrickColor.new("Really blue")
  2301. YourGone.Name = "YourGone"
  2302. YourGone.Size = Vector3.new()
  2303. YourGone.Material = "SmoothPlastic"
  2304. YourGone:BreakJoints()
  2305. YourGone.Parent = FoundTorso
  2306. YourGone.CFrame = FoundTorso.CFrame
  2307.  
  2308. local NewParticle = Instance.new("ParticleEmitter")
  2309. NewParticle.Parent = YourGone
  2310. NewParticle.Acceleration = Vector3.new(0,0,0)
  2311. NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,.0)})
  2312. NewParticle.Color = ColorSequence.new(Color3.new (1,0,0), Color3.new (1, 0, 0))
  2313. NewParticle.Lifetime = NumberRange.new(0.55,0.95)
  2314. NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,.0),NumberSequenceKeypoint.new(1,1)})
  2315. NewParticle.Speed = NumberRange.new(0,0.0)
  2316. NewParticle.ZOffset = 2
  2317. NewParticle.Texture = "rbxassetid://243660364"
  2318. NewParticle.RotSpeed = NumberRange.new(-0,0)
  2319. NewParticle.Rotation = NumberRange.new(-180,180)
  2320. NewParticle.Enabled = false
  2321. game:GetService("Debris"):AddItem(YourGone, 3)
  2322. for i = 0,2,1 do
  2323. NewParticle:Emit(1)
  2324. so("1448044156", FoundTorso,2, 1)
  2325. h.Parent:BreakJoints()
  2326. YourGone.CFrame = FoundTorso.CFrame
  2327. for _,v in pairs(h.Parent:children()) do
  2328. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  2329. v.Anchored=false
  2330. -- v.Material = "Neon"
  2331. --v.BrickColor = BrickColor.new("Really red")
  2332. if v:FindFirstChildOfClass("SpecialMesh")then
  2333. --v:Destroy()
  2334. end
  2335. if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
  2336. -- v:Destroy()
  2337. end
  2338. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
  2339.  
  2340. vp.Parent = v
  2341. game:GetService("Debris"):AddItem(vp, math.random(50,100)/1000)
  2342.  
  2343.  
  2344. end
  2345.  
  2346.  
  2347.  
  2348. end
  2349.  
  2350.  
  2351.  
  2352. wait(.2)
  2353. end
  2354. wait(.1)
  2355. NewParticle:Emit(3)
  2356. so("1448044156", FoundTorso,2, .8)
  2357. h.Parent:BreakJoints()
  2358. YourGone.CFrame = FoundTorso.CFrame
  2359. for _,v in pairs(h.Parent:children()) do
  2360. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  2361. v.Anchored=false
  2362. -- v.Material = "Neon"
  2363. --v.BrickColor = BrickColor.new("Really red")
  2364. if v:FindFirstChildOfClass("SpecialMesh")then
  2365. --v:Destroy()
  2366. end
  2367. if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
  2368. -- v:Destroy()
  2369. end
  2370. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
  2371.  
  2372. vp.Parent = v
  2373. game:GetService("Debris"):AddItem(vp, math.random(100,200)/1000)
  2374.  
  2375.  
  2376. end
  2377.  
  2378.  
  2379.  
  2380. end
  2381.  
  2382.  
  2383.  
  2384.  
  2385. end))
  2386.  
  2387.  
  2388.  
  2389.  
  2390. wait(.1)
  2391.  
  2392.  
  2393.  
  2394.  
  2395.  
  2396.  
  2397.  
  2398. end
  2399.  
  2400.  
  2401. end))
  2402.  
  2403.  
  2404. elseif Type == "HPSteal" then
  2405. Humanoid.Health = Humanoid.Health + Damage
  2406. local hum = h
  2407.  
  2408. hum.PlatformStand = true
  2409. coroutine.resume(coroutine.create(function(HHumanoid)
  2410.  
  2411.  
  2412. Combo = 1 wait(.2)
  2413. HHumanoid.PlatformStand = false
  2414. end
  2415. ), hum)
  2416. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  2417. local bodvol = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,Property.Position).lookVector * knockback})
  2418. 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})
  2419. game:GetService("Debris"):AddItem(bodvol, 0.2)
  2420. game:GetService("Debris"):AddItem(rl, 0.2)
  2421.  
  2422.  
  2423.  
  2424.  
  2425.  
  2426.  
  2427. local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 60, 0), P = 5000, maxForce = Vector3.new(8000, 12000, 8000), Parent = RootPart})
  2428. game:GetService("Debris"):AddItem(bodyVelocity2, 0.1)
  2429.  
  2430.  
  2431. elseif Type == "Impale" then
  2432.  
  2433.  
  2434.  
  2435.  
  2436.  
  2437.  
  2438.  
  2439.  
  2440. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, .8, 2)
  2441. hit.Parent.Humanoid.PlatformStand = true
  2442.  
  2443.  
  2444. wait(1)
  2445. hit.Parent.Humanoid.PlatformStand = false
  2446. elseif Type == "IgnoreType" then
  2447.  
  2448.  
  2449.  
  2450.  
  2451.  
  2452. elseif Type == "Up" then
  2453. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  2454. game:GetService("Debris"):AddItem(bodyVelocity, 0.1)
  2455. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  2456. game:GetService("Debris"):AddItem(bodyVelocity, .1)
  2457.  
  2458.  
  2459.  
  2460.  
  2461.  
  2462.  
  2463.  
  2464. elseif Type == "Snare" then
  2465. 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"))})
  2466. game:GetService("Debris"):AddItem(bp, 1)
  2467.  
  2468.  
  2469.  
  2470. elseif Type == "Freeze2" then
  2471. 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})
  2472. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  2473. hit.Parent.Torso.Anchored = true
  2474. coroutine.resume(coroutine.create(function(Part)
  2475.  
  2476. wait(1.5)
  2477. Part.Anchored = false
  2478. end
  2479. ), hit.Parent.Torso)
  2480. game:GetService("Debris"):AddItem(BodPos, 3)
  2481. game:GetService("Debris"):AddItem(BodGy, 3)
  2482. end
  2483. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  2484. game:GetService("Debris"):AddItem(debounce, Delay)
  2485. c = Instance.new("ObjectValue")
  2486. c.Name = "creator"
  2487. c.Value = Player
  2488. c.Parent = h
  2489. game:GetService("Debris"):AddItem(c, 0.5)
  2490. end
  2491. end
  2492.  
  2493.  
  2494.  
  2495. ShowDamage = function(Pos, Text, Time, Color)
  2496.  
  2497. local Rate = 0.033333333333333
  2498. if not Pos then
  2499. local Pos = Vector3.new(0, 0, 0)
  2500. end
  2501. local Text = Text or ""
  2502. local Time = Time or 2
  2503. if not Color then
  2504. local Color = Color3.new(1, 0, 1)
  2505. end
  2506. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  2507. EffectPart.Anchored = true
  2508. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(2, 0, 2, 0), Adornee = EffectPart, Parent = EffectPart})
  2509. 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})
  2510. TextLabel.TextTransparency=1
  2511. game.Debris:AddItem(EffectPart, Time + 0.1)
  2512. EffectPart.Parent = game:GetService("Workspace")
  2513. delay(0, function()
  2514.  
  2515. local Frames = Time / Rate
  2516.  
  2517.  
  2518.  
  2519. --print(Frames)
  2520.  
  2521. EffectPart.CFrame=CFrame.new(Pos)
  2522. wait() TextLabel.TextTransparency=0
  2523. SetTween(TextLabel,{TextTransparency=1},"Quad","In",Frames/60)
  2524. SetTween(TextLabel,{Rotation=math.random(-25,25)},"Elastic","InOut",Frames/60)
  2525. SetTween(TextLabel,{TextColor3=Color3.new(1,0,0)},"Elastic","InOut",Frames/60)
  2526.  
  2527. SetTween(EffectPart,{CFrame = CFrame.new(Pos) + Vector3.new(math.random(-5,5), math.random(1,5), math.random(-5,5))},"Linear","InOut",Frames/60)
  2528.  
  2529.  
  2530. wait(Frames/60)
  2531.  
  2532. if EffectPart and EffectPart.Parent then
  2533. EffectPart:Destroy()
  2534. end
  2535. end
  2536. )
  2537. end
  2538.  
  2539. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type2)
  2540.  
  2541.  
  2542.  
  2543.  
  2544. local Type=""
  2545.  
  2546.  
  2547.  
  2548.  
  2549. if mememode == true then
  2550.  
  2551. Type= "Instakill"
  2552.  
  2553. else
  2554. Type=Type2
  2555. end
  2556. if Type2 == "NormalKnockdown" then
  2557. Type= "Knockdown"
  2558. end
  2559.  
  2560. for _,c in pairs(workspace:children()) do
  2561.  
  2562.  
  2563.  
  2564.  
  2565.  
  2566. local hum = c:FindFirstChild("Humanoid")
  2567. for _,v in pairs(c:children()) do
  2568. if v:IsA("Humanoid") then
  2569. hum = v
  2570. end
  2571. end
  2572.  
  2573.  
  2574.  
  2575.  
  2576. if hum ~= nil then
  2577. local head = c:findFirstChild("Head")
  2578. if head ~= nil then
  2579. local targ = head.Position - Part.Position
  2580. local mag = targ.magnitude
  2581. if mag <= magni and c.Name ~= Player.Name then
  2582. Damagefunc(Part, head, mindam, maxdam, knock, Type, RootPart, 0.1, "851453784", 1.2)
  2583. end
  2584. end
  2585. end
  2586. end
  2587. end
  2588.  
  2589.  
  2590. function CFMagniDamage(HTCF,magni, mindam, maxdam, knock, Type)
  2591. local DGP = Instance.new("Part")
  2592.  
  2593. DGP.Parent = Character
  2594. DGP.Size = Vector3.new(0.05, 0.05, 0.05)
  2595. DGP.Transparency = 1
  2596. DGP.CanCollide = false
  2597. DGP.Anchored = true
  2598. RemoveOutlines(DGP)
  2599. DGP.Position=DGP.Position + Vector3.new(0,-.1,0)
  2600. DGP.CFrame = HTCF
  2601.  
  2602. coroutine.resume(coroutine.create(function()
  2603. MagniDamage(DGP, magni, mindam, maxdam, knock, Type)
  2604. end))
  2605. game:GetService("Debris"):AddItem(DGP, .05)
  2606.  
  2607.  
  2608. DGP.Archivable = false
  2609. end
  2610.  
  2611.  
  2612.  
  2613.  
  2614.  
  2615. -----------------
  2616. function findNearestTorso(pos,dist1)
  2617. local list = game.Workspace:children()
  2618. local torso = nil
  2619. local dist = dist1 or 1000
  2620. local temp = nil
  2621. local human = nil
  2622. local temp2 = nil
  2623. for x = 1, #list do
  2624. temp2 = list[x]
  2625. if (temp2.className == "Model") and (temp2 ~= Character) then
  2626. temp = (temp2:FindFirstChild("Torso") or temp2:FindFirstChild("UpperTorso"))
  2627. human = temp2:findFirstChildOfClass("Humanoid")
  2628. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  2629. if (temp.Position - pos).magnitude < dist then
  2630. torso = temp
  2631. dist = (temp.Position - pos).magnitude
  2632. end
  2633. end
  2634. end
  2635. end
  2636. return torso
  2637. end
  2638. function BulletHitEffectSpawn(EffectCF,EffectName)
  2639. local MainEffectHolder=Instance.new("Part",Effects)
  2640. MainEffectHolder.Reflectance = 0
  2641. MainEffectHolder.Transparency = 1
  2642. MainEffectHolder.CanCollide = false
  2643. MainEffectHolder.Locked = true
  2644. MainEffectHolder.Anchored=true
  2645. MainEffectHolder.BrickColor = BrickColor.new("Bright green")
  2646. MainEffectHolder.Name = "Bullet"
  2647. MainEffectHolder.Size = Vector3.new(.05,.05,.05)
  2648. MainEffectHolder.Material = "Neon"
  2649. MainEffectHolder:BreakJoints()
  2650. MainEffectHolder.CFrame = EffectCF
  2651. local EffectAttach=Instance.new("Attachment",MainEffectHolder)
  2652. game:GetService("Debris"):AddItem(MainEffectHolder, 15)
  2653.  
  2654. if EffectName == "Explode" then
  2655. EffectAttach.Orientation = Vector3.new(90,0,0)
  2656.  
  2657.  
  2658.  
  2659.  
  2660. local SpawnedParticle1 = EffectPack.Explode_Fire_Effect:Clone()
  2661. SpawnedParticle1.Parent = MainEffectHolder
  2662. SpawnedParticle1:Emit(150)
  2663.  
  2664.  
  2665.  
  2666. local SpawnedParticle2 = EffectPack.Explode_Smoke2_Effect:Clone()
  2667. SpawnedParticle2.Parent = MainEffectHolder
  2668. SpawnedParticle2:Emit(25)
  2669.  
  2670.  
  2671.  
  2672. local SpawnedParticle3 = EffectPack.Explode_Smoke_Effect:Clone()
  2673. SpawnedParticle3.Parent = MainEffectHolder
  2674. SpawnedParticle3:Emit(185)
  2675. game:GetService("Debris"):AddItem(MainEffectHolder, 2)
  2676.  
  2677.  
  2678. end
  2679.  
  2680.  
  2681.  
  2682.  
  2683.  
  2684.  
  2685. if EffectName == "Spark" then
  2686.  
  2687. EffectAttach.Orientation = Vector3.new(90,0,0)
  2688.  
  2689.  
  2690.  
  2691.  
  2692. local SpawnedParticle1 = EffectPack.Spark:Clone()
  2693. SpawnedParticle1.Parent = MainEffectHolder
  2694. SpawnedParticle1:Emit(math.random(2,5))
  2695.  
  2696.  
  2697.  
  2698.  
  2699. game:GetService("Debris"):AddItem(MainEffectHolder, 2)
  2700.  
  2701.  
  2702. end
  2703.  
  2704.  
  2705.  
  2706.  
  2707.  
  2708. if EffectName == "Nuke" then
  2709. so(923073285,MainEffectHolder,8,2)
  2710. EffectAttach.Orientation = Vector3.new(0,0,0)
  2711. local EffectAttach2=Instance.new("Attachment",MainEffectHolder)
  2712. EffectAttach2.Orientation = Vector3.new(0,0,0)
  2713.  
  2714.  
  2715.  
  2716.  
  2717. local SpawnedParticle1 = EffectPack.Nuke_Flash:Clone()
  2718. SpawnedParticle1.Parent = EffectAttach
  2719. SpawnedParticle1:Emit(20)
  2720.  
  2721.  
  2722.  
  2723. local SpawnedParticle2 = EffectPack.Nuke_Smoke:Clone()
  2724. SpawnedParticle2.Parent = EffectAttach2
  2725. SpawnedParticle2.Enabled = true
  2726. coroutine.resume(coroutine.create(function()
  2727.  
  2728. for i = 0,2,.025/1.5 do
  2729.  
  2730.  
  2731. SpawnedParticle2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.15,.5+(i/4)),NumberSequenceKeypoint.new(.95,.5+(i/4)),NumberSequenceKeypoint.new(1,1)})
  2732. Swait()
  2733. end
  2734. SpawnedParticle2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,1)})
  2735.  
  2736. SpawnedParticle2.Enabled = false
  2737. end))
  2738.  
  2739.  
  2740. local SpawnedParticle3 = EffectPack.Nuke_Wave:Clone()
  2741. SpawnedParticle3.Parent = EffectAttach
  2742. SpawnedParticle3:Emit(185)
  2743. game:GetService("Debris"):AddItem(EffectAttach, 10)
  2744.  
  2745.  
  2746. end
  2747.  
  2748.  
  2749.  
  2750.  
  2751.  
  2752.  
  2753.  
  2754.  
  2755.  
  2756.  
  2757.  
  2758.  
  2759. end
  2760.  
  2761. function ProjectileDmg(MinDmg1,MaxDmg1,Lookpos1,Lookray1,Aura1,Type,Partf)
  2762.  
  2763. if Lookray1 ~= nil and Lookray1.Parent:FindFirstChildOfClass("Humanoid") then
  2764. coroutine.resume(coroutine.create(function()
  2765. Damagefunc(Partf, Lookray1, MinDmg1, MaxDmg1, MinDmg1, Type, RootPart, 0.1, "851453784", 1.2) end))
  2766. else
  2767. CFMagniDamage(CF(Lookpos1),Aura1, MinDmg1, MaxDmg1, MinDmg1, Type)
  2768. end
  2769.  
  2770.  
  2771.  
  2772.  
  2773.  
  2774. end
  2775.  
  2776.  
  2777. function FireSoul(SpawnCF)
  2778.  
  2779.  
  2780. local GhostHolder = EffectPack.Missile:Clone()
  2781. GhostHolder.Parent = Effects
  2782. GhostHolder.CFrame = SpawnCF
  2783.  
  2784.  
  2785. local Missile = GhostHolder
  2786. for i, v3 in pairs(GatherAllInstances(Missile)) do
  2787. if v3:IsA("ParticleEmitter") then
  2788. v3.Enabled = true
  2789. end
  2790. end
  2791.  
  2792.  
  2793.  
  2794.  
  2795. coroutine.resume(coroutine.create(function()
  2796. Missile["Rocket Thrust Loop"]:Play()
  2797. end))
  2798.  
  2799.  
  2800. so(771710614,Missile,1,1)
  2801.  
  2802. wait()
  2803.  
  2804.  
  2805. game:GetService("Debris"):AddItem(GhostHolder, 60)
  2806.  
  2807. coroutine.resume(coroutine.create(function()
  2808.  
  2809.  
  2810.  
  2811.  
  2812.  
  2813.  
  2814. GhostHolder.Transparency = 0
  2815.  
  2816.  
  2817.  
  2818.  
  2819. end))
  2820.  
  2821.  
  2822.  
  2823. --GhostHolder.Touched:connect(onTouch)
  2824.  
  2825. --GhostHolder:BreakJoints()
  2826. --GhostHolder.Anchored = false
  2827.  
  2828.  
  2829. --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)
  2830. local GhostTarget=nil
  2831.  
  2832. coroutine.resume(coroutine.create(function()
  2833.  
  2834.  
  2835. local lookdir=RootPart.CFrame.lookVector *15
  2836.  
  2837. while GhostHolder.Parent == Effects do
  2838.  
  2839.  
  2840. GhostTarget = findNearestTorso(GhostHolder.Position)
  2841.  
  2842.  
  2843. if GhostTarget ~=nil then
  2844.  
  2845.  
  2846.  
  2847.  
  2848.  
  2849.  
  2850. if OverClocking ==false then
  2851. 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)
  2852. --GhostForce.velocity =GhostHolder.CFrame.lookVector *80
  2853. else
  2854. SetTween(GhostHolder,{CFrame =CFrame.new(GhostHolder.Position+GhostHolder.CFrame.lookVector*20,(GhostTarget.Position+GhostHolder.CFrame.lookVector*21 ))},"Linear","Out",.1)
  2855.  
  2856. end
  2857.  
  2858. else
  2859. if OverClocking ==false then
  2860. SetTween(GhostHolder,{CFrame =CFrame.new(GhostHolder.Position+GhostHolder.CFrame.LookVector*20,GhostHolder.Position+VT(0,-1,0)+GhostHolder.CFrame.LookVector*30)},"Linear","Out",.2)
  2861.  
  2862. else
  2863. SetTween(GhostHolder,{CFrame =CFrame.new(GhostHolder.Position+GhostHolder.CFrame.LookVector*20,GhostHolder.Position+VT(0,-1,0)+GhostHolder.CFrame.LookVector*30)},"Linear","Out",.2)
  2864.  
  2865.  
  2866.  
  2867. end
  2868. end
  2869. local Lookray,Lookpos,test1 = rayCast(GhostHolder.Position, GhostHolder.CFrame.lookVector, 10, Character)
  2870. if Lookray ~= nil then
  2871. --onTouch(Lookray)
  2872.  
  2873.  
  2874.  
  2875.  
  2876.  
  2877. so(2814355743,GhostHolder,3,2)
  2878. BulletHitEffectSpawn(CF(Lookpos,Lookpos+test1),"Explode")
  2879.  
  2880. ProjectileDmg(50,65,Lookpos,nil,45,"Knockdown",GhostHolder)
  2881.  
  2882.  
  2883.  
  2884.  
  2885.  
  2886.  
  2887. coroutine.resume(coroutine.create(function()
  2888. GhostHolder["Rocket Thrust Loop"]:Stop()
  2889. end))
  2890.  
  2891.  
  2892.  
  2893.  
  2894. for i, v3 in pairs(GatherAllInstances(GhostHolder)) do
  2895. if v3:IsA("ParticleEmitter") then
  2896. v3.Enabled = false
  2897. end
  2898. end
  2899.  
  2900.  
  2901. SetTween(GhostHolder,{Transparency=1},"Quad","Out",1)
  2902. game:GetService("Debris"):AddItem(GhostHolder, 2)
  2903.  
  2904.  
  2905. break
  2906.  
  2907.  
  2908.  
  2909. end
  2910. --wait(1.35)
  2911. Swait() end
  2912. --GhostHolder:Destroy()
  2913. end))
  2914.  
  2915.  
  2916. end
  2917.  
  2918.  
  2919.  
  2920.  
  2921.  
  2922.  
  2923.  
  2924.  
  2925.  
  2926.  
  2927.  
  2928. --[[
  2929. for i, v in pairs(C:GetChildren()) do
  2930. if v:IsA("Accessory")then
  2931. v:Destroy()
  2932. end
  2933. if v:IsA("BasePart")then
  2934. v.Transparency =1
  2935. if v.Name == "Head" then
  2936. v:FindFirstChildOfClass("Decal"):Destroy()
  2937. end
  2938. end
  2939. end--]]
  2940. --[[
  2941.  
  2942.  
  2943.  
  2944.  
  2945.  
  2946.  
  2947.  
  2948.  
  2949.  
  2950.  
  2951.  
  2952.  
  2953.  
  2954. local tweeningInformation = TweenInfo.new(
  2955. 0.5,
  2956. Enum.EasingStyle.Back,
  2957. Enum.EasingDirection.Out,
  2958. 0,
  2959. false,
  2960. 0
  2961. )
  2962. --]]
  2963.  
  2964.  
  2965. local RJW=weld(RJ.Parent,RJ.Part0,RJ.Part1,RJ.C0)
  2966. RJW.C1 = RJ.C1
  2967. RJW.Name = RJ.Name
  2968.  
  2969. local NeckW=weld(Neck.Parent,Neck.Part0,Neck.Part1,Neck.C0)
  2970. NeckW.C1 = Neck.C1
  2971. NeckW.Name = Neck.Name
  2972.  
  2973.  
  2974. --print(WRJ.Parent.Name)
  2975.  
  2976. local RW=weld(Torso,Torso,RightArm,cf(0,0,0))
  2977.  
  2978. local LW=weld(Torso,Torso,LeftArm,cf(0,0,0))
  2979.  
  2980. local RH=weld(Torso,Torso,RightLeg,cf(0,0,0))
  2981.  
  2982. local LH=weld(Torso,Torso,LeftLeg,cf(0,0,0))
  2983.  
  2984.  
  2985.  
  2986. RW.C1 = cn(0, 0.5, 0)
  2987. LW.C1 = cn(0, 0.5, 0)
  2988. RH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  2989. LH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  2990.  
  2991.  
  2992.  
  2993.  
  2994.  
  2995.  
  2996. --------
  2997. --(#Torso)
  2998. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)},"Quad","InOut",0.1)
  2999. --------
  3000. --(#Head)
  3001. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)},"Quad","InOut",0.1)
  3002. --------
  3003. --(#Right Arm)
  3004. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)},"Quad","InOut",0.1)
  3005. --------
  3006. --(#Left Arm)
  3007. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)},"Quad","InOut",0.1)
  3008. --------
  3009. --(#Right Leg)
  3010. SetTween(RH,{C0=CFrame.new(.5, -0.90, 0)},"Quad","InOut",0.1)
  3011. --------
  3012. --(#Left Leg)
  3013. SetTween(LH,{C0=CFrame.new(-.5, -0.90, 0)},"Quad","InOut",0.1)
  3014.  
  3015.  
  3016.  
  3017. --[[
  3018. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  3019. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  3020. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1)
  3021. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1)
  3022. SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  3023. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  3024. --]]
  3025.  
  3026.  
  3027.  
  3028. Humanoid.MaxHealth = 99999
  3029.  
  3030. Humanoid.Health = 99999
  3031. GainCharge = function()
  3032. Humanoid.MaxHealth = 99999
  3033. Humanoid.Health = 99999
  3034. end
  3035.  
  3036. Humanoid.HealthChanged:connect(function() GainCharge(Humanoid) end)
  3037.  
  3038.  
  3039. function SpawnDrone(SPCF)
  3040. coroutine.resume(coroutine.create(function()
  3041. local DroneModel = nil --EffectPack.Drone:Clone()
  3042. if 1 == 1 then
  3043. DroneModel = EffectPack.Toaster:Clone()
  3044. else
  3045. DroneModel = EffectPack.Drone:Clone()
  3046.  
  3047. end
  3048. local Drone = EffectPack.Part:Clone()
  3049. Drone.Parent = Effects
  3050. Drone.Name = "Drone"
  3051. Drone.Anchored = true
  3052.  
  3053. local Part1=Drone
  3054. local Part2=DroneModel.Handle
  3055. --game:GetService("Debris"):AddItem(Drone, 60)
  3056. coroutine.resume(coroutine.create(function()
  3057. wait(30)
  3058. Drone:Destroy()
  3059. end))
  3060. Drone.CFrame = SPCF*CF(0,10,600)
  3061. JointAllTo(Part1,Part2,DroneModel,CFrame.new(0,0,0))
  3062. SetTween(Drone,{CFrame=SPCF*CF(math.random(-100,100)/10,math.random(5,20),math.random(-10,10)/10)},"Quad","Out",1)
  3063. wait(1)
  3064. local v2 = findNearestTorso(Drone.Position,70)
  3065. if v2 ~= nil then
  3066. SetTween(Drone,{CFrame=CF(Drone.CFrame.p,v2.CFrame.p)},"Quad","InOut",.5)
  3067. end
  3068. Swait(0.15*30)
  3069. for i2 =1,16 do
  3070. for i = 1,2,1 do
  3071. local v = findNearestTorso(Drone.Position,70)
  3072. if v~=nil then
  3073.  
  3074. SetTween(Drone,{CFrame=CF(Drone.CFrame.p,v2.CFrame.p)},"Quad","Out",.25)
  3075.  
  3076. local lighth,lightp,test1 = rayCast(Drone["gun"..i].CFrame.p, CFrame.new(Drone["gun"..i].CFrame.p, v.CFrame.p).lookVector, 70, Character)
  3077. if DroneModel.Name ~= "Toaster" then
  3078. Lightning(Drone["gun"..i].CFrame.p,lightp , 5, .2, BrickColor.new("Alder"), .15, .5,-.25*2,.5,nil)
  3079. BulletHitEffectSpawn(CF(lightp,lightp+test1),"Spark")
  3080. coroutine.resume(coroutine.create(function()
  3081. so("168586621", Drone,1.6, math.random(120,220)/100)
  3082.  
  3083. so("1225795839", Drone,2, math.random(120,220)/100)
  3084. CFMagniDamage(CF(lightp),10,5,10,10,"Knockdown")
  3085.  
  3086. end))Swait(0.15*30)
  3087. else
  3088.  
  3089. Lightning(Drone["gun"..i].CFrame.p,lightp , 1, 1, BrickColor.new("Alder"), .05, 0,-.25*2,1,nil)
  3090. BulletHitEffectSpawn(CF(lightp,lightp+test1),"Spark")
  3091. coroutine.resume(coroutine.create(function()
  3092. -- so("168586621", Drone,1.0, math.random(120,220)/100)
  3093.  
  3094. so("1578823908", Drone,4, math.random(100,150)/100)
  3095. CFMagniDamage(CF(lightp),25,75,80,-50,"Knockdown")
  3096.  
  3097. end))
  3098. SetTween(Drone,{CFrame=CF(Drone.CFrame.p,v2.CFrame.p)*CF(0,5/10,-2.5/10)},"Quad","InOut",.15)
  3099. Swait(0.15*30)
  3100. end
  3101.  
  3102. end
  3103.  
  3104. end
  3105.  
  3106. v2 = findNearestTorso(Drone.Position,70)
  3107. if v2~=nil then
  3108.  
  3109. SetTween(Drone,{CFrame=CF((Drone.CFrame).p,v2.CFrame.p)},"Quad","InOut",.1)
  3110.  
  3111.  
  3112. --Swait(0.2*30)
  3113. end
  3114.  
  3115.  
  3116. end
  3117. SetTween(Drone,{CFrame=Drone.CFrame*CF(0,1000,100)},"Quad","InOut",6)
  3118. wait(6)
  3119. Drone:Destroy()
  3120. end))
  3121. end
  3122.  
  3123.  
  3124. function Attack1()
  3125. attack = true
  3126. Humanoid.JumpPower = 0
  3127. Humanoid.WalkSpeed = 0
  3128. coroutine.resume(coroutine.create(function()
  3129. SetTween(MX1w,{C0=CF(0,0,.15)*ANGLES(mr(90),0,0)},"Back","Out",1/2)
  3130.  
  3131. Swait(.25*2)
  3132.  
  3133. SetTween(MX1w,{C0=CF(0,.1,.30)*ANGLES(mr(20),0,0)},"Back","Out",.25)
  3134. end))
  3135. so("418302853", Torso,4, 2)
  3136. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-.6)*angles(math.rad(10),math.rad(0),math.rad(0))},"Back","Out",0.3)
  3137. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0))},"Back","Out",0.3)
  3138. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(45),math.rad(0),math.rad(10))},"Back","Out",0.3)
  3139. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(20),math.rad(0),math.rad(-10))},"Back","Out",0.3)
  3140. SetTween(RH,{C0=CFrame.new(.5, -.7, -.2)*angles(math.rad(30),math.rad(0),math.rad(0))},"Back","Out",0.3)
  3141. SetTween(LH,{C0=CFrame.new(-.5, -1.0, -.75)*angles(math.rad(-50),math.rad(0),math.rad(0))},"Back","Out",0.3)
  3142. wait(.3)
  3143. for i2 = 1,4 do
  3144. for i = 1,3 do
  3145. for i2 = 1,2 do
  3146. coroutine.resume(coroutine.create(function()
  3147. FireSoul(CF(MissileBox["MissileSlot"..i].CFrame.p,MissileBox["MissileSlot"..i].CFrame.p+MissileBox["MissileSlot"..i].CFrame.RightVector)*ANGLES(mr(math.random(-10,10)/10),mr(math.random(-10,10)/10),mr(math.random(-10,10)/10) ) )
  3148. end))
  3149. end
  3150. SetTween(MissileBox["MissileSlot"..i],{Color=C3(0,0,0)},"Quad","InOut",.05)
  3151. SetTween(MX1w,{C0=CF(0,0,.15)*ANGLES(mr(40),0,0)},"Quad","Out",.1)
  3152.  
  3153. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-.6)*angles(math.rad(0),math.rad(0),math.rad(0))},"Back","Out",0.1)
  3154. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0))},"Back","Out",0.1)
  3155. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(35),math.rad(0),math.rad(20))},"Back","Out",0.1)
  3156. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(10),math.rad(0),math.rad(-20))},"Back","Out",0.1)
  3157. SetTween(RH,{C0=CFrame.new(.5, -.7, -.2)*angles(math.rad(20),math.rad(0),math.rad(0))},"Back","Out",0.1)
  3158. SetTween(LH,{C0=CFrame.new(-.5, -1.0, -.75)*angles(math.rad(-60),math.rad(0),math.rad(0))},"Back","Out",0.1)
  3159.  
  3160. Swait(1)
  3161. SetTween(MX1w,{C0=CF(0,.1,.30)*ANGLES(mr(20),0,0)},"Quad","Out",.1)
  3162. SetTween(MissileBox["MissileSlot"..i],{Color=C3(180/255, 128/255, 255/255)},"Quad","InOut",.25)
  3163. SetTween(RJW,{C0=RootCF*CFrame.new(0,-.25,-.55)*angles(math.rad(10),math.rad(0),math.rad(0))},"Back","Out",0.2)
  3164. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0))},"Back","Out",0.2)
  3165. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(45),math.rad(0),math.rad(10))},"Back","Out",0.2)
  3166. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(20),math.rad(0),math.rad(-10))},"Back","Out",0.2)
  3167. SetTween(RH,{C0=CFrame.new(.5, -.7, -.2)*angles(math.rad(30),math.rad(0),math.rad(0))},"Back","Out",0.2)
  3168. SetTween(LH,{C0=CFrame.new(-.5, -1.0, -.75)*angles(math.rad(-50),math.rad(0),math.rad(0))},"Back","Out",0.2)
  3169. Swait(1) end
  3170.  
  3171.  
  3172.  
  3173. end
  3174. coroutine.resume(coroutine.create(function()
  3175. SetTween(MX1w,{C0=CF(0,0,.15)*ANGLES(mr(90),0,0)},"Back","Out",1/2)
  3176.  
  3177. Swait(.25*30)
  3178. SetTween(MX1w,{C0=CF(0,-.7,-.25)},"Quad","InOut",.25)
  3179. end))
  3180. attack = false
  3181.  
  3182. end
  3183.  
  3184. eyehold=false
  3185. function Attack2()
  3186.  
  3187.  
  3188.  
  3189. attack = true
  3190. Humanoid.JumpPower = 0
  3191. Humanoid.WalkSpeed=0
  3192.  
  3193.  
  3194. local eyeffect1 = EffectPack.Light:Clone()
  3195.  
  3196. eyeffect1.Parent = Head.Eye.Attachment
  3197.  
  3198.  
  3199. eyeffect1.Enabled = true
  3200. so("1841310110",Head,3,1)
  3201.  
  3202. for i = 1,3.5,.1 do
  3203. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-.3)*angles(math.rad(40),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  3204. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(40),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  3205. 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)
  3206. 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)
  3207. SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(40),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  3208. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(40),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  3209. Swait() end
  3210. --local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 10, 0)+RootPart.CFrame.lookVector*30, P = 5000, maxForce = Vector3.new(800000, 800000 , 800000), Parent = RootPart})
  3211. so("197760420",Head,8,1)
  3212.  
  3213. --wait(.5)
  3214. eyehold= true
  3215.  
  3216.  
  3217. local Beam1 = Instance.new("Beam",Torso.TorsoLaser)
  3218.  
  3219. local WalkPart = Instance.new("Part",Effects)
  3220. WalkPart.Transparency = 1
  3221. WalkPart.CanCollide = false
  3222. WalkPart.Anchored = true
  3223. WalkPart.CFrame = CFrame.new(0,0,0)
  3224. WalkPart.Size = Vector3.new(.1,.1,.1)
  3225. local Attach2 = Instance.new("Attachment",WalkPart)
  3226.  
  3227.  
  3228.  
  3229.  
  3230.  
  3231.  
  3232.  
  3233. local NewParticle = Particle2_1:Clone()
  3234. NewParticle.Parent = Attach2
  3235. NewParticle.Acceleration = Vector3.new(0,0,0)
  3236. if OverClocking ==false then
  3237. NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2),NumberSequenceKeypoint.new(1,0)})
  3238.  
  3239. else
  3240.  
  3241. NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50),NumberSequenceKeypoint.new(1,0)})
  3242.  
  3243.  
  3244. end
  3245. NewParticle.Color = ColorSequence.new(Color3.new (180/255, 128/255, 255/255), Color3.new (180/255, 128/255, 255/255))
  3246. NewParticle.Lifetime = NumberRange.new(.2,.3)
  3247. NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,0),NumberSequenceKeypoint.new(1,1)})
  3248. NewParticle.Speed = NumberRange.new(0)
  3249. NewParticle.ZOffset = 6
  3250. NewParticle.RotSpeed = NumberRange.new(-40,40)
  3251. NewParticle.Rotation = NumberRange.new(-180,180)
  3252. NewParticle.Texture = "rbxassetid://217245118"
  3253. NewParticle.Rate = 50
  3254. --NewParticle.Enabled = true
  3255.  
  3256. local NewParticle2 = NewParticle:Clone()
  3257. NewParticle2.LockedToPart = true
  3258. NewParticle2.Parent = Attach2
  3259.  
  3260. NewParticle.Speed = NumberRange.new(10)
  3261. NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,.5),NumberSequenceKeypoint.new(1,1)})
  3262.  
  3263. NewParticle.Texture = "rbxassetid://445231898"
  3264. if OverClocking ==false then
  3265. NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,2)})
  3266. else
  3267. NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5),NumberSequenceKeypoint.new(1,28)})
  3268.  
  3269. end
  3270. NewParticle.Lifetime = NumberRange.new(.3,.5)
  3271. NewParticle.ZOffset = 4
  3272. NewParticle.Speed = NumberRange.new(1)
  3273. --NewParticle:Emit(2)
  3274.  
  3275.  
  3276.  
  3277.  
  3278.  
  3279. coroutine.resume(coroutine.create(function()
  3280. if eyehold==true then
  3281.  
  3282.  
  3283.  
  3284.  
  3285.  
  3286. coroutine.resume(coroutine.create(function()
  3287.  
  3288. while eyehold==true do
  3289. wait(.5)
  3290.  
  3291. so("2162238374",Torso.TorsoLaser,4,2.0)
  3292.  
  3293.  
  3294. end
  3295. for i = 1,10 do
  3296. for _,v in pairs(Torso.TorsoLaser:children()) do
  3297. if v:isA("Sound") then
  3298. v.Volume = v.Volume - .4
  3299. end
  3300. end
  3301. Swait()
  3302. end
  3303. end))
  3304.  
  3305.  
  3306. while eyehold == true do
  3307. Swait()
  3308.  
  3309.  
  3310.  
  3311. Humanoid.JumpPower = 0
  3312. change = .6
  3313.  
  3314.  
  3315.  
  3316.  
  3317.  
  3318.  
  3319.  
  3320.  
  3321.  
  3322.  
  3323.  
  3324.  
  3325. Humanoid.WalkSpeed=2
  3326.  
  3327.  
  3328.  
  3329. coroutine.resume(coroutine.create(function()
  3330. local GunPart = Head.Eye
  3331.  
  3332.  
  3333. --so("610359515",Head,1.5,.8,4)
  3334. for i = 1,1 do
  3335.  
  3336.  
  3337.  
  3338.  
  3339.  
  3340.  
  3341. coroutine.resume(coroutine.create(function()
  3342.  
  3343. local Glow1 = Color3.new (180/255, 128/255, 255/255)
  3344. local Glow2 = Color3.new (180/255, 128/255, 255/255)
  3345. local hitray,pos,test1 = rayCast(GunPart.Position, GunPart.CFrame.lookVector, 500, Character)
  3346.  
  3347.  
  3348.  
  3349.  
  3350.  
  3351. local mag=(Torso.TorsoLaser.Position-pos).magnitude
  3352.  
  3353.  
  3354.  
  3355. Attach2.Position = pos
  3356. --Attach1.Position = Vector3.new(0,0,0)
  3357. NewParticle.Enabled = true
  3358. NewParticle2.Enabled = true
  3359. eyeffect1.Enabled = true
  3360.  
  3361.  
  3362. Beam1.Texture = "rbxassetid://1134824633"
  3363.  
  3364. Beam1.FaceCamera = true
  3365. Beam1.Color = ColorSequence.new(Glow1,Glow2)
  3366. Beam1.Transparency = NumberSequence.new(0,0)
  3367. Beam1.TextureLength = .1*(mag)
  3368. Beam1.Attachment0 = Head.Eye.Attachment
  3369. Beam1.Attachment1 = Attach2
  3370. Beam1.TextureSpeed = 15
  3371. Beam1.LightEmission = 1
  3372. Beam1.Width0 = 1
  3373.  
  3374. if OverClocking ==false then
  3375. Beam1.Width1 = 2
  3376. else
  3377. Beam1.Width1 = 20
  3378. end
  3379.  
  3380.  
  3381.  
  3382.  
  3383.  
  3384. if OverClocking ==false then
  3385. CFMagniDamage(CFrame.new(pos),5, 350, 500, 0, "Normal")
  3386. else
  3387. CFMagniDamage(CFrame.new(pos),30, 350, 500, 0, "Normal")
  3388.  
  3389. end
  3390. coroutine.resume(coroutine.create(function()
  3391. if hitray~=nil then
  3392. for i = 1, 1 do
  3393. local Color = hitray.BrickColor
  3394. local Materials = hitray.Material
  3395. 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))
  3396. groundpart.Anchored = false
  3397. groundpart.Material = Materials
  3398. groundpart.CanCollide = true
  3399. groundpart.Friction = 2
  3400. groundpart.Velocity = Vector3.new(math.random(-50, 50), math.random(25, 50), math.random(-50, 50))
  3401. 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)))
  3402. groundpart:SetNetworkOwner(Player)
  3403. game:GetService("Debris"):AddItem(groundpart, 1.0)
  3404. SetTween(groundpart,{Size = VT(),Transparency=1},"Quad","In",1)
  3405.  
  3406. end
  3407. for i = 1, 0 do
  3408. local Color = hitray.BrickColor
  3409. local Materials = hitray.Material
  3410. 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))
  3411. groundpart.Anchored = false
  3412. groundpart.Material = Materials
  3413. groundpart.CanCollide = true
  3414. groundpart.Friction = 2
  3415. groundpart.Velocity = Vector3.new(math.random(-50, 50), math.random(25, 50), math.random(-50, 50))
  3416. 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)))
  3417. groundpart:SetNetworkOwner(Player)
  3418. game:GetService("Debris"):AddItem(groundpart, 1.0)
  3419. SetTween(groundpart,{Size = VT(),Transparency=1},"Quad","In",1)
  3420.  
  3421.  
  3422. --game:GetService("Debris"):AddItem(WalkPart2, .4)
  3423.  
  3424. end
  3425.  
  3426. end
  3427.  
  3428. end))
  3429. coroutine.resume(coroutine.create(function()
  3430. if hitray ~= nil then
  3431.  
  3432.  
  3433.  
  3434.  
  3435.  
  3436.  
  3437.  
  3438.  
  3439.  
  3440.  
  3441.  
  3442. -- 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))))
  3443.  
  3444.  
  3445. else
  3446. --Beam1.Transparency = NumberSequence.new(0,1)
  3447. end
  3448.  
  3449.  
  3450.  
  3451. --GunPart.Transparency = i*1.5
  3452. --GunPart.Size = Vector3.new(0.85-i,.85-i,.05)
  3453.  
  3454.  
  3455.  
  3456.  
  3457.  
  3458.  
  3459.  
  3460. --game:GetService("Debris"):AddItem(WalkPart2, .4)
  3461. --game:GetService("Debris"):AddItem(WalkPart, .4)
  3462. --game:GetService("Debris"):AddItem(Attach1, .4)
  3463. --game:GetService("Debris"):AddItem(Attach2, .4)
  3464.  
  3465. end))
  3466.  
  3467.  
  3468.  
  3469.  
  3470.  
  3471.  
  3472.  
  3473.  
  3474. end))
  3475.  
  3476.  
  3477.  
  3478.  
  3479. end
  3480.  
  3481.  
  3482.  
  3483. end))
  3484.  
  3485.  
  3486.  
  3487. end
  3488. end
  3489.  
  3490.  
  3491.  
  3492.  
  3493. coroutine.resume(coroutine.create(function()
  3494.  
  3495. for i = 0,4,0.3 do Swait()
  3496. Beam1.Transparency = NumberSequence.new(i,(i)/2)
  3497.  
  3498. end
  3499. end))
  3500.  
  3501. NewParticle.Enabled = false
  3502. NewParticle2.Enabled = false
  3503. eyeffect1.Enabled = false
  3504.  
  3505. game:GetService("Debris"):AddItem(WalkPart, 1)
  3506. --game:GetService("Debris"):AddItem(Attach1, .4)
  3507. game:GetService("Debris"):AddItem(Attach2, 1)
  3508. game:GetService("Debris"):AddItem(Beam1, 1)
  3509.  
  3510. game:GetService("Debris"):AddItem(NewParticle, 1)
  3511. game:GetService("Debris"):AddItem(NewParticle2, 1)
  3512. game:GetService("Debris"):AddItem(eyeffect1, 1)
  3513.  
  3514. so("1229184354",Torso,5,2)
  3515. end))
  3516.  
  3517. for i = 1,3.25,.075 do
  3518. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Linear","InOut",0.1)
  3519. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(60-20*i),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  3520. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad((-20+20*i)+math.random(-5,5)),math.rad(0),math.rad(math.random(-5,5)+(45/5)*i ))},"Quad","Out",0.1)
  3521. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad((-20+20*i)+math.random(-5,5)),math.rad(0),math.rad(math.random(-5,5)-(45/5)*i))},"Quad","Out",0.1)
  3522. SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  3523. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  3524. --bodyVelocity.velocity = Vector3.new(0, 1, 0)+Torso.CFrame.lookVector*-40
  3525. Swait() end
  3526. eyehold = false
  3527. Swait()
  3528. --bodyVelocity.velocity = Vector3.new(0, 0, 0)
  3529. --bodyVelocity.maxForce = Vector3.new(8000000, 0 , 8000000)
  3530. --game:GetService("Debris"):AddItem(bodyVelocity, 1)
  3531.  
  3532.  
  3533.  
  3534.  
  3535.  
  3536. attack = false
  3537. end
  3538. dancing = false
  3539.  
  3540.  
  3541.  
  3542. function Attack3()
  3543. attack = true
  3544.  
  3545.  
  3546.  
  3547.  
  3548.  
  3549. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-0.9)*angles(math.rad(50),math.rad(0),math.rad(35))},"Quad","InOut",0.4)
  3550. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(-35))},"Quad","InOut",0.4)
  3551. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(65),math.rad(0),math.rad(35))},"Quad","Out",0.4)
  3552. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(-30),math.rad(0),math.rad(0))},"Quad","Out",0.4)
  3553. SetTween(RH,{C0=CFrame.new(.5, -0, -.25)*angles(math.rad(60),math.rad(0),math.rad(30))},"Quad","InOut",0.4)
  3554. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(-0),math.rad(0),math.rad(15))},"Quad","InOut",0.4)
  3555.  
  3556.  
  3557. so("3136984947", Head,5, .8)
  3558.  
  3559. -- LAP.Parent = Character
  3560. Swait(.4*30)
  3561. local portal =Instance.new("Part")
  3562. portal.Reflectance = 0
  3563. portal.Transparency = 1
  3564. portal.CanCollide = false
  3565. portal.Locked = true
  3566. portal.Anchored=true
  3567. portal.BrickColor = BrickColor.new("Really blue")
  3568. portal.Name = "portal"
  3569. portal.Size = Vector3.new()
  3570. portal.Material = "SmoothPlastic"
  3571. portal:BreakJoints()
  3572. portal.CFrame = RootPart.CFrame*cn(0,0,-0)
  3573. local Portalfloor,PortalPos = rayCast(portal.Position, CFrame.new(portal.Position, portal.Position - Vector3.new(0, 1, 0)).lookVector, 80, Character)
  3574. portal.CFrame = cn(PortalPos)
  3575.  
  3576. local max = 25
  3577. local min = 0
  3578. local light = min
  3579. if OverClocking == true then
  3580. min = 0
  3581. max = 50
  3582. light = 3
  3583. end
  3584.  
  3585. coroutine.resume(coroutine.create(function()
  3586. --
  3587.  
  3588. WACKYEFFECT({Time = 50, EffectType = "Sphere", Size = VT(0,0,0), Size2 = (VT(max*2,.1,max*2)), Transparency = 0.25, Transparency2 = 1, CFrame = portal.CFrame*CF(0,.05,0) , MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(180, 128, 255), SoundID = 167191994, SoundPitch = 1, SoundVolume = 4,TweenNType="Quad",TweenOType="Out"})
  3589. -- WACKYEFFECT({Time = 240, EffectType = "Sphere", Size = VT(0,.1,0), Size2 = VT(light-.5,0.1,light-.5)*1.5, Transparency = 0, Transparency2 = 1, CFrame=portal.CFrame*cn(0,-0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 376976397, SoundPitch = 1, SoundVolume = 3,TweenNType="Back",TweenOType="Out"})
  3590. --Swait((120/60)*30)
  3591.  
  3592. coroutine.resume(coroutine.create(function()
  3593. wait(.1)
  3594. for _,c in pairs(workspace:children()) do
  3595.  
  3596.  
  3597.  
  3598.  
  3599.  
  3600.  
  3601.  
  3602.  
  3603. local h = c:FindFirstChild("Humanoid")
  3604. for _,v in pairs(c:children()) do
  3605. if v:IsA("Humanoid") then
  3606. if v.Health > 0.0001 then
  3607. h = v else h = nil end
  3608. end
  3609. end
  3610.  
  3611. local head = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")
  3612.  
  3613. if h ~= nil and head ~= nil then
  3614. local targ = head.Position - portal.Position
  3615. local mag = targ.magnitude
  3616.  
  3617.  
  3618. if mag < max and mag > min and c ~= Character then
  3619.  
  3620. print("Kill")
  3621. coroutine.resume(coroutine.create(function()
  3622. local Shade =Instance.new("Model",Effects)
  3623. local hed =Instance.new("Part")
  3624. hed.Reflectance = 0
  3625. hed.Transparency = 1
  3626. hed.CanCollide = false
  3627. hed.Locked = true
  3628. hed.Anchored=false
  3629. hed.Material = "ForceField"
  3630. hed.BrickColor = BrickColor.new("Really black")
  3631. --head.Material = "ForceField"
  3632. local sTor=hed:Clone()
  3633. sTor.Name = "Torso2"
  3634. sTor.Size = Vector3.new(2,2,1)
  3635. --sTor.Material = "ForceField"
  3636. sTor:BreakJoints()
  3637. sTor.CFrame = portal.CFrame*cn(0,-10,0)
  3638. local sraor=hed:Clone()
  3639. sraor.Name = "RightArm"
  3640. sraor.Size = Vector3.new(1,2,1)
  3641. --sraor.Material = "ForceField"
  3642. sraor:BreakJoints()
  3643. sraor.CFrame = portal.CFrame*cn(0,-10,0)
  3644. local slaor=sraor:Clone()
  3645. slaor.Name = "LeftArm"
  3646. local srlor=sraor:Clone()
  3647. srlor.Name = "RightLeg"
  3648. local sllor=sraor:Clone()
  3649. sllor.Name = "LeftLeg"
  3650. hed.Name = "Head2"
  3651. hed.Size = Vector3.new(1,1,1)
  3652. --hed.Material = "ForceField"
  3653. hed:BreakJoints()
  3654. hed.CFrame = portal.CFrame*cn(0,-10,0)
  3655.  
  3656. -- local Mesh =Instance.new("SpecialMesh",hed)
  3657.  
  3658. --Mesh.Scale=Vector3.new(1.25,1.25,1.25)
  3659.  
  3660. sTor.Anchored = true
  3661. hed.Parent = Shade
  3662. sTor.Parent = Shade
  3663. sraor.Parent = Shade
  3664. slaor.Parent = Shade
  3665. srlor.Parent = Shade
  3666. sllor.Parent = Shade
  3667.  
  3668.  
  3669. Swait((math.random(1,400)/10))
  3670. head.Anchored = true
  3671.  
  3672. SetTween(sTor,{Transparency=0},"Quad","InOut",.24)
  3673. SetTween(hed,{Transparency=0},"Quad","InOut",.24)
  3674. SetTween(sraor,{Transparency=0},"Quad","InOut",.24)
  3675. SetTween(slaor,{Transparency=0},"Quad","InOut",.24)
  3676. SetTween(srlor,{Transparency=0},"Quad","InOut",.24)
  3677. SetTween(sllor,{Transparency=0},"Quad","InOut",.24)
  3678.  
  3679.  
  3680.  
  3681.  
  3682.  
  3683.  
  3684. local NeckW2=MakeJoint(sTor,sTor,hed,CFrame.new(0,0,0))
  3685. NeckW2.C1 = NeckW.C1
  3686.  
  3687. --print(WRJ.Parent.Name)
  3688.  
  3689. local RW2=MakeJoint(sTor,sTor,sraor,cf(0,0,0))
  3690.  
  3691. local LW2=MakeJoint(sTor,sTor,slaor,cf(0,0,0))
  3692.  
  3693. local RH2=MakeJoint(sTor,sTor,srlor,cf(0,0,0))
  3694.  
  3695. local LH2=MakeJoint(sTor,sTor,sllor,cf(0,0,0))
  3696.  
  3697.  
  3698.  
  3699. RW2.C1 = cn(0, 0.5, 0)
  3700. LW2.C1 = cn(0, 0.5, 0)
  3701. RH2.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  3702. LH2.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  3703.  
  3704.  
  3705.  
  3706.  
  3707.  
  3708.  
  3709.  
  3710.  
  3711. --------
  3712. --(#Torso)
  3713. SetTween(sTor,{CFrame=head.CFrame*CFrame.new(0,-2,4)*angles(math.rad(10),math.rad(0),math.rad(0))},"Quad","InOut",1/20)
  3714. --------
  3715. --(#Head)
  3716. SetTween(NeckW2,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(40),math.rad(0),math.rad(0))},"Quad","InOut",1/20)
  3717. --------
  3718. --(#Right Arm)
  3719. SetTween(RW2,{C0=CFrame.new(1.3 , 0.5, -.25)*angles(math.rad(90),math.rad(0),math.rad(-35))},"Quad","InOut",1/20)
  3720. --------
  3721. --(#Left Arm)
  3722. SetTween(LW2,{C0=CFrame.new(-1.3, 0.5, -.25)*angles(math.rad(90),math.rad(0),math.rad(35))},"Quad","InOut",1/20)
  3723. --------
  3724. --(#Right Leg)
  3725. SetTween(RH2,{C0=CFrame.new(.5, 0.25, -.25)*angles(math.rad(45),math.rad(0),math.rad(0))},"Quad","InOut",1/20)
  3726. --------
  3727. --(#Left Leg)
  3728. SetTween(LH2,{C0=CFrame.new(-.5, 0.25, -.25)*angles(math.rad(45),math.rad(0),math.rad(0))},"Quad","InOut",1/20)
  3729.  
  3730.  
  3731.  
  3732. Swait((1/5)*30)
  3733. --------
  3734. --(#Torso)
  3735. SetTween(sTor,{CFrame=head.CFrame*CFrame.new(0,0,1)},"Back","Out",1/3)
  3736. --------
  3737. --(#Head)
  3738. SetTween(NeckW2,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(40),math.rad(0),math.rad(0))},"Quad","InOut",1/30)
  3739. --------
  3740. --(#Right Arm)
  3741. SetTween(RW2,{C0=CFrame.new(1.3 , 0.5, -.25)*angles(math.rad(90),math.rad(0),math.rad(-35))},"Quad","InOut",1/30)
  3742. --------
  3743. --(#Left Arm)
  3744. SetTween(LW2,{C0=CFrame.new(-1.3, 0.5, -.25)*angles(math.rad(90),math.rad(0),math.rad(35))},"Quad","InOut",1/30)
  3745. --------
  3746. --(#Right Leg)
  3747. SetTween(RH2,{C0=CFrame.new(.5, 0.25, -.25)*angles(math.rad(45),math.rad(0),math.rad(0))},"Quad","InOut",1/30)
  3748. --------
  3749. --(#Left Leg)
  3750. SetTween(LH2,{C0=CFrame.new(-.5, 0.25, -.25)*angles(math.rad(45),math.rad(0),math.rad(0))},"Quad","InOut",1/30)
  3751.  
  3752. Lightning(Head.Eye.Position,sTor.Position, 4, .4, BrickColor.new("Alder"), .1, .9,1,.57,nil)
  3753.  
  3754.  
  3755.  
  3756. Swait(1)
  3757. --------
  3758. local Grab=MakeJoint(sTor,sTor,head,cf(0,0,-1))
  3759. head.Anchored = false
  3760. --(#Torso)
  3761.  
  3762. --------
  3763. --(#Head)
  3764. SetTween(NeckW2,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0))},"Back","Out",1/3)
  3765. --------
  3766. --(#Right Arm)
  3767. SetTween(RW2,{C0=CFrame.new(1.3 , 0.5, -.3)*angles(math.rad(90),math.rad(0),math.rad(-50))},"Back","Out",1/3)
  3768. --------
  3769. --(#Left Arm)
  3770. SetTween(LW2,{C0=CFrame.new(-1.3, 0.5, -.3)*angles(math.rad(90),math.rad(0),math.rad(50))},"Back","Out",1/3)
  3771. --------
  3772. --(#Right Leg)
  3773. SetTween(RH2,{C0=CFrame.new(.5, -0.90, 0)},"Back","Out",1/3)
  3774. --------
  3775. --(#Left Leg)
  3776. SetTween(LH2,{C0=CFrame.new(-.5, -0.90, 0)},"Back","Out",1/3)
  3777. Swait((math.random(1,400)/10))
  3778.  
  3779. SetTween(sTor,{Color = Color3.fromRGB(180, 128, 255)},"Quad","Out",1.5)
  3780. SetTween(hed,{Color = Color3.fromRGB(180, 128, 255)},"Quad","Out",1.5)
  3781. SetTween(sraor,{Color = Color3.fromRGB(180, 128, 255)},"Quad","Out",1.5)
  3782. SetTween(slaor,{Color = Color3.fromRGB(180, 128, 255)},"Quad","Out",1.5)
  3783. SetTween(srlor,{Color = Color3.fromRGB(180, 128, 255)},"Quad","Out",1.5)
  3784. SetTween(sllor,{Color = Color3.fromRGB(180, 128, 255)},"Quad","Out",1.5)
  3785. so("2924264089", sTor,6, 1)
  3786. Swait(1.4*30)
  3787.  
  3788. WACKYEFFECT({Time = 50, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(25,25,25), Transparency = 0.8, Transparency2 = 1, CFrame = sTor.CFrame , MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(180, 128, 255), SoundID = 3398040717, SoundPitch = 1, SoundVolume = 2,TweenNType="Back",TweenOType="Out"})
  3789.  
  3790.  
  3791.  
  3792. BulletHitEffectSpawn(sTor.CFrame*ANGLES(mr(90),0,0),"Explode")
  3793.  
  3794. Lightning(sTor.Position,Head.Eye.Position, 10, 0.6, BrickColor.new("Alder"), 1.5, 0,1,.55,1)
  3795.  
  3796.  
  3797. CFMagniDamage(sTor.CFrame,10,60,85,100,"Knockdown")
  3798. Shade:Destroy()
  3799.  
  3800.  
  3801.  
  3802. end))
  3803.  
  3804. end
  3805. end
  3806. end
  3807. end))
  3808. --CFMagniDamage(portal.CFrame,60,10,20,0,"Normal")
  3809. portal:Destroy()
  3810. end))
  3811.  
  3812.  
  3813.  
  3814.  
  3815. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(-0),math.rad(0),math.rad(-30))},"Quad","Out",0.5)
  3816. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(30))},"Quad","Out",0.5)
  3817. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(150),math.rad(0),math.rad(55))},"Quad","Out",0.5)
  3818. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Back","Out",0.7)
  3819. SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(-25),math.rad(-40),math.rad(0))},"Quad","Out",0.5)
  3820. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(0),math.rad(40),math.rad(0))},"Quad","Out",0.5)
  3821.  
  3822.  
  3823.  
  3824.  
  3825. -- LAP.Parent = Character
  3826. Swait(0.5*30)
  3827.  
  3828.  
  3829.  
  3830.  
  3831.  
  3832.  
  3833. attack=false
  3834. end
  3835.  
  3836.  
  3837.  
  3838.  
  3839.  
  3840.  
  3841.  
  3842. function Tuant2()
  3843. attack = true
  3844.  
  3845. dancing = true
  3846. while dancing == true do
  3847. local dahspeed=.5+visn/100
  3848. change = (0.60*1)*dahspeed
  3849. Humanoid.JumpPower = 0
  3850. Humanoid.WalkSpeed=2
  3851. local speed = 1 + visn/1000
  3852. 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)
  3853. 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)
  3854. 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)
  3855. 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)
  3856. 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)
  3857. 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)
  3858.  
  3859. Swait()
  3860. end
  3861. Humanoid.JumpPower = 60
  3862. Humanoid.WalkSpeed=16
  3863. attack = false
  3864. end
  3865.  
  3866.  
  3867.  
  3868. function UpdateJets()
  3869. if Jets == true then
  3870. -- Jets=true
  3871. SetTween(RB1,{C0=CF(0,.25,-.05)*ANGLES(mr(25),0,0)},"Back","Out",.5)
  3872. SetTween(RB2,{C0=CF(0,.25,.05)*ANGLES(mr(-25),0,0)},"Back","Out",.5)
  3873. SetTween(LB1,{C0=CF(0,.25,-.05)*ANGLES(mr(25),0,0)},"Back","Out",.5)
  3874. SetTween(LB2,{C0=CF(0,.25,.05)*ANGLES(mr(-25),0,0)},"Back","Out",.5)
  3875. for _,v in next, RightLeg:GetDescendants() do if v:IsA("ParticleEmitter") then v.Enabled = true end end
  3876.  
  3877. for _,v in next, LeftLeg:GetDescendants() do if v:IsA("ParticleEmitter") then v.Enabled = true end end
  3878.  
  3879. else
  3880. -- Jets=false
  3881. SetTween(RB1,{C0=CF(0,-0,0)*ANGLES(0,0,0)},"Back","Out",.5)
  3882. SetTween(RB2,{C0=CF(0,-0,0)*ANGLES(0,0,0)},"Back","Out",.5)
  3883. SetTween(LB1,{C0=CF(0,-0,0)*ANGLES(0,0,0)},"Back","Out",.5)
  3884. SetTween(LB2,{C0=CF(0,-0,0)*ANGLES(0,0,0)},"Back","Out",.5)
  3885. for _,v in next, RightLeg:GetDescendants() do if v:IsA("ParticleEmitter") then v.Enabled = false end end
  3886.  
  3887. for _,v in next, LeftLeg:GetDescendants() do if v:IsA("ParticleEmitter") then v.Enabled = false end end
  3888.  
  3889. end
  3890. end
  3891.  
  3892.  
  3893.  
  3894. function DroneSwarm()
  3895. attack = true
  3896. --[
  3897. local randomtuant = math.random(1,4)
  3898. if randomtuant == 1 then
  3899. so("159972582", Head,2, 1)
  3900. elseif randomtuant == 2 then
  3901. so("159882410", Head,2, 1)
  3902. elseif randomtuant == 3 then
  3903. so("159882578", Head,2, 1)
  3904. elseif randomtuant == 4 then
  3905. so("159882417", Head,2, 1)
  3906. end
  3907. for _,v in pairs(Head:children()) do
  3908. if v:isA("Sound") then
  3909. EffectPack.Echo2:Clone().Parent = v
  3910. EffectPack.PT:Clone().Parent = v
  3911. end
  3912. end
  3913. local fatsavecf = MHIT
  3914. coroutine.resume(coroutine.create(function()
  3915. for i = 1,math.random(2,4) do Swait(math.random(1,10)) SpawnDrone(fatsavecf)
  3916. end end))
  3917. --]]
  3918.  
  3919. for i = 0,1,0.1 do
  3920.  
  3921.  
  3922. change = (0.60*5)
  3923. Humanoid.JumpPower = 10
  3924. Humanoid.WalkSpeed=0
  3925.  
  3926. local speed = 1
  3927.  
  3928.  
  3929. if weps == false then
  3930. 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)
  3931. 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)
  3932. 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)
  3933. else
  3934. 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)
  3935. 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)
  3936. 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)
  3937.  
  3938.  
  3939. end
  3940. 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)
  3941. 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)
  3942. 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)
  3943.  
  3944.  
  3945. Swait()
  3946. end
  3947.  
  3948. for i = 0,3,0.1 do
  3949.  
  3950.  
  3951. change = (0.60*5)
  3952. Humanoid.JumpPower = 10
  3953. Humanoid.WalkSpeed=0
  3954.  
  3955. local speed = 1
  3956.  
  3957.  
  3958. if weps == false then
  3959. 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)
  3960. 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)
  3961. 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)
  3962. else
  3963. 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)
  3964. 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)
  3965. 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)
  3966.  
  3967.  
  3968. end
  3969. 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)
  3970. 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)
  3971. 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)
  3972.  
  3973.  
  3974. Swait()
  3975. end
  3976. attack = false
  3977. end
  3978.  
  3979.  
  3980. ----------------------------------------------------------------------------------------------------
  3981. flying = false
  3982.  
  3983. function FlyMove()
  3984. attack = true
  3985. local NextAnimSpeed=0.1
  3986. local dahspeed=1
  3987. flying = true
  3988. so(2157448269,Torso,2,1)
  3989. Jets = true
  3990. UpdateJets()
  3991. local bg2 = Instance.new("BodyGyro", RootPart)
  3992. for i = 0,1,NextAnimSpeed do Swait()
  3993. local inairvel2 = 0
  3994.  
  3995. Humanoid.PlatformStand = false
  3996. change = (0.60*2)*dahspeed
  3997. Humanoid.JumpPower = 0
  3998. Humanoid.WalkSpeed=0
  3999.  
  4000. coroutine.resume(coroutine.create(function()
  4001.  
  4002. bg2.D = 300
  4003. bg2.P = 9999
  4004. bg2.maxTorque = Vector3.new(1e+005,1e+000,1e+005)*math.huge
  4005. bg2.CFrame = CFrame.new(RootPart.Position,Vector3.new(MHIT.p.x,RootPart.Position.y,MHIT.p.z))
  4006.  
  4007. end))
  4008.  
  4009.  
  4010. local ADNum = 0
  4011. 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)
  4012. 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)
  4013. 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)
  4014. 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)
  4015. 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)
  4016. 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)
  4017.  
  4018.  
  4019.  
  4020. --CGPT:Emit(1)
  4021. end
  4022. if flying==true then
  4023.  
  4024.  
  4025.  
  4026.  
  4027.  
  4028.  
  4029. coroutine.resume(coroutine.create(function()
  4030. while true do
  4031.  
  4032. so("169572883",Torso,3,1.0)
  4033. wait(.5)
  4034. if flying == false then
  4035. break
  4036. end
  4037.  
  4038. end
  4039. end)) end
  4040. if flying == true then
  4041.  
  4042.  
  4043. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, .1, 0)+RootPart.CFrame.lookVector*60, P = 5000, maxForce = Vector3.new(80000, 80000, 80000), Parent = RootPart})
  4044.  
  4045.  
  4046.  
  4047. for i = 1,40,.25 do if flying == true then Swait() end
  4048. local inairvel2 = 0
  4049.  
  4050. Humanoid.PlatformStand = true
  4051. change = (0.60*3)*dahspeed
  4052. Humanoid.JumpPower = 0
  4053. Humanoid.WalkSpeed=0
  4054. coroutine.resume(coroutine.create(function()
  4055.  
  4056. bg2.D = 300
  4057. bg2.P = 9999
  4058. bg2.maxTorque = Vector3.new(1e+005,1e+000,1e+005)*math.huge
  4059. bg2.CFrame = CFrame.new(RootPart.Position,MHIT.p)
  4060.  
  4061. end))
  4062. if OverClocking == false then
  4063. bodyVelocity.velocity=Vector3.new(0, .1, 0)+RootPart.CFrame.lookVector*100
  4064. else
  4065. bodyVelocity.velocity=Vector3.new(0, .1, 0)+RootPart.CFrame.lookVector*200
  4066. end
  4067. if OverClocking == true and flying == true then
  4068. 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("Alder"), 1.5, .9,-.25*2,.55,1)
  4069. end
  4070. local ADNum = 0
  4071. 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)
  4072. 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)
  4073. 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)
  4074. 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)
  4075. 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)
  4076. 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)
  4077.  
  4078.  
  4079.  
  4080. --CGPT:Emit(1)
  4081.  
  4082.  
  4083. end coroutine.resume(coroutine.create(function()
  4084. game:GetService("Debris"):AddItem(bodyVelocity, 0.1) end))
  4085. end
  4086. so(1053625322,LeftLeg,2,0.5)
  4087. so(1053625322,RightLeg,2,0.5)
  4088. for i = 0,1.0,.15 do Swait()
  4089. Humanoid.PlatformStand = false
  4090.  
  4091. local inairvel2 = 0
  4092.  
  4093.  
  4094. change = (0.60*2)*dahspeed
  4095. Humanoid.JumpPower = 0
  4096. Humanoid.WalkSpeed=0
  4097.  
  4098.  
  4099.  
  4100. local ADNum = 0
  4101. 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)
  4102. 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)
  4103. 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)
  4104. 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)
  4105. 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)
  4106. 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)
  4107.  
  4108.  
  4109.  
  4110. coroutine.resume(coroutine.create(function()
  4111.  
  4112. bg2.D = 300
  4113. bg2.P = 9999
  4114. bg2.maxTorque = Vector3.new(1e+005,1e+000,1e+005)*math.huge
  4115. bg2.CFrame = CFrame.new(RootPart.Position,Vector3.new(MHIT.p.x,RootPart.Position.y,MHIT.p.z))
  4116.  
  4117. end))
  4118. end
  4119. wait(.1)
  4120. coroutine.resume(coroutine.create(function()
  4121.  
  4122. bg2:Destroy()
  4123.  
  4124. end))
  4125.  
  4126. coroutine.resume(coroutine.create(function()
  4127.  
  4128. for i = 1,10 do
  4129. for _,v in pairs(Torso:children()) do
  4130. if v:isA("Sound") then
  4131. v.Volume = v.Volume - .2
  4132. end
  4133. end
  4134. Swait()
  4135. end
  4136. end))
  4137. flying = false
  4138. Jets = false
  4139. UpdateJets()
  4140. for i = 0,0.75,.10 do Swait()
  4141. Humanoid.PlatformStand = false
  4142.  
  4143. local inairvel2 = 0
  4144.  
  4145.  
  4146. change = (0.60*2)*dahspeed
  4147. Humanoid.JumpPower = 0
  4148. Humanoid.WalkSpeed=0
  4149.  
  4150.  
  4151.  
  4152. local ADNum = 0
  4153. 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)
  4154. 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)
  4155. 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)
  4156. 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)
  4157. 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)
  4158. 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)
  4159.  
  4160.  
  4161.  
  4162.  
  4163. end
  4164.  
  4165. Humanoid.JumpPower = 20
  4166. Humanoid.WalkSpeed=10
  4167. attack = false
  4168. end
  4169.  
  4170.  
  4171. function Tesla()
  4172. attack=true
  4173. local dahspeed=1
  4174. if attack == true and mememode == true then
  4175. dahspeed=3 --speedstuff --5
  4176. end --/dahspeed
  4177. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50))},"Quad","InOut",.3/dahspeed)
  4178. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50))},"Quad","InOut",.3/dahspeed)
  4179. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(-20))},"Quad","InOut",.3/dahspeed)
  4180. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(-10),math.rad(0),math.rad(-20))},"Quad","InOut",.3/dahspeed)
  4181. SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.3/dahspeed)
  4182. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.3/dahspeed)
  4183.  
  4184. --SetTween(SwordW,{C0=CFrame.new(0,-1,0)*angles(math.rad(-30+90),math.rad(-90),math.rad(0))},"Quad","InOut",.3)
  4185. SetTween(LHP2,{C0=CF(0,0,0)},"Quad","InOut",.1)
  4186. if OverClocking ==true then
  4187.  
  4188. SetTween(LHP.Glow,{Transparency = 1},"Quad","InOut",0.1)
  4189.  
  4190. end
  4191.  
  4192. wait(.3/dahspeed)
  4193. --DGT()
  4194.  
  4195.  
  4196. coroutine.resume(coroutine.create(function()
  4197. so("2924262751", RightArm,4, 1.2)
  4198. wait(.1/dahspeed)
  4199.  
  4200.  
  4201. CFMagniDamage(LeftArm.CFrame,5,40,60,math.random(500,1000)/10,"Knockdown")
  4202.  
  4203.  
  4204. end))
  4205.  
  4206. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-.2)*angles(math.rad(0),math.rad(-0),math.rad(-20))},"Back","Out",.3/dahspeed)
  4207. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(-30),math.rad(-0),math.rad(20))},"Back","Out",.3/dahspeed)
  4208. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(-10),math.rad(0),math.rad(10))},"Back","Out",.3/dahspeed)
  4209. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(150),math.rad(-0),math.rad(-5))},"Back","Out",.4/dahspeed)
  4210. SetTween(RH,{C0=CFrame.new(.5, -.8, -.1)*angles(math.rad(-5),math.rad(0),math.rad(5))},"Back","Out",.3/dahspeed)
  4211. SetTween(LH,{C0=CFrame.new(-.5, -.8, -.1)*angles(math.rad(10),math.rad(40),math.rad(-5))},"Back","Out",.3/dahspeed)
  4212.  
  4213. --SetTween(SwordW,{C0=CFrame.new(0,-1,0)*angles(math.rad(120),math.rad(-90),math.rad(0))},"Back","Out",.15)
  4214.  
  4215. SetTween(LHP2,{C0=CF(0,-.85,0)},"Quad","InOut",0.05)
  4216.  
  4217. if OverClocking ==true then
  4218.  
  4219. SetTween(LHP.Glow,{Transparency = .15},"Quad","InOut",0.05)
  4220.  
  4221. end
  4222. for i = 1,25 do
  4223.  
  4224. local v = findNearestTorso(LHP.Glow.Position,150)
  4225.  
  4226. if v ~= nil then
  4227. Swait(1)
  4228. local lighth2,lightp2,test12 = rayCast(LHP.Glow.CFrame.p, CF(LHP.Glow.CFrame.p,v.Position).lookVector, 150, Character)
  4229.  
  4230. Lightning(LHP.Glow.CFrame.p,lightp2 , 5, 2.6, BrickColor.new("Alder"), 2, .5,-.25*2,.5,nil)
  4231. BulletHitEffectSpawn(CF(lightp2,lightp2+test12),"Spark")
  4232.  
  4233. CFMagniDamage(CF(lightp2),10,45,80,50,"Knockdown")
  4234. else
  4235. Swait(.3*30)
  4236. break
  4237. end
  4238.  
  4239. end
  4240.  
  4241.  
  4242.  
  4243.  
  4244.  
  4245.  
  4246.  
  4247. SetTween(LHP2,{C0=CF(0,0,0)},"Quad","InOut",.25)
  4248. SetTween(LHP.Glow,{Transparency = 1},"Quad","InOut",0.25)
  4249. attack = false
  4250. end
  4251.  
  4252.  
  4253. --[[
  4254.  
  4255. function AT1()
  4256. attack=true
  4257. local dahspeed=1
  4258. if attack == true and mememode == true then
  4259. dahspeed=3 --speedstuff --5
  4260. end --/dahspeed
  4261. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50))},"Quad","InOut",.3/dahspeed)
  4262. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50))},"Quad","InOut",.3/dahspeed)
  4263. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(30),math.rad(0),math.rad(-20))},"Quad","InOut",.3/dahspeed)
  4264. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(60),math.rad(0),math.rad(-0))},"Quad","InOut",.3/dahspeed)
  4265. SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.3/dahspeed)
  4266. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.3/dahspeed)
  4267.  
  4268. --SetTween(SwordW,{C0=CFrame.new(0,-1,0)*angles(math.rad(-30+90),math.rad(-90),math.rad(0))},"Quad","InOut",.3)
  4269. SetTween(LHP2,{C0=CF(0,0,0)},"Quad","InOut",.1)
  4270. if OverClocking ==true then
  4271.  
  4272. SetTween(LHP.Glow,{Transparency = 1},"Quad","InOut",0.1)
  4273.  
  4274. end
  4275.  
  4276. wait(.3/dahspeed)
  4277. --DGT()
  4278.  
  4279.  
  4280.  
  4281.  
  4282.  
  4283.  
  4284.  
  4285.  
  4286.  
  4287.  
  4288. coroutine.resume(coroutine.create(function()
  4289. so("1428541279", RightArm,1.6, math.random(120,220)/100)
  4290. wait(.1/dahspeed)
  4291.  
  4292. if OverClocking ==false then
  4293. CFMagniDamage(LeftArm.CFrame,5,40,60,math.random(500,1000)/10,"Knockdown")
  4294.  
  4295. else
  4296.  
  4297. local v = findNearestTorso(LHP.Glow.Position,20)
  4298.  
  4299. if v ~= nil then
  4300.  
  4301. Lightning(LHP.Glow.CFrame.p,v.Position, 10, 0.6, BrickColor.new("Alder"), .5, .5,-.25*2,.5,nil)
  4302. Lightning(LHP.Glow.CFrame.p,v.Position, 10, 0.6, BrickColor.new("Alder"), .5, .5,-.25*2,.5,nil)
  4303.  
  4304. CFMagniDamage(LHP.Glow.CFrame,20,45,80,math.random(320,520)/10,"Knockdown")
  4305.  
  4306. end
  4307.  
  4308. end
  4309. end))
  4310.  
  4311. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-.4)*angles(math.rad(0),math.rad(-40),math.rad(-60))},"Back","Out",.1/dahspeed)
  4312. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(60))},"Back","Out",.1/dahspeed)
  4313. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(90),math.rad(0),math.rad(-40))},"Back","Out",.1/dahspeed)
  4314. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(90),math.rad(-45),math.rad(-30))},"Back","Out",.1/dahspeed)
  4315. SetTween(RH,{C0=CFrame.new(.5, -.8, -.6)*angles(math.rad(-20),math.rad(0),math.rad(40))},"Back","Out",.1/dahspeed)
  4316. SetTween(LH,{C0=CFrame.new(-.5, -.8, -.5)*angles(math.rad(30),math.rad(0),math.rad(20))},"Back","Out",.1/dahspeed)
  4317.  
  4318. --SetTween(SwordW,{C0=CFrame.new(0,-1,0)*angles(math.rad(120),math.rad(-90),math.rad(0))},"Back","Out",.15)
  4319.  
  4320. SetTween(LHP2,{C0=CF(0,-.85,0)},"Quad","InOut",0.05)
  4321.  
  4322. if OverClocking ==true then
  4323.  
  4324. SetTween(LHP.Glow,{Transparency = .75},"Quad","InOut",0.05)
  4325.  
  4326. end
  4327.  
  4328.  
  4329. wait(.15/dahspeed)
  4330.  
  4331. SetTween(LHP2,{C0=CF(0,0,0)},"Quad","InOut",.25)
  4332. SetTween(LHP.Glow,{Transparency = 1},"Quad","InOut",0.25)
  4333. attack = false
  4334. end
  4335. --]]
  4336.  
  4337.  
  4338.  
  4339.  
  4340.  
  4341.  
  4342.  
  4343. function AT1()
  4344. attack=true
  4345. local dahspeed=1
  4346. if attack == true and mememode == true then
  4347. dahspeed=3 --speedstuff --5
  4348. end --/dahspeed
  4349. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50))},"Quad","InOut",.3/dahspeed)
  4350. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50))},"Quad","InOut",.3/dahspeed)
  4351. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(30),math.rad(0),math.rad(-20))},"Quad","InOut",.3/dahspeed)
  4352. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(60),math.rad(0),math.rad(-0))},"Quad","InOut",.3/dahspeed)
  4353. SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.3/dahspeed)
  4354. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.3/dahspeed)
  4355.  
  4356. --SetTween(SwordW,{C0=CFrame.new(0,-1,0)*angles(math.rad(-30+90),math.rad(-90),math.rad(0))},"Quad","InOut",.3)
  4357. SetTween(LHP2,{C0=CF(0,0,0)},"Quad","InOut",.1)
  4358. if OverClocking ==true then
  4359.  
  4360. SetTween(LHP.Glow,{Transparency = 1},"Quad","InOut",0.1)
  4361.  
  4362. end
  4363.  
  4364. wait(.3/dahspeed)
  4365. --DGT()
  4366.  
  4367.  
  4368.  
  4369.  
  4370.  
  4371.  
  4372.  
  4373.  
  4374.  
  4375.  
  4376. coroutine.resume(coroutine.create(function()
  4377. so("1428541279", RightArm,1.6, math.random(120,220)/100)
  4378. wait(.1/dahspeed)
  4379.  
  4380. if OverClocking ==false then
  4381. CFMagniDamage(LeftArm.CFrame,5,40,60,math.random(500,1000)/10,"Knockdown")
  4382.  
  4383. else
  4384.  
  4385. local v = findNearestTorso(LHP.Glow.Position,20)
  4386.  
  4387. if v ~= nil then
  4388.  
  4389. Lightning(LHP.Glow.CFrame.p,v.Position, 10, 0.6, BrickColor.new("Alder"), .5, .5,-.25*2,.5,nil)
  4390. Lightning(LHP.Glow.CFrame.p,v.Position, 10, 0.6, BrickColor.new("Alder"), .5, .5,-.25*2,.5,nil)
  4391.  
  4392. CFMagniDamage(LHP.Glow.CFrame,20,45,80,math.random(320,520)/10,"Knockdown")
  4393.  
  4394. end
  4395.  
  4396. end
  4397. end))
  4398.  
  4399. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-.4)*angles(math.rad(0),math.rad(-40),math.rad(-60))},"Back","Out",.1/dahspeed)
  4400. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(60))},"Back","Out",.1/dahspeed)
  4401. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(90),math.rad(0),math.rad(-40))},"Back","Out",.1/dahspeed)
  4402. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(90),math.rad(-45),math.rad(-30))},"Back","Out",.1/dahspeed)
  4403. SetTween(RH,{C0=CFrame.new(.5, -.8, -.6)*angles(math.rad(-20),math.rad(0),math.rad(40))},"Back","Out",.1/dahspeed)
  4404. SetTween(LH,{C0=CFrame.new(-.5, -.8, -.5)*angles(math.rad(30),math.rad(0),math.rad(20))},"Back","Out",.1/dahspeed)
  4405.  
  4406. --SetTween(SwordW,{C0=CFrame.new(0,-1,0)*angles(math.rad(120),math.rad(-90),math.rad(0))},"Back","Out",.15)
  4407.  
  4408. SetTween(LHP2,{C0=CF(0,-.85,0)},"Quad","InOut",0.05)
  4409.  
  4410. if OverClocking ==true then
  4411.  
  4412. SetTween(LHP.Glow,{Transparency = .75},"Quad","InOut",0.05)
  4413.  
  4414. end
  4415.  
  4416.  
  4417. wait(.15/dahspeed)
  4418.  
  4419. SetTween(LHP2,{C0=CF(0,0,0)},"Quad","InOut",.25)
  4420. SetTween(LHP.Glow,{Transparency = 1},"Quad","InOut",0.25)
  4421. attack = false
  4422. end
  4423.  
  4424. function AT2()
  4425. attack=true
  4426. local dahspeed=1
  4427.  
  4428. Humanoid.WalkSpeed=5
  4429. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(60))},"Quad","InOut",0.15)
  4430. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(-60))},"Quad","InOut",0.15)
  4431. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.15)
  4432. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",0.15)
  4433. SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(-20),math.rad(-30),math.rad(0))},"Quad","InOut",0.15)
  4434. SetTween(LH,{C0=CFrame.new(-.5, -.95, -.4)*angles(math.rad(-20),math.rad(-30),math.rad(0))},"Quad","InOut",0.15)
  4435.  
  4436.  
  4437.  
  4438.  
  4439. if OverClocking == false then
  4440. Swait((0.15/dahspeed)*30)
  4441. else Swait()
  4442. end so("1428541279", RightArm,1.6, math.random(120,220)/100)
  4443. local RootAndMouse = CF(RootPart.Position ,RootPart.Position+CF(RootPart.Position*VT(1,0,1),MHIT.p*VT(1,0,1)).LookVector)
  4444. SetTween(RootPart,{CFrame=RootAndMouse*CF(0,0,-1)},"Back","Out",0.1)
  4445.  
  4446.  
  4447. CFMagniDamage(LeftArm.CFrame*CF(0,-1,-0),7,10,15,4,"Normal")
  4448. Humanoid.WalkSpeed=16
  4449. SetTween(RJW,{C0=RootCF*CFrame.new(0,-1,0)*angles(math.rad(5),math.rad(0),math.rad(-50))},"Back","Out",0.1)
  4450. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(50))},"Back","Out",0.15)
  4451. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Back","Out",0.1)
  4452. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(90),math.rad(math.random(-20,20)),math.rad(-50))},"Back","Out",0.1)
  4453. SetTween(RH,{C0=CFrame.new(.5, -1, -0)*angles(math.rad(-20),math.rad(20),math.rad(10))},"Back","Out",0.1)
  4454. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(10),math.rad(40),math.rad(-10))},"Back","Out",0.1)
  4455.  
  4456. if OverClocking == false then
  4457. Swait((0.1/dahspeed)*30)
  4458. else Swait()
  4459. end
  4460. attack = false
  4461. end
  4462.  
  4463. function AT3()
  4464. attack=true
  4465. local dahspeed=1
  4466. --/dahspeed
  4467. Humanoid.WalkSpeed=5
  4468. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-60))},"Quad","InOut",0.15)
  4469. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(60))},"Quad","InOut",0.15)
  4470. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",0.15)
  4471. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.15)
  4472. SetTween(RH,{C0=CFrame.new(.5, -.95, -.4)*angles(math.rad(-20),math.rad(-30),math.rad(0))},"Quad","InOut",0.15)
  4473. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(-20),math.rad(-30),math.rad(0))},"Quad","InOut",0.15)
  4474.  
  4475. if OverClocking == false then
  4476. Swait((0.15/dahspeed)*30)
  4477. else Swait()
  4478. end so("1428541279", RightArm,1.6, math.random(120,220)/100)
  4479. local RootAndMouse = CF(RootPart.Position ,RootPart.Position+CF(RootPart.Position*VT(1,0,1),MHIT.p*VT(1,0,1)).LookVector)
  4480.  
  4481. SetTween(RootPart,{CFrame=RootAndMouse*CF(0,0,-1)},"Back","Out",0.1)
  4482.  
  4483. CFMagniDamage(RightArm.CFrame*CF(0,-1,-0),7,10,15,4,"Normal")
  4484. Humanoid.WalkSpeed=16
  4485. SetTween(RJW,{C0=RootCF*CFrame.new(0,-1,0)*angles(math.rad(5),math.rad(0),math.rad(50))},"Back","Out",0.1)
  4486. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-50))},"Back","Out",0.1)
  4487. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(90),math.rad(math.random(-20,20)),math.rad(50))},"Back","Out",0.1)
  4488. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Back","Out",0.1)
  4489. SetTween(RH,{C0=CFrame.new(.5, -1, -0)*angles(math.rad(10),math.rad(-40),math.rad(10))},"Back","Out",0.1)
  4490. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(-20),math.rad(-20),math.rad(-10))},"Back","Out",0.1)
  4491.  
  4492.  
  4493. if OverClocking == false then
  4494. Swait((0.1/dahspeed)*30)
  4495. else Swait()
  4496. end
  4497.  
  4498.  
  4499.  
  4500. attack = false
  4501. end
  4502.  
  4503.  
  4504.  
  4505.  
  4506.  
  4507.  
  4508.  
  4509.  
  4510.  
  4511.  
  4512.  
  4513.  
  4514.  
  4515.  
  4516.  
  4517.  
  4518.  
  4519.  
  4520.  
  4521.  
  4522.  
  4523. gui = Instance.new("ScreenGui",Player.PlayerGui)
  4524. gui.Name = "Xgui"
  4525. guifat = Instance.new("Frame",gui)
  4526. guifat.Size = UDim2.new(1, 0, 1, 36)
  4527. guifat.Position = UDim2.new(0, 0, 0, -36)
  4528. guifat.Name = "FAT"
  4529. guifat.BackgroundTransparency = 1
  4530. viewport = Instance.new("ViewportFrame",guifat)
  4531. viewport.Size = UDim2.new(1, 0, 1, 0)
  4532. viewport.BackgroundTransparency = 1
  4533. viewport.BackgroundColor3 = C3(1,1,1)
  4534. function AddstuffinXray()
  4535. for _,v in next, workspace:GetDescendants() do if v:IsA("Humanoid")and v~=Humanoid then
  4536. print(""..v.Parent.Name)
  4537. for _,v2 in next, v.Parent:GetDescendants() do
  4538. if v2:IsA("BasePart") then
  4539. -- print(""..v2.Name)
  4540. local Xpart = EffectPack.Part:Clone()
  4541. Xpart.Parent = viewport
  4542. Xpart.Name = "Xray"
  4543. Xpart.Size = v2.Size+VT(0.05,0.05,0.05)
  4544. Xpart.Material = "ForceField"
  4545. Xpart.Transparency = 0
  4546. Xpart.CFrame = v2.CFrame
  4547.  
  4548. if v2:FindFirstChildOfClass("SpecialMesh") then
  4549. coroutine.resume(coroutine.create(function()
  4550. v2:FindFirstChildOfClass("SpecialMesh").Archivable = false
  4551.  
  4552. local clone = v2:FindFirstChildOfClass("SpecialMesh").Clone()
  4553. clone.Parent = Xpart end))
  4554. end
  4555.  
  4556. local value = Instance.new("ObjectValue",Xpart)
  4557. value.Value = v2
  4558. value.Name = "val"
  4559. Xpart.BrickColor = BrickColor.new("Alder")
  4560. --local Xweld=weld(Xpart,v2,Xpart,cf(0,0,0))
  4561. end
  4562.  
  4563. end
  4564.  
  4565.  
  4566. end end
  4567.  
  4568. end
  4569.  
  4570.  
  4571.  
  4572. function Attack6()
  4573. SetTween(viewport,{BackgroundTransparency=.15,BackgroundColor3 = C3(0,0,0)},"Bounce","InOut",.25)
  4574. IsXray = true
  4575.  
  4576.  
  4577. print("ran")
  4578.  
  4579.  
  4580. AddstuffinXray()
  4581. local updatetimer = 0
  4582.  
  4583. while IsXray == true do Swait(5) print("E")
  4584. updatetimer=updatetimer+1
  4585. if updatetimer > 10 then
  4586. updatetimer=0
  4587. for _,v in next, viewport:GetDescendants() do
  4588. v:Destroy()
  4589. end
  4590. AddstuffinXray()
  4591.  
  4592. end
  4593. end
  4594.  
  4595.  
  4596. SetTween(viewport,{BackgroundTransparency=1,BackgroundColor3 = C3(1,1,1)},"Bounce","InOut",.5)
  4597. for _,v in next, viewport:GetDescendants() do
  4598. v:Destroy()
  4599. end
  4600.  
  4601.  
  4602. end
  4603.  
  4604. function ClickCombo()
  4605. if Anim == "Fall" or Anim == "Jump" then
  4606. if Combo == 0 then
  4607. --DownAT()
  4608. end
  4609. else
  4610. if Combo == 4 then
  4611. AT1()
  4612. Combo = 1
  4613. elseif Combo == 0 then
  4614. AT2()
  4615. Combo = 1
  4616. elseif Combo == 1 then
  4617. AT3()
  4618. Combo = 0
  4619. end
  4620. end
  4621. end
  4622.  
  4623.  
  4624.  
  4625.  
  4626. Button1DownF=function()
  4627. Hold = true
  4628.  
  4629.  
  4630. if weps and attack == false then
  4631. for _,v in next, SpinnyThingy:GetDescendants() do if v:IsA("ParticleEmitter") or v:IsA("SpotLight") then v.Enabled = true end end
  4632. Swait(.25*30)
  4633. spinto = 35
  4634. if Hold == true then
  4635. while Hold == true do coroutine.resume(coroutine.create(function()
  4636.  
  4637. local pipe = SpinnyThingy["Hole"..math.random(1,4)]
  4638. if OverClocking == false then
  4639. local lighth,lightp,test1 = rayCast(pipe.CFrame.p, CFrame.new(pipe.CFrame.p, MHIT.p).lookVector, 70, Character)
  4640. so("419268760", pipe,2, 1.2)
  4641. Lightning(pipe.CFrame.p,lightp , 5, .5, BrickColor.new("Alder"), .15, 0,-.25*2,.5,nil)
  4642. BulletHitEffectSpawn(CF(lightp,lightp+test1),"Spark")
  4643. CFMagniDamage(CF(lightp),10,5,10,10,"Knockdown")
  4644. else
  4645. local lighth,lightp,test1 = rayCast(pipe.CFrame.p, CFrame.new(pipe.CFrame.p, MHIT.p).lookVector, 570, Character)
  4646. so("419268760", pipe,2, 1)
  4647. Lightning(pipe.CFrame.p,lightp , 5, 1.5, BrickColor.new("Alder"), .5, 0,-.25*2,.5,nil)
  4648. BulletHitEffectSpawn(CF(lightp,lightp+test1),"Spark")
  4649. CFMagniDamage(CF(lightp-(CFrame.new(pipe.CFrame.p, lightp).lookVector*5)),10,50,75,50,"Knockdown")
  4650.  
  4651. end
  4652.  
  4653. end))-- so("1273118342", RightArm,2, math.random(10,20)/10)
  4654.  
  4655.  
  4656. local mathstuff = spin
  4657. if mathstuff<0.05 then
  4658. mathstuff = .5
  4659. end
  4660. if mathstuff > spinto then
  4661. mathstuff = spinto
  4662. end
  4663. local mathEEEE = 6*(1.35-(mathstuff/spinto))
  4664. --print(mathEEEE)
  4665. Swait(mathEEEE) end
  4666. end
  4667. end
  4668. if Hold == true then
  4669. if weps == false and attack == false then
  4670. while Hold == true do
  4671. if attack == false then
  4672. ClickCombo()
  4673. else
  4674. Swait()
  4675. end
  4676. end
  4677. end
  4678. end
  4679.  
  4680. end
  4681.  
  4682.  
  4683.  
  4684. Button1UpF=function()
  4685.  
  4686. if Hold==true then
  4687.  
  4688. Hold = false
  4689. spinto = 1
  4690. for _,v in next, SpinnyThingy:GetDescendants() do if v:IsA("ParticleEmitter") or v:IsA("SpotLight") then v.Enabled = false end end
  4691.  
  4692. end
  4693.  
  4694. end
  4695.  
  4696. so("420194643", Head,1, 1)
  4697.  
  4698.  
  4699. KeyUpF=function(key)
  4700.  
  4701. if key == "e" then
  4702. if flying == true then
  4703. flying=false
  4704. end
  4705.  
  4706. end
  4707.  
  4708. end
  4709.  
  4710. KeyDownF=function(key)
  4711. if key == "f" and attack == false and (weps == false or Hold == false) then
  4712.  
  4713. if weps == false then
  4714. weps = true else weps = false
  4715. end
  4716. if weps == true then
  4717. so("420194643", Head.Handle,1, .8)
  4718. so("420997245", Head.Handle,5, 0.7)
  4719. for _,v in pairs(Head.Handle:children()) do
  4720. if v:isA("Sound") then
  4721. EffectPack.Echo:Clone().Parent = v
  4722. end
  4723. end
  4724. coroutine.resume(coroutine.create(function()
  4725. MiniGun.Lighter.Fire.Enabled = true end))
  4726. SetTween(FlameW,{C0=CF(0,-.5,0)},"Back","Out",1)
  4727. --SetTween(H1a,{C0=CF(0,.85,-.85)*ANGLES(mr(90),0,0)},"Quad","In",1)
  4728.  
  4729. --SetTween(RightArm.Lower,{Transparency = 1},"Quad","Out",0.8)
  4730.  
  4731. SetTween(Fg1,{C0=CF(-.0,.25,-.0)*ANGLES(mr(25),mr(0),mr(-15))},"Back","Out",.5)
  4732. SetTween(Fg2,{C0=CF(.0,.25,-.0)*ANGLES(mr(25),mr(0),mr(15))},"Back","Out",.5)
  4733. SetTween(Fg3,{C0=CF(.0,.25,.0)*ANGLES(mr(-25),mr(0),mr(15))},"Back","Out",.5)
  4734. SetTween(Fg4,{C0=CF(-.0,.25,.0)*ANGLES(mr(-25),mr(0),mr(-15))},"Back","Out",.5)
  4735.  
  4736.  
  4737.  
  4738. else
  4739. so("420194643", Head.Handle,1, 1)
  4740. so("332757260", Head.Handle,3, 1.75)
  4741.  
  4742. for _,v in pairs(Head.Handle:children()) do
  4743. if v:isA("Sound") then
  4744. EffectPack.Echo:Clone().Parent = v
  4745. end
  4746. end
  4747. coroutine.resume(coroutine.create(function()
  4748. MiniGun.Lighter.Fire.Enabled = false end))
  4749. SetTween(FlameW,{C0=CF(0,0,0)*ANGLES(0,0,0)},"Quad","Out",.5)
  4750. SetTween(H1a,{C0=CF(0,.5,-.4)},"Quad","InOut",.5)
  4751.  
  4752. --SetTween(RightArm.Lower,{Transparency = 0},"Quad","In",1)
  4753.  
  4754. SetTween(Fg1,{C0=CF(0,-0,0)},"Quad","In",.5)
  4755. SetTween(Fg2,{C0=CF(0,-0,0)},"Quad","In",.5)
  4756. SetTween(Fg3,{C0=CF(0,-0,0)},"Quad","In",.5)
  4757. SetTween(Fg4,{C0=CF(0,-0,0)},"Quad","In",.5)
  4758.  
  4759. --SetTween(MX1w,{C0=CF(0,0,.15)*ANGLES(mr(90),0,0)},"Back","Out",1/2)
  4760.  
  4761. wait(.25)
  4762. SetTween(MX1w,{C0=CF(0,-.7,-.25)},"Quad","InOut",.25)
  4763. end
  4764.  
  4765. end
  4766. if key == "z" and attack == false and weps == true then
  4767. Attack1()
  4768. end
  4769. if key == "x" and attack == false and weps == false and OverClocking == true then
  4770. Tesla()
  4771. end
  4772.  
  4773. if key == "x" and attack == false and weps == true then
  4774. Attack2()
  4775. end
  4776.  
  4777. if key == "c" and attack == false and weps == false then
  4778. Attack3()
  4779. end
  4780.  
  4781. if key == "e" and attack == false then
  4782. FlyMove()
  4783. end
  4784. if key == "y" then
  4785. if dancing == false and attack == false then
  4786. Tuant2()
  4787. elseif dancing == true and attack == true then
  4788. dancing = false
  4789. end
  4790.  
  4791.  
  4792. end
  4793. if key == "v" and attack == false and weps == true then
  4794.  
  4795. DroneSwarm()
  4796.  
  4797. end
  4798.  
  4799.  
  4800.  
  4801. if key == "q" and attack == false then
  4802. if OverClocking == false then
  4803. CurId=CurId-1
  4804. OverClocking = true
  4805. for i = 1,4 do
  4806. for _,v in next, Character:GetDescendants() do if v:IsA("ParticleEmitter") and v.Name == "OverClock"..i then v.Enabled = true end end
  4807. end
  4808. lastid= "http://www.roblox.com/asset/?id=3608582022"--281702063 281702063
  4809.  
  4810. lastsongpos = 0
  4811. s2.TimePosition = lastsongpos
  4812.  
  4813. so(254873067,Torso,2,1)
  4814. so(1567217295,Torso,3,.8)
  4815. so(147060085,Torso,5,1)
  4816.  
  4817. else
  4818. OverClocking = false
  4819. for i = 1,4 do
  4820. for _,v in next, Character:GetDescendants() do if v:IsA("ParticleEmitter") and v.Name == "OverClock"..i then v.Enabled = false end end
  4821. end
  4822.  
  4823. end
  4824.  
  4825.  
  4826.  
  4827. KeyDownF("n")
  4828.  
  4829. end
  4830.  
  4831.  
  4832.  
  4833.  
  4834.  
  4835. if key == "k" and attack == false then
  4836. --Attack5()
  4837. end
  4838. if key == "g" and attack == false then
  4839. if IsXray == false then
  4840. Attack6()
  4841. else
  4842. IsXray = false
  4843. end
  4844. end
  4845. if key == "t" and attack == false then
  4846. --Tuant()
  4847. attack = true
  4848. so("3319136635", Head,2, 1.2)
  4849. for _,v in pairs(Head:children()) do
  4850. if v:isA("Sound") then
  4851. EffectPack.Echo2:Clone().Parent = v
  4852. EffectPack.PT:Clone().Parent = v
  4853. end
  4854. end
  4855.  
  4856.  
  4857.  
  4858. local animtime = .25
  4859. Humanoid.JumpPower = 10
  4860. Humanoid.WalkSpeed=0
  4861.  
  4862.  
  4863. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(-20))},"Quad","InOut",animtime)
  4864. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(20))},"Quad","InOut",animtime)
  4865. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",animtime)
  4866. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",animtime)
  4867. SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(20),math.rad(-40),math.rad(0))},"Quad","InOut",animtime)
  4868. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(20),math.rad(40),math.rad(0))},"Quad","InOut",animtime)
  4869.  
  4870. Swait(animtime*30)
  4871.  
  4872.  
  4873.  
  4874. change = (0.60*3)
  4875.  
  4876.  
  4877. animtime = .75
  4878.  
  4879. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(20))},"Back","Out",animtime)
  4880. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(-20))},"Back","Out",animtime)
  4881. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(120),math.rad(0),math.rad(45))},"Back","Out",animtime)
  4882. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(120),math.rad(0),math.rad(-45))},"Back","Out",animtime)
  4883. SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Back","Out",animtime)
  4884. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Back","Out",animtime)
  4885.  
  4886.  
  4887. Swait(animtime*30)
  4888.  
  4889. animtime = .75
  4890.  
  4891. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-0))},"Back","Out",animtime)
  4892. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0))},"Back","Out",animtime)
  4893. SetTween(RW,{C0=CFrame.new(1.35 , 0.5, -.30)*angles(math.rad(95),math.rad(15),math.rad(-45))},"Back","Out",animtime)
  4894. SetTween(LW,{C0=CFrame.new(-1.35, 0.5, -.30)*angles(math.rad(95),math.rad(-15),math.rad(45))},"Back","Out",animtime)
  4895. SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(0),math.rad(-0),math.rad(0))},"Back","Out",animtime)
  4896. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(0),math.rad(20),math.rad(0))},"Back","Out",animtime)
  4897.  
  4898. Swait(animtime*30)
  4899. animtime = .55
  4900.  
  4901. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-0))},"Back","Out",animtime)
  4902. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Back","Out",animtime)
  4903. SetTween(RW,{C0=CFrame.new(1.35 , 0.5, -.30)*angles(math.rad(100),math.rad(0),math.rad(-45))},"Back","Out",animtime)
  4904. SetTween(LW,{C0=CFrame.new(-1.35, 0.5, -.30)*angles(math.rad(100),math.rad(-0),math.rad(45))},"Back","Out",animtime)
  4905. SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(0),math.rad(-0),math.rad(0))},"Back","Out",animtime)
  4906. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(0),math.rad(20),math.rad(0))},"Back","Out",animtime)
  4907.  
  4908. Swait(animtime*30)
  4909.  
  4910.  
  4911.  
  4912.  
  4913.  
  4914.  
  4915.  
  4916. CurId = CurId + 1
  4917.  
  4918. if CurId > 18 then
  4919. CurId = 1
  4920.  
  4921. end
  4922. warn("now playing song Nr"..CurId)
  4923. if CurId == 1 then
  4924. lastid= "http://www.roblox.com/asset/?id=2984992418"
  4925. elseif CurId == 2 then
  4926. lastid= "http://www.roblox.com/asset/?id=553963314"
  4927. elseif CurId == 3 then
  4928. lastid= "http://www.roblox.com/asset/?id=3208408844"
  4929. elseif CurId == 4 then
  4930. lastid= "http://www.roblox.com/asset/?id=3596306003"
  4931. elseif CurId == 5 then
  4932. lastid= "http://www.roblox.com/asset/?id=3603658387"
  4933. elseif CurId == 6 then
  4934. lastid= "http://www.roblox.com/asset/?id=3603697639"
  4935. elseif CurId == 7 then
  4936. lastid= "http://www.roblox.com/asset/?id=571227431"
  4937. elseif CurId == 8 then
  4938. lastid= "http://www.roblox.com/asset/?id=172576479"
  4939. elseif CurId == 9 then
  4940. lastid= "http://www.roblox.com/asset/?id=2808524036"
  4941. elseif CurId == 10 then
  4942. lastid= "http://www.roblox.com/asset/?id=1646375621"
  4943.  
  4944. elseif CurId == 11 then
  4945. lastid= "http://www.roblox.com/asset/?id=1349958157"
  4946. elseif CurId == 12 then
  4947. lastid= "http://www.roblox.com/asset/?id=1755770760"
  4948. elseif CurId == 13 then
  4949. lastid= "http://www.roblox.com/asset/?id=2577867501"
  4950. elseif CurId == 14 then
  4951. lastid= "http://www.roblox.com/asset/?id=340265439"
  4952. elseif CurId == 15 then
  4953. lastid= "http://www.roblox.com/asset/?id=2441582257"
  4954. elseif CurId == 16 then
  4955. lastid= "http://www.roblox.com/asset/?id=2496523226"
  4956. elseif CurId == 17 then
  4957. lastid= "http://www.roblox.com/asset/?id=283208073"
  4958. elseif CurId == 18 then
  4959. lastid= "http://www.roblox.com/asset/?id=2279798034"
  4960.  
  4961. end
  4962.  
  4963.  
  4964. lastsongpos = 0
  4965. s2.TimePosition = lastsongpos
  4966.  
  4967.  
  4968. end
  4969.  
  4970.  
  4971. end
  4972.  
  4973. local OverClockEffect1 = EffectPack.OverClock1:Clone()
  4974. OverClockEffect1.Parent = Torso
  4975. OverClockEffect1.Enabled = false
  4976. local OverClockEffect2 = EffectPack.OverClock2:Clone()
  4977. OverClockEffect2.Parent = Torso
  4978. OverClockEffect2.Enabled = false
  4979. local OverClockEffect3 = EffectPack.OverClock3:Clone()
  4980. OverClockEffect3.Parent = Torso
  4981. OverClockEffect3.Enabled = false
  4982.  
  4983. coroutine.resume(coroutine.create(function()
  4984. local OverClockEffect4 = EffectPack.OverClock4:Clone()
  4985. OverClockEffect4.Enabled = false
  4986. OverClockEffect4.Parent = Torso
  4987. OverClockEffect4:Clone().Parent = Head
  4988. OverClockEffect4:Clone().Parent = RightArm
  4989. OverClockEffect4:Clone().Parent = LeftArm
  4990. OverClockEffect4:Clone().Parent = RightLeg
  4991. OverClockEffect4:Clone().Parent = LeftLeg
  4992.  
  4993. end))
  4994.  
  4995.  
  4996.  
  4997.  
  4998.  
  4999.  
  5000.  
  5001.  
  5002.  
  5003.  
  5004.  
  5005.  
  5006.  
  5007. coroutine.resume(coroutine.create(function()
  5008. while Humanoid.Health>0.001 do
  5009. sine = sine + change
  5010. hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  5011.  
  5012. local torvel = (Humanoid.MoveDirection * Vector3.new(1, 0, 1)).magnitude
  5013. local velderp = RootPart.Velocity.y
  5014. if RootPart.Velocity.y > 1 and hitfloor == nil then
  5015. Anim = "Jump"
  5016.  
  5017. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  5018. Anim = "Fall"
  5019. elseif Humanoid.Sit == true then
  5020. Anim = "Sit"
  5021. elseif torvel < .5 and hitfloor ~= nil then
  5022. Anim = "Idle"
  5023. elseif torvel > .5 and hitfloor ~= nil then
  5024.  
  5025. Anim = "Walk"
  5026.  
  5027.  
  5028.  
  5029.  
  5030. else
  5031. Anim = ""
  5032.  
  5033. end
  5034.  
  5035.  
  5036. local Ccf=Torso.CFrame
  5037. --warn(Humanoid.MoveDirection*RootPart.CFrame.lookVector)
  5038. local Walktest1 = Humanoid.MoveDirection*Ccf.LookVector
  5039. local Walktest2 = Humanoid.MoveDirection*Ccf.RightVector
  5040. --warn(Walktest1.Z.."/"..Walktest1.X)
  5041. --warn(Walktest2.Z.."/"..Walktest2.X)
  5042. forWFB = Walktest1.X+Walktest1.Z
  5043. forWRL = Walktest2.X+Walktest2.Z
  5044.  
  5045.  
  5046.  
  5047.  
  5048.  
  5049. --print(Humanoid.MoveDirection)
  5050. --warn(Torso.CFrame.lookVector)
  5051.  
  5052. spin = (vt(0,spin,0):Lerp(vt(0,spinto,0),.05)).Y
  5053. spinrad = spinrad + spin
  5054. coroutine.resume(coroutine.create(function()
  5055.  
  5056.  
  5057. if s2.Parent == nil or s2 == nil then
  5058.  
  5059. s2 = s2c:Clone()
  5060. s2.Parent = Torso
  5061. s2.Name = "BGMusic"
  5062. -- s2.SoundId = lastid
  5063. s2.Pitch = 1
  5064. s2.Volume = 1.5
  5065. s2.Looped = true
  5066. s2.archivable = false
  5067. s2.TimePosition = lastsongpos
  5068. if playsong == true then
  5069. s2:play()
  5070. elseif playsong == false then
  5071. s2:stop()
  5072. end
  5073.  
  5074.  
  5075. else
  5076. lastsongpos=s2.TimePosition
  5077. s2.Pitch = 1
  5078.  
  5079. s2.Volume = 1.5
  5080. s2.Name = "BGMusic"
  5081. s2.Looped = true
  5082. s2.SoundId = lastid
  5083. s2.EmitterSize = 30
  5084. end
  5085.  
  5086.  
  5087.  
  5088. end))
  5089.  
  5090.  
  5091.  
  5092.  
  5093. inairvel=torvel*1
  5094.  
  5095. --forWRL
  5096. if inairvel > 30 then
  5097. inairvel=30
  5098. end
  5099. inairvel=inairvel/50*2
  5100.  
  5101. SetTween(SpinnyThingyWeld,{C0=ANGLES(mr(spinrad),0,0)},"Quad","Out",0.055)
  5102.  
  5103.  
  5104. if attack == false then
  5105. if Anim == "Jump" then
  5106. change = 0.60*2
  5107. 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)
  5108. 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)
  5109. 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)
  5110. 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)
  5111. 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)
  5112. 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)
  5113.  
  5114.  
  5115.  
  5116. elseif Anim == "Fall" then
  5117. change = 0.60*2
  5118. 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)
  5119. 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)
  5120. 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)
  5121. 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)
  5122. 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)
  5123. 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)
  5124.  
  5125. elseif Hold == true and weps == true then
  5126.  
  5127.  
  5128. change = (0.60*1)*1
  5129. Humanoid.JumpPower = 0
  5130. Humanoid.WalkSpeed=0
  5131.  
  5132. local speed = .85
  5133.  
  5134. local ADNum = 1
  5135.  
  5136. SetTween(RJW,{C0=RootCF*cn(0, 0, -0.1 + 0.0395 * math.cos(sine / 8 )) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(70))},"Quad","InOut",0.1/speed)
  5137. 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(0 - 60+(15*(visn/1000)) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.075/speed)
  5138. 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 ))+mr(math.random(-5,5)), math.rad(0)+mr(math.random(-5,5)), math.rad(70 +( math.random(0,15)*(visn/1000)) * math.cos(sine / 8)))},"Linear","Out",0.1/speed)
  5139. 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,15)*(visn/1000)) * math.cos(sine / 8 )))},"Linear","Out",0.1/speed)
  5140. SetTween(RH,{C0=CFrame.new(.5, -0.95- .04 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(0 - 0 * math.cos(sine / 8)),math.rad(-20),math.rad(6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.1)
  5141. SetTween(LH,{C0=CFrame.new(-.5, -0.95- .04 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(0 - 0 * math.cos(sine / 8)),math.rad(20),math.rad(-6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.1)
  5142.  
  5143. if hitfloor ~= nil then
  5144.  
  5145. SetTween(RootPart ,{CFrame = CF(RootPart.Position ,RootPart.Position+CF(RootPart.Position*VT(1,0,1),MHIT.p*VT(1,0,1)).LookVector) },"Quad","Out",0.1)
  5146.  
  5147. end
  5148.  
  5149.  
  5150. elseif Anim == "Idle" then
  5151.  
  5152. local dahspeed=0+visn/100
  5153.  
  5154.  
  5155. change = (0.60*1)*dahspeed
  5156. Humanoid.JumpPower = 60
  5157. Humanoid.WalkSpeed=16
  5158.  
  5159. local speed = .5 + visn/1000
  5160.  
  5161. local ADNum = 1
  5162. if weps == false then
  5163. SetTween(RJW,{C0=RootCF*cn(0, 0, -0.1 + 0.0395 * math.cos(sine / 8 )) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-0))},"Quad","InOut",0.1/speed)
  5164. SetTween(NeckW,{C0=NeckCF*angles(math.rad(-0+40.5*(visn/1000) - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad(0), math.rad(0))},"Linear","InOut",0.1/speed)
  5165. 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,15)*(visn/1000)) * math.cos(sine / 8)))},"Linear","Out",0.1/speed)
  5166. else
  5167. SetTween(RJW,{C0=RootCF*cn(0, 0, -0.1 + 0.0395 * math.cos(sine / 8 )) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-60))},"Quad","InOut",0.1/speed)
  5168. 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(0 - -60+(25*(visn/1000)) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.075/speed)
  5169. SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(150 - 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)
  5170.  
  5171.  
  5172. end
  5173. SetTween(LW,{C0=cf(-1.46 + .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,15)*(visn/1000)) * math.cos(sine / 8 )))},"Linear","Out",0.1/speed)
  5174. SetTween(RH,{C0=CFrame.new(.5, -0.95- .04 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(0 - 0 * math.cos(sine / 8)),math.rad(-20),math.rad(6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.1)
  5175. SetTween(LH,{C0=CFrame.new(-.5, -0.95- .04 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(0 - 0 * math.cos(sine / 8)),math.rad(20),math.rad(-6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.1)
  5176.  
  5177.  
  5178.  
  5179.  
  5180. --SetTween(FlameW,{C0=CF(0,0,0)*ANGLES(mr(20),0,0)},"Quad","InOut",0.1)
  5181. --SetTween(H1a,{C0=CF(0,.5,-.4)},"Quad","InOut",0.1)
  5182. -- SetTween(MX1w,{C0=CF(0,-.7,-.25)},"Quad","InOut",0.1)
  5183. --SetTween(FlameW,{C0=CF(0,-.5,0)},"Quad","InOut",0.1)
  5184. --SetTween(H1a,{C0=CF(0,-.5,-.4)},"Quad","InOut",0.1)
  5185. --SetTween(MX1w,{C0=CF(0,.1,.30)*ANGLES(mr(20),0,0)},"Quad","InOut",0.1)
  5186.  
  5187.  
  5188.  
  5189.  
  5190.  
  5191. elseif Anim == "Walk" then
  5192. local speed=.75
  5193.  
  5194. if OverClocking ==false then
  5195. speed = speed+0.75*(visn/1000)
  5196. else
  5197. speed = speed+1.75*(visn/1000)
  5198. end
  5199. if mememode == true then
  5200. speed=4
  5201. end
  5202.  
  5203.  
  5204. change = 2.6*speed
  5205. Humanoid.JumpPower = 60*speed
  5206. Humanoid.WalkSpeed=16*speed
  5207.  
  5208.  
  5209. 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 ))
  5210. 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 ))
  5211.  
  5212. if weps == false then
  5213. 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(25*forWRL+8 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed)
  5214. SetTween(NeckW,{C0=NeckCF*CFrame.new(0, 0, 0 + 0.025 * math.cos(sine / 4)) * angles((math.rad(20+(-forWFB*2 - -forWFB * math.cos(sine / 4))*8))+math.rad(45*(visn/1000)), math.rad((forWRL - forWRL * math.cos(sine / 4))*5)+math.rad(0), math.rad(-45*forWRL-8 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed)
  5215. SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.5 + forWRL/50* math.cos(sine / 8), 0) * angles(math.rad(160-45*(visn/1000) ), math.rad(15), math.rad(-10 + forWRL))},"Quad","Out",WalkAnimMove/speed)
  5216. else
  5217.  
  5218.  
  5219. 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*1.5 - 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)
  5220. 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(20*(visn/500)), math.rad((forWRL - forWRL * math.cos(sine / 4))*5)+math.rad(0*(visn/500)), math.rad(-0-forWRL*50+-8 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed)
  5221.  
  5222. SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(85 - 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)
  5223.  
  5224. end
  5225. 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)
  5226. 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)
  5227. 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)
  5228.  
  5229.  
  5230.  
  5231. elseif Anim == "Sit" then
  5232. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  5233. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  5234. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1)
  5235. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1)
  5236. SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  5237. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  5238. Humanoid.JumpPower = 60
  5239. end
  5240. end
  5241.  
  5242. Swait(Animstep)
  5243. end
  5244. end))
  5245. coroutine.resume(coroutine.create(function()
  5246. local remote = Instance.new 'RemoteFunction';
  5247. remote.Parent = Character;
  5248. remote.OnServerInvoke = function (player, request, ...)
  5249. if (player ~= Player) then
  5250. return error ('You cannot invoke this remote', 0);
  5251. end;
  5252.  
  5253.  
  5254.  
  5255. if (request == 1) then
  5256. local k = ...;
  5257.  
  5258. KeyDownF(k)
  5259.  
  5260.  
  5261.  
  5262. end;
  5263. if (request == 2) then
  5264. local k = ...;
  5265.  
  5266. KeyUpF(k)
  5267.  
  5268.  
  5269.  
  5270. end;
  5271. if (request == 3) then
  5272. local k = ...;
  5273. if k == "Down" then
  5274. Button1DownF(k)
  5275. elseif k == "Up" then
  5276. Button1UpF(k)
  5277. end
  5278. end;
  5279.  
  5280.  
  5281. if (request == 4) then
  5282. local k=...;
  5283. MTARGET=k
  5284. end
  5285. if (request == 5) then
  5286. local k=...;
  5287. MHIT=k
  5288.  
  5289. end
  5290. if (request == 6) then
  5291. local k=...;
  5292. visn=k
  5293. -- print(visn)
  5294.  
  5295. end
  5296.  
  5297.  
  5298.  
  5299.  
  5300.  
  5301. end;
  5302.  
  5303.  
  5304.  
  5305.  
  5306.  
  5307.  
  5308.  
  5309.  
  5310.  
  5311.  
  5312.  
  5313.  
  5314.  
  5315. remote.Name = 'ServerRemote';
  5316. local remote = NLS ([=[
  5317. local localscript = folder.Keys
  5318. localscript.Name = Player.Name
  5319. localscript.Parent = Character
  5320.  
  5321. ]=], Player.Character)
  5322. end))
  5323.  
  5324.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement