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 » Scripting Helpers
Home Search
 

Re: Teleporting script

Previous Thread :: Next Thread 
whstammatt is not online. whstammatt
Joined: 07 Dec 2010
Total Posts: 26
25 Nov 2013 01:06 PM
I need someone to give me like a code or something for like, you know in CoD to enter game you press the boutain "Enter Game" and you enter the FPS game. Well, I am building a FPS game and I just don't know how to do that. I am hoping one of you guys can help me or give me the code or all the steps one by one.
Thank you
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
25 Nov 2013 01:26 PM
local player = script.Parent --put right number of parents here for the player tag to equal the player (child of the service, Players)

script.Parent.MouseButton1Down:connect(function()
player.Character.Torso.CFrame = CFrame.new(0,0,0)
end)
Report Abuse
whstammatt is not online. whstammatt
Joined: 07 Dec 2010
Total Posts: 26
25 Nov 2013 01:37 PM
Ok thanks
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
25 Nov 2013 01:39 PM
obviously you have to change the three 0s.
Report Abuse
whstammatt is not online. whstammatt
Joined: 07 Dec 2010
Total Posts: 26
25 Nov 2013 01:44 PM
To how much?
Report Abuse
turpichu4321 is not online. turpichu4321
Joined: 03 Aug 2013
Total Posts: 1838
25 Nov 2013 01:49 PM
I think he means the position of the gui
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
25 Nov 2013 01:55 PM
"To how much?"
Where do you want the players to move to? If you want them to move to a certain part, tell me its position (like: workspace.Model.Part).
Report Abuse
whstammatt is not online. whstammatt
Joined: 07 Dec 2010
Total Posts: 26
25 Nov 2013 01:59 PM
Ok I get what you mean but what if I have two maps at two different places, but they will spawn at one map then when that map is done another but the 2nd one could be higher up and where can I find to change the 0,0,0 properties?
Report Abuse
whstammatt is not online. whstammatt
Joined: 07 Dec 2010
Total Posts: 26
25 Nov 2013 02:00 PM
And what is the 0,0,0 thing I have to change called?
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
25 Nov 2013 02:02 PM
script.Parent.MouseButton1Down:connect(function()
player.Character.Torso.CFrame = CFrame.new(0,0,0) --here, you must change the numbers here. they are called the position coordinates.
end)

Say you have a model called "Map1". put a part in that model and position it where you want the player to teleport to. tell me when youve done that
Report Abuse
whstammatt is not online. whstammatt
Joined: 07 Dec 2010
Total Posts: 26
25 Nov 2013 02:05 PM
Oh so you want me to ungroup it and choose a part to make them teleport to. Ah ok so I copy what you just wrote ok.
Report Abuse
whstammatt is not online. whstammatt
Joined: 07 Dec 2010
Total Posts: 26
25 Nov 2013 02:07 PM
Yeah.. I cant find coordinates
Report Abuse
whstammatt is not online. whstammatt
Joined: 07 Dec 2010
Total Posts: 26
25 Nov 2013 02:12 PM
Wait nvm about that but ok I know what you mean but where do I change it in the brick? RotVelocity? Velocity? Position?
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
25 Nov 2013 02:21 PM
Positon. Position it where you want (not to 0,0,0, i mean like the position you want the players to teleport to and i will do the rest for you)
Report Abuse
RecursionAltInternal is not online. RecursionAltInternal
Joined: 20 Nov 2013
Total Posts: 17
25 Nov 2013 02:27 PM
THIS THREAD IS FULL OF FAIL
Report Abuse
DominoCrownCollector is not online. DominoCrownCollector
Joined: 04 Dec 2012
Total Posts: 24
25 Nov 2013 02:46 PM
script.Parent.Parent.CameraMode="LockFirstPerson"

Just a little glitchy at first :\
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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