oh wait, i’ve found an easier way
basically just create a new model and insert everything from the character (except the humanoid root part)
- put this in starter character scripts
local character = script.Parent
local humanoid = character.Humanoid
local rootpart = character.HumanoidRootPart
humanoid.BreakJointsOnDeath = false -- !don't remove the joints and accessories will fall off
humanoid.Died:Connect(function() -- !rarely sometimes doens't fire even though character is dead (mostly likely the character hasn't loaded in)
print('died')
rootpart:SetNetworkOwner(nil)--! don't remove else character will get teleported back after flung
--code for character dead bodies
local model = Instance.new("Model") -- !needs to be a new model otherwise character will despawn
model.Parent = workspace
for _, part in pairs(character:GetChildren()) do
if part.Name == "HumanoidRootPart" then continue end -- !do not remove, makes character jitter
part.Parent = model --puts character parts into model (dead body)
end
end)