This isnt working for some reason. Its in a local script inside the button
script.Parent.MouseButton1Down:connect(function()
local localplayer = game.Players.LocalPlayer.Name
print(localplayer)
wait(1)
localplayer.Torso.CFrame = CFrame.new(Vector3.new(1479.5, 10.7, -398))
end)

1 comment
You are accessing the Name which is a string not the character use LocalPlayer.Character