📜  如何在 roblox studio 中检测碰撞 - 无论代码示例

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

代码示例1
local part = script.Parent local function onPartTouched(otherPart)    print(part.Name .. " has touched " .. otherPart.Name)end part.Touched:Connect(onPartTouched)