isakk12

Permadeath reanim roblox

Feb 21st, 2022 (edited)
468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.35 KB | None | 0 0
  1. --this might be hard to use in ur script but im mainly making this paste to save the script
  2.  
  3.  
  4. repeat wait() until game:IsLoaded()
  5. repeat wait() until game:GetService("Players").LocalPlayer.Character
  6. if not game:GetService("RunService"):IsStudio() then
  7.     sethiddenproperty(game:GetService("Players").LocalPlayer,"MaximumSimulationRadius",math.huge)
  8.     sethiddenproperty(game:GetService("Players").LocalPlayer,"SimulationRadius",1.0000000331814e+32)
  9.     for i,v in next, game:GetService("Players").LocalPlayer.Character:GetDescendants() do
  10.         if v:IsA("BasePart") then
  11.             game:GetService("RunService").Heartbeat:connect(function()
  12.                 v.Velocity = Vector3.new(-25.05,0,0)
  13.                 wait(0.5)
  14.             end)
  15.         end
  16.     end
  17.     workspace.FallenPartsDestroyHeight = -math.huge
  18. end
  19. wait(1)
  20.  
  21. local plr = game:GetService("Players").LocalPlayer
  22. local lplrChar = plr.Character
  23. lplrChar.Archivable = true
  24.  
  25. local flingRoot = true
  26. local accessories = true
  27.  
  28. local dropHats = {}
  29.  
  30. if flingRoot then
  31.     local realRoot = lplrChar:FindFirstChild("HumanoidRootPart")
  32.     local fakeRoot = realRoot:Clone()
  33.     realRoot.Transparency = 0
  34.     fakeRoot.Parent = lplrChar
  35.     realRoot.Name = "RealRoot"
  36.     realRoot:ClearAllChildren()
  37.     fakeRoot:FindFirstChildOfClass("Motor6D").Part0 = fakeRoot
  38.     local bodyPos = Instance.new("BodyPosition",realRoot)
  39.     bodyPos.MaxForce = Vector3.new(99999997781963083612160, 99999997781963083612160, 99999997781963083612160)
  40.     bodyPos.P = 99999997952
  41.     bodyPos.D = 1000000
  42.     bodyPos.Position = fakeRoot.Position
  43.     local bodyFling = Instance.new("BodyThrust",realRoot)
  44.     bodyFling.Location = Vector3.new(25,0,0)
  45.     bodyFling.Force = Vector3.new(2500,2500,2500)
  46.    
  47. end
  48.  
  49.  
  50. for i,v in pairs(lplrChar:GetDescendants()) do
  51.     if v:IsA("Accessory") and accessories then
  52.         local att1 = v.Handle:FindFirstChildOfClass("Attachment")
  53.         local att
  54.         for i,b in pairs(lplrChar:GetDescendants()) do
  55.             if b:IsA("Attachment") then
  56.                 if b.Name == att1.Name and b.Parent.Name ~= "Handle" then
  57.                     att = b
  58.                 end
  59.             end
  60.         end
  61.         for i,b in ipairs(dropHats) do
  62.             if v.Name ~= b then
  63.                 local alpos = Instance.new("AlignPosition",v.Handle)
  64.                 local alori = Instance.new("AlignOrientation",v.Handle)
  65.                 alpos.Attachment0 = att1
  66.                 alpos.Attachment1 = att
  67.                 alori.Attachment0 = att1
  68.                 alori.Attachment1 = att
  69.                 alori.MaxTorque = 1000000000 --1000000000--5772000
  70.                 alori.Responsiveness = 200
  71.                 alpos.MaxForce = 1000000000 --1000000000--5772000
  72.                 alpos.Responsiveness = 200
  73.                 alpos.ApplyAtCenterOfMass = false
  74.             else
  75.                 v.Handle.Anchored = true
  76.             end
  77.         end
  78.        
  79.         game:GetService("RunService").RenderStepped:Connect(function()
  80.             local w = v.Handle:FindFirstChildOfClass("Weld")
  81.             if w then
  82.                 w.Enabled = false
  83.                 w:Destroy()
  84.             end
  85.  
  86.         end)
  87.     elseif not accessories then
  88.         if v:IsA("Accessory") then
  89.             --v:Destroy()
  90.         end
  91.     end
  92.  
  93.     if v:IsA("Motor6D") then
  94.         local att = Instance.new("Attachment",v.Parent)
  95.         local att1 = Instance.new("Attachment",v.Part1)
  96.         local alpos = Instance.new("AlignPosition",v.Parent)
  97.         local alori = Instance.new("AlignOrientation",v.Parent)
  98.         att.Name = v.Name.." att"
  99.         att.Position = v.C0.p
  100.         att1.Name = v.Name.."1"
  101.         att1.Position = v.C1.p
  102.         alpos.Name = v.Part1.Name.." pos"
  103.         alori.Name = v.Part1.Name.." ori"
  104.         alpos.Attachment0 = att1
  105.         alpos.Attachment1 = att
  106.         alori.Attachment0 = att1
  107.         alori.Attachment1 = att
  108.         alori.MaxTorque = 1000000000
  109.         alori.Responsiveness = 200
  110.         alpos.MaxForce = 1000000000
  111.         alpos.Responsiveness = 200
  112.         alpos.ApplyAtCenterOfMass = false
  113.         local clone = v:Clone()
  114.         clone.Parent = v.Parent
  115.         clone.Enabled = false
  116.         clone.Changed:Connect(function()
  117.             if clone.Enabled then
  118.                 clone.Enabled = false
  119.             end
  120.         end)
  121.         game:GetService("RunService").RenderStepped:Connect(function()
  122.             att.CFrame = clone.C0
  123.             att1.CFrame = clone.C1
  124.         end)
  125.     end
  126. end
  127. local function NoclipLoop()
  128.     for _, v in pairs(lplrChar:GetDescendants()) do
  129.         if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" and v.Name ~= "Handle" then
  130.             v.CanCollide = false
  131.         end
  132.     end
  133. end
  134. game:GetService("RunService").Stepped:Connect(function()
  135.     NoclipLoop()
  136. end)
  137.  
  138. wait(.5)
  139.  
  140. local p = game:GetService("Players").LocalPlayer
  141. local c = p.Character
  142. local m = Instance.new("Model",c)
  143. m.Name = "Fake Character"
  144. local t = Instance.new("Part",m)
  145. t.Name = "Torso"
  146. t.Position = c.HumanoidRootPart.Position
  147. local h = Instance.new("Part",m)
  148. h.Name = "Head"
  149. h.Position = c.HumanoidRootPart.Position
  150. local hum = Instance.new("Humanoid",m)
  151. p.Character = m
  152. print("Switched Char")
  153. wait(2.9)
  154. p.Character = c
  155. print("Switched Back")
  156. wait(2.9)
  157. p.Character:FindFirstChildOfClass("Humanoid").Health = 0
  158. print("Making fake humanoid")
  159. wait(.1)
  160. local rh = p.Character:FindFirstChildOfClass("Humanoid")
  161. local fh = p.Character:FindFirstChildOfClass("Humanoid"):Clone()
  162. fh.Parent = p.Character
  163. rh.Parent = plr
  164. workspace.CurrentCamera.CameraSubject = fh
  165. plr.CharacterAdded:Connect(function()
  166.     rh:Destroy()
  167. end)
  168. wait(1)
  169. m:Destroy()
  170.  
  171. wait(2)
  172.  
  173. local function NoclipLoop1()
  174.     for _, v in pairs(workspace:GetDescendants()) do
  175.         if v:IsA("Humanoid") then
  176.             for i,d in pairs(v.Parent:GetDescendants()) do
  177.                 if d:IsA("BasePart") and d.CanCollide == true and d.Name ~= "Handle" then
  178.                     d.CanCollide = false
  179.                 end
  180.             end
  181.         end
  182.        
  183.     end
  184. end
  185. game:GetService("RunService").Stepped:Connect(function()
  186.     NoclipLoop1()
  187.     rh.Sit = false
  188.     fh.Sit = false
  189. end)
Add Comment
Please, Sign In to add comment