Advertisement
Fluxushr

Untitled

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