Advertisement
Deyer

Untitled

Mar 31st, 2023
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.25 KB | None | 0 0
  1. game.Players.LocalPlayer.Character["LUAhEAD"].Handle.Mesh:Destroy() --Pink Hair
  2. game.Players.LocalPlayer.Character["LongHairBeanie"].Handle.Mesh:Destroy()
  3. game.Players.LocalPlayer.Character["Kate Hair"].Handle.Mesh:Destroy() --LavanderHair
  4. game.Players.LocalPlayer.Character["LavanderHair"].Handle.Mesh:Destroy()
  5. game.Players.LocalPlayer.Character["Robloxclassicred"].Handle.Mesh:Destroy() --Pink Hair
  6. game.Players.LocalPlayer.Character["Pink Hair"].Handle.Mesh:Destroy() --Hat1
  7. game.Players.LocalPlayer.Character["Hat1"].Handle.Mesh:Destroy()
  8. game.Players.LocalPlayer.Character["Pal Hair"].Handle.Mesh:Destroy()
  9. game.Players.LocalPlayer.Character["Necklace"].Handle.Mesh:Destroy() --Necklace
  10. --hats what you will know
  11.  
  12. local c = game.Players.LocalPlayer.Character
  13. for i, v in pairs({"Right Arm", "Left Arm"}) do
  14. local arm = c[v]
  15. arm.Parent = nil
  16. arm.Transparency = 1
  17. arm.Parent = c
  18. end
  19.  
  20. local c = game.Players.LocalPlayer.Character
  21. for i, v in pairs({"Right Leg", "Left Leg"}) do
  22. local Leg = c[v]
  23. Leg.Parent = nil
  24. Leg.Transparency = 1
  25. Leg.Parent = c
  26. end
  27.  
  28. local v3_net, v3_808 = Vector3.new(0, 25.1, 0), Vector3.new(-8, 0, -8)
  29. local function getNetlessVelocity(realPartVelocity)
  30. local mag = realPartVelocity.Magnitude
  31. if mag > -1 then
  32. local unit = realPartVelocity.Unit
  33. if (unit.Y > 0.25) or (unit.Y < -0.75) then
  34. return unit * (25.1 / unit.Y)
  35. end
  36. end
  37. return v3_net + realPartVelocity * v3_808
  38. end
  39. local simradius = "shp" --simulation radius (net bypass) method
  40. --simulation radius (net bypass) method
  41. --"shp" - sethiddenproperty
  42. --"ssr" - setsimulationradius
  43. --false - disable
  44. local antiragdoll = true --removes hingeConstraints and ballSocketConstraints from your character
  45. local newanimate = 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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement