So basically whenever the humanoid state changes, the torso’s .CanCollide keeps turning on.
I have already tried to change it in the script itself and Disabling HumanoidOnlySetCollusionsOnStateChange
I am using this:
So basically whenever the humanoid state changes, the torso’s .CanCollide keeps turning on.
I have already tried to change it in the script itself and Disabling HumanoidOnlySetCollusionsOnStateChange
I am using this:
game.Players.PlayerAdded:Connect(function(PlayerAdded)
PlayerAdded.CharacterAdded:Connect(function(CharacterAdded)
local GetChildren = CharacterAdded:GetChildren()
CharacterAdded:WaitForChild("Humanoid").Died:Connect(function()
for i = 1, #GetChildren do
if GetChildren[i]:IsA("BasePart") then
GetChildren[i].CanCollide = false
end
end
end)
end)
end)
If above doesn’t work, use collision groups.
-- on server
local physicsService = game:GetService("PhysicsService")
physicsService:RegisterCollisionGroup("Ragdoll")
physicsService:CollisionGroupSetCollidable("Ragdoll", "Default", false)
-- on client
local torso = -- your torso
torso.CollisionGroup = "Ragdoll"
I’m not totally sure if this’ll work without errors as roblox have seemingly recently updated how physics service works