Advertisement
Fluxushr

Untitled

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