【发布时间】:2020-05-05 22:28:45
【问题描述】:
我有下面的代码,它应该作为应对称为“巨石”(未锚定)的部分,并将其移动到所需位置,而是:“位置不是零件的有效成员”
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。请参阅手册或至少在网上搜索“roblox 零件位置”,然后再在此处发布问题。谢谢。 developer.roblox.com/en-us/api-reference/property/BasePart/… -
好的,我会试试的!
标签: exception lua position roblox