📜  roblox studio teleport on touch - 任何代码示例

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

代码示例1
local telepoint = Vector3.new(0,10,0) --CHANGE THE COORDINATES IN THE PARENTHESIS TO WHAT YOU WANT!

script.Parent.Touched:connect(function(hit)
    if hit.Parent:findFirstChild("Humanoid") then
        hit.Parent.Torso.CFrame = CFrame.new(telepoint + Vector3.new(0,3,0))
    end
end)