📜  roblox 杀砖脚本 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:20.009000             🧑  作者: Mango

代码示例2
function onTouched(Obj)
    local h = Obj.Parent:FindFirstChild("Humanoid")
    if h then
        h.Health = 0
    end
end

script.Parent.Touched:Connect(onTouched)