ForkFullFight

Untitled

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