@rbxts/falldown 1.1.1 → 1.1.2

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 +8 -6
  2. package/package.json +1 -1
package/out/init.luau CHANGED
@@ -821,7 +821,7 @@ do
821
821
  end
822
822
  function Falldown:constructor()
823
823
  end
824
- function Falldown:MakeProxies(bodyPartMap, proxyGroupId, bodypartGroupId)
824
+ function Falldown:MakeProxies(bodyPartMap, proxyGroupId, bodypartGroupId, owner)
825
825
  PhysicsService:RegisterCollisionGroup(proxyGroupId)
826
826
  PhysicsService:RegisterCollisionGroup(bodypartGroupId)
827
827
  PhysicsService:CollisionGroupSetCollidable(proxyGroupId, bodypartGroupId, false)
@@ -852,7 +852,7 @@ do
852
852
  weld.C0 = CFrame.identity
853
853
  weld.Parent = proxyPart
854
854
  proxyPart.Parent = Workspace
855
- proxyPart:SetNetworkOwner(nil)
855
+ proxyPart:SetNetworkOwner(owner)
856
856
  proxyPart.CollisionGroup = proxyGroupId
857
857
  originalPart.CollisionGroup = bodypartGroupId
858
858
  proxyMap[partName] = proxyPart
@@ -890,15 +890,16 @@ do
890
890
  BodyPartMapping.Torso = torso
891
891
  BodyPartMapping.Head = head
892
892
  BodyPartMapping.HumanoidRootPart = humanoidRootPart
893
+ local owner = Players:GetPlayerFromCharacter(character)
893
894
  local proxyGroupId = HttpService:GenerateGUID(false)
894
895
  local bodypartGroupId = HttpService:GenerateGUID(false)
895
896
  for _1, descendant in character:GetDescendants() do
896
897
  if descendant:IsA("BasePart") then
897
- descendant:SetNetworkOwner(nil)
898
+ descendant:SetNetworkOwner(owner)
898
899
  descendant.CollisionGroup = bodypartGroupId
899
900
  end
900
901
  end
901
- local ProxyMapping = self:MakeProxies(BodyPartMapping, proxyGroupId, bodypartGroupId)
902
+ local ProxyMapping = self:MakeProxies(BodyPartMapping, proxyGroupId, bodypartGroupId, owner)
902
903
  humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, false)
903
904
  humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp, false)
904
905
  humanoid.PlatformStand = true
@@ -1148,15 +1149,16 @@ do
1148
1149
  BodyPartMapping.UpperTorso = upperTorso
1149
1150
  BodyPartMapping.Head = head
1150
1151
  BodyPartMapping.HumanoidRootPart = humanoidRootPart
1152
+ local owner = Players:GetPlayerFromCharacter(character)
1151
1153
  local proxyGroupId = HttpService:GenerateGUID(false)
1152
1154
  local bodypartGroupId = HttpService:GenerateGUID(false)
1153
1155
  for _1, descendant in character:GetDescendants() do
1154
1156
  if descendant:IsA("BasePart") then
1155
- descendant:SetNetworkOwner(nil)
1157
+ descendant:SetNetworkOwner(owner)
1156
1158
  descendant.CollisionGroup = bodypartGroupId
1157
1159
  end
1158
1160
  end
1159
- local ProxyMapping = self:MakeProxies(BodyPartMapping, proxyGroupId, bodypartGroupId)
1161
+ local ProxyMapping = self:MakeProxies(BodyPartMapping, proxyGroupId, bodypartGroupId, owner)
1160
1162
  humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, false)
1161
1163
  humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp, false)
1162
1164
  humanoid.PlatformStand = true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/falldown",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
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": {