|
| 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
|
  |
| 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 |
|
|
| |
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 25 Nov 2013 01:39 PM |
| obviously you have to change the three 0s. |
|
|
| Report Abuse |
|
|
| |
|
|
| 25 Nov 2013 01:49 PM |
| I think he means the position of the gui |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 25 Nov 2013 02:00 PM |
| And what is the 0,0,0 thing I have to change called? |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 25 Nov 2013 02:07 PM |
| Yeah.. I cant find coordinates |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 25 Nov 2013 02:27 PM |
| THIS THREAD IS FULL OF FAIL |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2013 02:46 PM |
script.Parent.Parent.CameraMode="LockFirstPerson"
Just a little glitchy at first :\
|
|
|
| Report Abuse |
|
|