📜  roblox 如何检测人类 touchinhg - Lua 代码示例

📅  最后修改于: 2022-03-11 14:54:55.491000             🧑  作者: Mango

代码示例1
--only for roblox obv
script.Parent.Touched:connect(function(hit)
    if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
        --code
    end
end)