📜  如何使角色在roblox中移动到鼠标所在的位置-任何代码示例

📅  最后修改于: 2022-03-11 14:58:55.040000             🧑  作者: Mango

代码示例1
game:GetService("RunService").RenderStepped:Connect(function()
    Character:SetPrimaryPartCFrame(CFrame.new(HRP.CFrame.Position, Vector3.new(Mouse.Hit.Position.X, HRP.CFrame.Position.Y, Mouse.Hit.Position.Z)))
end)