So I just want to update humanoid because tester value will change

Tester = script.Tester-- Object Value

script.Test.Changed:connect(function()
	if Tester ~= nil then
		script.Tester.Value.Character.Humanoid.Died:connect(function()
			Tester = nil
		end)
	end
end)

OR

Tester = script.Tester-- Object Value
TesterHum = nil-- Object Value

script.Test.Changed:connect(function()
	if Tester ~= nil then
		TesterHum.Value = Tester.Value.Character.Humanoid
	end
end)

TesterHum.Value.Died:connect(function()
	Tester = nil
end)

Doesn't works ^^

How to update it?

1 comment

0

Why not set up the Died event when the player touches it? :thonk: