I am wondering where I made discrepancies and how I can fix them, (p.s. I started coding yesterday, so I am fairly new to this, therefore can you try to simplify any answers to the best of your abilities [where you can] thank you in advance.)
local Player = nil local Parent = nil local Humanoid = nil Player = Player.Parent(function(death, event) end) if Humanoid.CurrentHealth < Humanoid.Health then Humanoid:SetRagdollEnabled(Enum.HumanoidRagdollPhysics.Dead, false) end if Humanoid.CurrentHealth ~= Humanoid.Health then Humanoid:SetRagdollEnabled(Enum.HumanoidRagdollPhysics.Dead, false) 'false' --player wont ragdoll if no health is taken off if Humanoid:SetRagdollEnabled(Enum.HumanoidRagdollPhysics.Dead, false) then wait(2) elseif Humanoid:SetGettingUpEnabled(Enum.HumanoidGettingUpPhysics.Dead, false)then end end
I am trying to code it so when a player gets hurt, they ragdoll.