local ChangeHistoryService = game:GetService("ChangeHistoryService")
local Selection = game:GetService("Selection")
local anchor = true
local selectedObjects = Selection:Get()
for k, v in ipairs(selectedObjects) do
if v:isA('BasePart') then
v.Anchored = anchor
end
local childs = v:GetDescendants()
for i, y in ipairs(childs) do
if y:isA('BasePart') then
y.Anchored = anchor
end
end
end
ChangeHistoryService:SetWaypoint("Change Anchor")
print("Finish")
罗布乐思加锚点命令行代码
最新推荐文章于 2023-03-25 12:37:06 发布