📜  我如何在 roblox 中编写移动块脚本 - 无论代码示例

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

代码示例1
local model = script.Parent
local platform = model.Platform
    local start = model.Start
    local finish = model.Finish
    local bodyPosition = platform.BodyPosition
    while true do
        bodyPosition.position = start.Position
        wait(6)
        bodyPosition.position = finish.Position
        wait(6)

    end