Hello :),
I don’t know if im really late or what the script you got is effecient but here is what i did to solve this problem.
local button = script.Parent
button.MouseButton1Click:Connect(function()
local player = game.Players.LocalPlayer
if player.Character then
player.Character:MoveTo(Vector3.new("PartPos"))
end
end)
let me know if this also helped.