TheUnknownDiscord

legs?

Nov 8th, 2021 (edited)
59
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. owner.Character["Left Leg"]:Destroy()
  2. owner.Character["Right Leg"]:Destroy()
  3. owner.Character.Humanoid.HipHeight = 2
  4. block = Instance.new("Part",owner.Character)
  5. block.Anchored = true
  6. block2 = Instance.new("Part",owner.Character)
  7. block2.Anchored = true
  8. block.Size = Vector3.new(1,1,1)
  9. block2.Size = Vector3.new(1,1,1)
  10. params = RaycastParams.new()
  11. params.FilterDescendantsInstances = {block,block2, owner.Character}
  12. params.FilterType = Enum.RaycastFilterType.Blacklist
  13. result = workspace:Raycast(owner.Character.HumanoidRootPart.Position, owner.Character.HumanoidRootPart.CFrame.upVector * -10 + owner.Character.HumanoidRootPart.CFrame.lookVector * 5 + owner.Character.HumanoidRootPart.CFrame.rightVector * -1.5, params)
  14. result2 = workspace:Raycast(owner.Character.HumanoidRootPart.Position, owner.Character.HumanoidRootPart.CFrame.upVector * -10 + owner.Character.HumanoidRootPart.CFrame.lookVector * 5 + owner.Character.HumanoidRootPart.CFrame.rightVector * 1.5, params)
  15. game:GetService("RunService").Heartbeat:Connect(function()
  16. if (result) then
  17. block.Position = result.Position
  18. result2 = workspace:Raycast(owner.Character.HumanoidRootPart.Position, owner.Character.HumanoidRootPart.CFrame.upVector * -10 + owner.Character.HumanoidRootPart.CFrame.lookVector * 15 + owner.Character.HumanoidRootPart.CFrame.rightVector * 1.5, params)
  19. result = workspace:Raycast(owner.Character.HumanoidRootPart.Position, owner.Character.HumanoidRootPart.CFrame.upVector * -10 + owner.Character.HumanoidRootPart.CFrame.lookVector * 5 + owner.Character.HumanoidRootPart.CFrame.rightVector * -1.5, params)
  20. block2.Position = result2.Position
  21. wait(0.125)
  22. end
  23. if (result2) then
  24. block2.Position = result2.Position
  25. result = workspace:Raycast(owner.Character.HumanoidRootPart.Position, owner.Character.HumanoidRootPart.CFrame.upVector * -10 + owner.Character.HumanoidRootPart.CFrame.lookVector * 15 + owner.Character.HumanoidRootPart.CFrame.rightVector * -1.5, params)
  26. result2 = workspace:Raycast(owner.Character.HumanoidRootPart.Position, owner.Character.HumanoidRootPart.CFrame.upVector * -10 + owner.Character.HumanoidRootPart.CFrame.lookVector * 5 + owner.Character.HumanoidRootPart.CFrame.rightVector * 1.5, params)
  27. block.Position = result.Position
  28. wait(0.25)
  29. end
  30. end)
RAW Paste Data