local teleportblock = game.Workspace:FindFirstChild("TeleportBlock")
script.Parent.MouseButton1Down:connect(function(teleport)
player.Character.Torso.CFrame = CFrame.new(teleportblock.Position)
end)
I have this inside a TextButton which is inside a SurfaceGui. I know this doesn't work, but what I'm trying to figure out is how to get the player, so I can teleport them to a certain block in the game.
