Advertisement
Guest User

block fling

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