【问题标题】:How do I give every player a part that follows them?我如何给每个玩家一个跟随他们的角色?
【发布时间】:2022-11-20 06:56:09
【问题描述】:

我试图给每个球员另一套武器。原始的“手臂部分”将为玩家克隆并跟随他们。

这是我到目前为止所拥有的:

    local model = game.Workspace.Viewmodel 
    model.Parent = game.Players.ImSpacemanRB
    model.HumanoidRootPart.CFrame = model.Parent:FindFirstChildWhichIsA("Humanoid").RootPart.CFrame

【问题讨论】:

    标签: lua roblox luau


    【解决方案1】:

    您可以使用 AlignPositions 和 AlignOrientations,将两者的 Attachment0 设置为“手臂模型”的主要部分中的附件(模型中的每个部分都应焊接到主要部分)并将 Attachment1 设置为玩家角色主要部分中的附件,我使用它们在宠物系统中运行良好! 此外,有关更多详细信息,请阅读以下文档:

    AlignPosition

    AlignOrientation

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-01-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-02
      • 1970-01-01
      相关资源
      最近更新 更多