My script works perfectly when I test it in studio. Though for some reason, when I go to play the game, it doesn't work.
The script is in a screen GUI button that teleports me to a location within the game.
button = script.Parent
player = game.Players.LocalPlayer
torso = player.Character.Torso
function toOffice()
torso.CFrame = game.Workspace.Teleport.CFrame
end
button.MouseButton1Click:connect(toOffice)

3 comments
I assume this is a local script right?
Yes it is
Like in the common mistakes, it states that Play Solo and the regular roblox launcher is TWO DIFFRENT things.