Advertisement
Deyer

Untitled

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