generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How do I teleport a player's character to an object?

Previous Thread :: Next Thread 
konichiwah1337 is not online. konichiwah1337
Joined: 16 Sep 2013
Total Posts: 1979
12 Dec 2015 03:33 PM
Say I had a player spawn at a spawnpoint area. I wanted him to move to a different location after pressing a GUI button that says "Play".

This different location has a "beacon" that is basically a part. I want the players position to be set to there, but I don't know how to.

If someone could tell me the basic idea of how this would work, I would be greatful.
~kon


~ I am a lovely ROBLOX Developer ~
Report Abuse
UnstableScript is not online. UnstableScript
Joined: 11 Dec 2015
Total Posts: 410
12 Dec 2015 03:36 PM
player.Character:MoveTo(Vector3Position)
Report Abuse
konichiwah1337 is not online. konichiwah1337
Joined: 16 Sep 2013
Total Posts: 1979
12 Dec 2015 03:40 PM

Thanks!

~ I am a lovely ROBLOX Developer ~
Report Abuse
thegoodpuppy is not online. thegoodpuppy
Joined: 07 Jul 2011
Total Posts: 2737
12 Dec 2015 04:28 PM
heres what you do
Put a localscript in the text button, it can't be a text label
--CODE STARTS HERE--
function Teleportation()
script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = game.Workspace.PartToTeleport.CFrame
end

script.Parent.MouseButton1Click:connect(Teleportation)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image