【发布时间】:2018-07-01 23:58:00
【问题描述】:
基本上,我正在制作一个脚本,当某人死亡时打印“played dead”,但当此人死亡时,脚本停止工作。这是来源:
local hum = game:GetService("Players").LocalPlayer.Character.Humanoid
hum.HealthChanged:connect(function(health)
if (health == 0) then
print("player died!")
end
end)
脚本只能运行一次,如何在角色重生时再次运行?
【问题讨论】: