i just realized what you said was true lol, thanks for the help
theres a problem where if u die, and ur ragdolled, you die multiple times, this makes kill feeds very broken lol
I have a problem where anytime a player is ragdolled the switch wont enable because it says a bunch of things are deprecated, does anyone know how to fix this?
how do you make the player ragdoll when they die? Iâve been trying to figure out how to do this for a while now
ok
something like this would probably work.
localscript in character
local Humanoid:Humanoid = game.Players.LocalPlayer.Character:WaitForChild("Humanoid", 30)
if not Humanoid then return end
local DeathRemote = game -- remoteevent path here
local Died = false
Humanoid.HealthChanged:Connect(function(Health)
if Health <= 0 and not Died then
Died = true
DeathRemote:FireServer()
end
end)
serverscript:
local DeathRemote = game -- remote that the localscript uses here
DeathRemote.OnServerEvent:Connect(function(Player)
if Player.Character and Player.Character:FindFirstChild("RagdollTrigger") then
Player.Character.RagdollTrigger.Value = true
end
end)
you basically:
detect health changed
if health is 0 or less than 0
fire a remoteevent to the server saying âragdoll me plsâ
then the server sets their ragdoll to true
I have been having local issues with the limbs randomly ripping apart, I donât see this If the player joins after me but If I were to rejoin then it happens. The player itself doesnât see the issue only the person that joins aka (me) does.
Is there anyway to fix this?
Any ideas on how to fix welds breaking when the character ragdolls?
Before the ragdoll happens the sword is on my back, but it falls off when ragdoll starts. Its welded to my torso.