【发布时间】:2022-09-25 23:59:44
【问题描述】:
我正在尝试克隆一个组并将其位置设置为一个固定的位置。我只能用 .Position 移动组中的特定部分,但我需要整个组移动。有没有简单的方法可以做到这一点?我在 ServerScriptStorage 中的常规脚本中执行此操作,这似乎很好。这是我的代码: 本地 localCharacters = game.Players.LocalPlayer
game.Players.PlayerAdded:Connect(function(Player)
local HRP = Player.CharacterAdded:Wait()
local ClonedPart = game.ReplicatedStorage.BaseParts:Clone() -- Gives nil when not set to BaseParts.Part
ClonedPart.Parent = workspace
ClonedPart.Position = Vector3.new(0, 15, 0)
end)