📜  检查孩子是否被触摸 roblox - Lua 代码示例

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

代码示例1
lcoal Model = workspace.Part
for _,v in pairs(Model:GetChildren()) do
    if v:IsA("BasePart") then
        v.Touched:Connect(onChildTouched)
    end
end