📜  roblox if 块的位置 - 任何代码示例

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

代码示例1
local pos = Vector3.new(0,1,0) -- not the actual position
local region = GetFromRegionsTable(regionName)
local parts = game:GetService("Workspace"):FindPartsInRegion3(region)

for _,part in pairs(parts) do 
    if part.pos == pos then 
       print("Found part inside region!")
       break 
   end
end