I've made an remote event to kill the player once it's fired and it doesn't work. I will provide local script and server script beneath because I am done with this. I will also use --To show where it doesn't work
Server script:
function Critical(player) while true do wait(0.1) if player.Character.LimbStatus.HeadDamaged.Value == 2 or player.Character.LimbStatus.TorsoDamaged.Value == 2 then --Probably has to do something with this workspace[player.Name].Humanoid:TakeDamage(100) end end end game.ReplicatedStorage.Events.Death.OnServerEvent:Connect(Critical)
Now the Local script:
wait(3) local Player = game.Players.LocalPlayer local Char = Player.Character local Hum = Char:FindFirstChild("Humanoid") local LeftLeg = game.Players.LocalPlayer.Character:FindFirstChild("Left Leg").LeftLegLimb local RightLeg = game.Players.LocalPlayer.Character:FindFirstChild("Right Leg").RightLegLimb local Head = game.Players.LocalPlayer.Character:FindFirstChild("Head").HeadLimb local Torso = game.Players.LocalPlayer.Character:FindFirstChild("Torso").TorsoLimb while true do wait(0.1) if LeftLeg.Value < 1 then Hum.WalkSpeed = 8 Hum.JumpHeight = 1 print("LeftLeg is critically Damaged") Char.LimbStatus.LeftLegDamaged.Value = 2 end if RightLeg.Value < 1 then Hum.WalkSpeed = 8 Hum.JumpHeight = 1 print("RightLeg is critically Damaged") Char.LimbStatus.RightLegDamaged.Value = 2 end if LeftLeg.Value < 1 and RightLeg.Value < 1 then Hum.WalkSpeed = 3 Hum.JumpHeight = 0.1 print("Both Legs are critically Damaged") end if Head.Value < 1 then game.ReplicatedStorage.Events.Death:FireServer() --Here it doesn't fire Char.LimbStatus.HeadDamaged.Value = 2 print("Head critically Damaged, commencing death.") break end if Torso.Value < 1 then game.ReplicatedStorage.Events.Death:FireServer() --Here it doesn't fire Char.LimbStatus.HeadDamaged.Value = 2 print("Torso critically Damaged, commencing death.") break end end