I have a base underneath the map where players spawn. When they click the button I want them to be teleported to a specified place on the map. This is what I've tried:
function onClick()
game.Workspace.Player.Torso.CFrame = CFrame.new(Vector3.new(0, 5, 0))
end
script.Parent.MouseButton1Click(onClick)
Is it just me or does it seem to short?

4 comments
Unfortunately that doesn't work. I tried fixing it with my limited knowledge but I couldn't find anything wrong with it. It just doesn't work
Try using a regular script.
You could use :MoveTo()
Ok thank you, this now works!