Advertisement
Fluxushr

Untitled

Apr 7th, 2023
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 110.75 KB | None | 0 0
  1. game.Players.LocalPlayer.Character["InternationalFedora"].Handle.SpecialMesh:Destroy()
  2. game.Players.LocalPlayer.Character["Hat1"].Handle.Mesh:Destroy()
  3. game.Players.LocalPlayer.Character["Pal Hair"].Handle.Mesh:Destroy()
  4. game.Players.LocalPlayer.Character["Pink Hair"].Handle.Mesh:Destroy()
  5. game.Players.LocalPlayer.Character["Kate Hair"].Handle.Mesh:Destroy() --LavanderHair
  6. game.Players.LocalPlayer.Character["LavanderHair"].Handle.Mesh:Destroy()
  7. game.Players.LocalPlayer.Character["Robloxclassicred"].Handle.Mesh:Destroy()
  8. game.Players.LocalPlayer.Character["MediHood"].Handle.Mesh:Destroy()
  9. game.Players.LocalPlayer.Character["LN_2021_Closed"].Handle.Mesh:Destroy()
  10. --VarietyShades02
  11. --TennisBall
  12.  
  13. local c = game.Players.LocalPlayer.Character
  14. for i, v in pairs({"Right Arm", "Left Arm"}) do
  15. local arm = c[v]
  16. arm.Parent = nil
  17. arm.Transparency = 1
  18. arm.Parent = c
  19. end
  20.  
  21. local c = game.Players.LocalPlayer.Character
  22. for i, v in pairs({"Right Leg", "Left Leg"}) do
  23. local Leg = c[v]
  24. Leg.Parent = nil
  25. Leg.Transparency = 1
  26. Leg.Parent = c
  27. end
  28.  
  29. local v3_net, v3_808 = Vector3.new(10000, 25.1, 10000), Vector3.new(-8000, 0, -8000)
  30. local function getNetlessVelocity(realPartVelocity)
  31. local mag = realPartVelocity.Magnitude
  32. if mag > 1 then
  33. local unit = realPartVelocity.Unit
  34. if (unit.Y > 10000) or (unit.Y < -10000) then
  35. return unit * (25.1 / unit.Y)
  36. end
  37. end
  38. return v3_net + realPartVelocity * v3_808
  39. end
  40. local simradius = "shp" --simulation radius (net bypass) method
  41. --simulation radius (net bypass) method
  42. --"shp" - sethiddenproperty
  43. --"ssr" - setsimulationradius
  44. --false - disable
  45. local antiragdoll = true --removes hingeConstraints and ballSocketConstraints from your character
  46. local newanimate = false --disables the animate script and enables after reanimation
  47. local discharscripts = true --disables all localScripts parented to your character before reanimation
  48. local R15toR6 = true --tries to convert your character to r6 if its r15
  49. local hatcollide = true --makes hats cancollide (only method 0)
  50. local humState16 = true --enables collisions for limbs before the humanoid dies (using hum:ChangeState)
  51. local addtools = false --puts all tools from backpack to character and lets you hold them after reanimation
  52. local hedafterneck = false --disable aligns for head and enable after neck is removed
  53. local loadtime = game:GetService("Players").RespawnTime + 0.5 --anti respawn delay
  54. local method = 0 --reanimation method
  55. --methods:
  56. --0 - breakJoints (takes [loadtime] seconds to laod)
  57. --1 - limbs
  58. --2 - limbs + anti respawn
  59. --3 - limbs + breakJoints after [loadtime] seconds
  60. --4 - remove humanoid + breakJoints
  61. --5 - remove humanoid + limbs
  62. local alignmode = 2 --AlignPosition mode
  63. --modes:
  64. --1 - AlignPosition rigidity enabled true
  65. --2 - 2 AlignPositions rigidity enabled both true and false
  66. --3 - AlignPosition rigidity enabled false
  67.  
  68. healthHide = healthHide and ((method == 0) or (method == 2) or (method == 000)) and gp(c, "Head", "BasePart")
  69.  
  70. local lp = game:GetService("Players").LocalPlayer
  71. local rs = game:GetService("RunService")
  72. local stepped = rs.Stepped
  73. local heartbeat = rs.Heartbeat
  74. local renderstepped = rs.RenderStepped
  75. local sg = game:GetService("StarterGui")
  76. local ws = game:GetService("Workspace")
  77. local cf = CFrame.new
  78. local v3 = Vector3.new
  79. local v3_0 = v3(0, 0, 0)
  80. local inf = math.huge
  81.  
  82. local c = lp.Character
  83.  
  84. if not (c and c.Parent) then
  85. return
  86. end
  87.  
  88. c.Destroying:Connect(function()
  89. c = nil
  90. end)
  91.  
  92. local function gp(parent, name, className)
  93. if typeof(parent) == "Instance" then
  94. for i, v in pairs(parent:GetChildren()) do
  95. if (v.Name == name) and v:IsA(className) then
  96. return v
  97. end
  98. end
  99. end
  100. return nil
  101. end
  102.  
  103. local function align(Part0, Part1)
  104. Part0.CustomPhysicalProperties = PhysicalProperties.new(0.0001, 0.0001, 0.0001, 0.0001, 0.0001)
  105.  
  106. local att0 = Instance.new("Attachment", Part0)
  107. att0.Orientation = v3_0
  108. att0.Position = v3_0
  109. att0.Name = "att0_" .. Part0.Name
  110. local att1 = Instance.new("Attachment", Part1)
  111. att1.Orientation = v3_0
  112. att1.Position = v3_0
  113. att1.Name = "att1_" .. Part1.Name
  114.  
  115. if (alignmode == 1) or (alignmode == 2) then
  116. local ape = Instance.new("AlignPosition", att0)
  117. ape.ApplyAtCenterOfMass = false
  118. ape.MaxForce = inf
  119. ape.MaxVelocity = inf
  120. ape.ReactionForceEnabled = false
  121. ape.Responsiveness = 200
  122. ape.Attachment1 = att1
  123. ape.Attachment0 = att0
  124. ape.Name = "AlignPositionRtrue"
  125. ape.RigidityEnabled = true
  126. end
  127.  
  128. if (alignmode == 2) or (alignmode == 3) then
  129. local apd = Instance.new("AlignPosition", att0)
  130. apd.ApplyAtCenterOfMass = false
  131. apd.MaxForce = inf
  132. apd.MaxVelocity = inf
  133. apd.ReactionForceEnabled = false
  134. apd.Responsiveness = 200
  135. apd.Attachment1 = att1
  136. apd.Attachment0 = att0
  137. apd.Name = "AlignPositionRfalse"
  138. apd.RigidityEnabled = false
  139. end
  140.  
  141. local ao = Instance.new("AlignOrientation", att0)
  142. ao.MaxAngularVelocity = inf
  143. ao.MaxTorque = inf
  144. ao.PrimaryAxisOnly = false
  145. ao.ReactionTorqueEnabled = false
  146. ao.Responsiveness = 200
  147. ao.Attachment1 = att1
  148. ao.Attachment0 = att0
  149. ao.RigidityEnabled = false
  150.  
  151. if type(getNetlessVelocity) == "function" then
  152. local realVelocity = v3_0
  153. local steppedcon = stepped:Connect(function()
  154. Part0.Velocity = realVelocity
  155. end)
  156. local heartbeatcon = heartbeat:Connect(function()
  157. realVelocity = Part0.Velocity
  158. Part0.Velocity = getNetlessVelocity(realVelocity)
  159. end)
  160. Part0.Destroying:Connect(function()
  161. Part0 = nil
  162. steppedcon:Disconnect()
  163. heartbeatcon:Disconnect()
  164. end)
  165. end
  166. end
  167.  
  168. local function respawnrequest()
  169. local ccfr = ws.CurrentCamera.CFrame
  170. local c = lp.Character
  171. lp.Character = nil
  172. lp.Character = c
  173. local con = nil
  174. con = ws.CurrentCamera.Changed:Connect(function(prop)
  175. if (prop ~= "Parent") and (prop ~= "CFrame") then
  176. return
  177. end
  178. ws.CurrentCamera.CFrame = ccfr
  179. con:Disconnect()
  180. end)
  181. end
  182.  
  183. local destroyhum = (method == 4) or (method == 5)
  184. local breakjoints = (method == 0) or (method == 4)
  185. local antirespawn = (method == 0) or (method == 2) or (method == 3)
  186.  
  187. hatcollide = hatcollide and (method == 0)
  188.  
  189. addtools = addtools and gp(lp, "Backpack", "Backpack")
  190.  
  191. local fenv = getfenv()
  192. local shp = fenv.sethiddenproperty or fenv.set_hidden_property or fenv.set_hidden_prop or fenv.sethiddenprop
  193. 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
  194.  
  195. if shp and (simradius == "shp") then
  196. spawn(function()
  197. while c and heartbeat:Wait() do
  198. shp(lp, "SimulationRadius", inf)
  199. end
  200. end)
  201. elseif ssr and (simradius == "ssr") then
  202. spawn(function()
  203. while c and heartbeat:Wait() do
  204. ssr(inf)
  205. end
  206. end)
  207. end
  208.  
  209. antiragdoll = antiragdoll and function(v)
  210. if v:IsA("HingeConstraint") or v:IsA("BallSocketConstraint") then
  211. v.Parent = nil
  212. end
  213. end
  214.  
  215. if antiragdoll then
  216. for i, v in pairs(c:GetDescendants()) do
  217. antiragdoll(v)
  218. end
  219. c.DescendantAdded:Connect(antiragdoll)
  220. end
  221.  
  222. if antirespawn then
  223. respawnrequest()
  224. end
  225.  
  226. if method == 0 then
  227. wait(loadtime)
  228. if not c then
  229. return
  230. end
  231. end
  232.  
  233. if discharscripts then
  234. for i, v in pairs(c:GetChildren()) do
  235. if v:IsA("LocalScript") then
  236. v.Disabled = true
  237. end
  238. end
  239. elseif newanimate then
  240. local animate = gp(c, "Animate", "LocalScript")
  241. if animate and (not animate.Disabled) then
  242. animate.Disabled = true
  243. else
  244. newanimate = false
  245. end
  246. end
  247.  
  248. if addtools then
  249. for i, v in pairs(addtools:GetChildren()) do
  250. if v:IsA("Tool") then
  251. v.Parent = c
  252. end
  253. end
  254. end
  255.  
  256. pcall(function()
  257. settings().Physics.AllowSleep = false
  258. settings().Physics.PhysicsEnvironmentalThrottle = Enum.EnviromentalPhysicsThrottle.Disabled
  259. end)
  260.  
  261. local OLDscripts = {}
  262.  
  263. for i, v in pairs(c:GetDescendants()) do
  264. if v.ClassName == "Script" then
  265. table.insert(OLDscripts, v)
  266. end
  267. end
  268.  
  269. local scriptNames = {}
  270.  
  271. for i, v in pairs(c:GetDescendants()) do
  272. if v:IsA("BasePart") then
  273. local newName = tostring(i)
  274. local exists = true
  275. while exists do
  276. exists = false
  277. for i, v in pairs(OLDscripts) do
  278. if v.Name == newName then
  279. exists = true
  280. end
  281. end
  282. if exists then
  283. newName = newName .. "_"
  284. end
  285. end
  286. table.insert(scriptNames, newName)
  287. Instance.new("Script", v).Name = newName
  288. end
  289. end
  290.  
  291. c.Archivable = true
  292. local hum = c:FindFirstChildOfClass("Humanoid")
  293. if hum then
  294. for i, v in pairs(hum:GetPlayingAnimationTracks()) do
  295. v:Stop()
  296. end
  297. end
  298. local cl = c:Clone()
  299. if hum and humState16 then
  300. hum:ChangeState(Enum.HumanoidStateType.Physics)
  301. if destroyhum then
  302. wait(1.6)
  303. end
  304. end
  305. if hum and hum.Parent and destroyhum then
  306. hum:Destroy()
  307. end
  308.  
  309. if not c then
  310. return
  311. end
  312.  
  313. local head = gp(c, "Head", "BasePart")
  314. local torso = gp(c, "Torso", "BasePart") or gp(c, "UpperTorso", "BasePart")
  315. local root = gp(c, "HumanoidRootPart", "BasePart")
  316. if hatcollide and c:FindFirstChildOfClass("Accessory") then
  317. local anything = c:FindFirstChildOfClass("BodyColors") or gp(c, "Health", "Script")
  318. if not (torso and root and anything) then
  319. return
  320. end
  321. torso:Destroy()
  322. root:Destroy()
  323. if shp then
  324. for i,v in pairs(c:GetChildren()) do
  325. if v:IsA("Accessory") then
  326. shp(v, "BackendAccoutrementState", 0)
  327. end
  328. end
  329. end
  330. anything:Destroy()
  331. if head then
  332. head:Destroy()
  333. end
  334. end
  335.  
  336. for i, v in pairs(cl:GetDescendants()) do
  337. if v:IsA("BasePart") then
  338. v.Transparency = 1
  339. v.Anchored = false
  340. end
  341. end
  342.  
  343. local model = Instance.new("Model", c)
  344. model.Name = model.ClassName
  345.  
  346. model.Destroying:Connect(function()
  347. model = nil
  348. end)
  349.  
  350. for i, v in pairs(c:GetChildren()) do
  351. if v ~= model then
  352. if addtools and v:IsA("Tool") then
  353. for i1, v1 in pairs(v:GetDescendants()) do
  354. if v1 and v1.Parent and v1:IsA("BasePart") then
  355. local bv = Instance.new("BodyVelocity", v1)
  356. bv.Velocity = v3_0
  357. bv.MaxForce = v3(1000, 1000, 1000)
  358. bv.P = 1250
  359. bv.Name = "bv_" .. v.Name
  360. end
  361. end
  362. end
  363. v.Parent = model
  364. end
  365. end
  366.  
  367. if breakjoints then
  368. model:BreakJoints()
  369. else
  370. if head and torso then
  371. for i, v in pairs(model:GetDescendants()) do
  372. if v:IsA("Weld") or v:IsA("Snap") or v:IsA("Glue") or v:IsA("Motor") or v:IsA("Motor6D") then
  373. local save = false
  374. if (v.Part0 == torso) and (v.Part1 == head) then
  375. save = true
  376. end
  377. if (v.Part0 == head) and (v.Part1 == torso) then
  378. save = true
  379. end
  380. if save then
  381. if hedafterneck then
  382. hedafterneck = v
  383. end
  384. else
  385. v:Destroy()
  386. end
  387. end
  388. end
  389. end
  390. if method == 3 then
  391. spawn(function()
  392. wait(loadtime)
  393. if model then
  394. model:BreakJoints()
  395. end
  396. end)
  397. end
  398. end
  399.  
  400. cl.Parent = c
  401. for i, v in pairs(cl:GetChildren()) do
  402. v.Parent = c
  403. end
  404. cl:Destroy()
  405.  
  406. local modelDes = {}
  407. for i, v in pairs(model:GetDescendants()) do
  408. if v:IsA("BasePart") then
  409. i = tostring(i)
  410. v.Destroying:Connect(function()
  411. modelDes[i] = nil
  412. end)
  413. modelDes[i] = v
  414. end
  415. end
  416. local modelcolcon = nil
  417. local function modelcolf()
  418. if model then
  419. for i, v in pairs(modelDes) do
  420. v.CanCollide = false
  421. end
  422. else
  423. modelcolcon:Disconnect()
  424. end
  425. end
  426. modelcolcon = stepped:Connect(modelcolf)
  427. modelcolf()
  428.  
  429. for i, scr in pairs(model:GetDescendants()) do
  430. if (scr.ClassName == "Script") and table.find(scriptNames, scr.Name) then
  431. local Part0 = scr.Parent
  432. if Part0:IsA("BasePart") then
  433. for i1, scr1 in pairs(c:GetDescendants()) do
  434. if (scr1.ClassName == "Script") and (scr1.Name == scr.Name) and (not scr1:IsDescendantOf(model)) then
  435. local Part1 = scr1.Parent
  436. if (Part1.ClassName == Part0.ClassName) and (Part1.Name == Part0.Name) then
  437. align(Part0, Part1)
  438. break
  439. end
  440. end
  441. end
  442. end
  443. end
  444. end
  445.  
  446. if (typeof(hedafterneck) == "Instance") and head then
  447. local aligns = {}
  448. local con = nil
  449. con = hedafterneck.Changed:Connect(function(prop)
  450. if (prop == "Parent") and not hedafterneck.Parent then
  451. con:Disconnect()
  452. for i, v in pairs(aligns) do
  453. v.Enabled = true
  454. end
  455. end
  456. end)
  457. for i, v in pairs(head:GetDescendants()) do
  458. if v:IsA("AlignPosition") or v:IsA("AlignOrientation") then
  459. i = tostring(i)
  460. aligns[i] = v
  461. v.Destroying:Connect(function()
  462. aligns[i] = nil
  463. end)
  464. v.Enabled = false
  465. end
  466. end
  467. end
  468.  
  469. for i, v in pairs(c:GetDescendants()) do
  470. if v and v.Parent then
  471. if v.ClassName == "Script" then
  472. if table.find(scriptNames, v.Name) then
  473. v:Destroy()
  474. end
  475. elseif not v:IsDescendantOf(model) then
  476. if v:IsA("Decal") then
  477. v.Transparency = 1
  478. elseif v:IsA("ForceField") then
  479. v.Visible = false
  480. elseif v:IsA("Sound") then
  481. v.Playing = false
  482. 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
  483. v.Enabled = false
  484. end
  485. end
  486. end
  487. end
  488.  
  489. if newanimate then
  490. local animate = gp(c, "Animate", "LocalScript")
  491. if animate then
  492. animate.Disabled = false
  493. end
  494. end
  495.  
  496. if addtools then
  497. for i, v in pairs(c:GetChildren()) do
  498. if v:IsA("Tool") then
  499. v.Parent = addtools
  500. end
  501. end
  502. end
  503.  
  504. local hum0 = model:FindFirstChildOfClass("Humanoid")
  505. if hum0 then
  506. hum0.Destroying:Connect(function()
  507. hum0 = nil
  508. end)
  509. end
  510.  
  511. local hum1 = c:FindFirstChildOfClass("Humanoid")
  512. if hum1 then
  513. hum1.Destroying:Connect(function()
  514. hum1 = nil
  515. end)
  516. end
  517.  
  518. if hum1 then
  519. ws.CurrentCamera.CameraSubject = hum1
  520. local camSubCon = nil
  521. local function camSubFunc()
  522. camSubCon:Disconnect()
  523. if c and hum1 then
  524. ws.CurrentCamera.CameraSubject = hum1
  525. end
  526. end
  527. camSubCon = renderstepped:Connect(camSubFunc)
  528. if hum0 then
  529. hum0.Changed:Connect(function(prop)
  530. if hum1 and (prop == "Jump") then
  531. hum1.Jump = hum0.Jump
  532. end
  533. end)
  534. else
  535. respawnrequest()
  536. end
  537. end
  538.  
  539. local rb = Instance.new("BindableEvent", c)
  540. rb.Event:Connect(function()
  541. rb:Destroy()
  542. sg:SetCore("ResetButtonCallback", true)
  543. if destroyhum then
  544. c:BreakJoints()
  545. return
  546. end
  547. if hum0 and (hum0.Health > 0) then
  548. model:BreakJoints()
  549. hum0.Health = 0
  550. end
  551. if antirespawn then
  552. respawnrequest()
  553. end
  554. end)
  555. sg:SetCore("ResetButtonCallback", rb)
  556.  
  557. spawn(function()
  558. while c do
  559. if hum0 and hum1 then
  560. hum1.Jump = hum0.Jump
  561. end
  562. wait()
  563. end
  564. sg:SetCore("ResetButtonCallback", true)
  565. end)
  566.  
  567. R15toR6 = R15toR6 and hum1 and (hum1.RigType == Enum.HumanoidRigType.R15)
  568. if R15toR6 then
  569. 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")
  570. if part then
  571. local cfr = part.CFrame
  572. local R6parts = {
  573. head = {
  574. Name = "Head",
  575. Size = v3(2, 1, 1),
  576. R15 = {
  577. Head = 0
  578. }
  579. },
  580. torso = {
  581. Name = "Torso",
  582. Size = v3(2, 2, 1),
  583. R15 = {
  584. UpperTorso = 0.2,
  585. LowerTorso = -100
  586. }
  587. },
  588. root = {
  589. Name = "HumanoidRootPart",
  590. Size = v3(2, 2, 1),
  591. R15 = {
  592. HumanoidRootPart = 0
  593. }
  594. },
  595. leftArm = {
  596. Name = "Left Arm",
  597. Size = v3(1, 2, 1),
  598. R15 = {
  599. LeftHand = -0.73,
  600. LeftLowerArm = -0.2,
  601. LeftUpperArm = 0.4
  602. }
  603. },
  604. rightArm = {
  605. Name = "Right Arm",
  606. Size = v3(1, 2, 1),
  607. R15 = {
  608. RightHand = -0.73,
  609. RightLowerArm = -0.2,
  610. RightUpperArm = 0.4
  611. }
  612. },
  613. leftLeg = {
  614. Name = "Left Leg",
  615. Size = v3(1, 2, 1),
  616. R15 = {
  617. LeftFoot = -0.73,
  618. LeftLowerLeg = -0.15,
  619. LeftUpperLeg = 0.6
  620. }
  621. },
  622. rightLeg = {
  623. Name = "Right Leg",
  624. Size = v3(1, 2, 1),
  625. R15 = {
  626. RightFoot = -0.73,
  627. RightLowerLeg = -0.15,
  628. RightUpperLeg = 0.6
  629. }
  630. }
  631. }
  632. for i, v in pairs(c:GetChildren()) do
  633. if v:IsA("BasePart") then
  634. for i1, v1 in pairs(v:GetChildren()) do
  635. if v1:IsA("Motor6D") then
  636. v1.Part0 = nil
  637. end
  638. end
  639. end
  640. end
  641. part.Archivable = true
  642. for i, v in pairs(R6parts) do
  643. local part = part:Clone()
  644. part:ClearAllChildren()
  645. part.Name = v.Name
  646. part.Size = v.Size
  647. part.CFrame = cfr
  648. part.Anchored = false
  649. part.Transparency = 1
  650. part.CanCollide = false
  651. for i1, v1 in pairs(v.R15) do
  652. local R15part = gp(c, i1, "BasePart")
  653. local att = gp(R15part, "att1_" .. i1, "Attachment")
  654. if R15part then
  655. local weld = Instance.new("Weld", R15part)
  656. weld.Name = "Weld_" .. i1
  657. weld.Part0 = part
  658. weld.Part1 = R15part
  659. weld.C0 = cf(0, v1, 0)
  660. weld.C1 = cf(0, 0, 0)
  661. R15part.Massless = true
  662. R15part.Name = "R15_" .. i1
  663. R15part.Parent = part
  664. if att then
  665. att.Parent = part
  666. att.Position = v3(0, v1, 0)
  667. end
  668. end
  669. end
  670. part.Parent = c
  671. R6parts[i] = part
  672. end
  673. local R6joints = {
  674. neck = {
  675. Parent = R6parts.torso,
  676. Name = "Neck",
  677. Part0 = R6parts.torso,
  678. Part1 = R6parts.head,
  679. C0 = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),
  680. C1 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  681. },
  682. rootJoint = {
  683. Parent = R6parts.root,
  684. Name = "RootJoint" ,
  685. Part0 = R6parts.root,
  686. Part1 = R6parts.torso,
  687. C0 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),
  688. C1 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  689. },
  690. rightShoulder = {
  691. Parent = R6parts.torso,
  692. Name = "Right Shoulder",
  693. Part0 = R6parts.torso,
  694. Part1 = R6parts.rightArm,
  695. C0 = cf(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),
  696. C1 = cf(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  697. },
  698. leftShoulder = {
  699. Parent = R6parts.torso,
  700. Name = "Left Shoulder",
  701. Part0 = R6parts.torso,
  702. Part1 = R6parts.leftArm,
  703. C0 = cf(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  704. C1 = cf(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  705. },
  706. rightHip = {
  707. Parent = R6parts.torso,
  708. Name = "Right Hip",
  709. Part0 = R6parts.torso,
  710. Part1 = R6parts.rightLeg,
  711. C0 = cf(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),
  712. C1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  713. },
  714. leftHip = {
  715. Parent = R6parts.torso,
  716. Name = "Left Hip" ,
  717. Part0 = R6parts.torso,
  718. Part1 = R6parts.leftLeg,
  719. C0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  720. C1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  721. }
  722. }
  723. for i, v in pairs(R6joints) do
  724. local joint = Instance.new("Motor6D")
  725. for prop, val in pairs(v) do
  726. joint[prop] = val
  727. end
  728. R6joints[i] = joint
  729. end
  730. hum1.RigType = Enum.HumanoidRigType.R6
  731. hum1.HipHeight = 0
  732. end
  733. end
  734.  
  735.  
  736.  
  737. --find rig joints
  738.  
  739. local function fakemotor()
  740. return {C0=cf(), C1=cf()}
  741. end
  742.  
  743. local torso = gp(c, "Torso", "BasePart")
  744. local root = gp(c, "HumanoidRootPart", "BasePart")
  745.  
  746. local neck = gp(torso, "Neck", "Motor6D")
  747. neck = neck or fakemotor()
  748.  
  749. local rootJoint = gp(root, "RootJoint", "Motor6D")
  750. rootJoint = rootJoint or fakemotor()
  751.  
  752. local leftShoulder = gp(torso, "Left Shoulder", "Motor6D")
  753. leftShoulder = leftShoulder or fakemotor()
  754.  
  755. local rightShoulder = gp(torso, "Right Shoulder", "Motor6D")
  756. rightShoulder = rightShoulder or fakemotor()
  757.  
  758. local leftHip = gp(torso, "Left Hip", "Motor6D")
  759. leftHip = leftHip or fakemotor()
  760.  
  761. local rightHip = gp(torso, "Right Hip", "Motor6D")
  762. rightHip = rightHip or fakemotor()
  763.  
  764. --120 fps
  765.  
  766. local fps = 0
  767. local event = Instance.new("BindableEvent", c)
  768. event.Name = "120 fps"
  769. local floor = math.floor
  770. fps = 1 / fps
  771. local tf = 0
  772. local con = nil
  773. con = game:GetService("RunService").RenderStepped:Connect(function(s)
  774. if not c then
  775. con:Disconnect()
  776. return
  777. end
  778. --tf += s
  779. if tf >= fps then
  780. for i=1, floor(tf / fps) do
  781. event:Fire(c)
  782. end
  783. tf = 0
  784. end
  785. end)
  786. local event = event.Event
  787.  
  788. local hedrot = v3(0, 5, 0)
  789.  
  790. local uis = game:GetService("UserInputService")
  791. local function isPressed(key)
  792. return (not uis:GetFocusedTextBox()) and uis:IsKeyDown(Enum.KeyCode[key])
  793. end
  794.  
  795. local biggesthandle = nil
  796. for i, v in pairs(c:GetChildren()) do
  797. if v:IsA("Accessory") then
  798. local handle = gp(v, "Handle", "BasePart")
  799. if biggesthandle then
  800. if biggesthandle.Size.Magnitude < handle.Size.Magnitude then
  801. biggesthandle = handle
  802. end
  803. else
  804. biggesthandle = gp(v, "Handle", "BasePart")
  805. end
  806. end
  807. end
  808.  
  809. if not biggesthandle then
  810. return
  811. end
  812.  
  813. local handle1 = gp(gp(model, biggesthandle.Parent.Name, "Accessory"), "Handle", "BasePart")
  814. if not handle1 then
  815. return
  816. end
  817.  
  818. handle1.Destroying:Connect(function()
  819. handle1 = nil
  820. end)
  821. biggesthandle.Destroying:Connect(function()
  822. biggesthandle = nil
  823. end)
  824.  
  825. biggesthandle:BreakJoints()
  826. biggesthandle.Anchored = true
  827.  
  828. for i, v in pairs(handle1:GetDescendants()) do
  829. if v:IsA("AlignOrientation") then
  830. v.Enabled = false
  831. end
  832. end
  833.  
  834. local mouse = lp:GetMouse()
  835. local fling = false
  836. mouse.Button1Down:Connect(function()
  837. fling = true
  838. end)
  839. mouse.Button1Up:Connect(function()
  840. fling = false
  841. end)
  842. local function doForSignal(signal, vel)
  843. spawn(function()
  844. while signal:Wait() and c and handle1 and biggesthandle do
  845. if fling and mouse.Target then
  846. biggesthandle.Position = mouse.Hit.Position
  847. end
  848. handle1.RotVelocity = vel
  849. end
  850. end)
  851. end
  852. doForSignal(stepped, v3(1000, 1000, 1000))
  853. doForSignal(renderstepped, v3(1000, 1000, 1000))
  854. doForSignal(heartbeat, v3(20000, 20000, 20000)) --https://web.roblox.com/catalog/63690008/Pal-Hair
  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.  
  883. local hat2 = gp(cplayer, "Hat1", "Accessory")
  884. local handle2 = gp(hat2, "Handle", "BasePart")
  885. local att2 = gp(handle2, "att1_Handle", "Attachment")
  886. att2.Parent = cplayer["Torso"]
  887. att2.Position = Vector3.new(0.5, -0, 0)
  888. att2.Rotation = Vector3.new(90, 0, 0)
  889.  
  890. local hat2 = gp(cplayer, "Pal Hair", "Accessory")
  891. local handle2 = gp(hat2, "Handle", "BasePart")
  892. local att2 = gp(handle2, "att1_Handle", "Attachment")
  893. att2.Parent = cplayer["Torso"]
  894. att2.Position = Vector3.new(-0.5, -0, 0)
  895. att2.Rotation = Vector3.new(90, 0, 0)
  896.  
  897. local hat2 = gp(cplayer, "InternationalFedora", "Accessory")
  898. local handle2 = gp(hat2, "Handle", "BasePart")
  899. local att2 = gp(handle2, "att1_Handle", "Attachment")
  900. att2.Parent = cplayer["Head"]
  901. att2.Position = Vector3.new(0, -0, 0)
  902. att2.Rotation = Vector3.new(90, 0, 0)
  903.  
  904. local hat2 = gp(cplayer, "Pink Hair", "Accessory")
  905. local handle2 = gp(hat2, "Handle", "BasePart")
  906. local att2 = gp(handle2, "att1_Handle", "Attachment")
  907. att2.Parent = cplayer["Left Arm"]
  908. att2.Position = Vector3.new(-0, -0, -0)
  909. att2.Rotation = Vector3.new(90, 0, 0)
  910.  
  911. local hat2 = gp(cplayer, "Kate Hair", "Accessory")
  912. local handle2 = gp(hat2, "Handle", "BasePart")
  913. local att2 = gp(handle2, "att1_Handle", "Attachment")
  914. att2.Parent = cplayer["Right Arm"]
  915. att2.Position = Vector3.new(-0, -0, -0)
  916. att2.Rotation = Vector3.new(90, 0, 0) --LavanderHair
  917.  
  918. local hat2 = gp(cplayer, "LavanderHair", "Accessory")
  919. local handle2 = gp(hat2, "Handle", "BasePart")
  920. local att2 = gp(handle2, "att1_Handle", "Attachment")
  921. att2.Parent = cplayer["Right Leg"]
  922. att2.Position = Vector3.new(0, 0, 0) --Robloxclassicred
  923. att2.Rotation = Vector3.new(90, 0, 0)
  924.  
  925. local hat2 = gp(cplayer, "Robloxclassicred", "Accessory")
  926. local handle2 = gp(hat2, "Handle", "BasePart")
  927. local att2 = gp(handle2, "att1_Handle", "Attachment")
  928. att2.Parent = cplayer["Left Leg"]
  929. att2.Position = Vector3.new(-0, 0, 0)
  930. att2.Rotation = Vector3.new(90, 0, 0)
  931.  
  932. local hat2 = gp(cplayer, "LN_2021_Closed", "Accessory")
  933. local handle2 = gp(hat2, "Handle", "BasePart")
  934. local att2 = gp(handle2, "att1_Handle", "Attachment")
  935. att2.Parent = cplayer["Right Arm"]
  936. att2.Position = Vector3.new(0,-6, -0)
  937. att2.Rotation = Vector3.new(90, 0, 0)
  938.  
  939. local hat2 = gp(cplayer, "MediHood", "Accessory")
  940. local handle2 = gp(hat2, "Handle", "BasePart")
  941. local att2 = gp(handle2, "att1_Handle", "Attachment")
  942. att2.Parent = cplayer["Right Arm"]
  943. att2.Position = Vector3.new(0,-0, -0)
  944. att2.Rotation = Vector3.new(90, 0, 0)
  945.  
  946.  
  947.  
  948. backgroundcolortitle = Color3.fromHSV(0, 0, 0.3)
  949. bordercolortitle = Color3.fromHSV(0, 0, 1)
  950. local p = game.Players.LocalPlayer
  951. local char = p.character
  952. local larm = char:WaitForChild("Left Arm")
  953. local rarm = char:WaitForChild("Right Arm")
  954. local lleg = char:WaitForChild("Left Leg")
  955. local rleg = char:WaitForChild("Right Leg")
  956. local hed = char:WaitForChild("Head")
  957. local torso = char:WaitForChild("Torso")
  958. local root = char:WaitForChild("HumanoidRootPart")
  959. local hum = char:FindFirstChildOfClass("Humanoid")
  960. local debris = game:GetService("Debris")
  961. local input = game:GetService("UserInputService")
  962. local run = game:GetService("RunService")
  963. local rs = run.RenderStepped
  964. local wingpose = "Idle"
  965. local DebrisModel = Instance.new("Model", char)
  966. local lplr = game:GetService("Players").LocalPlayer
  967. local remote = Instance.new("RemoteEvent")
  968. local mouse = lplr:GetMouse()
  969. local pose = "Idle"
  970. local musicplay = true
  971. local musictrack = 1
  972. local blinktime = 0
  973. local attacking = false
  974. local blinking = false
  975. local walking = false
  976. DebrisModel.Name = "Debris"
  977. repeat
  978. rs:wait()
  979. until p.CharacterAppearanceLoaded
  980. animsync = false
  981. noidle = false
  982. shift = false
  983. control = false
  984. stealth = false
  985. function animation(token)
  986. if plr == lplr then
  987. pose = token
  988. end
  989. if -root.Velocity.Y / 1.5 > -5 and -root.Velocity.Y / 1.5 < 150 then
  990. velocityYFall = root.Velocity.Y / 1.5
  991. elseif -root.Velocity.Y / 1.5 < -5 then
  992. velocityYFall = 5
  993. elseif -root.Velocity.Y / 1.5 > 150 then
  994. velocityYFall = -150
  995. end
  996. if -root.Velocity.Y / 180 > 0 and -root.Velocity.Y / 180 < 1.2 then
  997. velocityYFall2 = root.Velocity.Y / 180
  998. elseif -root.Velocity.Y / 180 < 0 then
  999. velocityYFall2 = 0
  1000. elseif -root.Velocity.Y / 180 > 1.2 then
  1001. velocityYFall2 = -1.2
  1002. end
  1003. if -root.Velocity.Y / 1.5 > -5 and -root.Velocity.Y / 1.5 < 50 then
  1004. velocityYFall3 = root.Velocity.Y / 1.5
  1005. elseif -root.Velocity.Y / 1.5 < -5 then
  1006. velocityYFall3 = 5
  1007. elseif -root.Velocity.Y / 1.5 > 50 then
  1008. velocityYFall3 = -50
  1009. end
  1010. if -root.Velocity.Y / 1.5 > -50 and -root.Velocity.Y / 1.5 < 20 then
  1011. velocityYFall4 = root.Velocity.Y / 1.5
  1012. elseif -5 > -root.Velocity.Y / 180 then
  1013. velocityYFall4 = 5
  1014. elseif -root.Velocity.Y / 180 > 50 then
  1015. velocityYFall4 = -50
  1016. end
  1017. if root.RotVelocity.Y / 6 < 1 and root.RotVelocity.Y / 6 > -1 then
  1018. neckrotY = root.RotVelocity.Y / 6
  1019. elseif root.RotVelocity.Y / 6 < -1 then
  1020. neckrotY = -1
  1021. elseif root.RotVelocity.Y / 6 > 1 then
  1022. neckrotY = 1
  1023. end
  1024. if root.RotVelocity.Y / 8 < 0.6 and root.RotVelocity.Y / 8 > -0.6 then
  1025. neckrotY2 = root.RotVelocity.Y / 8
  1026. elseif root.RotVelocity.Y / 8 < -0.6 then
  1027. neckrotY2 = -0.6
  1028. elseif root.RotVelocity.Y / 8 > 0.6 then
  1029. neckrotY2 = 0.6
  1030. end
  1031. if root.RotVelocity.Y / 6 < 0.2 and root.RotVelocity.Y / 6 > -0.2 then
  1032. torsorotY = root.RotVelocity.Y / 6
  1033. elseif root.RotVelocity.Y / 6 < -0.2 then
  1034. torsorotY = -0.2
  1035. elseif root.RotVelocity.Y / 6 > 0.2 then
  1036. torsorotY = 0.2
  1037. end
  1038. if root.RotVelocity.Y / 8 < 0.2 and root.RotVelocity.Y / 8 > -0.2 then
  1039. torsorotY2 = root.RotVelocity.Y / 8
  1040. elseif root.RotVelocity.Y / 8 < -0.2 then
  1041. torsorotY2 = -0.2
  1042. elseif root.RotVelocity.Y / 8 > 0.2 then
  1043. torsorotY2 = 0.2
  1044. end
  1045. torsoY = -(torso.Velocity * Vector3.new(1, 0, 1)).magnitude / 20
  1046. torsoY2 = -(torso.Velocity * Vector3.new(1, 0, 1)).magnitude / 36
  1047. local rlegray = Ray.new(rleg.Position + Vector3.new(0, 0.5, 0), Vector3.new(0, -1.75, 0))
  1048. local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
  1049. local llegray = Ray.new(lleg.Position + Vector3.new(0, 0.5, 0), Vector3.new(0, -1.75, 0))
  1050. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
  1051. local rightvector = (root.Velocity * root.CFrame.rightVector).X + (root.Velocity * root.CFrame.rightVector).Z
  1052. local lookvector = (root.Velocity * root.CFrame.lookVector).X + (root.Velocity * root.CFrame.lookVector).Z
  1053. if lookvector > hum.WalkSpeed then
  1054. lookvector = hum.WalkSpeed
  1055. end
  1056. if lookvector < -hum.WalkSpeed then
  1057. lookvector = -hum.WalkSpeed
  1058. end
  1059. if rightvector > hum.WalkSpeed then
  1060. rightvector = hum.WalkSpeed
  1061. end
  1062. if rightvector < -hum.WalkSpeed then
  1063. rightvector = -hum.WalkSpeed
  1064. end
  1065. local lookvel = lookvector / hum.WalkSpeed
  1066. local rightvel = rightvector / hum.WalkSpeed
  1067. if token == "Idle" then
  1068. change = 1
  1069. if noidle == false then
  1070. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.1), 0.4)
  1071. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0.05 * math.sin(sine / 16) + 0.15, math.rad(0) + 0.05 * math.cos(sine / 32), 0.01 * math.cos(sine / 32)), 0.1)
  1072. if stealth == true then
  1073. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-0.85, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.4 - 0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(10), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(40 - 1 * math.cos(sine / 8))), 0.2)
  1074. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.5 - 0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(20), math.rad(25 - 1 * math.cos(sine / 16)), math.rad(-30 + 1 * math.cos(sine / 8))), 0.2)
  1075. else
  1076. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55 - 0.1 * math.cos(sine / 16) / 3, -0.05 - 0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(-2 + 4 * math.sin(sine / 16)), math.rad(0 - 5 * math.sin(sine / 16)), math.rad(-4 + 2 * math.cos(sine / 16))), 0.2)
  1077. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55 - 0.1 * math.cos(sine / 16) / 3, -0.05 - 0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(-2 + 4 * math.sin(sine / 16)), math.rad(0 + 5 * math.sin(sine / 16)), math.rad(4 - 2 * math.cos(sine / 16))), 0.2)
  1078. end
  1079. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1 - 0.1 * math.cos(sine / 16) - hum.HipHeight, 0) * CFrame.Angles(math.rad(0 - 2 * math.cos(sine / 16)), math.rad(0), math.rad(0 - 1 * math.cos(sine / 32))), 0.1)
  1080. end
  1081. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(0, llegendPoint.Y - lleg.Position.Y, 0) * CFrame.new(-0.5, 0 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(-1 + 2 * math.cos(sine / 16)), math.rad(10), math.rad(-5 + 1 * math.cos(sine / 32))), 0.1)
  1082. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0, rlegendPoint.Y - rleg.Position.Y, 0) * CFrame.new(0.5, 0 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(-1 + 2 * math.cos(sine / 16)), math.rad(-10), math.rad(5 + 1 * math.cos(sine / 32))), 0.1)
  1083. elseif token == "Run" then
  1084. if noidle == false then
  1085. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.1 - 0.1 * lookvel) * CFrame.Angles(0, torsorotY, math.rad(0) + torsorotY), 0.4)
  1086. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles((change / 10 * math.cos(sine / 2) + 0.1) * lookvel ^ 2, -(change / 10) * math.cos(sine / 4) - torsorotY / 5, change / 5 * math.cos(sine / 4)), 0.1)
  1087. if stealth == true then
  1088. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6 - movement / 40 * math.cos(sine / 4) / 2, movement / 100 * math.cos(sine / 4)) * CFrame.Angles(math.rad(-torso.Orientation.X - movement * 1 * math.cos(sine / 4) / 2) + -(movement / 20) * (math.sin(sine / 4) / 2), math.rad(0 - movement * 1 * math.cos(sine / 4)) / 2, math.rad(0)), 0.2)
  1089. else
  1090. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5 + 0.12 * lookvel ^ 2 - movement / 40 * math.cos(sine / 4) / 3, movement / 150 + movement / 40 * math.cos(sine / 4)) * CFrame.Angles((math.rad(-5 - movement * 2 * math.cos(sine / 4)) + -(movement / 10) * math.sin(sine / 4)) * lookvel, math.rad(0 - movement * 2 * math.cos(sine / 4)), -math.rad(movement * 1 * 0.2 - movement * 1 * math.cos(sine / 2) * lookvel) + math.rad(-5 * rightvel)), 0.2)
  1091. end
  1092. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5 + 0.12 * lookvel ^ 2 + movement / 40 * math.cos(sine / 4) / 3, movement / 150 - movement / 40 * math.cos(sine / 4)) * CFrame.Angles((math.rad(-5 + movement * 2 * math.cos(sine / 4)) + movement / 10 * math.sin(sine / 4)) * lookvel, math.rad(0 - movement * 2 * math.cos(sine / 4)), -math.rad(-(movement * 1) * 0.2 + movement * 1 * math.cos(sine / 2) * lookvel) + math.rad(-5 * rightvel)), 0.2)
  1093. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.05 + change / 2 * math.cos(sine / 2), 0) * CFrame.Angles(math.rad(-(change * 20) - movement / 20 * math.cos(sine / 2)) * lookvel, torsorotY2 + math.rad(0 - 4 * math.sin(sine / 4)), math.rad(-(change * 20) - movement / 20 * math.cos(sine / 2)) * rightvel + torsorotY2 + math.rad(0 - 1 * math.cos(sine / 4))), 0.1)
  1094. end
  1095. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.85 - movement / 15 * math.cos(sine / 4) / 2, (-0.1 + movement / 15 * math.cos(sine / 4)) * (0.5 + 0.5 * lookvel)) * CFrame.Angles((math.rad(-10 * lookvel + change * 5 - movement * math.cos(sine / 4)) + -(movement / 10) * math.sin(sine / 4)) * lookvel, math.rad(0 + movement * 2 * math.cos(sine / 4)), (math.rad(change * 5 - movement * math.cos(sine / 4)) + -(movement / 10) * math.sin(sine / 4)) * (rightvector / (hum.WalkSpeed * 2))), 0.2)
  1096. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.85 + movement / 15 * math.cos(sine / 4) / 2, (-0.1 - movement / 15 * math.cos(sine / 4)) * (0.5 + 0.5 * lookvel)) * CFrame.Angles((math.rad(-10 * lookvel + change * 5 + movement * math.cos(sine / 4)) + movement / 10 * math.sin(sine / 4)) * lookvel, math.rad(0 + movement * 2 * math.cos(sine / 4)), (math.rad(change * 5 + movement * math.cos(sine / 4)) + movement / 10 * math.sin(sine / 4)) * (rightvector / (hum.WalkSpeed * 2))), 0.2)
  1097. elseif token == "Jump" then
  1098. change = 1
  1099. if noidle == false then
  1100. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.1) * CFrame.Angles(0, 0, 0), 0.4)
  1101. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-velocityYFall3 / 5), 0, 0), 0.1)
  1102. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55 - velocityYFall3 / 70, 0) * CFrame.Angles(math.rad(-velocityYFall3 / 10), math.rad(0), math.rad(velocityYFall)), 0.2)
  1103. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55 - velocityYFall3 / 70, 0) * CFrame.Angles(math.rad(-velocityYFall3 / 10), math.rad(0), math.rad(-velocityYFall)), 0.2)
  1104. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-(change * 20) - movement / 20 * math.cos(sine / 2)) * (lookvector / (hum.WalkSpeed * 2)) + math.rad(velocityYFall3 / 10), math.rad(0), math.rad(-(change * 20) - movement / 20 * math.cos(sine / 2)) * (rightvector / (hum.WalkSpeed * 2))), 0.1)
  1105. end
  1106. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.925, 0) * CFrame.Angles(math.rad(-35), math.rad(0), math.rad(-2)), 0.2)
  1107. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, 0, -0.8) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(2)), 0.2)
  1108. elseif token == "Sit" then
  1109. change = 1
  1110. if noidle == false then
  1111. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.1), 0.4)
  1112. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0.05 * math.sin(sine / 16) + 0.15, 0.05 * math.cos(sine / 32), 0.01 * math.cos(sine / 32)), 0.1)
  1113. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55 - 0.1 * math.cos(sine / 16) / 3, -0.05 - 0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(-2 + 4 * math.sin(sine / 16)), math.rad(-5 - 5 * math.sin(sine / 16)), math.rad(-6 + 2 * math.cos(sine / 16))), 0.2)
  1114. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55 - 0.1 * math.cos(sine / 16) / 3, -0.05 - 0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(-2 + 4 * math.sin(sine / 16)), math.rad(5 + 5 * math.sin(sine / 16)), math.rad(6 - 2 * math.cos(sine / 16))), 0.2)
  1115. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.4 - 0.1 * math.cos(sine / 16) - hum.HipHeight, 0) * CFrame.Angles(math.rad(0 - 2 * math.cos(sine / 16)), math.rad(0), math.rad(0 - 1 * math.cos(sine / 32))), 0.1)
  1116. end
  1117. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.55 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(80 + 2 * math.cos(sine / 16)), math.rad(4), math.rad(-2 + 1 * math.cos(sine / 32))), 0.2)
  1118. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.55 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(80 + 2 * math.cos(sine / 16)), math.rad(-4), math.rad(2 + 1 * math.cos(sine / 32))), 0.2)
  1119. end
  1120. end
  1121. function rswait(value)
  1122. if value ~= nil and value ~= 0 then
  1123. for i = 1, value do
  1124. rs:wait()
  1125. end
  1126. else
  1127. rs:wait()
  1128. end
  1129. end
  1130. local timeposition = 0
  1131. function musik(id)
  1132. if id == "Stop" then
  1133. if not torso:FindFirstChild("MusicRuin") then
  1134. soundz = Instance.new("Sound", torso)
  1135. end
  1136. if torso:FindFirstChild("MusicRuin") then
  1137. soundz = torso:FindFirstChild("MusicRuin")
  1138. soundz:Stop()
  1139. end
  1140. else
  1141. if not torso:FindFirstChild("MusicRuin") then
  1142. soundz = Instance.new("Sound", torso)
  1143. for i = 1, 1 do
  1144. local equalizer = Instance.new("EqualizerSoundEffect", soundz)
  1145. equalizer.HighGain = 2
  1146. equalizer.MidGain = 0
  1147. equalizer.LowGain = 4
  1148. end
  1149. end
  1150. if torso:FindFirstChild("MusicRuin") then
  1151. soundz = torso:FindFirstChild("MusicRuin")
  1152. end
  1153. soundz.Volume = 10
  1154. soundz.Name = "MusicRuin"
  1155. soundz.Looped = true
  1156. soundz.PlaybackSpeed = 1
  1157. soundz.SoundId = "rbxassetid://" .. id
  1158. soundz:Stop()
  1159. soundz:Play()
  1160. end
  1161. end
  1162. remote.OnClientEvent:connect(function(a, id)
  1163. if plr ~= lplr and a == "musik" then
  1164. musik(id)
  1165. end
  1166. end)
  1167. function music(id)
  1168. musik(id)
  1169. remote:FireServer("musik", id)
  1170. end
  1171. function lerp(a, b, t)
  1172. return a + (b - a) * t
  1173. end
  1174. function Lerp(c1, c2, al)
  1175. local com1 = {
  1176. c1.X,
  1177. c1.Y,
  1178. c1.Z,
  1179. c1:toEulerAnglesXYZ()
  1180. }
  1181. local com2 = {
  1182. c2.X,
  1183. c2.Y,
  1184. c2.Z,
  1185. c2:toEulerAnglesXYZ()
  1186. }
  1187. for i, v in pairs(com1) do
  1188. com1[i] = v + (com2[i] - v) * al
  1189. end
  1190. return CFrame.new(com1[1], com1[2], com1[3]) * CFrame.Angles(select(4, unpack(com1)))
  1191. end
  1192. function slerp(a, b, t)
  1193. dot = a:Dot(b)
  1194. if dot > 0.99999 or dot < -0.99999 then
  1195. return t <= 0.5 and a or b
  1196. else
  1197. r = math.acos(dot)
  1198. return (a * math.sin((1 - t) * r) + b * math.sin(t * r)) / math.sin(r)
  1199. end
  1200. end
  1201. function clerp(c1, c2, al)
  1202. local com1 = {
  1203. c1.X,
  1204. c1.Y,
  1205. c1.Z,
  1206. c1:toEulerAnglesXYZ()
  1207. }
  1208. local com2 = {
  1209. c2.X,
  1210. c2.Y,
  1211. c2.Z,
  1212. c2:toEulerAnglesXYZ()
  1213. }
  1214. for i, v in pairs(com1) do
  1215. com1[i] = lerp(v, com2[i], al)
  1216. end
  1217. return CFrame.new(com1[1], com1[2], com1[3]) * CFrame.Angles(select(4, unpack(com1)))
  1218. end
  1219. function findAllNearestTorso(pos, dist)
  1220. local list = workspace:GetDescendants()
  1221. local torso = {}
  1222. local temp, human, temp2
  1223. for x = 1, #list do
  1224. temp2 = list[x]
  1225. if temp2.className == "Model" and temp2 ~= char then
  1226. temp = temp2:findFirstChild("Head")
  1227. human = temp2:findFirstChildOfClass("Humanoid")
  1228. if temp ~= nil and human ~= nil and human.Health > 0 and dist > (temp.Position - pos).magnitude then
  1229. table.insert(torso, temp)
  1230. end
  1231. end
  1232. end
  1233. return torso
  1234. end
  1235. function checkIfNotPlayer(model)
  1236. if model.CanCollide == true and model ~= char and model.Parent ~= char and model.Parent.Parent ~= char and model.Parent.Parent ~= char and model.Parent ~= DebrisModel and model.Parent.Parent ~= DebrisModel and model.Parent.Parent.Parent ~= DebrisModel and model ~= wings and model.Parent ~= wings and model.Parent.Parent ~= wings then
  1237. return true
  1238. else
  1239. return false
  1240. end
  1241. end
  1242. function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
  1243. local wld = Instance.new("Weld", wp1)
  1244. wld.Part0 = wp0
  1245. wld.Part1 = wp1
  1246. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  1247. return wld
  1248. end
  1249. function weld(model)
  1250. local parts, last = {}, nil
  1251. local function scan(parent)
  1252. for _, v in pairs(parent:GetChildren()) do
  1253. if v:IsA("BasePart") then
  1254. if last then
  1255. local w = Instance.new("Weld")
  1256. w.Name = ("%s_Weld"):format(v.Name)
  1257. w.Part0, w.Part1 = last, v
  1258. w.C0 = last.CFrame:inverse()
  1259. w.C1 = v.CFrame:inverse()
  1260. w.Parent = last
  1261. end
  1262. last = v
  1263. table.insert(parts, v)
  1264. end
  1265. scan(v)
  1266. end
  1267. end
  1268. scan(model)
  1269. for _, v in pairs(parts) do
  1270. v.Anchored = false
  1271. v.Locked = true
  1272. v.Anchored = false
  1273. v.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1274. v.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1275. v.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1276. v.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1277. v.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1278. v.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1279. v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0)
  1280. v.Massless = true
  1281. end
  1282. end
  1283. function calculate(part, asd)
  1284. local Head = hed
  1285. local RightShoulder = asd
  1286. local RightArm = part
  1287. local MousePosition = mouse.Hit.p
  1288. local ToMouse = (MousePosition - Head.Position).unit
  1289. local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
  1290. local FromRightArmPos = Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(Head.Size.X / 2 + RightArm.Size.X / 2, Head.Size.Y / 2 - RightArm.Size.Z / 2, 0))
  1291. local ToMouseRightArm = (MousePosition - FromRightArmPos) * Vector3.new(1, 0, 1).unit
  1292. local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit
  1293. local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
  1294. local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
  1295. if LateralAngle > math.pi / 2 then
  1296. LateralAngle = math.pi / 2
  1297. local Torso = root
  1298. local Point = Torso.CFrame:vectorToObjectSpace(mouse.Hit.p - Torso.CFrame.p)
  1299. if 0 < Point.Z then
  1300. if 0 < Point.X and RightArm == rarm then
  1301. Torso.CFrame = CFrame.new(Torso.Position, Vector3.new(mouse.Hit.X, Torso.Position.Y, mouse.Hit.Z)) * CFrame.Angles(0, math.rad(110), 0)
  1302. elseif 0 > Point.X and RightArm == rarm then
  1303. Torso.CFrame = CFrame.new(Torso.Position, Vector3.new(mouse.Hit.X, Torso.Position.Y, mouse.Hit.Z)) * CFrame.Angles(0, math.rad(-110), 0)
  1304. end
  1305. end
  1306. end
  1307. if 0 > Cross.Y then
  1308. LateralAngle = -LateralAngle
  1309. end
  1310. return (CFrame.Angles(math.pi / 2 - Angle, math.pi / 2 + LateralAngle, math.pi / 2))
  1311. end
  1312. function sond(id, position, vol, pitch, start, finish)
  1313. local sound
  1314. coroutine.resume(coroutine.create(function()
  1315. local part = Instance.new("Part", workspace)
  1316. part.Position = position
  1317. part.Size = Vector3.new(0, 0, 0)
  1318. part.CanCollide = false
  1319. part.Transparency = 1
  1320. part.Anchored = true
  1321. sound = Instance.new("Sound", part)
  1322. sound.SoundId = "rbxassetid://" .. id
  1323. repeat
  1324. rs:wait()
  1325. until sound.IsLoaded
  1326. if vol ~= nil then
  1327. sound.Volume = vol
  1328. end
  1329. if pitch ~= nil then
  1330. sound.PlaybackSpeed = pitch
  1331. end
  1332. if start ~= nil then
  1333. sound.TimePosition = start
  1334. end
  1335. if finish ~= nil then
  1336. debris:AddItem(part, finish - start)
  1337. else
  1338. debris:AddItem(part, sound.TimeLength)
  1339. end
  1340. sound:Play()
  1341. end))
  1342. return sound
  1343. end
  1344. remote.OnClientEvent:connect(function(a, id, position, vol, pitch, start, finish)
  1345. if plr ~= lplr and a == "sond" then
  1346. sond(id, position, vol, pitch, start, finish)
  1347. end
  1348. end)
  1349. function sound(id, position, vol, pitch, start, finish)
  1350. if plr == lplr then
  1351. local part = sond(id, position, vol, pitch, start, finish)
  1352. remote:FireServer("sond", id, position, vol, pitch, start, finish)
  1353. return part
  1354. end
  1355. end
  1356. function computeDirection(vec)
  1357. local lenSquared = vec.magnitude * vec.magnitude
  1358. local invSqrt = 1 / math.sqrt(lenSquared)
  1359. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  1360. end
  1361. local shaking = 0
  1362. function shake(num)
  1363. if num > shaking then
  1364. shaking = num
  1365. end
  1366. end
  1367. game:GetService("RunService").RenderStepped:connect(function()
  1368. --hum.CameraOffset = Vector3.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1)) * (shaking / 100)
  1369. if shaking > 0 then
  1370. shaking = shaking - 1
  1371. else
  1372. shaking = 0
  1373. end
  1374. end)
  1375. plr = p
  1376. DebrisModel = Instance.new("Model", plr.Character)
  1377. DebrisModel.Name = "DebrisModel"
  1378. function Effekt(mesh, size, transparency, material, color, position, rotation, positionchange, sizechange, rotationchange, transparencychange, acceleration)
  1379. local part = Instance.new("Part", DebrisModel)
  1380. part.Anchored = true
  1381. part.CanCollide = false
  1382. part.Size = Vector3.new(1, 1, 1)
  1383. part.Transparency = transparency
  1384. part.Material = material
  1385. part.Color = color
  1386. part.CFrame = CFrame.new(position) * CFrame.Angles(math.rad(rotation.X), math.rad(rotation.Y), math.rad(rotation.Z))
  1387. local partmesh = Instance.new("SpecialMesh", part)
  1388. if tonumber(mesh) == nil then
  1389. partmesh.MeshType = mesh
  1390. else
  1391. partmesh.MeshId = "rbxassetid://" .. mesh
  1392. end
  1393. partmesh.Scale = size
  1394. local pvalue = Instance.new("Vector3Value", part)
  1395. pvalue.Name = "Position"
  1396. pvalue.Value = positionchange
  1397. local svalue = Instance.new("Vector3Value", part)
  1398. svalue.Name = "Size"
  1399. svalue.Value = sizechange
  1400. local rvalue = Instance.new("Vector3Value", part)
  1401. rvalue.Name = "Rotation"
  1402. rvalue.Value = rotationchange
  1403. local tvalue = Instance.new("NumberValue", part)
  1404. tvalue.Name = "Transparency"
  1405. tvalue.Value = transparencychange
  1406. local avalue = Instance.new("NumberValue", part)
  1407. avalue.Name = "Acceleration"
  1408. avalue.Value = acceleration
  1409. part.Name = "EFFECT"
  1410. return part
  1411. end
  1412. remote.OnClientEvent:connect(function(a, mesh, size, transparency, material, color, position, rotation, positionchange, sizechange, rotationchange, transparencychange, acceleration)
  1413. if plr ~= lplr and a == "effekt" then
  1414. Effekt(mesh, size, transparency, material, color, position, rotation, positionchange, sizechange, rotationchange, transparencychange, acceleration)
  1415. end
  1416. end)
  1417. function Effect(mesh, size, transparency, material, color, position, rotation, positionchange, sizechange, rotationchange, transparencychange, acceleration)
  1418. local part = Effekt(mesh, size, transparency, material, color, position, rotation, positionchange, sizechange, rotationchange, transparencychange, acceleration)
  1419. remote:FireServer("effekt", mesh, size, transparency, material, color, position, rotation, positionchange, sizechange, rotationchange, transparencychange, acceleration)
  1420. return part
  1421. end
  1422. rs:connect(function()
  1423. coroutine.resume(coroutine.create(function()
  1424. for i, v in pairs(DebrisModel:GetChildren()) do
  1425. if v:isA("BasePart") then
  1426. v.LocalTransparencyModifier = 0
  1427. end
  1428. end
  1429. if not plr.Character:FindFirstChild("DebrisModel") then
  1430. DebrisModel = Instance.new("Model", plr.Character)
  1431. DebrisModel.Name = "DebrisModel"
  1432. end
  1433. for i, v in pairs(DebrisModel:GetChildren()) do
  1434. if v:IsA("BasePart") and v.Name == "EFFECT" then
  1435. local pvalue = v:FindFirstChild("Position").Value
  1436. local svalue = v:FindFirstChild("Size").Value
  1437. local rvalue = v:FindFirstChild("Rotation").Value
  1438. local tvalue = v:FindFirstChild("Transparency").Value
  1439. local avalue = v:FindFirstChild("Acceleration").Value
  1440. local mesh = v:FindFirstChild("Mesh")
  1441. mesh.Scale = mesh.Scale + svalue
  1442. v:FindFirstChild("Size").Value = v:FindFirstChild("Size").Value + Vector3.new(1, 1, 1) * avalue
  1443. v.Transparency = v.Transparency + tvalue
  1444. v.CFrame = CFrame.new(pvalue) * v.CFrame * CFrame.Angles(math.rad(rvalue.X), math.rad(rvalue.Y), math.rad(rvalue.Z))
  1445. if v.Transparency >= 1 or 0 > mesh.Scale.X or 0 > mesh.Scale.Y or 0 > mesh.Scale.Z then
  1446. v:Destroy()
  1447. end
  1448. end
  1449. end
  1450. end))
  1451. end)
  1452. local wsback = 0
  1453. local frozen = false
  1454. function freeze()
  1455. if frozen == false then
  1456. frozen = true
  1457. wsback = hum.WalkSpeed
  1458. hum.WalkSpeed = 1
  1459. else
  1460. frozen = false
  1461. hum.WalkSpeed = wsback
  1462. end
  1463. end
  1464. function litnin(Part0, Part1, Times, Offset, Color, Thickness, Trans)
  1465. local magz = (Part0 - Part1).magnitude
  1466. local curpos = Part0
  1467. local trz = {
  1468. -Offset,
  1469. Offset
  1470. }
  1471. for i = 1, Times do
  1472. local li = Instance.new("Part", DebrisModel)
  1473. li.TopSurface = 0
  1474. li.Material = Enum.Material.Neon
  1475. li.BottomSurface = 0
  1476. li.Anchored = true
  1477. li.Locked = true
  1478. li.Transparency = Trans or 0.4
  1479. li.Color = Color
  1480. li.formFactor = "Custom"
  1481. li.CanCollide = false
  1482. li.Size = Vector3.new(Thickness, Thickness, magz / Times)
  1483. local lim = Instance.new("BlockMesh", li)
  1484. local Offzet = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  1485. local trolpos = CFrame.new(curpos, Part1) * CFrame.new(0, 0, magz / Times).p + Offzet
  1486. if Times == i then
  1487. local magz2 = (curpos - Part1).magnitude
  1488. li.Size = Vector3.new(Thickness, Thickness, magz2)
  1489. li.CFrame = CFrame.new(curpos, Part1) * CFrame.new(0, 0, -magz2 / 2)
  1490. else
  1491. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / Times / 2)
  1492. end
  1493. curpos = li.CFrame * CFrame.new(0, 0, magz / Times / 2).p
  1494. li.Name = "LIGHTNING"
  1495. end
  1496. end
  1497. remote.OnClientEvent:connect(function(a, Part0, Part1, Times, Offset, Color, Thickness, Trans)
  1498. if plr ~= lplr and a == "litnin" then
  1499. litnin(Part0, Part1, Times, Offset, Color, Thickness, Trans)
  1500. end
  1501. end)
  1502. function Lightning(Part0, Part1, Times, Offset, Color, Thickness, Trans)
  1503. local part = litnin(Part0, Part1, Times, Offset, Color, Thickness, Trans)
  1504. remote:FireServer("litnin", Part0, Part1, Times, Offset, Color, Thickness, Trans)
  1505. end
  1506. function createimpakt(a, b, c, d, endPoint, ori)
  1507. coroutine.resume(coroutine.create(function()
  1508. local temppart = Instance.new("Part", DebrisModel)
  1509. for i = 1, 8 do
  1510. local bullet = Instance.new("Part", workspace)
  1511. bullet.Material = a
  1512. bullet.Color = b
  1513. bullet.TopSurface = c
  1514. bullet.BottomSurface = d
  1515. bullet.Size = Vector3.new(10, 10, 10)
  1516. bullet.CFrame = root.CFrame
  1517. bullet.CanCollide = false
  1518. bullet.Velocity = Vector3.new(math.random(-80, 80), 120, math.random(-80, 80))
  1519. bullet.RotVelocity = Vector3.new(math.random(-80, 80), math.random(-80, 80), math.random(-80, 80)) / 10
  1520. bullet:BreakJoints()
  1521. debris:AddItem(bullet, 5)
  1522. end
  1523. for z = 1, 2 do
  1524. for i = 1, 40 do
  1525. temppart.CFrame = CFrame.new(endPoint, endPoint + Vector3.new(1, 0, 0)) * CFrame.Angles(math.rad(ori.X), math.rad(ori.Y), math.rad(ori.Z)) * CFrame.Angles(0, math.rad(i / 40 * 360), 0) * CFrame.new(0, math.random(-10, -5) + z * 5, math.random(-5, 5) - (10 + z * 10))
  1526. local bullet = Instance.new("Part", workspace)
  1527. bullet.Material = a
  1528. bullet.Anchored = true
  1529. bullet.CanCollide = false
  1530. bullet.Color = b
  1531. bullet.TopSurface = c
  1532. bullet.BottomSurface = d
  1533. bullet.Size = Vector3.new(10, 15, 20)
  1534. bullet.CFrame = CFrame.new(temppart.Position + Vector3.new(0, -10, 0), endPoint + Vector3.new(0, -1, 0))
  1535. debris:AddItem(bullet, 5)
  1536. end
  1537. end
  1538. temppart:Destroy()
  1539. end))
  1540. end
  1541. remote.OnClientEvent:connect(function(a, b, c, d, e, endPoint, ori)
  1542. if plr ~= lplr and a == "impakt" then
  1543. coroutine.resume(coroutine.create(function()
  1544. createimpakt(b, c, d, e, endPoint, ori)
  1545. end))
  1546. end
  1547. end)
  1548. function createimpact()
  1549. coroutine.resume(coroutine.create(function()
  1550. local ray = Ray.new(root.Position, Vector3.new(0, -1000, 0))
  1551. local part, endPoint = workspace:FindPartOnRay(ray, char)
  1552. createimpakt(part.Material, part.Color, part.TopSurface, part.BottomSurface, endPoint, part.Orientation)
  1553. remote:FireServer("impakt", part.Material, part.Color, part.TopSurface, part.BottomSurface, endPoint, part.Orientation)
  1554. end))
  1555. end
  1556. function partchange(target, material, color)
  1557. for i, v in pairs(target:children()) do
  1558. if v:IsA("BasePart") then
  1559. v.Color = color
  1560. v.Material = material
  1561. end
  1562. end
  1563. end
  1564. local debounce = false
  1565. max = 0
  1566. velocityYFall = 0
  1567. velocityYFall2 = 0
  1568. velocityYFall3 = 0
  1569. velocityYFall4 = 0
  1570. neckrotY = 0
  1571. neckrotY2 = 0
  1572. torsorotY = 0
  1573. torsorotY2 = 0
  1574. torsoY = 0
  1575. torsoY2 = 0
  1576. sine = 0
  1577. change = 1
  1578. movement = 20
  1579. hum.WalkSpeed = 50
  1580. timeranim = 0
  1581. running = false
  1582. jumped = false
  1583. icolor = 1
  1584. imode = false
  1585. didjump = false
  1586. jumppower = 0
  1587. debounceimpact = false
  1588. noidlew = false
  1589. drew = false
  1590. sidestep = 0
  1591. local size = 1
  1592. local ranonce = true
  1593. if not larm:FindFirstChild("Weld") then
  1594. newWeld(torso, larm, -1.5, 0.5, 0)
  1595. ranonce = false
  1596. end
  1597. if not rarm:FindFirstChild("Weld") then
  1598. newWeld(torso, rarm, 1.5, 0.5, 0)
  1599. ranonce = false
  1600. end
  1601. if not lleg:FindFirstChild("Weld") then
  1602. newWeld(torso, lleg, -0.5, -1, 0)
  1603. ranonce = false
  1604. end
  1605. if not rleg:FindFirstChild("Weld") then
  1606. newWeld(torso, rleg, 0.5, -1, 0)
  1607. ranonce = false
  1608. end
  1609. if not torso:FindFirstChild("Weld") then
  1610. newWeld(root, torso, 0, -1, 0)
  1611. ranonce = false
  1612. end
  1613. if not hed:FindFirstChild("Weld") then
  1614. newWeld(torso, hed, 0, 1.5, 0)
  1615. ranonce = false
  1616. end
  1617. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  1618. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  1619. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  1620. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  1621. torso.Weld.C1 = CFrame.new(0, -1, 0)
  1622. if ranonce then
  1623. for i, v in pairs(char:GetChildren()) do
  1624. if v ~= DebrisModel and v:IsA("Model") then
  1625. v:Destroy()
  1626. end
  1627. end
  1628. end
  1629. skin_custom = false
  1630. skin_color = BrickColor.new("Light orange")
  1631. custom_outfits = false
  1632. function addblood(target)
  1633. for i = 1, 5 do
  1634. Effect(Enum.MeshType.Sphere, Vector3.new(2, 2, 2) * 1, 0.5, Enum.Material.Glass, Color3.new(1, 0, 0), (target:FindFirstChild("Torso") or target:FindFirstChild("UpperTorso")).Position, Vector3.new(math.random(0, 360), math.random(0, 360), math.random(0, 360)), Vector3.new(), Vector3.new(-1, 2, -1) * 0.2, Vector3.new(), 0, 0)
  1635. end
  1636. if target:FindFirstChild("Torso") then
  1637. sound(206082273, target.Torso.Position, 10)
  1638. elseif target:FindFirstChild("UpperTorso") then
  1639. sound(206082273, target.UpperTorso.Position, 10)
  1640. end
  1641. coroutine.resume(coroutine.create(function()
  1642. for i = 1, 30 do
  1643. rs:wait()
  1644. for i, v in pairs(target:GetChildren()) do
  1645. if v:IsA("BasePart") and v ~= target:FindFirstChild("HumanoidRootPart") then
  1646. local ef = Effect(Enum.MeshType.Sphere, Vector3.new(1, 1, 1) * 1, 0.5, Enum.Material.Glass, Color3.new(1, 0, 0), v.Position + Vector3.new(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)) / 720, Vector3.new(math.random(0, 360), math.random(0, 360), math.random(0, 360)), Vector3.new(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)) / 3600, Vector3.new(-1, -1, -1) * 0.2, Vector3.new(), 0, 0)
  1647. ef.Anchored = false
  1648. end
  1649. end
  1650. end
  1651. end))
  1652. end
  1653. remote.OnClientEvent:connect(function(a, b)
  1654. if a == "dead" and b ~= hum then
  1655. addblood(b.Parent)
  1656. end
  1657. end)
  1658. Model0 = Instance.new("Model")
  1659. Part1 = Instance.new("Part")
  1660. SpecialMesh2 = Instance.new("SpecialMesh")
  1661. Part3 = Instance.new("Part")
  1662. SpecialMesh4 = Instance.new("SpecialMesh")
  1663. Part5 = Instance.new("Part")
  1664. SpecialMesh6 = Instance.new("SpecialMesh")
  1665. Part7 = Instance.new("Part")
  1666. Part8 = Instance.new("Part")
  1667. SpecialMesh9 = Instance.new("SpecialMesh")
  1668. Part10 = Instance.new("Part")
  1669. SpecialMesh11 = Instance.new("SpecialMesh")
  1670. Part12 = Instance.new("Part")
  1671. SpecialMesh13 = Instance.new("SpecialMesh")
  1672. Part14 = Instance.new("Part")
  1673. SpecialMesh15 = Instance.new("SpecialMesh")
  1674. Part16 = Instance.new("Part")
  1675. SpecialMesh17 = Instance.new("SpecialMesh")
  1676. Part18 = Instance.new("Part")
  1677. Part19 = Instance.new("Part")
  1678. SpecialMesh20 = Instance.new("SpecialMesh")
  1679. Part21 = Instance.new("Part")
  1680. Part22 = Instance.new("Part")
  1681. SpecialMesh23 = Instance.new("SpecialMesh")
  1682. Part24 = Instance.new("Part")
  1683. SpecialMesh25 = Instance.new("SpecialMesh")
  1684. Part26 = Instance.new("Part")
  1685. Model0.Name = "Deus"
  1686. Model0.Parent = char
  1687. Part1.Parent = Model0
  1688. Part1.BrickColor = BrickColor.new("Black")
  1689. Part1.Rotation = Vector3.new(0, 0, 90)
  1690. Part1.Anchored = true
  1691. Part1.CanCollide = false
  1692. Part1.Size = Vector3.new(1.39999998, 0.200000003, 0.200000003)
  1693. Part1.Name = "Handle"
  1694. Part1.CFrame = CFrame.new(95.6999893, 37.4249992, 39, -4.37113883E-8, -1, 0, 1, -4.37113883E-8, 0, 0, 0, 0.99999994)
  1695. Part1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1696. Part1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1697. Part1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1698. Part1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1699. Part1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1700. Part1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1701. Part1.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1702. Part1.Position = Vector3.new(95.6999893, 37.4249992, 39)
  1703. Part1.Orientation = Vector3.new(0, 0, 90)
  1704. Part1.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1705. SpecialMesh2.Parent = Part1
  1706. SpecialMesh2.MeshType = Enum.MeshType.Cylinder
  1707. Part3.Parent = Model0
  1708. Part3.Material = Enum.Material.Neon
  1709. Part3.BrickColor = BrickColor.new("Really red")
  1710. Part3.Rotation = Vector3.new(0, -90, 0)
  1711. Part3.Anchored = true
  1712. Part3.CanCollide = false
  1713. Part3.Size = Vector3.new(0.219999984, 0.0999999866, 0.110000007)
  1714. Part3.CFrame = CFrame.new(95.6999893, 36.6650009, 39, 1.19248806E-8, 0, -1, 0, 1, 0, 1, 0, 1.19248806E-8)
  1715. Part3.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1716. Part3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1717. Part3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1718. Part3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1719. Part3.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1720. Part3.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1721. Part3.Color = Color3.new(1, 0, 0)
  1722. Part3.Position = Vector3.new(95.6999893, 36.6650009, 39)
  1723. Part3.Orientation = Vector3.new(0, -90, 0)
  1724. Part3.Color = Color3.new(1, 0, 0)
  1725. SpecialMesh4.Parent = Part3
  1726. SpecialMesh4.MeshType = Enum.MeshType.Cylinder
  1727. Part5.Parent = Model0
  1728. Part5.BrickColor = BrickColor.new("Black")
  1729. Part5.Rotation = Vector3.new(-90, 0, 90)
  1730. Part5.Anchored = true
  1731. Part5.CanCollide = false
  1732. Part5.Size = Vector3.new(0.300000012, 0.200000003, 0.170000002)
  1733. Part5.CFrame = CFrame.new(95.2999878, 38.2099991, 39, -1.31134158E-7, -1, -8.74227908E-8, -2.50343476E-7, -8.74227553E-8, 0.99999994, -1, 1.31134186E-7, -2.50343419E-7)
  1734. Part5.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1735. Part5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1736. Part5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1737. Part5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1738. Part5.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1739. Part5.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1740. Part5.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1741. Part5.Position = Vector3.new(95.2999878, 38.2099991, 39)
  1742. Part5.Orientation = Vector3.new(-89.9799957, -160.75, -109.25)
  1743. Part5.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1744. SpecialMesh6.Parent = Part5
  1745. SpecialMesh6.MeshType = Enum.MeshType.Wedge
  1746. Part7.Parent = Model0
  1747. Part7.BrickColor = BrickColor.new("Black")
  1748. Part7.Rotation = Vector3.new(0, 0, 90)
  1749. Part7.Anchored = true
  1750. Part7.CanCollide = false
  1751. Part7.Size = Vector3.new(0.120000079, 0.270000011, 0.200000003)
  1752. Part7.CFrame = CFrame.new(95.6949921, 36.6650009, 39, -4.37113883E-8, -1, 0, 1, -4.37113883E-8, 0, 0, 0, 0.99999994)
  1753. Part7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1754. Part7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1755. Part7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1756. Part7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1757. Part7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1758. Part7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1759. Part7.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1760. Part7.Position = Vector3.new(95.6949921, 36.6650009, 39)
  1761. Part7.Orientation = Vector3.new(0, 0, 90)
  1762. Part7.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1763. Part8.Parent = Model0
  1764. Part8.BrickColor = BrickColor.new("Black")
  1765. Part8.Rotation = Vector3.new(90, 0, -90)
  1766. Part8.Anchored = true
  1767. Part8.CanCollide = false
  1768. Part8.Size = Vector3.new(0.120000005, 0.349999994, 0.590000033)
  1769. Part8.CFrame = CFrame.new(95.6749878, 43.3899994, 39, 4.37113883E-8, 1, 8.74227695E-8, 1.62920685E-7, 8.74227624E-8, -0.99999994, -1, 4.37114025E-8, -1.62920657E-7)
  1770. Part8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1771. Part8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1772. Part8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1773. Part8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1774. Part8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1775. Part8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1776. Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1777. Part8.Position = Vector3.new(95.6749878, 43.3899994, 39)
  1778. Part8.Orientation = Vector3.new(89.9799957, 151.779999, 61.7799988)
  1779. Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1780. SpecialMesh9.Parent = Part8
  1781. SpecialMesh9.MeshType = Enum.MeshType.Wedge
  1782. Part10.Parent = Model0
  1783. Part10.BrickColor = BrickColor.new("Black")
  1784. Part10.Rotation = Vector3.new(-90, 0, -90)
  1785. Part10.Anchored = true
  1786. Part10.CanCollide = false
  1787. Part10.Size = Vector3.new(0.200000003, 0.110000014, 0.120000005)
  1788. Part10.CFrame = CFrame.new(95.8849869, 36.6650009, 39, 4.37113883E-8, 1, 8.74227695E-8, -7.54979013E-8, -8.74227695E-8, 0.99999994, 1, -4.37113954E-8, 7.54978871E-8)
  1789. Part10.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1790. Part10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1791. Part10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1792. Part10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1793. Part10.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1794. Part10.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1795. Part10.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1796. Part10.Position = Vector3.new(95.8849869, 36.6650009, 39)
  1797. Part10.Orientation = Vector3.new(-89.9799957, 49.1899986, -139.190002)
  1798. Part10.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1799. SpecialMesh11.Parent = Part10
  1800. SpecialMesh11.MeshType = Enum.MeshType.Wedge
  1801. Part12.Parent = Model0
  1802. Part12.BrickColor = BrickColor.new("Black")
  1803. Part12.Rotation = Vector3.new(90, 0, -90)
  1804. Part12.Anchored = true
  1805. Part12.CanCollide = false
  1806. Part12.Size = Vector3.new(0.300000012, 0.200000003, 0.170000002)
  1807. Part12.CFrame = CFrame.new(95.2999878, 38.3800011, 39, 4.37113883E-8, 1, 8.74227695E-8, 1.62920685E-7, 8.74227624E-8, -0.99999994, -1, 4.37114025E-8, -1.62920657E-7)
  1808. Part12.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1809. Part12.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1810. Part12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1811. Part12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1812. Part12.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1813. Part12.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1814. Part12.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1815. Part12.Position = Vector3.new(95.2999878, 38.3800011, 39)
  1816. Part12.Orientation = Vector3.new(89.9799957, 151.779999, 61.7799988)
  1817. Part12.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1818. SpecialMesh13.Parent = Part12
  1819. SpecialMesh13.MeshType = Enum.MeshType.Wedge
  1820. Part14.Parent = Model0
  1821. Part14.Material = Enum.Material.Neon
  1822. Part14.BrickColor = BrickColor.new("Really red")
  1823. Part14.Rotation = Vector3.new(0, -90, 0)
  1824. Part14.Anchored = true
  1825. Part14.CanCollide = false
  1826. Part14.Size = Vector3.new(0.319999993, 0.149999991, 0.150000021)
  1827. Part14.CFrame = CFrame.new(95.6999893, 38.2099991, 39, 1.19248806E-8, 0, -1, 0, 1, 0, 1, 0, 1.19248806E-8)
  1828. Part14.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1829. Part14.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1830. Part14.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1831. Part14.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1832. Part14.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1833. Part14.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1834. Part14.Color = Color3.new(1, 0, 0)
  1835. Part14.Position = Vector3.new(95.6999893, 38.2099991, 39)
  1836. Part14.Orientation = Vector3.new(0, -90, 0)
  1837. Part14.Color = Color3.new(1, 0, 0)
  1838. SpecialMesh15.Parent = Part14
  1839. SpecialMesh15.MeshType = Enum.MeshType.Cylinder
  1840. Part16.Parent = Model0
  1841. Part16.BrickColor = BrickColor.new("Black")
  1842. Part16.Rotation = Vector3.new(-90, 0, -90)
  1843. Part16.Anchored = true
  1844. Part16.CanCollide = false
  1845. Part16.Size = Vector3.new(0.300000012, 0.200000003, 0.170000002)
  1846. Part16.CFrame = CFrame.new(96.0999908, 38.2099991, 39, 4.37113883E-8, 1, 8.74227695E-8, -7.54979013E-8, -8.74227695E-8, 0.99999994, 1, -4.37113954E-8, 7.54978871E-8)
  1847. Part16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1848. Part16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1849. Part16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1850. Part16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1851. Part16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1852. Part16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1853. Part16.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1854. Part16.Position = Vector3.new(96.0999908, 38.2099991, 39)
  1855. Part16.Orientation = Vector3.new(-89.9799957, 49.1899986, -139.190002)
  1856. Part16.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1857. SpecialMesh17.Parent = Part16
  1858. SpecialMesh17.MeshType = Enum.MeshType.Wedge
  1859. Part18.Parent = Model0
  1860. Part18.BrickColor = BrickColor.new("Black")
  1861. Part18.Rotation = Vector3.new(0, 0, 90)
  1862. Part18.Anchored = true
  1863. Part18.CanCollide = false
  1864. Part18.Size = Vector3.new(4.80000019, 0.349999994, 0.120000005)
  1865. Part18.Name = "HitBox"
  1866. Part18.CFrame = CFrame.new(95.6749878, 40.6949997, 39, -4.37113883E-8, -1, 0, 1, -4.37113883E-8, 0, 0, 0, 0.99999994)
  1867. Part18.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1868. Part18.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1869. Part18.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1870. Part18.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1871. Part18.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1872. Part18.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1873. Part18.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1874. Part18.Position = Vector3.new(95.6749878, 40.6949997, 39)
  1875. Part18.Orientation = Vector3.new(0, 0, 90)
  1876. Part18.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1877. Part19.Parent = Model0
  1878. Part19.BrickColor = BrickColor.new("Black")
  1879. Part19.Rotation = Vector3.new(0, -90, 0)
  1880. Part19.Anchored = true
  1881. Part19.CanCollide = false
  1882. Part19.Size = Vector3.new(0.339999974, 0.12999998, 0.13000001)
  1883. Part19.CFrame = CFrame.new(95.6999893, 38.2099991, 39, 1.19248806E-8, 0, -1, 0, 1, 0, 1, 0, 1.19248806E-8)
  1884. Part19.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1885. Part19.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1886. Part19.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1887. Part19.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1888. Part19.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1889. Part19.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1890. Part19.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1891. Part19.Position = Vector3.new(95.6999893, 38.2099991, 39)
  1892. Part19.Orientation = Vector3.new(0, -90, 0)
  1893. Part19.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1894. SpecialMesh20.Parent = Part19
  1895. SpecialMesh20.MeshType = Enum.MeshType.Cylinder
  1896. Part21.Parent = Model0
  1897. Part21.BrickColor = BrickColor.new("Black")
  1898. Part21.Rotation = Vector3.new(0, 0, 90)
  1899. Part21.Anchored = true
  1900. Part21.CanCollide = false
  1901. Part21.Size = Vector3.new(0.170000076, 0.600000024, 0.300000012)
  1902. Part21.CFrame = CFrame.new(95.6999893, 38.2099991, 39, -4.37113883E-8, -1, 0, 1, -4.37113883E-8, 0, 0, 0, 0.99999994)
  1903. Part21.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1904. Part21.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1905. Part21.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1906. Part21.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1907. Part21.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1908. Part21.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1909. Part21.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1910. Part21.Position = Vector3.new(95.6999893, 38.2099991, 39)
  1911. Part21.Orientation = Vector3.new(0, 0, 90)
  1912. Part21.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1913. Part22.Parent = Model0
  1914. Part22.BrickColor = BrickColor.new("Black")
  1915. Part22.Rotation = Vector3.new(0, -90, 0)
  1916. Part22.Anchored = true
  1917. Part22.CanCollide = false
  1918. Part22.Size = Vector3.new(0.239999965, 0.0799999759, 0.0900000036)
  1919. Part22.CFrame = CFrame.new(95.6999893, 36.6650009, 39, 1.19248806E-8, 0, -1, 0, 1, 0, 1, 0, 1.19248806E-8)
  1920. Part22.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1921. Part22.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1922. Part22.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1923. Part22.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1924. Part22.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1925. Part22.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1926. Part22.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1927. Part22.Position = Vector3.new(95.6999893, 36.6650009, 39)
  1928. Part22.Orientation = Vector3.new(0, -90, 0)
  1929. Part22.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1930. SpecialMesh23.Parent = Part22
  1931. SpecialMesh23.MeshType = Enum.MeshType.Cylinder
  1932.  
  1933. Part18.Transparency = 1
  1934. Part5.Transparency = 1
  1935. Part8.Transparency = 1
  1936. Part19.Transparency = 1
  1937. Part1.Transparency = 1
  1938. Part19.Transparency = 1
  1939. Part7.Transparency = 1
  1940. Part12.Transparency = 1
  1941. Part24.Transparency = 1
  1942. Part3.Transparency = 1
  1943. Part16.Transparency = 1
  1944. Part21.Transparency = 1
  1945. Part26.Transparency = 1
  1946.  
  1947. Part24.Parent = Model0
  1948. Part24.Material = Enum.Material.Neon
  1949. Part24.BrickColor = BrickColor.new("Really red")
  1950. Part24.Rotation = Vector3.new(90, 0, -90)
  1951. Part24.Anchored = true
  1952. Part24.CanCollide = false
  1953. Part24.Size = Vector3.new(0.100000001, 0.399000019, 0.699999988)
  1954. Part24.CFrame = CFrame.new(95.7004852, 43.4449997, 39, 4.37113883E-8, 1, 8.74227695E-8, 1.62920685E-7, 8.74227624E-8, -0.99999994, -1, 4.37114025E-8, -1.62920657E-7)
  1955. Part24.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1956. Part24.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1957. Part24.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1958. Part24.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1959. Part24.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1960. Part24.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1961. Part24.Color = Color3.new(1, 0, 0)
  1962. Part24.Position = Vector3.new(95.7004852, 43.4449997, 39)
  1963. Part24.Orientation = Vector3.new(89.9799957, 151.779999, 61.7799988)
  1964. Part24.Color = Color3.new(1, 0, 0)
  1965. Part24.Transparency = 1
  1966. SpecialMesh25.Parent = Part24
  1967. SpecialMesh25.MeshType = Enum.MeshType.Wedge
  1968. Part26.Parent = Model0
  1969. Part26.Material = Enum.Material.Neon
  1970. Part26.BrickColor = BrickColor.new("Really red")
  1971. Part26.Rotation = Vector3.new(0, 0, 90)
  1972. Part26.Anchored = true
  1973. Part26.CanCollide = false
  1974. Part26.Size = Vector3.new(4.80000019, 0.399000019, 0.100000001)
  1975. Part26.CFrame = CFrame.new(95.7004929, 40.6949997, 39, -4.37113883E-8, -1, 0, 1, -4.37113883E-8, 0, 0, 0, 0.99999994)
  1976. Part26.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1977. Part26.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1978. Part26.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1979. Part26.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1980. Part26.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1981. Part26.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1982. Part26.Color = Color3.new(1, 0, 0)
  1983. Part26.Position = Vector3.new(95.7004929, 40.6949997, 39)
  1984. Part26.Orientation = Vector3.new(0, 0, 90)
  1985. Part26.Color = Color3.new(1, 0, 0)
  1986. Part26.Transparency = 1
  1987. Part18.Transparency = 1
  1988. Part19.Transparency = 1
  1989. Part22.Transparency = 1
  1990. Part24.Transparency = 1
  1991. Part14.Transparency = 1
  1992. Part10.Transparency = 1
  1993.  
  1994. Sword = Model0
  1995. weld(Sword)
  1996. newWeld(torso, Sword.Handle, -1, -1, 0.5) --Back_AccAccessory
  1997.  
  1998. game:GetService("Players").LocalPlayer.Character["Back_AccAccessory"].Handle.att1_Handle.Parent = Sword.Handle
  1999. Sword.Handle.att1_Handle.Rotation = Vector3.new(-10,5,130)
  2000. Sword.Handle.att1_Handle.Position = Vector3.new(1.75,0.35,-0) --the align
  2001.  
  2002.  
  2003. Sword.Handle.Weld.C1 = CFrame.new(1, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-90), 0)
  2004. Sword.Handle.Weld.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(180), math.rad(0), 0)
  2005.  
  2006.  
  2007.  
  2008. slashsound1 = 978101945
  2009. slashsound2 = 608537390
  2010. stealth1 = 166196557
  2011. hum.HealthDisplayType = Enum.HumanoidHealthDisplayType.AlwaysOff
  2012. music("Stop")
  2013. drew = true
  2014. eColors = {
  2015. Color3.new(1, 0, 0),
  2016. Color3.new(0, 0, 0)
  2017. }
  2018. local alreadytouched = {}
  2019. hitsounds = {
  2020. 344936319,
  2021. 154965973,
  2022. 344936310,
  2023. 344936315
  2024. }
  2025. --local hat = game:GetService("Players").LocalPlayer.Character["gamer2"]
  2026.  
  2027. --local function align(part0, part1)
  2028.  
  2029.  
  2030. local attachment0 = Instance.new("Attachment", part0)
  2031. attachment0.Position = Vector3.new(2, 2, 0) --Custom Positioning Values Here
  2032. attachment0.Orientation = Vector3.new(0, 0, -135) --Custom Rotationing Values here
  2033. local attachment1 = Instance.new("Attachment", part1)
  2034. local weldpos = Instance.new("AlignPosition", part0)
  2035. weldpos.Attachment0 = attachment0
  2036. weldpos.Attachment1 = attachment1
  2037. weldpos.RigidityEnabled = true
  2038. weldpos.ReactionForceEnabled = false
  2039. weldpos.ApplyAtCenterOfMass = false
  2040. weldpos.MaxForce = 20000
  2041. weldpos.MaxVelocity = math.huge
  2042. weldpos.Responsiveness = 200000000000000
  2043. local weldrot = Instance.new("AlignOrientation", part0)
  2044. weldrot.Attachment0 = attachment0
  2045. weldrot.Attachment1 = attachment1
  2046. weldrot.ReactionTorqueEnabled = false
  2047. weldrot.PrimaryAxisOnly = false
  2048. weldrot.MaxTorque = 200000000
  2049. weldrot.MaxAngularVelocity = math.huge
  2050. weldrot.Responsiveness = 200000000000000
  2051. --end
  2052. --align(hat.Handle, Part1)
  2053.  
  2054. Sword.HitBox.Touched:connect(function(ht)
  2055. local hit = ht.Parent
  2056. if attacking == true and checkIfNotPlayer(ht) and hit:FindFirstChildOfClass("Humanoid") and hit:FindFirstChildOfClass("Humanoid").Health > 0 then
  2057. local hurt = true
  2058. for i, v in pairs(alreadytouched) do
  2059. if v == hit then
  2060. hurt = false
  2061. end
  2062. end
  2063. if hurt == true then
  2064. table.insert(alreadytouched, hit)
  2065. if hit:FindFirstChildOfClass("Humanoid").MaxHealth >= 1.0E100 then
  2066. remote:FireServer("breakjoints", hit)
  2067. if hit:FindFirstChildOfClass("Humanoid").Health > 0 then
  2068. end
  2069. else
  2070. remote:FireServer("damage", hit:FindFirstChildOfClass("Humanoid"), math.random(2 * (hit:FindFirstChildOfClass("Humanoid").MaxHealth / 5), 3 * (hit:FindFirstChildOfClass("Humanoid").MaxHealth / 5)))
  2071. end
  2072. sound(hitsounds[math.random(1, #hitsounds)], ht.Position, 10, math.random(9, 11) / 10)
  2073. if hit:FindFirstChildOfClass("Humanoid").Health <= 0 then
  2074. remote:FireServer("breakjoints", hit)
  2075. if hit:FindFirstChildOfClass("Humanoid").Health > 0 then
  2076. end
  2077. end
  2078. end
  2079. end
  2080. end)
  2081. function SPAGET()
  2082. debounce = true
  2083. noidle = false
  2084. local z = sound(1335667136, root.Position, 10)
  2085. wait(1.5)
  2086. noidle = true
  2087. for i = 1, 68 do
  2088. rs:wait()
  2089. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(0, 0, 0), 0.4)
  2090. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, -0.5, 0.1) * CFrame.Angles(math.rad(20), 0, 0), 0.1)
  2091. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(20), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-20 - 1 * math.cos(sine / 8))), 0.2)
  2092. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(20), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(20 + 1 * math.cos(sine / 8))), 0.2)
  2093. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 - 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.1)
  2094. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.95 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(0 - 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-2 - 0.5 * math.cos(sine / 8))), 0.2)
  2095. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.95 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(0 + 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(2 + 0.5 * math.cos(sine / 8))), 0.2)
  2096. end
  2097. for i = 1, 50 do
  2098. rs:wait()
  2099. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(0, 0, 0), 0.4)
  2100. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, -0.5, 0.1) * CFrame.Angles(math.rad(20), math.rad(20), 0), 0.6)
  2101. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(150), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-20 - 1 * math.cos(sine / 8))), 0.2)
  2102. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(150), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-50 + 1 * math.cos(sine / 8))), 0.6)
  2103. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 - 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(0, 0, 0), 0.1)
  2104. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.95 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(0 - 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-2 - 0.5 * math.cos(sine / 8))), 0.2)
  2105. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.95 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(0 + 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(2 + 0.5 * math.cos(sine / 8))), 0.2)
  2106. end
  2107. for i = 1, 50 do
  2108. rs:wait()
  2109. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(0, 0, 0), 0.4)
  2110. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, -0.5, 0.1) * CFrame.Angles(0, 0, 0), 0.1)
  2111. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(-200), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-20 - 1 * math.cos(sine / 8))), 0.2)
  2112. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(-200), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(20 + 1 * math.cos(sine / 8))), 0.2)
  2113. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 - 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(0, 0, 0), 0.1)
  2114. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.95 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(0 - 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-2 - 0.5 * math.cos(sine / 8))), 0.2)
  2115. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.95 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(0 + 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(2 + 0.5 * math.cos(sine / 8))), 0.2)
  2116. end
  2117. for i = 1, 25 do
  2118. rs:wait()
  2119. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(0, 0, 0), 0.4)
  2120. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, -0.5, 0.1) * CFrame.Angles(0, 0, 0), 0.1)
  2121. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(40), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(10 - 1 * math.cos(sine / 8))), 0.2)
  2122. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(40), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-10 + 1 * math.cos(sine / 8))), 0.2)
  2123. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 - 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(0, 0, 0), 0.1)
  2124. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.95 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(0 - 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-2 - 0.5 * math.cos(sine / 8))), 0.2)
  2125. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.95 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(0 + 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(2 + 0.5 * math.cos(sine / 8))), 0.2)
  2126. end
  2127. for i = 1, 300 do
  2128. rs:wait()
  2129. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(0, 0, 0), 0.4)
  2130. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, -0.5, 0.1) * CFrame.Angles(0, 0, 0), 0.2)
  2131. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(40), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(10 - 1 * math.cos(sine / 8))), 0.2)
  2132. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(40), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-10 + 1 * math.cos(sine / 8))), 0.2)
  2133. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(math.random(-1, 1) * i, -1, math.random(-1, 1) * i) * CFrame.Angles(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)), 0.1)
  2134. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.95 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(0 - 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-2 - 0.5 * math.cos(sine / 8))), 0.2)
  2135. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.95 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(0 + 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(2 + 0.5 * math.cos(sine / 8))), 0.2)
  2136. end
  2137. noidle = false
  2138. debounce = false
  2139. end
  2140.  
  2141. function togglesword()
  2142. noidle = false
  2143. attack = false
  2144. if stealth == true then
  2145. local spinspd = 35
  2146. local i2 = 0
  2147. for i = 1, 3 do
  2148. sound(slashsound1, root.Position, 10, math.random(10, 13) / 10)
  2149. for i = 1, 360 / spinspd do
  2150. rs:wait()
  2151. i2 = i2 + 1
  2152. Sword.Handle.Weld.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-i * spinspd), math.rad(-30 + i2 / (360 / spinspd) * 10), 0)
  2153. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, 0.2 - 0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(0), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-30 - 1 * math.cos(sine / 8))), 0.2)
  2154. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(160 - i2 / (360 / spinspd) * 20), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-10 - i2 / (360 / spinspd) * 20 + 1 * math.cos(sine / 8))), 0.4)
  2155. end
  2156. end
  2157. sound(slashsound1, root.Position, 10, math.random(10, 13) / 10)
  2158. for i = 1, 180 / spinspd do
  2159. rs:wait()
  2160. i2 = i2 + 1
  2161. Sword.Handle.Weld.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-i * spinspd), math.rad(-30 + i2 / (360 / spinspd) * 10), 0)
  2162. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, 0.2 - 0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(0), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-30 - 1 * math.cos(sine / 8))), 0.2)
  2163. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(160 - i2 / (360 / spinspd) * 20), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-10 - i2 / (360 / spinspd) * 20 + 1 * math.cos(sine / 8))), 0.4)
  2164. end
  2165. Sword.Handle.Weld.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(180), math.rad(0), 0)
  2166. for i = 1, 5 do
  2167. rs:wait()
  2168. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, 0.2 - 0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(0), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-80 - 1 * math.cos(sine / 8))), 0.2)
  2169. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(-0.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(100), math.rad(-40 - 1 * math.cos(sine / 16)), math.rad(-130 + 1 * math.cos(sine / 8))), 0.1)
  2170. end
  2171. Sword.Handle.Weld.Part0 = torso
  2172. Sword.Handle.Weld.C1 = CFrame.new(1, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-90), 0)
  2173. Sword.Handle.Weld.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(180), math.rad(0), 0)
  2174. stealth = false
  2175. else
  2176. for i = 1, 5 do
  2177. rs:wait()
  2178. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(-1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.5 - 0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(30), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-90 + 1 * math.cos(sine / 8))), 0.2)
  2179. end
  2180. Sword.Handle.Weld.Part0 = rarm
  2181. Sword.Handle.Weld.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-90), 0)
  2182. Sword.Handle.Weld.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(180), math.rad(0), 0)
  2183. local spinspd = 35
  2184. local i2 = 0
  2185. for i = 1, 180 / spinspd do
  2186. rs:wait()
  2187. i2 = i2 + 1
  2188. Sword.Handle.Weld.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(180 + i * spinspd), math.rad(-10 + i2 / (360 / spinspd) * 10), 0)
  2189. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, 0.2 - 0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(0), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-30 - 1 * math.cos(sine / 8))), 0.2)
  2190. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(-1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.5 - 0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(20), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-90 + 1 * math.cos(sine / 8))), 0.1)
  2191. end
  2192. stealth = true
  2193. end
  2194. sound(stealth1, root.Position, 10, math.random(9, 11) / 10)
  2195. end
  2196. function tpdash()
  2197. canjump = false
  2198. local pos = root.Position
  2199. local tppos = Instance.new("Attachment", root)
  2200. tppos.Position = Vector3.new(0, 0, -1)
  2201. local temp_alreadytouched = {}
  2202. local sondpos = Instance.new("Attachment", root)
  2203. sondpos.Position = Vector3.new(0, 0, -25)
  2204. sound(695389867, sondpos.WorldPosition, 10, 2)
  2205. sondpos:Destroy()
  2206. hed.Weld.C0 = CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(-18), math.rad(0 + math.rad(0 + 2 * math.cos(sine / 2))), 0)
  2207. hed.Weld.C1 = CFrame.Angles(math.rad(-30), math.rad(0), 0)
  2208. larm.Weld.C0 = CFrame.new(-0.8, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(115), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(30 - 1 * math.cos(sine / 8)))
  2209. rarm.Weld.C0 = CFrame.new(1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(0), math.rad(80 - 1 * math.cos(sine / 16)), math.rad(60 + 1 * math.cos(sine / 8)))
  2210. torso.Weld.C0 = CFrame.new(0, -1.5 - 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(-45 - 2 * math.cos(sine / 16)), math.rad(0), math.rad(0 - 1 * math.cos(sine / 32)))
  2211. lleg.Weld.C0 = CFrame.new(-0.5, -0.95 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(-10 - 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-2 - 0.5 * math.cos(sine / 8)))
  2212. rleg.Weld.C0 = CFrame.new(0.5, 0.1 * math.cos(sine / 16), -0.5) * CFrame.Angles(math.rad(50 + 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(2 + 0.5 * math.cos(sine / 8)))
  2213. for i = 1, 50 do
  2214. for i, z in pairs(findAllNearestTorso(root.Position, 5)) do
  2215. local hit = z.Parent
  2216. local hurt = true
  2217. for i, v in pairs(temp_alreadytouched) do
  2218. if v == hit then
  2219. hurt = false
  2220. end
  2221. end
  2222. if hurt == true then
  2223. table.insert(temp_alreadytouched, hit)
  2224. if hit:FindFirstChildOfClass("Humanoid").MaxHealth >= 1.0E100 then
  2225. --remote:FireServer("breakjoints")
  2226. if 0 < hit:FindFirstChildOfClass("Humanoid").Health then
  2227. end
  2228. else
  2229. --remote:FireServer("damage", hit:FindFirstChildOfClass("Humanoid"), math.random(2 * (hit:FindFirstChildOfClass("Humanoid").MaxHealth / 5), 3 * (hit:FindFirstChildOfClass("Humanoid").MaxHealth / 5)))
  2230. end
  2231. sound(hitsounds[math.random(1, #hitsounds)], z.Position, 10, math.random(9, 11) / 10)
  2232. if 0 >= hit:FindFirstChildOfClass("Humanoid").Health then
  2233. --remote:FireServer("breakjoints")
  2234. if 0 < hit:FindFirstChildOfClass("Humanoid").Health then
  2235. end
  2236. end
  2237. rs:wait()
  2238. end
  2239. end
  2240. root.CFrame = CFrame.new(tppos.WorldPosition) * CFrame.Angles(0, math.rad(root.Orientation.Y), 0)
  2241. end
  2242. tppos:Destroy()
  2243. for i = 1, 5 do
  2244. --Lightning(pos, root.Position, math.random(4, 6), 2, eColors[math.random(1, #eColors)], 0.5, 0.56)
  2245. end
  2246. for i = 1, 15 do
  2247. rs:wait()
  2248. hed.Weld.C0 = CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(-18), math.rad(0 + math.rad(0 + 2 * math.cos(sine / 2))), 0)
  2249. hed.Weld.C1 = CFrame.Angles(math.rad(-30), math.rad(0), 0)
  2250. larm.Weld.C0 = CFrame.new(-0.8, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(115), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(30 - 1 * math.cos(sine / 8)))
  2251. rarm.Weld.C0 = CFrame.new(1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(0), math.rad(-80 - 1 * math.cos(sine / 16)), math.rad(60 + 1 * math.cos(sine / 8)))
  2252. torso.Weld.C0 = CFrame.new(0, -1.5 - 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(-45 - 2 * math.cos(sine / 16)), math.rad(0), math.rad(0 - 1 * math.cos(sine / 32)))
  2253. lleg.Weld.C0 = CFrame.new(-0.5, -0.95 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(-30 - 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-2 - 0.5 * math.cos(sine / 8)))
  2254. rleg.Weld.C0 = CFrame.new(0.5, 0.1 * math.cos(sine / 16), -0.5) * CFrame.Angles(math.rad(50 + 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(2 + 0.5 * math.cos(sine / 8)))
  2255. end
  2256. walking = true
  2257. noidle = false
  2258. attack = false
  2259. attacking = false
  2260. canjump = true
  2261. local spinspd = 35
  2262. local i2 = 0
  2263. for i = 1, 3 do
  2264. sound(slashsound1, root.Position, 10, math.random(10, 13) / 10)
  2265. for i = 1, 360 / spinspd do
  2266. rs:wait()
  2267. i2 = i2 + 1
  2268. Sword.Handle.Weld.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(i * spinspd), math.rad(-30 + i2 / (360 / spinspd) * 10), 0)
  2269. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, 0.2 - 0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(0), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-30 - 1 * math.cos(sine / 8))), 0.2)
  2270. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(160 + i2 / (360 / spinspd) * 5), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-10 + i2 / (360 / spinspd) * 10 + 1 * math.cos(sine / 8))), 0.4)
  2271. end
  2272. end
  2273. Sword.Handle.Weld.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(0, 0, 0)
  2274. sound(stealth1, root.Position, 10, math.random(9, 11) / 10)
  2275. end
  2276. function taunt1()
  2277. attack = false
  2278. noidle = false
  2279. for i = 1, 10 do
  2280. rs:wait()
  2281. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  2282. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55, 0) * CFrame.Angles(math.rad(160), math.rad(40), math.rad(-80)), 0.4)
  2283. end
  2284. sound(slashsound1, root.Position, 10, math.random(10, 13) / 10)
  2285. for i = 1, 10 do
  2286. rs:wait()
  2287. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  2288. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(80)), 0.4)
  2289. end
  2290. sound(slashsound2, root.Position, 10, math.random(8, 10) / 10, 0.1)
  2291. for i = 1, 12 do
  2292. rs:wait()
  2293. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  2294. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55, 0) * CFrame.Angles(math.rad(160), math.rad(0), math.rad(40)), 0.4)
  2295. Sword.Handle.Weld.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(i * 30), 0)
  2296. end
  2297. sound(slashsound1, root.Position, 10, math.random(10, 13) / 10)
  2298. for i = 1, 10 do
  2299. rs:wait()
  2300. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  2301. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
  2302. end
  2303. sound(stealth1, root.Position, 10, math.random(9, 11) / 10)
  2304. Sword.Handle.Weld.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(0, 0, 0)
  2305. end
  2306. function taunt2()
  2307. noidle = true
  2308. for i = 1, 50 do
  2309. rs:wait()
  2310. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.3, -0.4) * CFrame.Angles(math.rad(-18), math.rad(0 + math.rad(0 + 2 * math.cos(sine / 2))), 0), 0.1)
  2311. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(30), math.rad(30), 0), 0.1)
  2312. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, 0.2 - 0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(40), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-120 - 1 * math.cos(sine / 8))), 0.2)
  2313. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(0), math.rad(-30 - 1 * math.cos(sine / 16)), math.rad(-90 + 1 * math.cos(sine / 8))), 0.2)
  2314. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 - 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(-20 - 2 * math.cos(sine / 16)), math.rad(0), math.rad(0 - 1 * math.cos(sine / 32))), 0.1)
  2315. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.95 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(20 - 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-5 - 0.5 * math.cos(sine / 8))), 0.1)
  2316. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.95 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(-20 + 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(5 + 0.5 * math.cos(sine / 8))), 0.2)
  2317. end
  2318. noidle = false
  2319. end
  2320. mouse.KeyDown:connect(function(key)
  2321. if debounce == false and plr == lplr then
  2322. debounce = true
  2323. noidle = true
  2324. if key == "e" and stealth == true then
  2325. animsync = true
  2326. walking = true
  2327. tpdash()
  2328. animsync = false
  2329. walking = false
  2330. elseif key == "r" then
  2331. animsync = true
  2332. walking = true
  2333. attack = true
  2334. SPAGET()
  2335. animsync = false
  2336. walking = false
  2337. attack = false
  2338. elseif key == "q" then
  2339. if stealth == true then
  2340. animsync = true
  2341. taunt1()
  2342. animsync = false
  2343. else
  2344. walking = true
  2345. animsync = true
  2346. attack = true
  2347. taunt2()
  2348. animsync = false
  2349. walking = false
  2350. attack = false
  2351. end
  2352. elseif key == "f" then
  2353. animsync = true
  2354. togglesword()
  2355. animsync = false
  2356. end
  2357. noidle = false
  2358. attack = false
  2359. delay(0.2, function()
  2360. debounce = false
  2361. end)
  2362. end
  2363. end)
  2364. function attackone()
  2365. for i = 1, 10 do
  2366. rs:wait()
  2367. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(-18), math.rad(0 + math.rad(0 + 2 * math.cos(sine / 2))), 0), 0.1)
  2368. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-5), math.rad(80), 0), 0.1)
  2369. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(0), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-10 - 1 * math.cos(sine / 8))), 0.2)
  2370. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(160), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-10 + 1 * math.cos(sine / 8))), 0.2)
  2371. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 - 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(30 - 2 * math.cos(sine / 16)), math.rad(80), math.rad(0 - 1 * math.cos(sine / 32))), 0.1)
  2372. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.95 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(-30 - 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-2 - 0.5 * math.cos(sine / 8))), 0.1)
  2373. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.95 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(-30 + 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(2 + 0.5 * math.cos(sine / 8))), 0.1)
  2374. end
  2375. sound(slashsound1, root.Position, 10, math.random(9, 11) / 10)
  2376. attacking = true
  2377. for i = 1, 10 do
  2378. rs:wait()
  2379. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(-18), math.rad(0 + math.rad(0 + 2 * math.cos(sine / 2))), 0), 0.1)
  2380. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-5), math.rad(-20), 0), 0.1)
  2381. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(-20), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-30 - 1 * math.cos(sine / 8))), 0.2)
  2382. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(-20), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(20 + 1 * math.cos(sine / 8))), 0.2)
  2383. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 - 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(-40 - 2 * math.cos(sine / 16)), math.rad(-20), math.rad(0 - 1 * math.cos(sine / 32))), 0.1)
  2384. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.95 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(40 - 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-2 - 0.5 * math.cos(sine / 8))), 0.1)
  2385. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.95 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(40 + 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(2 + 0.5 * math.cos(sine / 8))), 0.1)
  2386. end
  2387. end
  2388. function attacktwo()
  2389. for i = 1, 10 do
  2390. rs:wait()
  2391. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(-18), math.rad(0 + math.rad(0 + 2 * math.cos(sine / 2))), 0), 0.1)
  2392. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-5), math.rad(0), 0), 0.1)
  2393. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(0), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-10 - 1 * math.cos(sine / 8))), 0.2)
  2394. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(160), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(10 + 1 * math.cos(sine / 8))), 0.2)
  2395. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 - 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(30 - 2 * math.cos(sine / 16)), math.rad(0), math.rad(0 - 1 * math.cos(sine / 32))), 0.1)
  2396. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.95 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(-30 - 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-2 - 0.5 * math.cos(sine / 8))), 0.1)
  2397. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.95 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(-30 + 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(2 + 0.5 * math.cos(sine / 8))), 0.1)
  2398. end
  2399. sound(slashsound1, root.Position, 10, math.random(9, 11) / 10)
  2400. attacking = true
  2401. for i = 1, 10 do
  2402. rs:wait()
  2403. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(-18), math.rad(0 + math.rad(0 + 2 * math.cos(sine / 2))), 0), 0.1)
  2404. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-5), math.rad(80), 0), 0.1)
  2405. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(-20), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-30 - 1 * math.cos(sine / 8))), 0.2)
  2406. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(-20), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-30 + 1 * math.cos(sine / 8))), 0.2)
  2407. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 - 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(-40 - 2 * math.cos(sine / 16)), math.rad(80), math.rad(0 - 1 * math.cos(sine / 32))), 0.1)
  2408. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.95 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(40 - 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-2 - 0.5 * math.cos(sine / 8))), 0.1)
  2409. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.95 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(40 + 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(2 + 0.5 * math.cos(sine / 8))), 0.1)
  2410. end
  2411. end
  2412. function attackthree()
  2413. for i = 1, 10 do
  2414. rs:wait()
  2415. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(-18), math.rad(0 + math.rad(0 + 2 * math.cos(sine / 2))), 0), 0.1)
  2416. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-5), math.rad(-40), 0), 0.1)
  2417. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(0), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-10 - 1 * math.cos(sine / 8))), 0.2)
  2418. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(160), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(5 + 1 * math.cos(sine / 8))), 0.2)
  2419. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 - 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(50 - 2 * math.cos(sine / 16)), math.rad(-40), math.rad(0 - 1 * math.cos(sine / 32))), 0.1)
  2420. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.95 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(-50 - 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-2 - 0.5 * math.cos(sine / 8))), 0.1)
  2421. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.95 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(-50 + 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(2 + 0.5 * math.cos(sine / 8))), 0.1)
  2422. end
  2423. sound(slashsound2, root.Position, 10, math.random(8, 10) / 10, 0.1)
  2424. attacking = true
  2425. for i = 1, 15 do
  2426. rs:wait()
  2427. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(-18), math.rad(0 + math.rad(0 + 2 * math.cos(sine / 2))), 0), 0.1)
  2428. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-5), math.rad(40), 0), 0.1)
  2429. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(-40), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-30 - 1 * math.cos(sine / 8))), 0.2)
  2430. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55 - 0.1 * math.cos(sine / 16) / 2, -0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(20), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-40 + 1 * math.cos(sine / 8))), 0.2)
  2431. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 - 0.1 * math.cos(sine / 16), -2) * CFrame.Angles(math.rad(-45 - 2 * math.cos(sine / 16)), math.rad(40), math.rad(0 - 1 * math.cos(sine / 32))), 0.1)
  2432. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.95 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(0 - 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(-2 - 0.5 * math.cos(sine / 8))), 0.1)
  2433. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.95 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(0 + 1 * math.cos(sine / 16)), math.rad(0 - 1 * math.cos(sine / 16)), math.rad(2 + 0.5 * math.cos(sine / 8))), 0.1)
  2434. end
  2435. end
  2436. local combo = 1
  2437. local combo2 = 2
  2438. local timer = 0
  2439. mouse.Button1Down:connect(function()
  2440. if debounce == false and stealth == true and plr == lplr then
  2441. alreadytouched = {}
  2442. timer = 40
  2443. noidle = true
  2444. animsync = true
  2445. debounce = true
  2446. if combo == 1 then
  2447. if combo2 == 1 then
  2448. attackone()
  2449. else
  2450. attacktwo()
  2451. end
  2452. combo = 2
  2453. animsync = false
  2454. elseif combo == 2 then
  2455. if combo2 == 2 then
  2456. attackone()
  2457. else
  2458. attacktwo()
  2459. end
  2460. combo = 3
  2461. animsync = false
  2462. elseif combo == 3 then
  2463. if combo2 == 1 then
  2464. combo2 = 2
  2465. else
  2466. combo2 = 1
  2467. end
  2468. attackthree()
  2469. combo = 1
  2470. animsync = false
  2471. end
  2472. attacking = false
  2473. noidle = false
  2474. delay(0.1, function()
  2475. debounce = false
  2476. end)
  2477. end
  2478. end)
  2479. if plr == lplr then
  2480. GUI = Instance.new("ScreenGui", p.PlayerGui)
  2481. GUI.Name = "BlackHoleKyu"
  2482. textlabel = Instance.new("TextLabel", GUI)
  2483. textlabel.AnchorPoint = Vector2.new(1, 1)
  2484. textlabel.Position = UDim2.new(1, 505, 1, -5)
  2485. textlabel.Size = UDim2.new(0, 500, 0, 400)
  2486. textlabel.BorderSizePixel = 5
  2487. textlabel.BorderColor3 = bordercolortitle
  2488. textlabel.BackgroundColor3 = backgroundcolortitle
  2489. textlabel.BackgroundTransparency = 0.1
  2490. textlabel.TextTransparency = 0.1
  2491. textlabel.TextColor3 = Color3.fromHSV(0, 0, 1)
  2492. textlabel.TextScaled = true
  2493. textlabel.TextYAlignment = Enum.TextYAlignment.Center
  2494. textlabel.Font = Enum.Font.SciFi
  2495. end
  2496. guiopen = false
  2497. debouncebutton = false
  2498. function openhelp()
  2499. if debouncebutton == false then
  2500. if guiopen == false then
  2501. debouncebutton = true
  2502. textlabel:TweenPosition(UDim2.new(1, -5, 1, -5), Enum.EasingDirection.InOut, Enum.EasingStyle.Quad, 0.2)
  2503. guiopen = true
  2504. wait(0.2)
  2505. else
  2506. debouncebutton = true
  2507. textlabel:TweenPosition(UDim2.new(1, 505, 1, -5), Enum.EasingDirection.InOut, Enum.EasingStyle.Quad, 0.2)
  2508. guiopen = false
  2509. wait(0.2)
  2510. end
  2511. end
  2512. debouncebutton = false
  2513. end
  2514. if plr == lplr then
  2515. openhelp()
  2516. end
  2517. mouse.KeyDown:connect(function(key)
  2518. if plr == lplr and key == "h" then
  2519. openhelp()
  2520. end
  2521. end)
  2522. mouse.Button1Down:connect(function()
  2523. if plr == lplr and debounce == false then
  2524. debounce = true
  2525. debounce = false
  2526. end
  2527. end)
  2528. mouse.KeyDown:connect(function(key)
  2529. end)
  2530. local woosh = false
  2531. local debounce = false
  2532. mouse.KeyDown:connect(function(key)
  2533. if plr == lplr and key == "g" then
  2534. if musicplay then
  2535. musicplay = false
  2536. music("Stop")
  2537. else
  2538. musicplay = true
  2539. music("Stop")
  2540. end
  2541. end
  2542. end)
  2543. local debounceimpact = false
  2544. function jumpimpact()
  2545. if debounceimpact == false then
  2546. debounceimpact = true
  2547. if jumppower < -150 then
  2548. jumppower = -150
  2549. end
  2550. shake(-jumppower / 5)
  2551. sound(131436155, lleg.Position, 5, math.random(7, 8) / 10)
  2552. for i = 1, -jumppower / 20 do
  2553. rs:wait()
  2554. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0, 0, 0), 0.05)
  2555. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, jumppower / 20 - hum.HipHeight, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.05)
  2556. end
  2557. debounceimpact = false
  2558. end
  2559. end
  2560. max = 0
  2561. function renderstepped()
  2562. hum.MaxHealth = 5000
  2563. if lplr ~= plr then
  2564. if p.Character.Parent == nil then
  2565. local model = Instance.new("Model")
  2566. model.Name = p.Name
  2567. p.Character = model
  2568. for i, v in pairs(char:GetChildren()) do
  2569. v.Parent = p.Character
  2570. end
  2571. end
  2572. char = game.Workspace.non
  2573. if p.Character.Parent ~= workspace then
  2574. p.Character.Parent = workspace
  2575. end
  2576. for i, v in pairs(char:GetChildren()) do
  2577. if v:IsA("Accoutrement") then
  2578. if v.Handle:FindFirstChild("Mesh") then
  2579. v.Handle:FindFirstChild("Mesh").Offset = Vector3.new()
  2580. v.Handle.Transparency = 0
  2581. end
  2582. elseif v:IsA("BasePart") then
  2583. v.Anchored = false
  2584. if v:FindFirstChildOfClass("BodyPosition") then
  2585. v:FindFirstChildOfClass("BodyPosition"):Destroy()
  2586. end
  2587. if v:FindFirstChildOfClass("BodyVelocity") then
  2588. v:FindFirstChildOfClass("BodyVelocity"):Destroy()
  2589. end
  2590. if v:FindFirstChildOfClass("BodyGyro") and v:FindFirstChildOfClass("BodyGyro").Name ~= "lolnochara" then
  2591. v:FindFirstChildOfClass("BodyGyro"):Destroy()
  2592. end
  2593. if v:FindFirstChild("Mesh") then
  2594. v:FindFirstChild("Mesh").Offset = Vector3.new()
  2595. end
  2596. if not DebrisModel:FindFirstChild(v.Name .. "FORCEFIELD") then
  2597. local force = Instance.new("Part", DebrisModel)
  2598. force.Name = v.Name .. "FORCEFIELD"
  2599. if v ~= hed then
  2600. force.Size = v.Size + Vector3.new(1, 1, 1) * 0.2
  2601. else
  2602. force.Size = Vector3.new(1, 1, 1) * v.Size.Y + Vector3.new(1, 1, 1) * 0.2
  2603. end
  2604. force.CanCollide = false
  2605. force.Transparency = 1
  2606. force.Color = Color3.new(0, 1, 1)
  2607. force.Material = Enum.Material.Neon
  2608. newWeld(v, force, 0, 0, 0)
  2609. elseif not DebrisModel:FindFirstChild(v.Name .. "FORCEFIELD"):FindFirstChildOfClass("Weld") then
  2610. newWeld(v, DebrisModel:FindFirstChild(v.Name .. "FORCEFIELD"), 0, 0, 0)
  2611. end
  2612. if v.Name ~= "HumanoidRootPart" then
  2613. v.Transparency = 0
  2614. else
  2615. v.Transparency = 1
  2616. end
  2617. end
  2618. end
  2619. end
  2620. end
  2621.  
  2622. mouse.KeyDown:connect(function(key)
  2623. key = string.lower(key)
  2624. if string.byte(key) == 50 then
  2625. do
  2626. local walkinglocal = true
  2627. local keyConnection = mouse.KeyUp:connect(function(key)
  2628. if string.byte(key) == 50 then
  2629. walkinglocal = false
  2630. end
  2631. end)
  2632. walking = true
  2633. repeat
  2634. rs:wait()
  2635. until walkinglocal == false
  2636. keyConnection:disconnect()
  2637. walking = false
  2638. end
  2639. end
  2640. end)
  2641. remote.OnClientEvent:Connect(function(k)
  2642. if k == "rs" then
  2643. renderstepped()
  2644. end
  2645. end)
  2646. rs:connect(function()
  2647. if walking == false then
  2648. change = 1
  2649. movement = 20
  2650. hum.WalkSpeed = 50
  2651. else
  2652. change = 0.5
  2653. movement = 8
  2654. hum.WalkSpeed = 20
  2655. end
  2656. for i, v in pairs(DebrisModel:GetChildren()) do
  2657. if v.Name == "LIGHTNING" then
  2658. local vm = v:FindFirstChildOfClass("BlockMesh")
  2659. vm.Scale = vm.Scale - Vector3.new(0.05, 0.05, 0)
  2660. if 0 >= vm.Scale.X then
  2661. v:Destroy()
  2662. end
  2663. end
  2664. end
  2665. local ray1 = Ray.new(root.Position + Vector3.new(size, 0, 0), Vector3.new(0, -4, 0))
  2666. local part1, endPoint = workspace:FindPartOnRay(ray1, char)
  2667. local ray2 = Ray.new(root.Position - Vector3.new(size, 0, 0), Vector3.new(0, -4, 0))
  2668. local part2, endPoint = workspace:FindPartOnRay(ray2, char)
  2669. local ray3 = Ray.new(root.Position + Vector3.new(0, 0, size / 2), Vector3.new(0, -4, 0))
  2670. local part3, endPoint = workspace:FindPartOnRay(ray3, char)
  2671. local ray4 = Ray.new(root.Position - Vector3.new(0, 0, size / 2), Vector3.new(0, -4, 0))
  2672. local part4, endPoint = workspace:FindPartOnRay(ray4, char)
  2673. local ray5 = Ray.new(root.Position + Vector3.new(size, 0, size / 2), Vector3.new(0, -4, 0))
  2674. local part5, endPoint = workspace:FindPartOnRay(ray5, char)
  2675. local ray6 = Ray.new(root.Position - Vector3.new(size, 0, size / 2), Vector3.new(0, -4, 0))
  2676. local part6, endPoint = workspace:FindPartOnRay(ray6, char)
  2677. local ray7 = Ray.new(root.Position + Vector3.new(size, 0, -size / 2), Vector3.new(0, -4, 0))
  2678. local part7, endPoint = workspace:FindPartOnRay(ray7, char)
  2679. local ray8 = Ray.new(root.Position - Vector3.new(size, 0, -size / 2), Vector3.new(0, -4, 0))
  2680. local part8, endPoint = workspace:FindPartOnRay(ray8, char)
  2681. local ray = Ray.new(root.Position, Vector3.new(0, -6, 0))
  2682. local part, endPoint = workspace:FindPartOnRay(ray, char)
  2683. if part1 or part2 or part3 or part4 or part5 or part6 or part7 or part8 then
  2684. jumped = false
  2685. else
  2686. endPoint = 0
  2687. jumped = true
  2688. end
  2689. if plr == lplr and drew == true then
  2690. if custom_outfits == true then
  2691. p:ClearCharacterAppearance()
  2692. if hed:FindFirstChild("face") then
  2693. hed:FindFirstChild("face"):Destroy()
  2694. end
  2695. end
  2696. if root.Position.Y < workspace.FallenPartsDestroyHeight + 200 then
  2697. char:MoveTo(Vector3.new(0, 0, 0))
  2698. end
  2699. if 0 < hum.Health then
  2700. if hum.Sit == false then
  2701. if (root.Velocity * Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then
  2702. animation("Run")
  2703. elseif jumped == true then
  2704. didjump = true
  2705. jumppower = root.Velocity.Y
  2706. animation("Jump")
  2707. elseif (torso.Velocity * Vector3.new(1, 0, 1)).magnitude < 5 then
  2708. animation("Idle")
  2709. end
  2710. else
  2711. animation("Sit")
  2712. end
  2713. end
  2714. if didjump and jumped == false then
  2715. jumpimpact(jumppower)
  2716. didjump = false
  2717. end
  2718. if (torso.Velocity * Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false and noidle == false then
  2719. if hed:FindFirstChild("Running") then
  2720. hed.Running:Destroy()
  2721. end
  2722. if math.cos(sine / 4) / 2 <= -0.2 and sidestep == 0 then
  2723. local a = sound(131436155, rleg.Position, 2, math.random(7, 8) / 10)
  2724. a.Parent = rleg
  2725. sidestep = 1
  2726. end
  2727. if math.cos(sine / 4) / 2 >= 0.2 and sidestep == 1 then
  2728. local a = sound(131436155, lleg.Position, 2, math.random(7, 8) / 10)
  2729. a.Parent = lleg
  2730. sidestep = 0
  2731. end
  2732. end
  2733. local asd = Vector3.new(math.random(-10000, 10000) / 10000, math.random(-10000, 10000) / 10000, math.random(-10000, 10000) / 10000)
  2734. local asd2 = Vector3.new(math.random(-10000, 10000) / 10000, 0, math.random(-10000, 10000) / 10000)
  2735. if skin_custom then
  2736. hed.BrickColor = skin_color
  2737. torso.BrickColor = skin_color
  2738. rarm.BrickColor = skin_color
  2739. larm.BrickColor = skin_color
  2740. rleg.BrickColor = skin_color
  2741. lleg.BrickColor = skin_color
  2742. end
  2743. remote:FireServer("rs")
  2744. local stuffs = {
  2745. hed.Weld.C0,
  2746. hed.Weld.C1,
  2747. larm.Weld.C0,
  2748. rarm.Weld.C0,
  2749. torso.Weld.C0,
  2750. lleg.Weld.C0,
  2751. rleg.Weld.C0
  2752. }
  2753. remote:FireServer("coords", stuffs, sine, pose, wingpose, animsync, walking, Sword.Handle.Weld.Part0, Sword.Handle.Weld.C0, Sword.Handle.Weld.C1)
  2754. end
  2755. if plr ~= lplr and drew then
  2756. noidle = false
  2757. if animsync == false then
  2758. animation(pose)
  2759. end
  2760. end
  2761. if drew then
  2762. if blinktime > 0 then
  2763. blinktime = blinktime - 1
  2764. end
  2765. if blinktime <= 0 then
  2766. if blinking == false then
  2767. blinking = true
  2768. blinktime = 10
  2769. else
  2770. blinking = false
  2771. blinktime = 250
  2772. end
  2773. end
  2774. end
  2775. sine = sine + change
  2776. end)
  2777. remote.OnClientEvent:Connect(function(k)
  2778. if k == "stop" then
  2779. script:Destroy()
  2780. if plr == lplr then
  2781. GUI:Destroy()
  2782. end
  2783. end
  2784. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement