Advertisement
Fluxushr

Untitled

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