Since the On Died function on the roblox wiki does not work, I have tried to make a while true do loop, but it will not work because it says that Humanoid isnt a valid member of the Player. (Which makes sense because I am trying to get it from the start pack by using Parent.Parent) But, how do I make this find the Humanoid?


while true do
	wait()
	if script.Parent.Parent.Humanoid.Health == 0 and script.Parent.Parent.Levelss.PunchDamageIncrease.Value >= 1 then
		script.Parent.Parent.Levelss.PunchDamageIncrease.Value = 0
	end
end

4 comments

0

Also I know that the Health is suppose to be Health.Value

0

Nevermind! Had a huge brainfart. I have gotten it to work. Changed it to script.Parent.Parent.Character.Humanoid, and removed Value.

1

There is nothing wrong with using the Died event

0

The Died event simply would not work. It wouldnt even Print the dead player's name in the log like it was suppose to