@rbxts/falldown 1.1.2 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/out/init.luau +27 -5
  2. package/package.json +1 -1
package/out/init.luau CHANGED
@@ -634,7 +634,12 @@ do
634
634
  while self.Humanoid.MoveDirection.Magnitude <= 0 do
635
635
  RunService.Stepped:Wait()
636
636
  end
637
- self.HumanoidRootPart:SetNetworkOwner(self.Owner)
637
+ if self.HumanoidRootPart.Anchored then
638
+ return nil
639
+ end
640
+ pcall(function()
641
+ self.HumanoidRootPart:SetNetworkOwner(self.Owner)
642
+ end)
638
643
  end)
639
644
  self.Ended:Fire()
640
645
  self.Ended:Destroy()
@@ -783,7 +788,12 @@ do
783
788
  while self.Humanoid.MoveDirection.Magnitude <= 0 do
784
789
  RunService.Stepped:Wait()
785
790
  end
786
- self.HumanoidRootPart:SetNetworkOwner(self.Owner)
791
+ if self.HumanoidRootPart.Anchored then
792
+ return nil
793
+ end
794
+ pcall(function()
795
+ self.HumanoidRootPart:SetNetworkOwner(self.Owner)
796
+ end)
787
797
  end)
788
798
  self.Humanoid.EvaluateStateMachine = true
789
799
  self.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, true)
@@ -852,7 +862,11 @@ do
852
862
  weld.C0 = CFrame.identity
853
863
  weld.Parent = proxyPart
854
864
  proxyPart.Parent = Workspace
855
- proxyPart:SetNetworkOwner(owner)
865
+ if not proxyPart.Anchored then
866
+ pcall(function()
867
+ proxyPart:SetNetworkOwner(owner)
868
+ end)
869
+ end
856
870
  proxyPart.CollisionGroup = proxyGroupId
857
871
  originalPart.CollisionGroup = bodypartGroupId
858
872
  proxyMap[partName] = proxyPart
@@ -895,7 +909,11 @@ do
895
909
  local bodypartGroupId = HttpService:GenerateGUID(false)
896
910
  for _1, descendant in character:GetDescendants() do
897
911
  if descendant:IsA("BasePart") then
898
- descendant:SetNetworkOwner(owner)
912
+ if not descendant.Anchored then
913
+ pcall(function()
914
+ descendant:SetNetworkOwner(owner)
915
+ end)
916
+ end
899
917
  descendant.CollisionGroup = bodypartGroupId
900
918
  end
901
919
  end
@@ -1154,7 +1172,11 @@ do
1154
1172
  local bodypartGroupId = HttpService:GenerateGUID(false)
1155
1173
  for _1, descendant in character:GetDescendants() do
1156
1174
  if descendant:IsA("BasePart") then
1157
- descendant:SetNetworkOwner(owner)
1175
+ if not descendant.Anchored then
1176
+ pcall(function()
1177
+ descendant:SetNetworkOwner(owner)
1178
+ end)
1179
+ end
1158
1180
  descendant.CollisionGroup = bodypartGroupId
1159
1181
  end
1160
1182
  end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/falldown",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "A realistic ragdoll physics system for Roblox with smooth getup animations, collision management, and customizable velocity modes. Supports both R6 and R15 rigs with surface-aware positioning.",
5
5
  "main": "out/init.luau",
6
6
  "scripts": {