I have a test character with a Humanoid in it and a script that sets its Died connection and then later sets its Health to 0. It works as I would expect it to when I Play it from the website (https://www.roblox.com/games/510932128/Humanoid-Died-Test) but not locally in Studio, no matter whether I Play, Run, or Start a client-server test.
This is the script -
print(“Hello world!”)
function funkyfunky()
error(“Happy days!! Or are they?” )
end
local testConnection = script.Parent.Humanoid.Died:connect( funkyfunky )
if testConnection.Connected then
warn(“testConnection connected”)
else
error(“testConnection NOT connected”)
end
wait(10)
script.Parent.Humanoid.Health = -100
wait(1000)
I would expect this script to error out with the message “Happy days!! Or are they?” and it does when I Play it from the website, but not from Studio.
I started noticing this bug just yesterday (4/6/2017), but that doesn’t necessarily mean anything - it was only then that I started working with the Died signal.
For me, it’s 100% reproducible.