Deyer

Untitled

Apr 18th, 2023
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.59 KB | None | 0 0
  1. game.Players.LocalPlayer.Character["Hat1"].Handle.Mesh:Destroy()
  2. game.Players.LocalPlayer.Character["Pal Hair"].Handle.Mesh:Destroy() --Pink Hair
  3. game.Players.LocalPlayer.Character["Pink Hair"].Handle.Mesh:Destroy()
  4. game.Players.LocalPlayer.Character["Kate Hair"].Handle.Mesh:Destroy() --LavanderHair
  5. game.Players.LocalPlayer.Character["LavanderHair"].Handle.Mesh:Destroy()
  6. game.Players.LocalPlayer.Character["Robloxclassicred"].Handle.Mesh:Destroy()
  7. game.Players.LocalPlayer.Character["LongStraightHair"].Handle.Mesh:Destroy()
  8.  
  9. game.Players.LocalPlayer.Character["Left Leg"].Transparency = 1
  10. game.Players.LocalPlayer.Character["Right Leg"].Transparency = 1
  11. game.Players.LocalPlayer.Character["Left Arm"].Transparency = 1
  12. game.Players.LocalPlayer.Character["Right Arm"].Transparency = 1
  13.  
  14. local v3_net, v3_808 = Vector3.new(20000, 20000, 2000), Vector3.new(8, 0, 8)
  15. local function getNetlessVelocity(realPartVelocity)
  16. local mag = realPartVelocity.Magnitude
  17. if mag > 1 then
  18. local unit = realPartVelocity.Unit
  19. if (unit.Y > 0.25) or (unit.Y < -0.75) then
  20. return unit * (25.1 / unit.Y)
  21. end
  22. end
  23. return v3_net + realPartVelocity * v3_808
  24. end
  25. local simradius = "shp" --simulation radius (net bypass) method
  26. --simulation radius (net bypass) method
  27. --"shp" - sethiddenproperty
  28. --"ssr" - setsimulationradius
  29. --false - disable
  30. local antiragdoll = true --removes hingeConstraints and ballSocketConstraints from your character
  31. local newanimate = false --disables the animate script and enables after reanimation
  32. local discharscripts = true --disables all localScripts parented to your character before reanimation
  33. local R15toR6 = true --tries to convert your character to r6 if its r15
  34. local hatcollide = true --makes hats cancollide (only method 0)
  35. local humState16 = true --enables collisions for limbs before the humanoid dies (using hum:ChangeState)
  36. local addtools = false --puts all tools from backpack to character and lets you hold them after reanimation
  37. local hedafterneck = false --disable aligns for head and enable after neck is removed
  38. local loadtime = game:GetService("Players").RespawnTime + 0.5 --anti respawn delay
  39. local method = 0 --reanimation method
  40. --methods:
  41. --0 - breakJoints (takes [loadtime] seconds to laod)
  42. --1 - limbs
  43. --2 - limbs + anti respawn
  44. --3 - limbs + breakJoints after [loadtime] seconds
  45. --4 - remove humanoid + breakJoints
  46. --5 - remove humanoid + limbs
  47. local alignmode = 3 --AlignPosition mode
  48. --modes:
  49. --1 - AlignPosition rigidity enabled true
  50. --2 - 2 AlignPositions rigidity enabled both true and false
  51. --3 - AlignPosition rigidity enabled false
  52.  
  53. healthHide = healthHide and ((method == 0) or (method == 2) or (method == 000)) and gp(c, "Head", "BasePart")
  54.  
  55. local lp = game:GetService("Players").LocalPlayer
  56. local rs = game:GetService("RunService")
  57. local stepped = rs.Stepped
  58. local heartbeat = rs.Heartbeat
  59. local renderstepped = rs.RenderStepped
  60. local sg = game:GetService("StarterGui")
  61. local ws = game:GetService("Workspace")
  62. local cf = CFrame.new
  63. local v3 = Vector3.new
  64. local v3_0 = v3(0, 0, 0)
  65. local inf = math.huge
  66.  
  67. local c = lp.Character
  68.  
  69. if not (c and c.Parent) then
  70. return
  71. end
  72.  
  73. c.Destroying:Connect(function()
  74. c = nil
  75. end)
  76.  
  77. local function gp(parent, name, className)
  78. if typeof(parent) == "Instance" then
  79. for i, v in pairs(parent:GetChildren()) do
  80. if (v.Name == name) and v:IsA(className) then
  81. return v
  82. end
  83. end
  84. end
  85. return nil
  86. end
  87.  
  88. local function align(Part0, Part1)
  89. Part0.CustomPhysicalProperties = PhysicalProperties.new(0.0001, 0.0001, 0.0001, 0.0001, 0.0001)
  90.  
  91. local att0 = Instance.new("Attachment", Part0)
  92. att0.Orientation = v3_0
  93. att0.Position = v3_0
  94. att0.Name = "att0_" .. Part0.Name
  95. local att1 = Instance.new("Attachment", Part1)
  96. att1.Orientation = v3_0
  97. att1.Position = v3_0
  98. att1.Name = "att1_" .. Part1.Name
  99.  
  100. if (alignmode == 1) or (alignmode == 2) then
  101. local ape = Instance.new("AlignPosition", att0)
  102. ape.ApplyAtCenterOfMass = false
  103. ape.MaxForce = inf
  104. ape.MaxVelocity = inf
  105. ape.ReactionForceEnabled = false
  106. ape.Responsiveness = 200
  107. ape.Attachment1 = att1
  108. ape.Attachment0 = att0
  109. ape.Name = "AlignPositionRtrue"
  110. ape.RigidityEnabled = true
  111. end
  112.  
  113. if (alignmode == 2) or (alignmode == 3) then
  114. local apd = Instance.new("AlignPosition", att0)
  115. apd.ApplyAtCenterOfMass = false
  116. apd.MaxForce = inf
  117. apd.MaxVelocity = inf
  118. apd.ReactionForceEnabled = false
  119. apd.Responsiveness = 200
  120. apd.Attachment1 = att1
  121. apd.Attachment0 = att0
  122. apd.Name = "AlignPositionRfalse"
  123. apd.RigidityEnabled = false
  124. end
  125.  
  126. local ao = Instance.new("AlignOrientation", att0)
  127. ao.MaxAngularVelocity = inf
  128. ao.MaxTorque = inf
  129. ao.PrimaryAxisOnly = false
  130. ao.ReactionTorqueEnabled = false
  131. ao.Responsiveness = 200
  132. ao.Attachment1 = att1
  133. ao.Attachment0 = att0
  134. ao.RigidityEnabled = false
  135.  
  136. if type(getNetlessVelocity) == "function" then
  137. local realVelocity = v3_0
  138. local steppedcon = stepped:Connect(function()
  139. Part0.Velocity = realVelocity
  140. end)
  141. local heartbeatcon = heartbeat:Connect(function()
  142. realVelocity = Part0.Velocity
  143. Part0.Velocity = getNetlessVelocity(realVelocity)
  144. end)
  145. Part0.Destroying:Connect(function()
  146. Part0 = nil
  147. steppedcon:Disconnect()
  148. heartbeatcon:Disconnect()
  149. end)
  150. end
  151. end
  152.  
  153. local function respawnrequest()
  154. local ccfr = ws.CurrentCamera.CFrame
  155. local c = lp.Character
  156. lp.Character = nil
  157. lp.Character = c
  158. local con = nil
  159. con = ws.CurrentCamera.Changed:Connect(function(prop)
  160. if (prop ~= "Parent") and (prop ~= "CFrame") then
  161. return
  162. end
  163. ws.CurrentCamera.CFrame = ccfr
  164. con:Disconnect()
  165. end)
  166. end
  167.  
  168. local destroyhum = (method == 4) or (method == 5)
  169. local breakjoints = (method == 0) or (method == 4)
  170. local antirespawn = (method == 0) or (method == 2) or (method == 3)
  171.  
  172. hatcollide = hatcollide and (method == 0)
  173.  
  174. addtools = addtools and gp(lp, "Backpack", "Backpack")
  175.  
  176. local fenv = getfenv()
  177. local shp = fenv.sethiddenproperty or fenv.set_hidden_property or fenv.set_hidden_prop or fenv.sethiddenprop
  178. 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
  179.  
  180. if shp and (simradius == "shp") then
  181. spawn(function()
  182. while c and heartbeat:Wait() do
  183. shp(lp, "SimulationRadius", inf)
  184. end
  185. end)
  186. elseif ssr and (simradius == "ssr") then
  187. spawn(function()
  188. while c and heartbeat:Wait() do
  189. ssr(inf)
  190. end
  191. end)
  192. end
  193.  
  194. antiragdoll = antiragdoll and function(v)
  195. if v:IsA("HingeConstraint") or v:IsA("BallSocketConstraint") then
  196. v.Parent = nil
  197. end
  198. end
  199.  
  200. if antiragdoll then
  201. for i, v in pairs(c:GetDescendants()) do
  202. antiragdoll(v)
  203. end
  204. c.DescendantAdded:Connect(antiragdoll)
  205. end
  206.  
  207. if antirespawn then
  208. respawnrequest()
  209. end
  210.  
  211. if method == 0 then
  212. wait(loadtime)
  213. if not c then
  214. return
  215. end
  216. end
  217.  
  218. if discharscripts then
  219. for i, v in pairs(c:GetChildren()) do
  220. if v:IsA("LocalScript") then
  221. v.Disabled = true
  222. end
  223. end
  224. elseif newanimate then
  225. local animate = gp(c, "Animate", "LocalScript")
  226. if animate and (not animate.Disabled) then
  227. animate.Disabled = true
  228. else
  229. newanimate = false
  230. end
  231. end
  232.  
  233. if addtools then
  234. for i, v in pairs(addtools:GetChildren()) do
  235. if v:IsA("Tool") then
  236. v.Parent = c
  237. end
  238. end
  239. end
  240.  
  241. pcall(function()
  242. settings().Physics.AllowSleep = false
  243. settings().Physics.PhysicsEnvironmentalThrottle = Enum.EnviromentalPhysicsThrottle.Disabled
  244. end)
  245.  
  246. local OLDscripts = {}
  247.  
  248. for i, v in pairs(c:GetDescendants()) do
  249. if v.ClassName == "Script" then
  250. table.insert(OLDscripts, v)
  251. end
  252. end
  253.  
  254. local scriptNames = {}
  255.  
  256. for i, v in pairs(c:GetDescendants()) do
  257. if v:IsA("BasePart") then
  258. local newName = tostring(i)
  259. local exists = true
  260. while exists do
  261. exists = false
  262. for i, v in pairs(OLDscripts) do
  263. if v.Name == newName then
  264. exists = true
  265. end
  266. end
  267. if exists then
  268. newName = newName .. "_"
  269. end
  270. end
  271. table.insert(scriptNames, newName)
  272. Instance.new("Script", v).Name = newName
  273. end
  274. end
  275.  
  276. c.Archivable = true
  277. local hum = c:FindFirstChildOfClass("Humanoid")
  278. if hum then
  279. for i, v in pairs(hum:GetPlayingAnimationTracks()) do
  280. v:Stop()
  281. end
  282. end
  283. local cl = c:Clone()
  284. if hum and humState16 then
  285. hum:ChangeState(Enum.HumanoidStateType.Physics)
  286. if destroyhum then
  287. wait(1.6)
  288. end
  289. end
  290. if hum and hum.Parent and destroyhum then
  291. hum:Destroy()
  292. end
  293.  
  294. if not c then
  295. return
  296. end
  297.  
  298. local head = gp(c, "Head", "BasePart")
  299. local torso = gp(c, "Torso", "BasePart") or gp(c, "UpperTorso", "BasePart")
  300. local root = gp(c, "HumanoidRootPart", "BasePart")
  301. if hatcollide and c:FindFirstChildOfClass("Accessory") then
  302. local anything = c:FindFirstChildOfClass("BodyColors") or gp(c, "Health", "Script")
  303. if not (torso and root and anything) then
  304. return
  305. end
  306. torso:Destroy()
  307. root:Destroy()
  308. if shp then
  309. for i,v in pairs(c:GetChildren()) do
  310. if v:IsA("Accessory") then
  311. shp(v, "BackendAccoutrementState", 0)
  312. end
  313. end
  314. end
  315. anything:Destroy()
  316. if head then
  317. head:Destroy()
  318. end
  319. end
  320.  
  321. for i, v in pairs(cl:GetDescendants()) do
  322. if v:IsA("BasePart") then
  323. v.Transparency = 1
  324. v.Anchored = false
  325. end
  326. end
  327.  
  328. local model = Instance.new("Model", c)
  329. model.Name = model.ClassName
  330.  
  331. model.Destroying:Connect(function()
  332. model = nil
  333. end)
  334.  
  335. for i, v in pairs(c:GetChildren()) do
  336. if v ~= model then
  337. if addtools and v:IsA("Tool") then
  338. for i1, v1 in pairs(v:GetDescendants()) do
  339. if v1 and v1.Parent and v1:IsA("BasePart") then
  340. local bv = Instance.new("BodyVelocity", v1)
  341. bv.Velocity = v3_0
  342. bv.MaxForce = v3(1000, 1000, 1000)
  343. bv.P = 1250
  344. bv.Name = "bv_" .. v.Name
  345. end
  346. end
  347. end
  348. v.Parent = model
  349. end
  350. end
  351.  
  352. if breakjoints then
  353. model:BreakJoints()
  354. else
  355. if head and torso then
  356. for i, v in pairs(model:GetDescendants()) do
  357. if v:IsA("Weld") or v:IsA("Snap") or v:IsA("Glue") or v:IsA("Motor") or v:IsA("Motor6D") then
  358. local save = false
  359. if (v.Part0 == torso) and (v.Part1 == head) then
  360. save = true
  361. end
  362. if (v.Part0 == head) and (v.Part1 == torso) then
  363. save = true
  364. end
  365. if save then
  366. if hedafterneck then
  367. hedafterneck = v
  368. end
  369. else
  370. v:Destroy()
  371. end
  372. end
  373. end
  374. end
  375. if method == 3 then
  376. spawn(function()
  377. wait(loadtime)
  378. if model then
  379. model:BreakJoints()
  380. end
  381. end)
  382. end
  383. end
  384.  
  385. cl.Parent = c
  386. for i, v in pairs(cl:GetChildren()) do
  387. v.Parent = c
  388. end
  389. cl:Destroy()
  390.  
  391. local modelDes = {}
  392. for i, v in pairs(model:GetDescendants()) do
  393. if v:IsA("BasePart") then
  394. i = tostring(i)
  395. v.Destroying:Connect(function()
  396. modelDes[i] = nil
  397. end)
  398. modelDes[i] = v
  399. end
  400. end
  401. local modelcolcon = nil
  402. local function modelcolf()
  403. if model then
  404. for i, v in pairs(modelDes) do
  405. v.CanCollide = false
  406. end
  407. else
  408. modelcolcon:Disconnect()
  409. end
  410. end
  411. modelcolcon = stepped:Connect(modelcolf)
  412. modelcolf()
  413.  
  414. for i, scr in pairs(model:GetDescendants()) do
  415. if (scr.ClassName == "Script") and table.find(scriptNames, scr.Name) then
  416. local Part0 = scr.Parent
  417. if Part0:IsA("BasePart") then
  418. for i1, scr1 in pairs(c:GetDescendants()) do
  419. if (scr1.ClassName == "Script") and (scr1.Name == scr.Name) and (not scr1:IsDescendantOf(model)) then
  420. local Part1 = scr1.Parent
  421. if (Part1.ClassName == Part0.ClassName) and (Part1.Name == Part0.Name) then
  422. align(Part0, Part1)
  423. break
  424. end
  425. end
  426. end
  427. end
  428. end
  429. end
  430.  
  431. if (typeof(hedafterneck) == "Instance") and head then
  432. local aligns = {}
  433. local con = nil
  434. con = hedafterneck.Changed:Connect(function(prop)
  435. if (prop == "Parent") and not hedafterneck.Parent then
  436. con:Disconnect()
  437. for i, v in pairs(aligns) do
  438. v.Enabled = true
  439. end
  440. end
  441. end)
  442. for i, v in pairs(head:GetDescendants()) do
  443. if v:IsA("AlignPosition") or v:IsA("AlignOrientation") then
  444. i = tostring(i)
  445. aligns[i] = v
  446. v.Destroying:Connect(function()
  447. aligns[i] = nil
  448. end)
  449. v.Enabled = false
  450. end
  451. end
  452. end
  453.  
  454. for i, v in pairs(c:GetDescendants()) do
  455. if v and v.Parent then
  456. if v.ClassName == "Script" then
  457. if table.find(scriptNames, v.Name) then
  458. v:Destroy()
  459. end
  460. elseif not v:IsDescendantOf(model) then
  461. if v:IsA("Decal") then
  462. v.Transparency = 1
  463. elseif v:IsA("ForceField") then
  464. v.Visible = false
  465. elseif v:IsA("Sound") then
  466. v.Playing = false
  467. 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
  468. v.Enabled = false
  469. end
  470. end
  471. end
  472. end
  473.  
  474. if newanimate then
  475. local animate = gp(c, "Animate", "LocalScript")
  476. if animate then
  477. animate.Disabled = false
  478. end
  479. end
  480.  
  481. if addtools then
  482. for i, v in pairs(c:GetChildren()) do
  483. if v:IsA("Tool") then
  484. v.Parent = addtools
  485. end
  486. end
  487. end
  488.  
  489. local hum0 = model:FindFirstChildOfClass("Humanoid")
  490. if hum0 then
  491. hum0.Destroying:Connect(function()
  492. hum0 = nil
  493. end)
  494. end
  495.  
  496. local hum1 = c:FindFirstChildOfClass("Humanoid")
  497. if hum1 then
  498. hum1.Destroying:Connect(function()
  499. hum1 = nil
  500. end)
  501. end
  502.  
  503. if hum1 then
  504. ws.CurrentCamera.CameraSubject = hum1
  505. local camSubCon = nil
  506. local function camSubFunc()
  507. camSubCon:Disconnect()
  508. if c and hum1 then
  509. ws.CurrentCamera.CameraSubject = hum1
  510. end
  511. end
  512. camSubCon = renderstepped:Connect(camSubFunc)
  513. if hum0 then
  514. hum0.Changed:Connect(function(prop)
  515. if hum1 and (prop == "Jump") then
  516. hum1.Jump = hum0.Jump
  517. end
  518. end)
  519. else
  520. respawnrequest()
  521. end
  522. end
  523.  
  524. local rb = Instance.new("BindableEvent", c)
  525. rb.Event:Connect(function()
  526. rb:Destroy()
  527. sg:SetCore("ResetButtonCallback", true)
  528. if destroyhum then
  529. c:BreakJoints()
  530. return
  531. end
  532. if hum0 and (hum0.Health > 0) then
  533. model:BreakJoints()
  534. hum0.Health = 0
  535. end
  536. if antirespawn then
  537. respawnrequest()
  538. end
  539. end)
  540. sg:SetCore("ResetButtonCallback", rb)
  541.  
  542. spawn(function()
  543. while c do
  544. if hum0 and hum1 then
  545. hum1.Jump = hum0.Jump
  546. end
  547. wait()
  548. end
  549. sg:SetCore("ResetButtonCallback", true)
  550. end)
  551.  
  552. R15toR6 = R15toR6 and hum1 and (hum1.RigType == Enum.HumanoidRigType.R15)
  553. if R15toR6 then
  554. 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")
  555. if part then
  556. local cfr = part.CFrame
  557. local R6parts = {
  558. head = {
  559. Name = "Head",
  560. Size = v3(2, 1, 1),
  561. R15 = {
  562. Head = 0
  563. }
  564. },
  565. torso = {
  566. Name = "Torso",
  567. Size = v3(2, 2, 1),
  568. R15 = {
  569. UpperTorso = 0.2,
  570. LowerTorso = -100
  571. }
  572. },
  573. root = {
  574. Name = "HumanoidRootPart",
  575. Size = v3(2, 2, 1),
  576. R15 = {
  577. HumanoidRootPart = 0
  578. }
  579. },
  580. leftArm = {
  581. Name = "Left Arm",
  582. Size = v3(1, 2, 1),
  583. R15 = {
  584. LeftHand = -0.73,
  585. LeftLowerArm = -0.2,
  586. LeftUpperArm = 0.4
  587. }
  588. },
  589. rightArm = {
  590. Name = "Right Arm",
  591. Size = v3(1, 2, 1),
  592. R15 = {
  593. RightHand = -0.73,
  594. RightLowerArm = -0.2,
  595. RightUpperArm = 0.4
  596. }
  597. },
  598. leftLeg = {
  599. Name = "Left Leg",
  600. Size = v3(1, 2, 1),
  601. R15 = {
  602. LeftFoot = -0.73,
  603. LeftLowerLeg = -0.15,
  604. LeftUpperLeg = 0.6
  605. }
  606. },
  607. rightLeg = {
  608. Name = "Right Leg",
  609. Size = v3(1, 2, 1),
  610. R15 = {
  611. RightFoot = -0.73,
  612. RightLowerLeg = -0.15,
  613. RightUpperLeg = 0.6
  614. }
  615. }
  616. }
  617. for i, v in pairs(c:GetChildren()) do
  618. if v:IsA("BasePart") then
  619. for i1, v1 in pairs(v:GetChildren()) do
  620. if v1:IsA("Motor6D") then
  621. v1.Part0 = nil
  622. end
  623. end
  624. end
  625. end
  626. part.Archivable = true
  627. for i, v in pairs(R6parts) do
  628. local part = part:Clone()
  629. part:ClearAllChildren()
  630. part.Name = v.Name
  631. part.Size = v.Size
  632. part.CFrame = cfr
  633. part.Anchored = false
  634. part.Transparency = 1
  635. part.CanCollide = false
  636. for i1, v1 in pairs(v.R15) do
  637. local R15part = gp(c, i1, "BasePart")
  638. local att = gp(R15part, "att1_" .. i1, "Attachment")
  639. if R15part then
  640. local weld = Instance.new("Weld", R15part)
  641. weld.Name = "Weld_" .. i1
  642. weld.Part0 = part
  643. weld.Part1 = R15part
  644. weld.C0 = cf(0, v1, 0)
  645. weld.C1 = cf(0, 0, 0)
  646. R15part.Massless = true
  647. R15part.Name = "R15_" .. i1
  648. R15part.Parent = part
  649. if att then
  650. att.Parent = part
  651. att.Position = v3(0, v1, 0)
  652. end
  653. end
  654. end
  655. part.Parent = c
  656. R6parts[i] = part
  657. end
  658. local R6joints = {
  659. neck = {
  660. Parent = R6parts.torso,
  661. Name = "Neck",
  662. Part0 = R6parts.torso,
  663. Part1 = R6parts.head,
  664. C0 = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),
  665. C1 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  666. },
  667. rootJoint = {
  668. Parent = R6parts.root,
  669. Name = "RootJoint" ,
  670. Part0 = R6parts.root,
  671. Part1 = R6parts.torso,
  672. C0 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),
  673. C1 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  674. },
  675. rightShoulder = {
  676. Parent = R6parts.torso,
  677. Name = "Right Shoulder",
  678. Part0 = R6parts.torso,
  679. Part1 = R6parts.rightArm,
  680. C0 = cf(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),
  681. C1 = cf(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  682. },
  683. leftShoulder = {
  684. Parent = R6parts.torso,
  685. Name = "Left Shoulder",
  686. Part0 = R6parts.torso,
  687. Part1 = R6parts.leftArm,
  688. C0 = cf(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  689. C1 = cf(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  690. },
  691. rightHip = {
  692. Parent = R6parts.torso,
  693. Name = "Right Hip",
  694. Part0 = R6parts.torso,
  695. Part1 = R6parts.rightLeg,
  696. C0 = cf(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),
  697. C1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  698. },
  699. leftHip = {
  700. Parent = R6parts.torso,
  701. Name = "Left Hip" ,
  702. Part0 = R6parts.torso,
  703. Part1 = R6parts.leftLeg,
  704. C0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  705. C1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  706. }
  707. }
  708. for i, v in pairs(R6joints) do
  709. local joint = Instance.new("Motor6D")
  710. for prop, val in pairs(v) do
  711. joint[prop] = val
  712. end
  713. R6joints[i] = joint
  714. end
  715. hum1.RigType = Enum.HumanoidRigType.R6
  716. hum1.HipHeight = 0
  717. end
  718. end
  719.  
  720.  
  721.  
  722. --find rig joints
  723.  
  724. local function fakemotor()
  725. return {C0=cf(), C1=cf()}
  726. end
  727.  
  728. local torso = gp(c, "Torso", "BasePart")
  729. local root = gp(c, "HumanoidRootPart", "BasePart")
  730.  
  731. local neck = gp(torso, "Neck", "Motor6D")
  732. neck = neck or fakemotor()
  733.  
  734. local rootJoint = gp(root, "RootJoint", "Motor6D")
  735. rootJoint = rootJoint or fakemotor()
  736.  
  737. local leftShoulder = gp(torso, "Left Shoulder", "Motor6D")
  738. leftShoulder = leftShoulder or fakemotor()
  739.  
  740. local rightShoulder = gp(torso, "Right Shoulder", "Motor6D")
  741. rightShoulder = rightShoulder or fakemotor()
  742.  
  743. local leftHip = gp(torso, "Left Hip", "Motor6D")
  744. leftHip = leftHip or fakemotor()
  745.  
  746. local rightHip = gp(torso, "Right Hip", "Motor6D")
  747. rightHip = rightHip or fakemotor()
  748.  
  749. --120 fps
  750.  
  751. local fps = 40
  752. local event = Instance.new("BindableEvent", c)
  753. event.Name = "120 fps"
  754. local floor = math.floor
  755. fps = 1 / fps
  756. local tf = 0
  757. local con = nil
  758. con = game:GetService("RunService").RenderStepped:Connect(function(s)
  759. if not c then
  760. con:Disconnect()
  761. return
  762. end
  763. --tf += s
  764. if tf >= fps then
  765. for i=1, floor(tf / fps) do
  766. event:Fire(c)
  767. end
  768. tf = 0
  769. end
  770. end)
  771. local event = event.Event
  772.  
  773. local hedrot = v3(0, 5, 0)
  774.  
  775. local uis = game:GetService("UserInputService")
  776. local function isPressed(key)
  777. return (not uis:GetFocusedTextBox()) and uis:IsKeyDown(Enum.KeyCode[key])
  778. end
  779.  
  780. local biggesthandle = nil
  781. for i, v in pairs(c:GetChildren()) do
  782. if v:IsA("Accessory") and v.Name == "LongStraightHair" then
  783. local handle = gp(v, "Handle", "BasePart")
  784. if biggesthandle then
  785. if biggesthandle.Size.Magnitude < handle.Size.Magnitude then
  786. biggesthandle = Handle
  787. end
  788. else
  789. biggesthandle = gp(v, "Handle", "BasePart")
  790. end
  791. end
  792. end
  793.  
  794. if not biggesthandle then
  795. return
  796. end
  797.  
  798. local handle1 = gp(gp(model, biggesthandle.Parent.Name, "Accessory"), "Handle", "BasePart")
  799. if not handle1 then
  800. return
  801. end
  802.  
  803. handle1.Destroying:Connect(function()
  804. handle1 = nil
  805. end)
  806. biggesthandle.Destroying:Connect(function()
  807. biggesthandle = nil
  808. end)
  809.  
  810. biggesthandle:BreakJoints()
  811. biggesthandle.Anchored = true
  812.  
  813. for i, v in pairs(handle1:GetDescendants()) do
  814. if v:IsA("AlignOrientation") then
  815. v.Enabled = false
  816. end
  817. end
  818.  
  819. local mouse = lp:GetMouse()
  820. local fling = false
  821. mouse.Button1Down:Connect(function()
  822. fling = true
  823. end)
  824. mouse.Button1Up:Connect(function()
  825. fling = false
  826. end)
  827. local function doForSignal(signal, vel)
  828. spawn(function()
  829. while signal:Wait() and c and handle1 and biggesthandle do
  830. if fling and mouse.Target then
  831. biggesthandle.Position = mouse.Hit.Position
  832. end
  833. handle1.RotVelocity = vel
  834. end
  835. end)
  836. end
  837. doForSignal(stepped, v3(10000, 10000, 10000))
  838. doForSignal(renderstepped, v3(10000, 10000, 10000))
  839. doForSignal(heartbeat, v3(200000000000000, 200000000000000, 200000000000000)) --https://web.roblox.com/catalog/63690008/Pal-Hair
  840.  
  841. local lp = game:GetService("Players").LocalPlayer
  842. local rs = game:GetService("RunService")
  843. local stepped = rs.Stepped
  844. local heartbeat = rs.Heartbeat
  845. local renderstepped = rs.RenderStepped
  846. local sg = game:GetService("StarterGui")
  847. local ws = game:GetService("Workspace")
  848. local cf = CFrame.new
  849. local v3 = Vector3.new
  850. local v3_0 = Vector3.zero
  851. local inf = math.huge
  852.  
  853. local cplayer = lp.Character
  854.  
  855. local v3 = Vector3.new
  856.  
  857. local function gp(parent, name, className)
  858. if typeof(parent) == "Instance" then
  859. for i, v in pairs(parent:GetChildren()) do
  860. if (v.Name == name) and v:IsA(className) then
  861. return v
  862. end
  863. end
  864. end
  865. return nil
  866. end
  867.  
  868. local hat2 = gp(cplayer, "Hat1", "Accessory")
  869. local handle2 = gp(hat2, "Handle", "BasePart")
  870. local att2 = gp(handle2, "att1_Handle", "Attachment")
  871. att2.Parent = cplayer["Torso"]
  872. att2.Position = Vector3.new(0.5, -0, 0)
  873. att2.Rotation = Vector3.new(90, 0, 0)
  874.  
  875. local hat2 = gp(cplayer, "Pal Hair", "Accessory")
  876. local handle2 = gp(hat2, "Handle", "BasePart")
  877. local att2 = gp(handle2, "att1_Handle", "Attachment")
  878. att2.Parent = cplayer["Torso"]
  879. att2.Position = Vector3.new(-0.5, -0, 0)
  880. att2.Rotation = Vector3.new(90, 0, 0)
  881.  
  882. local hat2 = gp(cplayer, "Pink Hair", "Accessory")
  883. local handle2 = gp(hat2, "Handle", "BasePart")
  884. local att2 = gp(handle2, "att1_Handle", "Attachment")
  885. att2.Parent = cplayer["Left Arm"]
  886. att2.Position = Vector3.new(0, -0, 0)
  887. att2.Rotation = Vector3.new(90, 0, 0)
  888.  
  889. local hat2 = gp(cplayer, "Kate Hair", "Accessory")
  890. local handle2 = gp(hat2, "Handle", "BasePart")
  891. local att2 = gp(handle2, "att1_Handle", "Attachment")
  892. att2.Parent = cplayer["Right Arm"]
  893. att2.Position = Vector3.new(-0, -0, 0)
  894. att2.Rotation = Vector3.new(90, 0, 0) --LavanderHair
  895.  
  896. local hat2 = gp(cplayer, "LavanderHair", "Accessory")
  897. local handle2 = gp(hat2, "Handle", "BasePart")
  898. local att2 = gp(handle2, "att1_Handle", "Attachment")
  899. att2.Parent = cplayer["Right Leg"]
  900. att2.Position = Vector3.new(0, 0, 0) --Robloxclassicred
  901. att2.Rotation = Vector3.new(90, 0, 0)
  902.  
  903. local hat2 = gp(cplayer, "Robloxclassicred", "Accessory")
  904. local handle2 = gp(hat2, "Handle", "BasePart")
  905. local att2 = gp(handle2, "att1_Handle", "Attachment")
  906. att2.Parent = cplayer["Left Leg"]
  907. att2.Position = Vector3.new(-0, 0, 0)
  908. att2.Rotation = Vector3.new(90, 0, 0)
Add Comment
Please, Sign In to add comment