position 不是 Part 的有效成员?

position is not a valid member of Part?

我有下面的代码,它应该作为处理称为 "boulder"(未锚定)的部分,并将其移动到所需位置,而是:"position is not a valid member of Part"

while true do
    wait(2)
    local original = workspace.boulder
    -- Create the model copy
    local copy = original:Clone()
    -- Parent the copy to the same parent as the original
    copy.Parent = original.Parent
    -- Move the copy so it's not overlapping the original
    copy.position = CFrame.new(-84.76, 206.227, 143.094) -- where error happens
    Debris:AddItem(copy, 2)
end

您似乎遇到的问题是因为 Position 应该有大写字母 P。

修复:

while true do
wait(2)
local original = workspace.boulder
-- Create the model copy
local copy = original:Clone()
-- Parent the copy to the same parent as the original
copy.Parent = original.Parent
-- Move the copy so it's not overlapping the original
copy.Position = CFrame.new(-84.76, 206.227, 143.094) -- Position Capitalised correctly
Debris:AddItem(copy, 2)

结束