Fluxushr

Untitled

Apr 19th, 2023
482
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 59.71 KB | None | 0 0
  1. game.Players.LocalPlayer.Character["PogoStick"].Handle.Mesh:Destroy()
  2. game.Players.LocalPlayer.Character["Surfboard"].Handle.Handle:Destroy()
  3. game.Players.LocalPlayer.Character["VANS_Umbrella"].Handle.Mesh:Destroy()
  4. game.Players.LocalPlayer.Character["Lipstick_Bag_3.0"].Handle.Mesh:Destroy()
  5. game.Players.LocalPlayer.Character["Pink Hair"].Handle.Mesh:Destroy()
  6. game.Players.LocalPlayer.Character["Kate Hair"].Handle.Mesh:Destroy()
  7. game.Players.LocalPlayer.Character["LavanderHair"].Handle.Mesh:Destroy()
  8. game.Players.LocalPlayer.Character["Robloxclassicred"].Handle.Mesh:Destroy()
  9. game.Players.LocalPlayer.Character["InternationalFedora"].Handle.SpecialMesh:Destroy()
  10. game.Players.LocalPlayer.Character["BodyGuard"].Handle.Mesh:Destroy()
  11.  
  12. local c = game.Players.LocalPlayer.Character
  13. for i, v in pairs({"Right Arm", "Left Arm"}) do
  14. local arm = c[v]
  15. arm.Parent = nil
  16. arm.Transparency = 1
  17. arm.Parent = c
  18. end
  19.  
  20. local c = game.Players.LocalPlayer.Character
  21. for i, v in pairs({"Right Leg", "Left Leg"}) do
  22. local Leg = c[v]
  23. Leg.Parent = nil
  24. Leg.Transparency = 1
  25. Leg.Parent = c
  26. end
  27.  
  28. local v3_net, v3_808 = Vector3.new(0, 25.1, 0), Vector3.new(8, 0, 8)
  29. local function getNetlessVelocity(realPartVelocity)
  30. local mag = realPartVelocity.Magnitude
  31. if mag > 1 then
  32. local unit = realPartVelocity.Unit
  33. if (unit.Y > 0.25) or (unit.Y < -0.75) then
  34. return unit * (25.1 / unit.Y)
  35. end
  36. end
  37. return v3_net + realPartVelocity * v3_808
  38. end
  39. local simradius = "shp" --simulation radius (net bypass) method
  40. --simulation radius (net bypass) method
  41. --"shp" - sethiddenproperty
  42. --"ssr" - setsimulationradius
  43. --false - disable
  44. local antiragdoll = true --removes hingeConstraints and ballSocketConstraints from your character
  45. local newanimate = true --disables the animate script and enables after reanimation
  46. local discharscripts = true --disables all localScripts parented to your character before reanimation
  47. local R15toR6 = true --tries to convert your character to r6 if its r15
  48. local hatcollide = true --makes hats cancollide (only method 0)
  49. local humState16 = true --enables collisions for limbs before the humanoid dies (using hum:ChangeState)
  50. local addtools = false --puts all tools from backpack to character and lets you hold them after reanimation
  51. local hedafterneck = false --disable aligns for head and enable after neck is removed
  52. local loadtime = game:GetService("Players").RespawnTime + 0.5 --anti respawn delay
  53. local method = 0 --reanimation method
  54. --methods:
  55. --0 - breakJoints (takes [loadtime] seconds to laod)
  56. --1 - limbs
  57. --2 - limbs + anti respawn
  58. --3 - limbs + breakJoints after [loadtime] seconds
  59. --4 - remove humanoid + breakJoints
  60. --5 - remove humanoid + limbs
  61. local alignmode = 3 --AlignPosition mode
  62. --modes:
  63. --1 - AlignPosition rigidity enabled true
  64. --2 - 2 AlignPositions rigidity enabled both true and false
  65. --3 - AlignPosition rigidity enabled false
  66.  
  67. healthHide = healthHide and ((method == 0) or (method == 2) or (method == 000)) and gp(c, "Head", "BasePart")
  68.  
  69. local lp = game:GetService("Players").LocalPlayer
  70. local rs = game:GetService("RunService")
  71. local stepped = rs.Stepped
  72. local heartbeat = rs.Heartbeat
  73. local renderstepped = rs.RenderStepped
  74. local sg = game:GetService("StarterGui")
  75. local ws = game:GetService("Workspace")
  76. local cf = CFrame.new
  77. local v3 = Vector3.new
  78. local v3_0 = v3(0, 0, 0)
  79. local inf = math.huge
  80.  
  81. local c = lp.Character
  82.  
  83. if not (c and c.Parent) then
  84. return
  85. end
  86.  
  87. c.Destroying:Connect(function()
  88. c = nil
  89. end)
  90.  
  91. local function gp(parent, name, className)
  92. if typeof(parent) == "Instance" then
  93. for i, v in pairs(parent:GetChildren()) do
  94. if (v.Name == name) and v:IsA(className) then
  95. return v
  96. end
  97. end
  98. end
  99. return nil
  100. end
  101.  
  102. local function align(Part0, Part1)
  103. Part0.CustomPhysicalProperties = PhysicalProperties.new(0.0001, 0.0001, 0.0001, 0.0001, 0.0001)
  104.  
  105. local att0 = Instance.new("Attachment", Part0)
  106. att0.Orientation = v3_0
  107. att0.Position = v3_0
  108. att0.Name = "att0_" .. Part0.Name
  109. local att1 = Instance.new("Attachment", Part1)
  110. att1.Orientation = v3_0
  111. att1.Position = v3_0
  112. att1.Name = "att1_" .. Part1.Name
  113.  
  114. if (alignmode == 1) or (alignmode == 2) then
  115. local ape = Instance.new("AlignPosition", att0)
  116. ape.ApplyAtCenterOfMass = false
  117. ape.MaxForce = inf
  118. ape.MaxVelocity = inf
  119. ape.ReactionForceEnabled = false
  120. ape.Responsiveness = 200
  121. ape.Attachment1 = att1
  122. ape.Attachment0 = att0
  123. ape.Name = "AlignPositionRtrue"
  124. ape.RigidityEnabled = true
  125. end
  126.  
  127. if (alignmode == 2) or (alignmode == 3) then
  128. local apd = Instance.new("AlignPosition", att0)
  129. apd.ApplyAtCenterOfMass = false
  130. apd.MaxForce = inf
  131. apd.MaxVelocity = inf
  132. apd.ReactionForceEnabled = false
  133. apd.Responsiveness = 200
  134. apd.Attachment1 = att1
  135. apd.Attachment0 = att0
  136. apd.Name = "AlignPositionRfalse"
  137. apd.RigidityEnabled = false
  138. end
  139.  
  140. local ao = Instance.new("AlignOrientation", att0)
  141. ao.MaxAngularVelocity = inf
  142. ao.MaxTorque = inf
  143. ao.PrimaryAxisOnly = false
  144. ao.ReactionTorqueEnabled = false
  145. ao.Responsiveness = 200
  146. ao.Attachment1 = att1
  147. ao.Attachment0 = att0
  148. ao.RigidityEnabled = false
  149.  
  150. if type(getNetlessVelocity) == "function" then
  151. local realVelocity = v3_0
  152. local steppedcon = stepped:Connect(function()
  153. Part0.Velocity = realVelocity
  154. end)
  155. local heartbeatcon = heartbeat:Connect(function()
  156. realVelocity = Part0.Velocity
  157. Part0.Velocity = getNetlessVelocity(realVelocity)
  158. end)
  159. Part0.Destroying:Connect(function()
  160. Part0 = nil
  161. steppedcon:Disconnect()
  162. heartbeatcon:Disconnect()
  163. end)
  164. end
  165. end
  166.  
  167. local function respawnrequest()
  168. local ccfr = ws.CurrentCamera.CFrame
  169. local c = lp.Character
  170. lp.Character = nil
  171. lp.Character = c
  172. local con = nil
  173. con = ws.CurrentCamera.Changed:Connect(function(prop)
  174. if (prop ~= "Parent") and (prop ~= "CFrame") then
  175. return
  176. end
  177. ws.CurrentCamera.CFrame = ccfr
  178. con:Disconnect()
  179. end)
  180. end
  181.  
  182. local destroyhum = (method == 4) or (method == 5)
  183. local breakjoints = (method == 0) or (method == 4)
  184. local antirespawn = (method == 0) or (method == 2) or (method == 3)
  185.  
  186. hatcollide = hatcollide and (method == 0)
  187.  
  188. addtools = addtools and gp(lp, "Backpack", "Backpack")
  189.  
  190. local fenv = getfenv()
  191. local shp = fenv.sethiddenproperty or fenv.set_hidden_property or fenv.set_hidden_prop or fenv.sethiddenprop
  192. local ssr = fenv.setsimulationradius or fenv.set_simulation_radius or fenv.set_sim_radius or fenv.setsimradius or fenv.set_simulation_rad or fenv.setsimulationrad
  193.  
  194. if shp and (simradius == "shp") then
  195. spawn(function()
  196. while c and heartbeat:Wait() do
  197. shp(lp, "SimulationRadius", inf)
  198. end
  199. end)
  200. elseif ssr and (simradius == "ssr") then
  201. spawn(function()
  202. while c and heartbeat:Wait() do
  203. ssr(inf)
  204. end
  205. end)
  206. end
  207.  
  208. antiragdoll = antiragdoll and function(v)
  209. if v:IsA("HingeConstraint") or v:IsA("BallSocketConstraint") then
  210. v.Parent = nil
  211. end
  212. end
  213.  
  214. if antiragdoll then
  215. for i, v in pairs(c:GetDescendants()) do
  216. antiragdoll(v)
  217. end
  218. c.DescendantAdded:Connect(antiragdoll)
  219. end
  220.  
  221. if antirespawn then
  222. respawnrequest()
  223. end
  224.  
  225. if method == 0 then
  226. wait(loadtime)
  227. if not c then
  228. return
  229. end
  230. end
  231.  
  232. if discharscripts then
  233. for i, v in pairs(c:GetChildren()) do
  234. if v:IsA("LocalScript") then
  235. v.Disabled = true
  236. end
  237. end
  238. elseif newanimate then
  239. local animate = gp(c, "Animate", "LocalScript")
  240. if animate and (not animate.Disabled) then
  241. animate.Disabled = true
  242. else
  243. newanimate = false
  244. end
  245. end
  246.  
  247. if addtools then
  248. for i, v in pairs(addtools:GetChildren()) do
  249. if v:IsA("Tool") then
  250. v.Parent = c
  251. end
  252. end
  253. end
  254.  
  255. pcall(function()
  256. settings().Physics.AllowSleep = false
  257. settings().Physics.PhysicsEnvironmentalThrottle = Enum.EnviromentalPhysicsThrottle.Disabled
  258. end)
  259.  
  260. local OLDscripts = {}
  261.  
  262. for i, v in pairs(c:GetDescendants()) do
  263. if v.ClassName == "Script" then
  264. table.insert(OLDscripts, v)
  265. end
  266. end
  267.  
  268. local scriptNames = {}
  269.  
  270. for i, v in pairs(c:GetDescendants()) do
  271. if v:IsA("BasePart") then
  272. local newName = tostring(i)
  273. local exists = true
  274. while exists do
  275. exists = false
  276. for i, v in pairs(OLDscripts) do
  277. if v.Name == newName then
  278. exists = true
  279. end
  280. end
  281. if exists then
  282. newName = newName .. "_"
  283. end
  284. end
  285. table.insert(scriptNames, newName)
  286. Instance.new("Script", v).Name = newName
  287. end
  288. end
  289.  
  290. c.Archivable = true
  291. local hum = c:FindFirstChildOfClass("Humanoid")
  292. if hum then
  293. for i, v in pairs(hum:GetPlayingAnimationTracks()) do
  294. v:Stop()
  295. end
  296. end
  297. local cl = c:Clone()
  298. if hum and humState16 then
  299. hum:ChangeState(Enum.HumanoidStateType.Physics)
  300. if destroyhum then
  301. wait(1.6)
  302. end
  303. end
  304. if hum and hum.Parent and destroyhum then
  305. hum:Destroy()
  306. end
  307.  
  308. if not c then
  309. return
  310. end
  311.  
  312. local head = gp(c, "Head", "BasePart")
  313. local torso = gp(c, "Torso", "BasePart") or gp(c, "UpperTorso", "BasePart")
  314. local root = gp(c, "HumanoidRootPart", "BasePart")
  315. if hatcollide and c:FindFirstChildOfClass("Accessory") then
  316. local anything = c:FindFirstChildOfClass("BodyColors") or gp(c, "Health", "Script")
  317. if not (torso and root and anything) then
  318. return
  319. end
  320. torso:Destroy()
  321. root:Destroy()
  322. if shp then
  323. for i,v in pairs(c:GetChildren()) do
  324. if v:IsA("Accessory") then
  325. shp(v, "BackendAccoutrementState", 0)
  326. end
  327. end
  328. end
  329. anything:Destroy()
  330. if head then
  331. head:Destroy()
  332. end
  333. end
  334.  
  335. for i, v in pairs(cl:GetDescendants()) do
  336. if v:IsA("BasePart") then
  337. v.Transparency = 1
  338. v.Anchored = false
  339. end
  340. end
  341.  
  342. local model = Instance.new("Model", c)
  343. model.Name = model.ClassName
  344.  
  345. model.Destroying:Connect(function()
  346. model = nil
  347. end)
  348.  
  349. for i, v in pairs(c:GetChildren()) do
  350. if v ~= model then
  351. if addtools and v:IsA("Tool") then
  352. for i1, v1 in pairs(v:GetDescendants()) do
  353. if v1 and v1.Parent and v1:IsA("BasePart") then
  354. local bv = Instance.new("BodyVelocity", v1)
  355. bv.Velocity = v3_0
  356. bv.MaxForce = v3(1000, 1000, 1000)
  357. bv.P = 1250
  358. bv.Name = "bv_" .. v.Name
  359. end
  360. end
  361. end
  362. v.Parent = model
  363. end
  364. end
  365.  
  366. if breakjoints then
  367. model:BreakJoints()
  368. else
  369. if head and torso then
  370. for i, v in pairs(model:GetDescendants()) do
  371. if v:IsA("Weld") or v:IsA("Snap") or v:IsA("Glue") or v:IsA("Motor") or v:IsA("Motor6D") then
  372. local save = false
  373. if (v.Part0 == torso) and (v.Part1 == head) then
  374. save = true
  375. end
  376. if (v.Part0 == head) and (v.Part1 == torso) then
  377. save = true
  378. end
  379. if save then
  380. if hedafterneck then
  381. hedafterneck = v
  382. end
  383. else
  384. v:Destroy()
  385. end
  386. end
  387. end
  388. end
  389. if method == 3 then
  390. spawn(function()
  391. wait(loadtime)
  392. if model then
  393. model:BreakJoints()
  394. end
  395. end)
  396. end
  397. end
  398.  
  399. cl.Parent = c
  400. for i, v in pairs(cl:GetChildren()) do
  401. v.Parent = c
  402. end
  403. cl:Destroy()
  404.  
  405. local modelDes = {}
  406. for i, v in pairs(model:GetDescendants()) do
  407. if v:IsA("BasePart") then
  408. i = tostring(i)
  409. v.Destroying:Connect(function()
  410. modelDes[i] = nil
  411. end)
  412. modelDes[i] = v
  413. end
  414. end
  415. local modelcolcon = nil
  416. local function modelcolf()
  417. if model then
  418. for i, v in pairs(modelDes) do
  419. v.CanCollide = false
  420. end
  421. else
  422. modelcolcon:Disconnect()
  423. end
  424. end
  425. modelcolcon = stepped:Connect(modelcolf)
  426. modelcolf()
  427.  
  428. for i, scr in pairs(model:GetDescendants()) do
  429. if (scr.ClassName == "Script") and table.find(scriptNames, scr.Name) then
  430. local Part0 = scr.Parent
  431. if Part0:IsA("BasePart") then
  432. for i1, scr1 in pairs(c:GetDescendants()) do
  433. if (scr1.ClassName == "Script") and (scr1.Name == scr.Name) and (not scr1:IsDescendantOf(model)) then
  434. local Part1 = scr1.Parent
  435. if (Part1.ClassName == Part0.ClassName) and (Part1.Name == Part0.Name) then
  436. align(Part0, Part1)
  437. break
  438. end
  439. end
  440. end
  441. end
  442. end
  443. end
  444.  
  445. if (typeof(hedafterneck) == "Instance") and head then
  446. local aligns = {}
  447. local con = nil
  448. con = hedafterneck.Changed:Connect(function(prop)
  449. if (prop == "Parent") and not hedafterneck.Parent then
  450. con:Disconnect()
  451. for i, v in pairs(aligns) do
  452. v.Enabled = true
  453. end
  454. end
  455. end)
  456. for i, v in pairs(head:GetDescendants()) do
  457. if v:IsA("AlignPosition") or v:IsA("AlignOrientation") then
  458. i = tostring(i)
  459. aligns[i] = v
  460. v.Destroying:Connect(function()
  461. aligns[i] = nil
  462. end)
  463. v.Enabled = false
  464. end
  465. end
  466. end
  467.  
  468. for i, v in pairs(c:GetDescendants()) do
  469. if v and v.Parent then
  470. if v.ClassName == "Script" then
  471. if table.find(scriptNames, v.Name) then
  472. v:Destroy()
  473. end
  474. elseif not v:IsDescendantOf(model) then
  475. if v:IsA("Decal") then
  476. v.Transparency = 1
  477. elseif v:IsA("ForceField") then
  478. v.Visible = false
  479. elseif v:IsA("Sound") then
  480. v.Playing = false
  481. elseif v:IsA("BillboardGui") or v:IsA("SurfaceGui") or v:IsA("ParticleEmitter") or v:IsA("Fire") or v:IsA("Smoke") or v:IsA("Sparkles") then
  482. v.Enabled = false
  483. end
  484. end
  485. end
  486. end
  487.  
  488. if newanimate then
  489. local animate = gp(c, "Animate", "LocalScript")
  490. if animate then
  491. animate.Disabled = false
  492. end
  493. end
  494.  
  495. if addtools then
  496. for i, v in pairs(c:GetChildren()) do
  497. if v:IsA("Tool") then
  498. v.Parent = addtools
  499. end
  500. end
  501. end
  502.  
  503. local hum0 = model:FindFirstChildOfClass("Humanoid")
  504. if hum0 then
  505. hum0.Destroying:Connect(function()
  506. hum0 = nil
  507. end)
  508. end
  509.  
  510. local hum1 = c:FindFirstChildOfClass("Humanoid")
  511. if hum1 then
  512. hum1.Destroying:Connect(function()
  513. hum1 = nil
  514. end)
  515. end
  516.  
  517. if hum1 then
  518. ws.CurrentCamera.CameraSubject = hum1
  519. local camSubCon = nil
  520. local function camSubFunc()
  521. camSubCon:Disconnect()
  522. if c and hum1 then
  523. ws.CurrentCamera.CameraSubject = hum1
  524. end
  525. end
  526. camSubCon = renderstepped:Connect(camSubFunc)
  527. if hum0 then
  528. hum0.Changed:Connect(function(prop)
  529. if hum1 and (prop == "Jump") then
  530. hum1.Jump = hum0.Jump
  531. end
  532. end)
  533. else
  534. respawnrequest()
  535. end
  536. end
  537.  
  538. local rb = Instance.new("BindableEvent", c)
  539. rb.Event:Connect(function()
  540. rb:Destroy()
  541. sg:SetCore("ResetButtonCallback", true)
  542. if destroyhum then
  543. c:BreakJoints()
  544. return
  545. end
  546. if hum0 and (hum0.Health > 0) then
  547. model:BreakJoints()
  548. hum0.Health = 0
  549. end
  550. if antirespawn then
  551. respawnrequest()
  552. end
  553. end)
  554. sg:SetCore("ResetButtonCallback", rb)
  555.  
  556. spawn(function()
  557. while c do
  558. if hum0 and hum1 then
  559. hum1.Jump = hum0.Jump
  560. end
  561. wait()
  562. end
  563. sg:SetCore("ResetButtonCallback", true)
  564. end)
  565.  
  566. R15toR6 = R15toR6 and hum1 and (hum1.RigType == Enum.HumanoidRigType.R15)
  567. if R15toR6 then
  568. 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")
  569. if part then
  570. local cfr = part.CFrame
  571. local R6parts = {
  572. head = {
  573. Name = "Head",
  574. Size = v3(2, 1, 1),
  575. R15 = {
  576. Head = 0
  577. }
  578. },
  579. torso = {
  580. Name = "Torso",
  581. Size = v3(2, 2, 1),
  582. R15 = {
  583. UpperTorso = 0.2,
  584. LowerTorso = -100
  585. }
  586. },
  587. root = {
  588. Name = "HumanoidRootPart",
  589. Size = v3(2, 2, 1),
  590. R15 = {
  591. HumanoidRootPart = 0
  592. }
  593. },
  594. leftArm = {
  595. Name = "Left Arm",
  596. Size = v3(1, 2, 1),
  597. R15 = {
  598. LeftHand = -0.73,
  599. LeftLowerArm = -0.2,
  600. LeftUpperArm = 0.4
  601. }
  602. },
  603. rightArm = {
  604. Name = "Right Arm",
  605. Size = v3(1, 2, 1),
  606. R15 = {
  607. RightHand = -0.73,
  608. RightLowerArm = -0.2,
  609. RightUpperArm = 0.4
  610. }
  611. },
  612. leftLeg = {
  613. Name = "Left Leg",
  614. Size = v3(1, 2, 1),
  615. R15 = {
  616. LeftFoot = -0.73,
  617. LeftLowerLeg = -0.15,
  618. LeftUpperLeg = 0.6
  619. }
  620. },
  621. rightLeg = {
  622. Name = "Right Leg",
  623. Size = v3(1, 2, 1),
  624. R15 = {
  625. RightFoot = -0.73,
  626. RightLowerLeg = -0.15,
  627. RightUpperLeg = 0.6
  628. }
  629. }
  630. }
  631. for i, v in pairs(c:GetChildren()) do
  632. if v:IsA("BasePart") then
  633. for i1, v1 in pairs(v:GetChildren()) do
  634. if v1:IsA("Motor6D") then
  635. v1.Part0 = nil
  636. end
  637. end
  638. end
  639. end
  640. part.Archivable = true
  641. for i, v in pairs(R6parts) do
  642. local part = part:Clone()
  643. part:ClearAllChildren()
  644. part.Name = v.Name
  645. part.Size = v.Size
  646. part.CFrame = cfr
  647. part.Anchored = false
  648. part.Transparency = 1
  649. part.CanCollide = false
  650. for i1, v1 in pairs(v.R15) do
  651. local R15part = gp(c, i1, "BasePart")
  652. local att = gp(R15part, "att1_" .. i1, "Attachment")
  653. if R15part then
  654. local weld = Instance.new("Weld", R15part)
  655. weld.Name = "Weld_" .. i1
  656. weld.Part0 = part
  657. weld.Part1 = R15part
  658. weld.C0 = cf(0, v1, 0)
  659. weld.C1 = cf(0, 0, 0)
  660. R15part.Massless = true
  661. R15part.Name = "R15_" .. i1
  662. R15part.Parent = part
  663. if att then
  664. att.Parent = part
  665. att.Position = v3(0, v1, 0)
  666. end
  667. end
  668. end
  669. part.Parent = c
  670. R6parts[i] = part
  671. end
  672. local R6joints = {
  673. neck = {
  674. Parent = Scarf,
  675. Name = "Neck",
  676. Part0 = Scarf, --R6parts.torso
  677. Part1 = Scarf, --R6parts.head
  678. C0 = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),
  679. C1 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  680. },
  681. rootJoint = {
  682. Parent = R6parts.root,
  683. Name = "RootJoint" ,
  684. Part0 = R6parts.root,
  685. Part1 = R6parts.torso,
  686. C0 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),
  687. C1 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  688. },
  689. rightShoulder = {
  690. Parent = R6parts.torso,
  691. Name = "Right Shoulder",
  692. Part0 = R6parts.torso,
  693. Part1 = R6parts.rightArm,
  694. C0 = cf(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),
  695. C1 = cf(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  696. },
  697. leftShoulder = {
  698. Parent = R6parts.torso,
  699. Name = "Left Shoulder",
  700. Part0 = R6parts.torso,
  701. Part1 = R6parts.leftArm,
  702. C0 = cf(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  703. C1 = cf(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  704. },
  705. rightHip = {
  706. Parent = R6parts.torso,
  707. Name = "Right Hip",
  708. Part0 = R6parts.torso,
  709. Part1 = R6parts.rightLeg,
  710. C0 = cf(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),
  711. C1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  712. },
  713. leftHip = {
  714. Parent = R6parts.torso,
  715. Name = "Left Hip" ,
  716. Part0 = R6parts.torso,
  717. Part1 = R6parts.leftLeg,
  718. C0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  719. C1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  720. }
  721. }
  722. for i, v in pairs(R6joints) do
  723. local joint = Instance.new("Motor6D")
  724. for prop, val in pairs(v) do
  725. joint[prop] = val
  726. end
  727. R6joints[i] = joint
  728. end
  729. hum1.RigType = Enum.HumanoidRigType.R6
  730. hum1.HipHeight = 0
  731. end
  732. end
  733.  
  734.  
  735.  
  736. --find rig joints
  737.  
  738. local function fakemotor()
  739. return {C0=cf(), C1=cf()}
  740. end
  741.  
  742. local torso = gp(c, "Torso", "BasePart")
  743. local root = gp(c, "HumanoidRootPart", "BasePart")
  744.  
  745. local neck = gp(torso, "Neck", "Motor6D")
  746. neck = neck or fakemotor()
  747.  
  748. local rootJoint = gp(root, "RootJoint", "Motor6D")
  749. rootJoint = rootJoint or fakemotor()
  750.  
  751. local leftShoulder = gp(torso, "Left Shoulder", "Motor6D")
  752. leftShoulder = leftShoulder or fakemotor()
  753.  
  754. local rightShoulder = gp(torso, "Right Shoulder", "Motor6D")
  755. rightShoulder = rightShoulder or fakemotor()
  756.  
  757. local leftHip = gp(torso, "Left Hip", "Motor6D")
  758. leftHip = leftHip or fakemotor()
  759.  
  760. local rightHip = gp(torso, "Right Hip", "Motor6D")
  761. rightHip = rightHip or fakemotor()
  762.  
  763. --120 fps
  764.  
  765. local fps = 0
  766. local event = Instance.new("BindableEvent", c)
  767. event.Name = "120 fps"
  768. local floor = math.floor
  769. fps = 1 / fps
  770. local tf = 0
  771. local con = nil
  772. con = game:GetService("RunService").RenderStepped:Connect(function(s)
  773. if not c then
  774. con:Disconnect()
  775. return
  776. end
  777. --tf += s
  778. if tf >= fps then
  779. for i=1, floor(tf / fps) do
  780. event:Fire(c)
  781. end
  782. tf = 0
  783. end
  784. end)
  785. local event = event.Event
  786.  
  787. local hedrot = v3(0, 5, 0)
  788.  
  789. local uis = game:GetService("UserInputService")
  790. local function isPressed(key)
  791. return (not uis:GetFocusedTextBox()) and uis:IsKeyDown(Enum.KeyCode[key])
  792. end
  793.  
  794. local biggesthandle = nil
  795. for i, v in pairs(c:GetChildren()) do
  796. if v:IsA("Accessory") and v.Name == "VANS_Umbrella" then
  797. local handle = gp(v, "Handle", "BasePart")
  798. if biggesthandle then
  799. if biggesthandle.Size.Magnitude < handle.Size.Magnitude then
  800. biggesthandle = Handle
  801. end
  802. else
  803. biggesthandle = gp(v, "Handle", "BasePart")
  804. end
  805. end
  806. end
  807.  
  808. if not biggesthandle then
  809. return
  810. end
  811.  
  812. local handle1 = gp(gp(model, biggesthandle.Parent.Name, "Accessory"), "Handle", "BasePart")
  813. if not handle1 then
  814. return
  815. end
  816.  
  817. handle1.Destroying:Connect(function()
  818. handle1 = nil
  819. end)
  820. biggesthandle.Destroying:Connect(function()
  821. biggesthandle = nil
  822. end)
  823.  
  824. biggesthandle:BreakJoints()
  825. biggesthandle.Anchored = true
  826.  
  827. for i, v in pairs(handle1:GetDescendants()) do
  828. if v:IsA("AlignOrientation") then
  829. v.Enabled = false
  830. end
  831. end
  832.  
  833. local mouse = lp:GetMouse()
  834. local fling = false
  835. mouse.Button1Down:Connect(function()
  836. fling = true
  837. end)
  838. mouse.Button1Up:Connect(function()
  839. fling = false
  840. end)
  841. local function doForSignal(signal, vel)
  842. spawn(function()
  843. while signal:Wait() and c and handle1 and biggesthandle do
  844. if fling and mouse.Target then
  845. biggesthandle.Position = mouse.Hit.Position
  846. end
  847. handle1.RotVelocity = vel
  848. end
  849. end)
  850. end
  851. doForSignal(stepped, v3(10000, 10000, 10000))
  852. doForSignal(renderstepped, v3(10000, 10000, 10000))
  853. doForSignal(heartbeat, v3(200000000000000, 200000000000000, 200000000000000)) --https://web.roblox.com/catalog/63690008/Pal-Hair
  854.  
  855.  
  856. local lp = game:GetService("Players").LocalPlayer
  857. local rs = game:GetService("RunService")
  858. local stepped = rs.Stepped
  859. local heartbeat = rs.Heartbeat
  860. local renderstepped = rs.RenderStepped
  861. local sg = game:GetService("StarterGui")
  862. local ws = game:GetService("Workspace")
  863. local cf = CFrame.new
  864. local v3 = Vector3.new
  865. local v3_0 = Vector3.zero
  866. local inf = math.huge
  867.  
  868. local cplayer = lp.Character
  869.  
  870. local v3 = Vector3.new
  871.  
  872. local function gp(parent, name, className)
  873. if typeof(parent) == "Instance" then
  874. for i, v in pairs(parent:GetChildren()) do
  875. if (v.Name == name) and v:IsA(className) then
  876. return v
  877. end
  878. end
  879. end
  880. return nil
  881. end
  882. local hat2 = gp(cplayer, "VANS_Umbrella", "Accessory")
  883. local handle2 = gp(hat2, "Handle", "BasePart")
  884. local att2 = gp(handle2, "att1_Handle", "Attachment")
  885. att2.Parent = cplayer["Right Arm"]
  886. att2.Position = Vector3.new(0, -8, -5)
  887. att2.Rotation = Vector3.new(0, 0, 0)
  888.  
  889. local hat2 = gp(cplayer, "Lipstick_Bag_3.0", "Accessory")
  890. local handle2 = gp(hat2, "Handle", "BasePart")
  891. local att2 = gp(handle2, "att1_Handle", "Attachment")
  892. att2.Parent = cplayer["Torso"]
  893. att2.Position = Vector3.new(0, 0, 0)
  894. att2.Rotation = Vector3.new(90, 0, 0)
  895.  
  896. local hat2 = gp(cplayer, "InternationalFedora", "Accessory")
  897. local handle2 = gp(hat2, "Handle", "BasePart")
  898. local att2 = gp(handle2, "att1_Handle", "Attachment")
  899. att2.Parent = cplayer["Head"]
  900. att2.Position = Vector3.new(0, 0, 0)
  901. att2.Rotation = Vector3.new(90, 0, 0)
  902.  
  903. local hat2 = gp(cplayer, "Pink Hair", "Accessory")
  904. local handle2 = gp(hat2, "Handle", "BasePart")
  905. local att2 = gp(handle2, "att1_Handle", "Attachment")
  906. att2.Parent = cplayer["Left Arm"]
  907. att2.Position = Vector3.new(0, -0, 0)
  908. att2.Rotation = Vector3.new(90, 0, 0)
  909.  
  910. local hat2 = gp(cplayer, "Kate Hair", "Accessory")
  911. local handle2 = gp(hat2, "Handle", "BasePart")
  912. local att2 = gp(handle2, "att1_Handle", "Attachment")
  913. att2.Parent = cplayer["Right Arm"]
  914. att2.Position = Vector3.new(-0, -0, 0)
  915. att2.Rotation = Vector3.new(90, 0, 0) --LavanderHair
  916.  
  917. local hat2 = gp(cplayer, "LavanderHair", "Accessory")
  918. local handle2 = gp(hat2, "Handle", "BasePart")
  919. local att2 = gp(handle2, "att1_Handle", "Attachment")
  920. att2.Parent = cplayer["Right Leg"]
  921. att2.Position = Vector3.new(0, 0, 0) --Robloxclassicred
  922. att2.Rotation = Vector3.new(90, 0, 0)
  923.  
  924. local hat2 = gp(cplayer, "Robloxclassicred", "Accessory")
  925. local handle2 = gp(hat2, "Handle", "BasePart")
  926. local att2 = gp(handle2, "att1_Handle", "Attachment")
  927. att2.Parent = cplayer["Left Leg"]
  928. att2.Position = Vector3.new(-0, 0, 0)
  929. att2.Rotation = Vector3.new(90, 0, 0)
  930.  
  931. --[[_G.loop = true
  932. local player = game.Players.LocalPlayer
  933. local char = player.Character
  934. local Align = function(Part0, Part1,Mesh)
  935. local Aligns = {
  936. AlignOrientation = Instance.new("AlignOrientation", Part0),
  937. AlignPosition = Instance.new("AlignPosition", Part0)
  938. }
  939.  
  940. local Attachments = {
  941. Attach0 = Instance.new("Attachment", Part0),
  942. Attach1 = Instance.new("Attachment", Part1)
  943. }
  944. local m = Part0:FindFirstChildOfClass('SpecialMesh')--This will get the first "SpecialMesh" it finds if it does not find any, then it will return nil
  945. if Mesh and m then --If Mesh is set to true and it finds a mesh it will destroy it
  946. m:Destroy()
  947. end
  948. Part0:BreakJoints()
  949. Aligns.AlignOrientation.Attachment0 = Attachments.Attach0
  950. Aligns.AlignOrientation.Attachment1 = Attachments.Attach1
  951. Aligns.AlignOrientation.Responsiveness = math.huge
  952. Aligns.AlignOrientation.RigidityEnabled = true
  953.  
  954. Aligns.AlignPosition.Attachment0 = Attachments.Attach0
  955. Aligns.AlignPosition.Attachment1 = Attachments.Attach1
  956. Aligns.AlignPosition.Responsiveness = math.huge
  957. Aligns.AlignPosition.RigidityEnabled = true
  958. Aligns.AlignPosition.MaxForce = 999999999
  959. spawn(function()
  960. while _G.loop do
  961. local mag = (Part0.Position - (Part1.CFrame*Attachments.Attach0.CFrame:Inverse()).p).magnitude--magnitude can get the distance between two cframe or position
  962. if mag >= 5 then
  963. Part0.CFrame = Part1.CFrame*Attachments.Attach0.CFrame:Inverse()
  964. end
  965. Part0.Velocity = Vector3.new(0,35,0)
  966. game['Run Service'].Heartbeat:wait()
  967. end
  968. end)
  969. return {Attachments.Attach0, Attachments, Aligns}
  970.  
  971. end
  972. local hat = Align(char['VANS_Umbrella'].Handle,char['HumanoidRootPart'],false)
  973. local cf = char['HumanoidRootPart'].CFrame*CFrame.new(0,-10,-0)*CFrame.Angles(math.rad(0),math.rad(0),0)
  974. hat[1].CFrame = cf:Inverse() * char['HumanoidRootPart'].CFrame
  975. spawn(function()
  976. char.AncestryChanged:wait()--if you respawn, it will stop the loop to avoid lag of using it over and over
  977. _G.loop = false
  978. end)
  979. for i,v in pairs (char:GetChildren()) do
  980. if v:IsA("Accessory") then
  981. v.Handle.Massless = true
  982. v.Handle.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  983. end
  984. end]] --nvm
  985.  
  986. local script = game:GetObjects("rbxassetid://13134428195")[1] --important stuff
  987. script.Parent = game:GetService("Players").LocalPlayer
  988.  
  989.  
  990. local Player = game:GetService("Players").LocalPlayer Mouse = Player:GetMouse()
  991. --local Mouse--,mouse,UserInputService,ContextActionService
  992. do
  993. local CAS = {Actions={}}
  994. local Event = Instance.new("RemoteEvent")
  995. Event.Name = "UserInputEvent"
  996. Event.Parent = Player.Character
  997. local fakeEvent = function()
  998. local t = {_fakeEvent=true}
  999. t.Connect = function(self,f)self.Function=f end
  1000. t.connect = t.Connect
  1001. return t
  1002. end
  1003. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  1004. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  1005. function CAS:BindAction(name,fun,touch,...)
  1006. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  1007. end
  1008. function CAS:UnbindAction(name)
  1009. CAS.Actions[name] = nil
  1010. end
  1011. local function te(self,ev,...)
  1012. local t = m[ev]
  1013. if t and t._fakeEvent and t.Function then
  1014. t.Function(...)
  1015. end
  1016. end
  1017. m.TrigEvent = te
  1018. UIS.TrigEvent = te
  1019. Event.OnClientEvent:Connect(function(plr,io)
  1020. if plr~=Player then return end
  1021. if io.isMouse then
  1022. m.Target = io.Target
  1023. m.Hit = io.Hit
  1024. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  1025. if io.UserInputState == Enum.UserInputState.Begin then
  1026. m:TrigEvent("Button1Down")
  1027. else
  1028. m:TrigEvent("Button1Up")
  1029. end
  1030. else
  1031. for n,t in pairs(CAS.Actions) do
  1032. for _,k in pairs(t.Keys) do
  1033. if k==io.KeyCode then
  1034. t.Function(t.Name,io.UserInputState,io)
  1035. end
  1036. end
  1037. end
  1038. if io.UserInputState == Enum.UserInputState.Begin then
  1039. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  1040. UIS:TrigEvent("InputBegan",io,false)
  1041. else
  1042. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  1043. UIS:TrigEvent("InputEnded",io,false)
  1044. end
  1045. end
  1046. end)
  1047. --Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  1048. end
  1049.  
  1050. --BasicFunctions
  1051. local ins = Instance.new
  1052. local v3 = Vector3.new
  1053. local cf = CFrame.new
  1054. local angles = CFrame.Angles
  1055. local rad = math.rad
  1056. local huge = math.huge
  1057. local cos = math.cos
  1058. local sin = math.sin
  1059. local tan = math.tan
  1060. local abs = math.abs
  1061. local ray = Ray.new
  1062. local random = math.random
  1063. local ud = UDim.new
  1064. local ud2 = UDim2.new
  1065. local c3 = Color3.new
  1066. local rgb = Color3.fromRGB
  1067. local bc = BrickColor.new
  1068.  
  1069. --Services
  1070. local plrs = game:GetService("Players")
  1071. local tweens = game:GetService("TweenService")
  1072. local debrs = game:GetService("Debris")
  1073. local runservice = game:GetService("RunService")
  1074.  
  1075. --Variables
  1076. local plr = Player
  1077. local plrg = plr.PlayerGui
  1078. local char = plr.Character
  1079. local h = char.Head
  1080. local t = char.Torso
  1081. local ra = char["Right Arm"]
  1082. local la = char["Left Arm"]
  1083. local rl = char["Right Leg"]
  1084. local ll = char["Left Leg"]
  1085. local rut = char.HumanoidRootPart
  1086. local hum = char:FindFirstChildOfClass("Humanoid")
  1087. local nec = t.Neck
  1088. local rutj = rut.RootJoint
  1089. local rs = t["Right Shoulder"]
  1090. local ls = t["Left Shoulder"]
  1091. local rh = t["Right Hip"]
  1092. local lh = t["Left Hip"]
  1093.  
  1094. necc0,necc1=cf(0,t.Size.Y/2,0),cf(0,-h.Size.Y/2,0)
  1095. rutjc0,rutjc1=cf(0,0,0),cf(0,0,0)
  1096. rsc0,rsc1=cf(t.Size.X/2,t.Size.Y/4,0),cf(-ra.Size.X/2,ra.Size.Y/4,0)
  1097. lsc0,lsc1=cf(-t.Size.X/2,t.Size.Y/4,0),cf(la.Size.X/2,la.Size.Y/4,0)
  1098. rhc0,rhc1=cf(t.Size.X/4,-t.Size.Y/2,0),cf(0,rl.Size.Y/2,0)
  1099. lhc0,lhc1=cf(-t.Size.X/4,-t.Size.Y/2,0),cf(0,ll.Size.Y/2,0)
  1100. script.Client.Disabled = false
  1101. local muted = false
  1102. local using = false
  1103.  
  1104. local anim = "idle"
  1105. local asset = "rbxassetid://"
  1106.  
  1107. local change = 1
  1108. local sine = 0
  1109.  
  1110. local combo = 1
  1111.  
  1112. local timePos = 0
  1113. local staticTimePos = 0
  1114.  
  1115. local ws = 25
  1116. local jp = 65
  1117.  
  1118. --
  1119. local stepsounds = {
  1120. Grass = asset.."1201103066",
  1121. Sand = asset.."1436385526",
  1122. Plastic = asset.."1569994049",
  1123. Stone = asset.."507863857", --379398649
  1124. Wood = asset.."1201103959",
  1125. Pebble = asset.."1201103211",
  1126. Ice = asset.."265653271",
  1127. Glass = asset.."145180170",
  1128. Metal = asset.."379482691"
  1129. }
  1130.  
  1131. local directions = {In = Enum.EasingDirection.In,
  1132. Out = Enum.EasingDirection.Out,
  1133. InOut = Enum.EasingDirection.InOut
  1134. }
  1135.  
  1136. local styles = {Linear = Enum.EasingStyle.Linear,
  1137. Back = Enum.EasingStyle.Back,
  1138. Bounce = Enum.EasingStyle.Bounce,
  1139. Sine = Enum.EasingStyle.Sine,
  1140. Quad = Enum.EasingStyle.Quad,
  1141. Elastic = Enum.EasingStyle.Elastic,
  1142. Quart = Enum.EasingStyle.Quart,
  1143. Quint = Enum.EasingStyle.Quint
  1144. }
  1145.  
  1146. local swings = {
  1147. 2490619022,
  1148. 2490619317
  1149. }
  1150.  
  1151. local stepped = runservice.Heartbeat
  1152.  
  1153. --Removing joints/Animations
  1154. if char:FindFirstChild("Animate") then
  1155. char.Animate:Destroy()
  1156. end
  1157.  
  1158. if hum:FindFirstChildOfClass("Animator") then
  1159. char.Humanoid.Animator:Destroy()
  1160. end
  1161.  
  1162. hum.MaxHealth = 25000
  1163. hum.Health = hum.MaxHealth
  1164.  
  1165. nec.Parent = nil
  1166. rutj.Parent = nil
  1167. rs.Parent = nil
  1168. ls.Parent = nil
  1169. rh.Parent = nil
  1170. lh.Parent = nil
  1171.  
  1172. --Joints
  1173. local nec = ins("Motor6D",t) nec.Name = "Neck" nec.Part0 = t nec.Part1 = h
  1174. local rutj = ins("Motor6D",rut) rutj.Name = "RootJoint" rutj.Part0 = t rutj.Part1 = rut
  1175. local rs = ins("Motor6D",t) rs.Name = "Right Shoulder" rs.Part0 = t rs.Part1 = ra
  1176. local ls = ins("Motor6D",t) ls.Name = "Left Shoulder" ls.Part0 = t ls.Part1 = la
  1177. local rh = ins("Motor6D",t) rh.Name = "Right Hip" rh.Part0 = t rh.Part1 = rl
  1178. local lh = ins("Motor6D",t) lh.Name = "Left Hip" lh.Part0 = t lh.Part1 = ll
  1179.  
  1180. --Setting CFrames
  1181. nec.C1 = necc1
  1182. nec.C0 = necc0
  1183. rs.C1 = rsc1
  1184. rs.C0 = rsc0
  1185. ls.C1 = lsc1
  1186. ls.C0 = lsc0
  1187. rh.C1 = rhc1
  1188. rh.C0 = rhc0
  1189. lh.C1 = lhc1
  1190. lh.C0 = lhc0
  1191. rutj.C1 = rutjc1
  1192. rutj.C0 = rutjc0
  1193.  
  1194. --Functions1
  1195. function createWeld(p1,p2,c0,c1)
  1196. c0 = c0 or cf(0,0,0)
  1197. c1 = c1 or cf(0,0,0)
  1198. local weld = ins("Motor6D",p1)
  1199. weld.Part0 = p1
  1200. weld.Part1 = p2
  1201. weld.C0 = c0
  1202. weld.C1 = c1
  1203. return weld
  1204. end
  1205.  
  1206. --Adds
  1207. local damageBil = script.UIs.SPDamageUI
  1208.  
  1209. local scythe = script.Models.Scythe
  1210. scythe.Parent = char
  1211. --scythe.Transparency = 1
  1212.  
  1213.  
  1214. local handle = scythe.Handle
  1215. local blade = scythe.NeonBlade
  1216. blade.Transparency = 1
  1217. --Handle.Transparency = 1
  1218.  
  1219. game:GetService("Players").LocalPlayer.Character["BodyGuard"].Handle.att1_Handle.Parent = blade
  1220. blade.att1_Handle.Rotation = Vector3.new(280, 0, 90)
  1221. blade.att1_Handle.Position = Vector3.new(-1.7,-1,0)
  1222.  
  1223. game:GetService("Players").LocalPlayer.Character["Surfboard"].Handle.att1_Handle.Parent = handle
  1224. handle.att1_Handle.Rotation = Vector3.new(80,2,90)
  1225. handle.att1_Handle.Position = Vector3.new(0,2,0) --PlaneModel
  1226.  
  1227. game:GetService("Players").LocalPlayer.Character["PogoStick"].Handle.att1_Handle.Parent = blade
  1228. blade.att1_Handle.Rotation = Vector3.new(280,0,90)
  1229. blade.att1_Handle.Position = Vector3.new(-1.7,0,0)
  1230.  
  1231. local handleWeld = createWeld(ra,handle,cf(0,-1,0) * angles(rad(-90),rad(0),rad(0)))
  1232.  
  1233. local shadow = ins("Model",char)
  1234. shadow.Name = "Shadow"
  1235.  
  1236. local ff = ins("ForceField",char)
  1237. ff.Visible = false
  1238.  
  1239. local effects = ins("Model",char)
  1240. effects.Name = "Effects"
  1241.  
  1242. local theme = ins("Sound",t)
  1243. theme.Volume = 1.5
  1244. theme.SoundId = asset..1493059596
  1245. theme.Looped = true
  1246. theme:Play()
  1247.  
  1248. local static = ins("Sound",blade)
  1249. static.Volume = 1
  1250. static.SoundId = asset..1080752200
  1251. static.Looped = true
  1252. static:Play()
  1253.  
  1254. function createShadow(p,off,trans)
  1255. if trans >1 then
  1256. return
  1257. end
  1258. local pa = ins("Part",shadow)
  1259. pa.Size = v3(.1*p.Size.x,.1*p.Size.y,.1*p.Size.z)
  1260. pa.Material = "Plastic"
  1261. pa.CanCollide = false
  1262. pa.Locked = true
  1263. pa.Color = c3(0,0,0)
  1264. pa.Transparency = trans
  1265. pa.Massless = true
  1266. pa.Name = "Shadow"
  1267. local mesh = ins("SpecialMesh",pa)
  1268. mesh.Scale = v3(1.255,1.265/2,1.255) * 10
  1269. mesh.Offset = v3(0,off,0)
  1270. local weld = createWeld(p,pa,cf(0,0,0),cf(0,0,0))
  1271. return pa
  1272. end
  1273.  
  1274. local off = .325*h.Size.y
  1275. for i = .325*h.Size.y,-.15*h.Size.y,-.0045*h.Size.y do
  1276. local e = createShadow(h,off,1 - i*2.75)
  1277. off = off -.0075*h.Size.y
  1278. end
  1279.  
  1280. local shaker = script.DistShaker:Clone()
  1281.  
  1282. --Functions2
  1283.  
  1284. function remove(instance,time)
  1285. time = time or 0
  1286. game:GetService("Debris"):AddItem(instance,time)
  1287. end
  1288.  
  1289. function swait()
  1290. game:GetService("RunService").Stepped:Wait()
  1291. end
  1292.  
  1293. function rayc(spos,direc,ignore,dist)
  1294. local rai = ray(spos,direc.Unit * dist)
  1295. local rhit,rpos,rrot = workspace:FindPartOnRayWithIgnoreList(rai,ignore,false,false)
  1296. return rhit,rpos,rrot
  1297. end
  1298.  
  1299. function sound(id,vol,pitch,parent,maxdist)
  1300. local mdist = 30 or maxdist
  1301. local newsound = Instance.new("Sound",parent)
  1302. newsound.Volume = vol
  1303. newsound.SoundId = "rbxassetid://"..id
  1304. newsound.Pitch = pitch
  1305. newsound:Play()
  1306. coroutine.resume(coroutine.create(function()
  1307. wait(.1)
  1308. remove(newsound,newsound.TimeLength/newsound.Pitch)
  1309. end))
  1310. return newsound
  1311. end
  1312.  
  1313. function placesoundpart(rcf,id,vol,pitch,maxdist)
  1314. pcall(function()
  1315. local mdist = 30 or maxdist
  1316. local spart = ins("Part",effects)
  1317. spart.Anchored = true
  1318. spart.CanCollide = false
  1319. spart.Locked = true
  1320. spart.Transparency = 1
  1321. spart.CFrame = rcf
  1322. local ssound = sound(id,vol,pitch,spart,mdist)
  1323. remove(spart,ssound.TimeLength/ssound.Pitch)
  1324. end)
  1325. end
  1326.  
  1327. local tlerp = function(part,tablee,leinght,easingstyle,easingdirec)
  1328. local info = TweenInfo.new(
  1329. leinght,
  1330. easingstyle,
  1331. easingdirec,
  1332. 0,
  1333. false,
  1334. 0
  1335. )
  1336. local lerp = tweens:Create(part,info,tablee)
  1337. lerp:Play()
  1338. end
  1339.  
  1340. local Effects = {
  1341. Ring = function(pos,color,sSize,eSize,sTrans,eTrans,time,style)
  1342. style = style or "Linear"
  1343. local ring = script.Effects.Ring:Clone()
  1344. ring.Size = sSize
  1345. ring.Transparency = sTrans
  1346. ring.CFrame = pos
  1347. ring.Color = color
  1348. ring.Parent = effects
  1349. remove(ring,time)
  1350. tlerp(ring,{Size = eSize,Transparency = eTrans},time,styles[style],directions.Out)
  1351. end,
  1352. SpinningRing = function(pos,color,rotation,sSize,eSize,sTrans,eTrans,time,style)
  1353. style = style or "Linear"
  1354. local ring = script.Effects.Ring:Clone()
  1355. ring.Size = sSize
  1356. ring.Transparency = sTrans
  1357. ring.CFrame = pos
  1358. ring.Color = color
  1359. ring.Parent = effects
  1360. remove(ring,time)
  1361. tlerp(ring,{Size = eSize,Transparency = eTrans},time,styles[style],directions.Out)
  1362. coroutine.wrap(function()
  1363. repeat
  1364. ring.CFrame = ring.CFrame * rotation
  1365. wait(1/30)
  1366. until not ring.Parent
  1367. end)()
  1368. end,
  1369. Sphere = function(pos,color,sSize,eSize,sTrans,eTrans,time,style)
  1370. style = style or "Linear"
  1371. local sphere = ins("Part")
  1372. sphere.Shape = "Ball"
  1373. sphere.Size = v3(sSize,sSize,sSize)
  1374. sphere.Transparency = sTrans
  1375. sphere.CFrame = pos
  1376. sphere.Color = color
  1377. sphere.Parent = effects
  1378. sphere.Anchored = true
  1379. sphere.CanCollide = false
  1380. sphere.Locked = true
  1381. sphere.Material = "Neon"
  1382. remove(sphere,time)
  1383. tlerp(sphere,{Size = v3(eSize,eSize,eSize),Transparency = eTrans},time,styles[style],directions.Out)
  1384. return sphere
  1385. end,
  1386. Beam = function(pos,color,sLength,eLength,sThickness,eThickness,sTrans,eTrans,time,style)
  1387. style = style or "Linear"
  1388. local sphere = ins("Part")
  1389. sphere.Shape = "Block"
  1390. sphere.Size = v3(sThickness,sLength,sThickness)
  1391. sphere.Transparency = sTrans
  1392. sphere.CFrame = pos
  1393. sphere.Color = color
  1394. sphere.Parent = effects
  1395. sphere.Anchored = true
  1396. sphere.CanCollide = false
  1397. sphere.Locked = true
  1398. sphere.Material = "Neon"
  1399. ins("CylinderMesh",sphere)
  1400. remove(sphere,time)
  1401. tlerp(sphere,{Size = v3(eThickness,eLength,eThickness),Transparency = eTrans},time,styles[style],directions.Out)
  1402. end,
  1403. SpinningBlock = function(pos,color,sSize,eSize,sTrans,eTrans,cfRotation,time,style)
  1404. style = style or "Linear"
  1405. local part = ins("Part")
  1406. part.Size = v3(sSize,sSize,sSize)
  1407. part.Transparency = sTrans
  1408. part.CFrame = pos
  1409. part.Color = color
  1410. part.Parent = effects
  1411. part.Anchored = true
  1412. part.CanCollide = false
  1413. part.Locked = true
  1414. part.Material = "Neon"
  1415. remove(part,time)
  1416. tlerp(part,{Size = v3(eSize,eSize,eSize),Transparency = eTrans},time,styles[style],directions.Out)
  1417. coroutine.wrap(function()
  1418. repeat
  1419. part.CFrame = part.CFrame * cfRotation
  1420. wait(1/30)
  1421. until not part.Parent
  1422. end)()
  1423. end,
  1424. CustomSphere = function(pos,endPos,color,sSize,eSize,sTrans,eTrans,time,style)
  1425. style = style or "Linear"
  1426. local sphere = ins("Part")
  1427. sphere.Size = sSize
  1428. sphere.Transparency = sTrans
  1429. sphere.CFrame = pos
  1430. sphere.Color = color
  1431. sphere.Parent = effects
  1432. sphere.Anchored = true
  1433. sphere.CanCollide = false
  1434. sphere.Locked = true
  1435. sphere.Material = "Neon"
  1436.  
  1437. local mesh = ins("SpecialMesh",sphere)
  1438. mesh.MeshType = "Sphere"
  1439.  
  1440. remove(sphere,time)
  1441. tlerp(sphere,{Size = eSize,Transparency = eTrans,CFrame = endPos},time,styles[style],directions.Out)
  1442. end,
  1443. CustomSphereBoomerang = function(pos,endPos,color,sSize,eSize,sTrans,eTrans,time,style)
  1444. style = style or "Linear"
  1445. local sphere = ins("Part")
  1446. sphere.Size = sSize
  1447. sphere.Transparency = sTrans
  1448. sphere.CFrame = pos
  1449. sphere.Color = color
  1450. sphere.Parent = effects
  1451. sphere.Anchored = true
  1452. sphere.CanCollide = false
  1453. sphere.Locked = true
  1454. sphere.Material = "Neon"
  1455.  
  1456. local mesh = ins("SpecialMesh",sphere)
  1457. mesh.MeshType = "Sphere"
  1458. coroutine.wrap(function()
  1459. remove(sphere,time)
  1460. tlerp(sphere,{Transparency = eTrans},time * 1.25,styles[style],directions.Out)
  1461. tlerp(sphere,{Size = eSize,CFrame = endPos},time/2,styles[style],directions.Out)
  1462. wait(time/2)
  1463. tlerp(sphere,{Size = sSize},time/2,styles[style],directions.Out)
  1464. end)()
  1465. end,
  1466. CustomSphereBoomerangPlusPos = function(pos,endPos,color,sSize,eSize,sTrans,eTrans,time,style)
  1467. style = style or "Linear"
  1468. local sphere = ins("Part")
  1469. sphere.Size = sSize
  1470. sphere.Transparency = sTrans
  1471. sphere.CFrame = pos
  1472. sphere.Color = color
  1473. sphere.Parent = effects
  1474. sphere.Anchored = true
  1475. sphere.CanCollide = false
  1476. sphere.Locked = true
  1477. sphere.Material = "Neon"
  1478.  
  1479. local mesh = ins("SpecialMesh",sphere)
  1480. mesh.MeshType = "Sphere"
  1481. coroutine.wrap(function()
  1482. remove(sphere,time)
  1483. tlerp(sphere,{Transparency = eTrans},time * 1.25,styles[style],directions.Out)
  1484. tlerp(sphere,{Size = eSize,CFrame = endPos},time/2,styles[style],directions.Out)
  1485. wait(time/2)
  1486. tlerp(sphere,{Size = sSize,CFrame = pos},time/2,styles[style],directions.Out)
  1487. end)()
  1488. end,
  1489. Wind = function(pos,color,rotation,sSize,eSize,sTrans,eTrans,time,style)
  1490. style = style or "Linear"
  1491. local ring = script.Effects.Wind:Clone()
  1492. ring.Size = sSize
  1493. ring.Transparency = sTrans
  1494. ring.CFrame = pos
  1495. ring.Color = color
  1496. ring.Parent = effects
  1497. remove(ring,time)
  1498. tlerp(ring,{Size = eSize,Transparency = eTrans},time,styles[style],directions.Out)
  1499. coroutine.wrap(function()
  1500. repeat
  1501. ring.CFrame = ring.CFrame * angles(rad(0),rad(rotation),rad(0))
  1502. wait(1/30)
  1503. until not ring.Parent
  1504. end)()
  1505. end,
  1506. CreateCamShake = function(part,maxDist,intensivity,time)
  1507. maxDist = maxDist or 20
  1508. intensivity = intensivity or 1
  1509. time = time or .1
  1510.  
  1511. local bool = ins("BoolValue",part)
  1512. bool.Name = "Shaking"
  1513. bool.Value = true
  1514.  
  1515. local MaxDist = ins("NumberValue",bool)
  1516. MaxDist.Name = "MaxDist"
  1517. MaxDist.Value = maxDist
  1518.  
  1519. local Intensivity = ins("NumberValue",bool)
  1520. Intensivity.Name = "Intensivity"
  1521. Intensivity.Value = intensivity
  1522.  
  1523. remove(bool,time)
  1524. end,
  1525. SoundEffect = function(sound,effect)
  1526. ins(effect.."SoundEffect",sound)
  1527. end
  1528. }
  1529.  
  1530. function death(whom)
  1531. coroutine.wrap(function()
  1532. if whom then
  1533. whom:BreakJoints()
  1534. remove(whom,7.5)
  1535. local p = whom:FindFirstChildWhichIsA("BasePart")
  1536. if p then
  1537. placesoundpart(p.CFrame,1835350947,2.5,random(120,130)/100,5)
  1538. end
  1539. for i,v in pairs(whom:GetChildren()) do
  1540. if v:IsA("BasePart") then
  1541. coroutine.wrap(function()
  1542. local clon = v:Clone()
  1543. remove(v)
  1544. clon.Anchored = true
  1545. clon.Massless = true
  1546. clon.CanCollide = false
  1547. clon.Locked = true
  1548. clon.Material = "Neon"
  1549. clon.CFrame = v.CFrame
  1550. clon.Transparency = 0
  1551. clon:ClearAllChildren()
  1552. clon.Color = bc("Royal purple").Color
  1553. if clon.Name == "Head" then
  1554. clon.Size = v3(clon.Size.Z,clon.Size.Z,clon.Size.Z)
  1555. end
  1556. clon.Parent = effects
  1557. local ori = clon.Orientation
  1558. local pos = clon.Position
  1559. local time = random(15,30)/10 * (clon.Size).Magnitude
  1560. local size = clon.Size
  1561. coroutine.wrap(function()
  1562. for i = 1,time,time/20 do
  1563. local c = clon.CFrame * cf(random(-(clon.Size.X * 10),(clon.Size.X * 10))/20,random(-(clon.Size.Y * 10),(clon.Size.Y * 10))/20,random(-(clon.Size.Z * 10),(clon.Size.Z * 10))/20)
  1564. Effects.CustomSphere(cf(c.Position),cf(c.Position) * cf(0,(-random(10,25)/10) * (clon.Size).Magnitude,0),bc("Royal purple").Color,v3(.15,.15,.15) * (clon.Size).Magnitude,v3(0,1,0) * (clon.Size).Magnitude,clon.Transparency,1,(random(15,30)/100) * (clon.Size).Magnitude,"Linear")
  1565. wait(time/20)
  1566. end
  1567. end)()
  1568. remove(clon,time)
  1569. tlerp(clon,{Position = pos + v3(0,(random(5,15)/10) * (clon.Size).Magnitude,0),Orientation = ori + v3(random(-15,15),random(-15,15),random(-15,15)) * (clon.Size).Magnitude,Transparency = 1},time,styles.Quart,directions.Out)
  1570. tlerp(clon,{Size = size * .5},time/2,styles.Back,directions.InOut)
  1571. wait(time/2)
  1572. tlerp(clon,{Size = size * 1.5},time/2,styles.Linear,directions.Out)
  1573. end)()
  1574. else
  1575. remove(v)
  1576. end
  1577. end
  1578. end
  1579. end)()
  1580. end
  1581.  
  1582. function showDamage(pos,text,time,animTime)
  1583. coroutine.wrap(function()
  1584. pos = pos or t.CFrame
  1585. text = text or "NULL"
  1586. time = time or 2
  1587. animTime = animTime or .5
  1588.  
  1589. local clon = damageBil:Clone()
  1590. local backG = clon.MainFrame
  1591. local tex = backG.Damage
  1592. local dFrame = clon.DropsFrame
  1593. local drop = dFrame.Drop
  1594. local p = ins("Part")
  1595.  
  1596. p.Locked = true
  1597. p.Massless = true
  1598. p.CanCollide = false
  1599. p.Anchored = true
  1600. p.Size = v3(0,0,0)
  1601. p.Transparency = 1
  1602. p.CFrame = cf(pos.Position) * cf(random(-25,25)/10,random(-25,25)/10,random(-25,25)/10)
  1603. p.Parent = effects
  1604.  
  1605. clon.Parent = p
  1606. drop.Parent = nil
  1607. drop.Visible = true
  1608.  
  1609. tex.Text = text
  1610.  
  1611. remove(p,time + (animTime * 2))
  1612.  
  1613. coroutine.wrap(function()
  1614. repeat
  1615. if p.Parent ~= effects then
  1616. remove(p)
  1617. end
  1618. local dClon = drop:Clone()
  1619. local dropPos = random(0,100)/100
  1620. local dropSize = random(5,15)/100
  1621. local growTime = random(15,25)/100
  1622. local fallTime = random(7,15)/100
  1623. local fallDelay = random(7,15)/100
  1624.  
  1625. dClon.Parent = dFrame
  1626. dClon.Position = ud2(dropPos,0,0,0)
  1627. dClon.Size = ud2(0,0,0,0)
  1628. dClon.ImageTransparency = 1
  1629. dClon.Visible = true
  1630.  
  1631. coroutine.wrap(function()
  1632. remove(dClon,growTime + fallTime + fallDelay)
  1633. tlerp(dClon,{ImageTransparency = backG.BackgroundTransparency,Size = ud2(dropSize,0,dropSize,0)},growTime,styles.Sine,directions.Out)
  1634. wait(growTime + fallDelay)
  1635. tlerp(dClon,{ImageTransparency = 1,Size = ud2(dropSize/2,0,dropSize * 12.5,0)},fallTime,styles.Sine,directions.Out)
  1636. end)()
  1637.  
  1638. wait(random(5,15)/100)
  1639. until not p.Parent
  1640. end)()
  1641.  
  1642. tlerp(backG,{BackgroundTransparency = .5},animTime,styles.Back,directions.In)
  1643. tlerp(tex,{TextTransparency = 0,TextStrokeTransparency = 0},animTime,styles.Back,directions.In)
  1644.  
  1645. wait(time)
  1646.  
  1647. tlerp(backG,{BackgroundTransparency = 1},animTime,styles.Back,directions.In)
  1648. tlerp(tex,{TextTransparency = 1,TextStrokeTransparency = 1},animTime,styles.Back,directions.In)
  1649. end)()
  1650. end
  1651.  
  1652. function damage(humanoid,Damage,knockback,knockbackStartPoint,knockbackTime,knockDelay,damageSound)
  1653. Damage = Damage or random(0,0)
  1654. knockback = knockback or 15
  1655. knockbackStartPoint = knockbackStartPoint or v3(0,0,0)
  1656. knockbackTime = knockbackTime or .15
  1657. knockDelay = knockDelay or .2
  1658. damageSound = damageSound or sound(851453784,1.5,random(90,110)/100,nil,1)
  1659. if humanoid and not humanoid:FindFirstChild("Dbounce'd") and humanoid.Health > .01 then
  1660. Damage = math.floor(Damage * (0 + humanoid.MaxHealth/0))
  1661. local part = humanoid.Parent:FindFirstChildOfClass("Part") or humanoid.Parent:FindFirstChildOfClass("MeshPart")
  1662. local deb = ins("BoolValue",humanoid)
  1663. deb.Name = "Dbounce'd"
  1664. remove(deb,knockDelay)
  1665. if part then
  1666. damageSound.Parent = part
  1667. local knock = ins("BodyVelocity",part)
  1668. knock.MaxForce = v3(huge,huge,huge)
  1669. knock.Velocity = -cf(part.Position,knockbackStartPoint).LookVector * knockback
  1670. showDamage(part.CFrame,"-"..Damage,random(0,0)/0,0)
  1671. remove(knock,knockbackTime)
  1672. end
  1673. if humanoid.MaxHealth > 0 then
  1674. sound(1753674936,5,1,t,5)
  1675. death(humanoid.Parent)
  1676. end
  1677. humanoid.Health = humanoid.Health - Damage
  1678. if humanoid.Health < .01 then
  1679. death(humanoid.Parent)
  1680. if part then
  1681. placesoundpart(part,2801263,15,random(90,110)/100,1)
  1682. end
  1683. end
  1684. end
  1685. end
  1686.  
  1687. --[[function magDamage(pos,partSize,size,Damage,knockback,knockbackTime,knockDelay,damageSound)
  1688. local reg
  1689. local knockPoint
  1690. if typeof(pos) == "Vector3" then
  1691. reg = Region3.new(pos - v3(size/2,size/2,size/2),pos + v3(size/2,size/2,size/2))
  1692. knockPoint = pos
  1693. elseif typeof(pos) == "Instance" then
  1694. knockPoint = pos.Position
  1695. if partSize then
  1696. reg = Region3.new(pos.CFrame * cf(-pos.Size.X/2,-pos.Size.Y/2,-pos.Size.Y/2).Position,pos.CFrame * cf(pos.Size.X/2,pos.Size.Y/2,pos.Size.Z/2).Position)
  1697. else
  1698. reg = Region3.new(pos.Position - v3(size/2,size/2,size/2),pos.Position + v3(size/2,size/2,size/2))
  1699. end
  1700. end
  1701. if reg then
  1702. for i,v in pairs(workspace:FindPartsInRegion3WithIgnoreList(reg,{char},0)) do
  1703. local humm = v.Parent:FindFirstChildOfClass("Humanoid")
  1704. if humm then
  1705. damage(humm,Damage,knockback,knockPoint,knockbackTime,knockDelay,damageSound)
  1706. end
  1707. end
  1708. end
  1709. end]]
  1710.  
  1711. function swing1()
  1712. using = true
  1713. local oldWS = ws
  1714. local oldJP = jp
  1715. ws = 4
  1716. jp = 45
  1717. local add = -.035
  1718. local alpha = .5
  1719. sound(swings[random(1,#swings)],2.5,random(60,80)/100,ra,1)
  1720. for i = 0,1,.075 do
  1721. nec.C0 = nec.C0:Lerp(necc0 * cf(0,0,0) * angles(rad(-5),rad(35),rad(0)),alpha)
  1722. rutj.C0 = rutj.C0:Lerp(rutjc0 * cf(0,.1,-.1) * angles(rad(-5),rad(45),rad(-5)),alpha)
  1723. rs.C0 = rs.C0:Lerp(rsc0 * cf(0,-.15,.25) * angles(rad(205),rad(25),rad(0)) * angles(rad(-5),rad(0),rad(15)),alpha)
  1724. ls.C0 = ls.C0:Lerp(lsc0 * cf(.075,-.15,.15) * angles(rad(15),rad(-25),rad(-7.5)),alpha)
  1725. rh.C0 = rh.C0:Lerp(rhc0 * cf(0,0,0) * angles(rad(2.5),rad(-5),rad(2.5)),alpha)
  1726. lh.C0 = lh.C0:Lerp(lhc0 * cf(0,.05,-.05) * angles(rad(-20),rad(15),rad(-5)),alpha)
  1727. handleWeld.C0 = handleWeld.C0:Lerp(cf(0,-1,0) * angles(rad(-75),rad(10),rad(0)),alpha)
  1728. alpha = alpha + add
  1729. swait()
  1730. end
  1731. alpha = .25
  1732. add = .15
  1733. for i = 0,1,.125 do
  1734. local s = sound(566593606,1.5,random(85,115)/100,nil,2.5)
  1735. s.TimePosition = .075
  1736. --magDamage(blade,false,10,random(15,25),random(20,40),.1,.35,s)
  1737. nec.C0 = nec.C0:Lerp(necc0 * cf(0,0,0) * angles(rad(2.5),rad(-30),rad(0)),alpha)
  1738. rutj.C0 = rutj.C0:Lerp(rutjc0 * cf(0,.125,.25) * angles(rad(5),rad(-45),rad(5)),alpha)
  1739. rs.C0 = rs.C0:Lerp(rsc0 * cf(0,-.25,-.35) * angles(rad(35),rad(-50),rad(0)) * angles(rad(0),rad(0),rad(-7.5)),alpha)
  1740. ls.C0 = ls.C0:Lerp(lsc0 * cf(.1,-.2,.1) * angles(rad(-15),rad(15),rad(-5)),alpha)
  1741. rh.C0 = rh.C0:Lerp(rhc0 * cf(0,.05,-.05) * angles(rad(-12.5),rad(-10),rad(2.5)),alpha)
  1742. lh.C0 = lh.C0:Lerp(lhc0 * cf(0,0,0) * angles(rad(5),rad(5),rad(2.5)),alpha)
  1743. handleWeld.C0 = handleWeld.C0:Lerp(cf(0,-1,0) * angles(rad(-110),rad(20),rad(0)),alpha)
  1744. alpha = alpha + add
  1745. if alpha >1 then
  1746. add = -math.abs(add)
  1747. end
  1748. swait()
  1749. end
  1750. ws = oldWS
  1751. jp = oldJP
  1752. using = false
  1753. end
  1754.  
  1755. function swing2()
  1756. using = true
  1757. local oldWS = ws
  1758. local oldJP = jp
  1759. ws = 4
  1760. jp = 45
  1761. local add = -.035
  1762. local alpha = .5
  1763. sound(swings[random(1,#swings)],2.5,random(60,80)/100,ra,1)
  1764. for i = 0,1,.075 do
  1765. nec.C0 = nec.C0:Lerp(necc0 * cf(0,0,0) * angles(rad(0),rad(-60),rad(0)),alpha)
  1766. rutj.C0 = rutj.C0:Lerp(rutjc0 * cf(0,0,0) * angles(rad(2.5),rad(-60),rad(-7.5)),alpha)
  1767. rs.C0 = rs.C0:Lerp(rsc0 * cf(0,0,-.5) * angles(rad(85),rad(95),rad(0)) * angles(rad(20),rad(0),rad(0)),alpha)
  1768. ls.C0 = ls.C0:Lerp(lsc0 * cf(0,-.2,.15) * angles(rad(-10),rad(10),rad(-5)),alpha)
  1769. rh.C0 = rh.C0:Lerp(rhc0 * cf(0,-.1,0) * angles(rad(-15),rad(-5),rad(-5)),alpha)
  1770. lh.C0 = lh.C0:Lerp(lhc0 * cf(0,-.1,-.15) * angles(rad(20),rad(5),rad(-10)),alpha)
  1771. handleWeld.C0 = handleWeld.C0:Lerp(cf(0,-1,0) * angles(rad(-85),rad(0),rad(0)),alpha)
  1772. alpha = alpha + add
  1773. swait()
  1774. end
  1775. alpha = .25
  1776. add = .15
  1777. for i = 0,1,.125 do
  1778. local s = sound(566593606,1.5,random(85,115)/100,nil,2.5)
  1779. s.TimePosition = .075
  1780. --magDamage(blade,false,10,random(15,25),random(20,40),.1,.35,s)
  1781. nec.C0 = nec.C0:Lerp(necc0 * cf(0,0,0) * angles(rad(0),rad(75),rad(0)),alpha)
  1782. rutj.C0 = rutj.C0:Lerp(rutjc0 * cf(0,0,0) * angles(rad(-2.5),rad(75),rad(0)),alpha)
  1783. rs.C0 = rs.C0:Lerp(rsc0 * cf(0,0,-.35) * angles(rad(90),rad(85),rad(0)) * angles(rad(-105),rad(0),rad(0)),alpha)
  1784. ls.C0 = ls.C0:Lerp(lsc0 * cf(0,-.25,.25) * angles(rad(25),rad(-35),rad(-7.5)),alpha)
  1785. rh.C0 = rh.C0:Lerp(rhc0 * cf(0,0,0) * angles(rad(15),rad(-5),rad(1.5)),alpha)
  1786. lh.C0 = lh.C0:Lerp(lhc0 * cf(0,0,0) * angles(rad(-15),rad(5),rad(-5)),alpha)
  1787. handleWeld.C0 = handleWeld.C0:Lerp(cf(0,-1,0) * angles(rad(-120),rad(0),rad(0)),alpha)
  1788. alpha = alpha + add
  1789. if alpha >1 then
  1790. add = -math.abs(add)
  1791. end
  1792. swait()
  1793. end
  1794. ws = oldWS
  1795. jp = oldJP
  1796. using = false
  1797. end
  1798.  
  1799. --[[
  1800. local alpha = .35
  1801. for i = 0,1,.025 do
  1802. nec.C0 = nec.C0:Lerp(necc0 * cf(0,0,0) * angles(rad(0),rad(0),rad(0)),alpha)
  1803. rutj.C0 = rutj.C0:Lerp(rutjc0 * cf(0,0,0) * angles(rad(0),rad(0),rad(0)),alpha)
  1804. rs.C0 = rs.C0:Lerp(rsc0 * cf(0,0,0) * angles(rad(0),rad(0),rad(0)),alpha)
  1805. ls.C0 = ls.C0:Lerp(lsc0 * cf(0,0,0) * angles(rad(0),rad(0),rad(0)),alpha)
  1806. rh.C0 = rh.C0:Lerp(rhc0 * cf(0,0,0) * angles(rad(0),rad(0),rad(0)),alpha)
  1807. lh.C0 = lh.C0:Lerp(lhc0 * cf(0,0,0) * angles(rad(0),rad(0),rad(0)),alpha)
  1808. alpha = alpha -.025
  1809. swait()
  1810. end
  1811. function base()
  1812. using = true
  1813. local oldWS = ws
  1814. local oldJP = jp
  1815. ws = 0
  1816. jp = 0
  1817.  
  1818. ws = oldWS
  1819. jp = oldJP
  1820. using = false
  1821. end
  1822. --]]
  1823.  
  1824. local combos = {swing1,swing2}
  1825.  
  1826. mouse.KeyDown:Connect(function(key)
  1827. if not using then
  1828.  
  1829. end
  1830. if key == "m" then
  1831. muted = not muted
  1832. end
  1833. end)
  1834.  
  1835. mouse.Button1Down:Connect(function()
  1836. if not using then
  1837. combos[combo]()
  1838. combo = combo +1
  1839. if combo >#combos then
  1840. combo = 1
  1841. end
  1842. end
  1843. end)
  1844.  
  1845. stepped:Connect(function()
  1846. sine = sine + change
  1847.  
  1848. local verVel = rut.Velocity.y
  1849. local horVel = (rut.Velocity * v3(1,0,1)).Magnitude
  1850.  
  1851. local Ccf=rut.CFrame
  1852.  
  1853. local dir = hum.MoveDirection
  1854.  
  1855. if dir == v3(0,0,0) then
  1856. dir = rut.Velocity/10
  1857. end
  1858.  
  1859. if theme.Parent ~= t then
  1860. remove(theme)
  1861. theme = ins("Sound",t)
  1862. theme.Volume = 1.5
  1863. theme.SoundId = asset..1493059596
  1864. theme.Looped = true
  1865. theme.TimePosition = timePos
  1866. theme:Play()
  1867. end
  1868.  
  1869. if static.Parent ~= t then
  1870. remove(static)
  1871. static = ins("Sound",t)
  1872. static.Volume = 1.5
  1873. static.SoundId = asset..1080752200
  1874. static.Looped = true
  1875. static.TimePosition = staticTimePos
  1876. static:Play()
  1877. end
  1878.  
  1879. if not muted then
  1880. theme.Volume = 1.5
  1881. else
  1882. theme.Volume = 0
  1883. end
  1884. theme.SoundId = asset..1493059596
  1885. theme.Looped = true
  1886. theme:Resume()
  1887. theme.Name = "Theme"
  1888.  
  1889. static.Volume = .75
  1890. static.SoundId = asset..1080752200
  1891. static.Looped = true
  1892. static:Resume()
  1893. static.Name = "Static"
  1894.  
  1895. timePos = theme.TimePosition
  1896. staticTimePos = static.TimePosition
  1897.  
  1898. local Walktest1 = dir * Ccf.LookVector
  1899. local Walktest2 = dir * Ccf.RightVector
  1900.  
  1901. local rotfb = Walktest1.X+Walktest1.Z
  1902. local rotrl = Walktest2.X+Walktest2.Z
  1903.  
  1904. if rotfb >1 then
  1905. rotfb = 1
  1906. elseif rotfb <-1 then
  1907. rotfb = -1
  1908. end
  1909.  
  1910. if rotrl >1 then
  1911. rotrl = 1
  1912. elseif rotrl <-1 then
  1913. rotrl = -1
  1914. end
  1915.  
  1916. hum.WalkSpeed = ws
  1917. hum.JumpPower = jp
  1918.  
  1919. --[[for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  1920. if not v.PlayerGui:FindFirstChild(shaker.Name) then
  1921. local shak = shaker:Clone()
  1922. shak.Parent = v.PlayerGui
  1923. shak.Disabled = false
  1924. end
  1925. end]]
  1926.  
  1927. local hit,pos,nId = rayc(rut.Position + v3(0,-rut.Size.y/2,0),v3(rut.Position.x,-10000,rut.Position.z),{char},3)
  1928.  
  1929. if using then
  1930. anim = "idle"
  1931. end
  1932.  
  1933. if anim == "idle" and hit then
  1934. nec.C1 = nec.C1:Lerp(necc1 * cf(0,0,0) * angles(sin(sine/20) * rad(2.5),sin(sine/40) * rad(1),sin(sine/40) * rad(5)),.1)
  1935. rutj.C1 = rutj.C1:Lerp(rutjc1 * cf(sin(sine/40)/15,sin(sine/20)/15,sin(sine/60)/15) * angles(sin(sine/20) * rad(2.5),sin(sine/80) * rad(5),sin(sine/40) * rad(2.5)),.1)
  1936. rs.C1 = rs.C1:Lerp(rsc1 * cf(0,-sin(sine/20)/15,0) * angles(-sin(sine/20) * rad(1.5),sin(sine/80) * rad(5),sin(sine/40) * rad(1.5)),.1)
  1937. ls.C1 = ls.C1:Lerp(lsc1 * cf(0,sin(sine/20)/15,0) * angles(-cos(sine/20) * rad(7.5),sin(sine/80) * rad(5),sin(sine/40) * rad(2.5)),.1)
  1938. rh.C1 = rh.C1:Lerp(rhc1 * cf(0,(sin(sine/20)/15) + (sin(sine/40)/25),0) * angles((sin(sine/20) * rad(3.5)) + (sin(sine/80) * rad(2.5)),rad(0),sin(sine/40) * rad(5)),.1)
  1939. lh.C1 = lh.C1:Lerp(lhc1 * cf(0,(sin(sine/20)/15) + (-sin(sine/40)/25),0) * angles((sin(sine/20) * rad(3.5)) - (sin(sine/80) * rad(2.5)),rad(0),sin(sine/40) * rad(5)),.1)
  1940. elseif anim == "fall" and not hit then
  1941. nec.C1 = nec.C1:Lerp(necc1 * cf(0,0,0) * angles(rad(0),rad(0),rad(0)),.1)
  1942. rutj.C1 = rutj.C1:Lerp(rutjc1 * cf(0,0,0) * angles(rad(0),rad(0),rad(0)),.1)
  1943. rs.C1 = rs.C1:Lerp(rsc1 * cf(0,0,0) * angles(rad(0),rad(0),rad(0)),.1)
  1944. ls.C1 = ls.C1:Lerp(lsc1 * cf(0,0,0) * angles(rad(0),rad(0),rad(0)),.1)
  1945. rh.C1 = rh.C1:Lerp(rhc1 * cf(0,0,0) * angles(rad(0),rad(0),rad(0)),.1)
  1946. lh.C1 = lh.C1:Lerp(lhc1 * cf(0,0,0) * angles(rad(0),rad(0),rad(0)),.1)
  1947. elseif anim == "jump" and not hit then
  1948. nec.C1 = nec.C1:Lerp(necc1 * cf(0,0,0) * angles(rad(0),rad(0),rad(0)),.1)
  1949. rutj.C1 = rutj.C1:Lerp(rutjc1 * cf(0,0,0) * angles(rad(0),rad(0),rad(0)),.1)
  1950. rs.C1 = rs.C1:Lerp(rsc1 * cf(0,0,0) * angles(rad(0),rad(0),rad(0)),.1)
  1951. ls.C1 = ls.C1:Lerp(lsc1 * cf(0,0,0) * angles(rad(0),rad(0),rad(0)),.1)
  1952. rh.C1 = rh.C1:Lerp(rhc1 * cf(0,0,0) * angles(rad(0),rad(0),rad(0)),.1)
  1953. lh.C1 = lh.C1:Lerp(lhc1 * cf(0,0,0) * angles(rad(0),rad(0),rad(0)),.1)
  1954. elseif anim == "walk" and hit then
  1955. nec.C1 = nec.C1:Lerp(necc1 * cf(0,0,0) * angles(-sin(sine/1.75) * rad(1),sin(sine/3.5) * rad(3.5),sin(sine/3.5) * rad(2.5)) * angles(0,rotrl/1.5,0),.2)
  1956. rutj.C1 = rutj.C1:Lerp(rutjc1 * cf(0,sin(sine/1.75)/7.5,0) * angles(sin(sine/1.75) * rad(5),sin(sine/3.5) * rad(5),rad(0)) * angles(-rotfb/7.5,0,-rotrl/6),.2)
  1957. rs.C1 = rs.C1:Lerp(rsc1 * cf(0,sin(sine/1.75)/10,0) * angles(sin(sine/3.5) * rad(5) * rotfb,rad(0),rad(0)),.2)
  1958. ls.C1 = ls.C1:Lerp(lsc1 * cf(0,-sin(sine/1.75)/10,-cos(sine/3.5)/10) * angles(sin(sine/3.5) * rad(65) * rotfb,sin(sine/1.75) * rad(7.5),sin(sine/1.75) * rad(1.5)),.2)
  1959. rh.C1 = rh.C1:Lerp(rhc1 * cf(0,cos(sine/3.5)/5,-cos(sine/3.5)/3.5) * angles((sin(sine/3.5) * rad(60) + rad(7.5)) * rotfb,rad(0),sin(sine/3.5) * rad(45) * rotrl) * angles(rad(0),cos(sine/3.5) * rad(2.5),rad(0)),.2)
  1960. lh.C1 = lh.C1:Lerp(lhc1 * cf(0,-cos(sine/3.5)/5,cos(sine/3.5)/3.5) * angles((-sin(sine/3.5) * rad(60) + rad(7.5)) * rotfb,rad(0),-sin(sine/3.5) * rad(45) * rotrl) * angles(rad(0),cos(sine/3.5) * rad(2.5),rad(0)),.2)
  1961. end
  1962. if not using then
  1963. handleWeld.C0 = handleWeld.C0:Lerp(cf(0,-1,0) * angles(rad(-90),rad(0),rad(0)),.2)
  1964. if horVel > 5 and verVel >-10 and verVel <10 then
  1965. anim = "walk"
  1966. change = .6
  1967. nec.C0 = nec.C0:Lerp(necc0 * cf(0,0,0) * angles(rad(0),rad(0),rad(0)),.2)
  1968. rutj.C0 = rutj.C0:Lerp(rutjc0 * cf(0,0,0) * angles(rad(0),rad(0),rad(0)),.2)
  1969. rs.C0 = rs.C0:Lerp(rsc0 * cf(.15,-.75,-.25) * angles(rad(175),rad(65),rad(0)) * angles(rad(10),rad(0),rad(0)),.1)
  1970. ls.C0 = ls.C0:Lerp(lsc0 * cf(0,0,0) * angles(rad(0),rad(0),rad(0)),.2)
  1971. rh.C0 = rh.C0:Lerp(rhc0 * cf(0,0,0) * angles(rad(0),rad(0),rad(0)),.2)
  1972. lh.C0 = lh.C0:Lerp(lhc0 * cf(0,0,0) * angles(rad(0),rad(0),rad(0)),.2)
  1973. elseif verVel >10 then
  1974. anim = "jump"
  1975. change = 1
  1976. nec.C0 = nec.C0:Lerp(necc0 * cf(0,0,0) * angles(rad(15),rad(0),rad(0)),.2)
  1977. rutj.C0 = rutj.C0:Lerp(rutjc0 * cf(0,0,0) * angles(rad(-5),rad(0),rad(0)),.2)
  1978. rs.C0 = rs.C0:Lerp(rsc0 * cf(.15,-.75,-.25) * angles(rad(175),rad(65),rad(0)) * angles(rad(10),rad(0),rad(0)),.1)
  1979. ls.C0 = ls.C0:Lerp(lsc0 * cf(0,0,0) * angles(rad(145),rad(0),rad(-8)),.2)
  1980. rh.C0 = rh.C0:Lerp(rhc0 * cf(0,.1,-.1) * angles(rad(-3.5),rad(0),rad(2)),.2)
  1981. lh.C0 = lh.C0:Lerp(lhc0 * cf(0,.3,-.25) * angles(rad(-9),rad(0),rad(-3.5)),.2)
  1982. elseif verVel <-10 then
  1983. anim = "fall"
  1984. change = 1
  1985. nec.C0 = nec.C0:Lerp(necc0 * cf(0,0,0) * angles(rad(-5),rad(0),rad(0)),.2)
  1986. rutj.C0 = rutj.C0:Lerp(rutjc0 * cf(0,0,0) * angles(rad(5),rad(0),rad(0)),.2)
  1987. rs.C0 = rs.C0:Lerp(rsc0 * cf(.15,-.75,-.25) * angles(rad(175),rad(65),rad(0)) * angles(rad(10),rad(0),rad(0)),.1)
  1988. ls.C0 = ls.C0:Lerp(lsc0 * cf(-.45,-.44,0) * angles(rad(6),rad(0),rad(-97.5)),.2)
  1989. rh.C0 = rh.C0:Lerp(rhc0 * cf(0,.3,-.25) * angles(rad(-9),rad(0),rad(2)),.2)
  1990. lh.C0 = lh.C0:Lerp(lhc0 * cf(0,.1,-.1) * angles(rad(-3.5),rad(0),rad(-3.5)),.2)
  1991. elseif horVel < 5 and verVel >-10 and verVel <10 then
  1992. anim = "idle"
  1993. change = 1
  1994. nec.C0 = nec.C0:Lerp(necc0 * cf(0,0,0) * angles(rad(-10),rad(0),rad(0)),.1)
  1995. rutj.C0 = rutj.C0:Lerp(rutjc0 * cf(0,0,-.05) * angles(rad(-5),rad(0),rad(0)),.1)
  1996. rs.C0 = rs.C0:Lerp(rsc0 * cf(.15,-.75,-.25) * angles(rad(175),rad(65),rad(0)) * angles(rad(10),rad(0),rad(0)),.1)
  1997. ls.C0 = ls.C0:Lerp(lsc0 * cf(0,-.15,.1) * angles(rad(-6.5),rad(15),rad(-3.5)),.1)
  1998. rh.C0 = rh.C0:Lerp(rhc0 * cf(0,0,0) * angles(rad(-5),rad(-5),rad(2.5)),.1)
  1999. lh.C0 = lh.C0:Lerp(lhc0 * cf(0,0,0) * angles(rad(-5),rad(5),rad(-2.5)),.1)
  2000. end
  2001. end
  2002. end)
Add Comment
Please, Sign In to add comment