@rbxts/falldown 1.1.1 → 1.1.3
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.
- package/out/init.luau +20 -6
- package/package.json +1 -1
package/out/init.luau
CHANGED
|
@@ -634,6 +634,9 @@ do
|
|
|
634
634
|
while self.Humanoid.MoveDirection.Magnitude <= 0 do
|
|
635
635
|
RunService.Stepped:Wait()
|
|
636
636
|
end
|
|
637
|
+
if self.HumanoidRootPart.Anchored then
|
|
638
|
+
return nil
|
|
639
|
+
end
|
|
637
640
|
self.HumanoidRootPart:SetNetworkOwner(self.Owner)
|
|
638
641
|
end)
|
|
639
642
|
self.Ended:Fire()
|
|
@@ -783,6 +786,9 @@ do
|
|
|
783
786
|
while self.Humanoid.MoveDirection.Magnitude <= 0 do
|
|
784
787
|
RunService.Stepped:Wait()
|
|
785
788
|
end
|
|
789
|
+
if self.HumanoidRootPart.Anchored then
|
|
790
|
+
return nil
|
|
791
|
+
end
|
|
786
792
|
self.HumanoidRootPart:SetNetworkOwner(self.Owner)
|
|
787
793
|
end)
|
|
788
794
|
self.Humanoid.EvaluateStateMachine = true
|
|
@@ -821,7 +827,7 @@ do
|
|
|
821
827
|
end
|
|
822
828
|
function Falldown:constructor()
|
|
823
829
|
end
|
|
824
|
-
function Falldown:MakeProxies(bodyPartMap, proxyGroupId, bodypartGroupId)
|
|
830
|
+
function Falldown:MakeProxies(bodyPartMap, proxyGroupId, bodypartGroupId, owner)
|
|
825
831
|
PhysicsService:RegisterCollisionGroup(proxyGroupId)
|
|
826
832
|
PhysicsService:RegisterCollisionGroup(bodypartGroupId)
|
|
827
833
|
PhysicsService:CollisionGroupSetCollidable(proxyGroupId, bodypartGroupId, false)
|
|
@@ -852,7 +858,9 @@ do
|
|
|
852
858
|
weld.C0 = CFrame.identity
|
|
853
859
|
weld.Parent = proxyPart
|
|
854
860
|
proxyPart.Parent = Workspace
|
|
855
|
-
proxyPart
|
|
861
|
+
if not proxyPart.Anchored then
|
|
862
|
+
proxyPart:SetNetworkOwner(owner)
|
|
863
|
+
end
|
|
856
864
|
proxyPart.CollisionGroup = proxyGroupId
|
|
857
865
|
originalPart.CollisionGroup = bodypartGroupId
|
|
858
866
|
proxyMap[partName] = proxyPart
|
|
@@ -890,15 +898,18 @@ do
|
|
|
890
898
|
BodyPartMapping.Torso = torso
|
|
891
899
|
BodyPartMapping.Head = head
|
|
892
900
|
BodyPartMapping.HumanoidRootPart = humanoidRootPart
|
|
901
|
+
local owner = Players:GetPlayerFromCharacter(character)
|
|
893
902
|
local proxyGroupId = HttpService:GenerateGUID(false)
|
|
894
903
|
local bodypartGroupId = HttpService:GenerateGUID(false)
|
|
895
904
|
for _1, descendant in character:GetDescendants() do
|
|
896
905
|
if descendant:IsA("BasePart") then
|
|
897
|
-
descendant
|
|
906
|
+
if not descendant.Anchored then
|
|
907
|
+
descendant:SetNetworkOwner(owner)
|
|
908
|
+
end
|
|
898
909
|
descendant.CollisionGroup = bodypartGroupId
|
|
899
910
|
end
|
|
900
911
|
end
|
|
901
|
-
local ProxyMapping = self:MakeProxies(BodyPartMapping, proxyGroupId, bodypartGroupId)
|
|
912
|
+
local ProxyMapping = self:MakeProxies(BodyPartMapping, proxyGroupId, bodypartGroupId, owner)
|
|
902
913
|
humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, false)
|
|
903
914
|
humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp, false)
|
|
904
915
|
humanoid.PlatformStand = true
|
|
@@ -1148,15 +1159,18 @@ do
|
|
|
1148
1159
|
BodyPartMapping.UpperTorso = upperTorso
|
|
1149
1160
|
BodyPartMapping.Head = head
|
|
1150
1161
|
BodyPartMapping.HumanoidRootPart = humanoidRootPart
|
|
1162
|
+
local owner = Players:GetPlayerFromCharacter(character)
|
|
1151
1163
|
local proxyGroupId = HttpService:GenerateGUID(false)
|
|
1152
1164
|
local bodypartGroupId = HttpService:GenerateGUID(false)
|
|
1153
1165
|
for _1, descendant in character:GetDescendants() do
|
|
1154
1166
|
if descendant:IsA("BasePart") then
|
|
1155
|
-
descendant
|
|
1167
|
+
if not descendant.Anchored then
|
|
1168
|
+
descendant:SetNetworkOwner(owner)
|
|
1169
|
+
end
|
|
1156
1170
|
descendant.CollisionGroup = bodypartGroupId
|
|
1157
1171
|
end
|
|
1158
1172
|
end
|
|
1159
|
-
local ProxyMapping = self:MakeProxies(BodyPartMapping, proxyGroupId, bodypartGroupId)
|
|
1173
|
+
local ProxyMapping = self:MakeProxies(BodyPartMapping, proxyGroupId, bodypartGroupId, owner)
|
|
1160
1174
|
humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, false)
|
|
1161
1175
|
humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp, false)
|
|
1162
1176
|
humanoid.PlatformStand = true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rbxts/falldown",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
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": {
|