Advertisement
Deyer

Untitled

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