Advertisement
Deyer

Untitled

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