Intern33t
|
  |
| Joined: 19 Nov 2010 |
| Total Posts: 1530 |
|
|
| 10 Jun 2014 12:34 PM |
So, in my last post i had problems moving X - solved. Now, if i do the same with Z, 2 things are crazy. I wanna turn the body into positive Z direction because: 1. If he moves Z sideways, his torso suddenly stacks on his head and he dies. 2. Its totally.. well not cool if people play my game and see noobs moonwalking and sidewalking :P
So, How do i turn all bodyparts or well the model from negative X (face is facing there) to positive Z?
This is how it should look like then (arrows and for facing.)
v v -- 12 Steps v>>>v------ facing to negative X again. | 20 Steps |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2014 12:37 PM |
use CFraming, or use the MoveTo() method of a humanoid..
humanoid:MoveTo(position,Workspace.BasePlate) |
|
|
| Report Abuse |
|
|
Intern33t
|
  |
| Joined: 19 Nov 2010 |
| Total Posts: 1530 |
|
|
| 10 Jun 2014 12:39 PM |
| So, either answer me how i cframe him or answer me how MoveTo is.. Oh well.. i think.. Im just gonna try it out and tell you in 5 mins if it worked. |
|
|
| Report Abuse |
|
|
Intern33t
|
  |
| Joined: 19 Nov 2010 |
| Total Posts: 1530 |
|
|
| 10 Jun 2014 12:41 PM |
| Okay 2 things. What is the 2nd argument (Workspace.BasePlate in your case) used for? and what do i write if i have no Workspace.BasePlate? |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2014 12:43 PM |
just any part, the second argument no longer does anything, but the script will error without it
and the first argument is the position you want the humanoid to walk to(you of course have to define humanoid) |
|
|
| Report Abuse |
|
|
Intern33t
|
  |
| Joined: 19 Nov 2010 |
| Total Posts: 1530 |
|
|
| 10 Jun 2014 12:51 PM |
| Now, if the human moves my way (moveXneg()), after the first step the parts all fly away and dis-glue and dis-weld (i glued and some welded all of the sides lol) and the Noob dies. ??? |
|
|
| Report Abuse |
|
|
Intern33t
|
  |
| Joined: 19 Nov 2010 |
| Total Posts: 1530 |
|
|
| 10 Jun 2014 12:56 PM |
HELPP!!!!!!!!!!!!
I removed the move zneg wtf lol. Now he should like mov straight diagonal to where i defined in the moveto function. Now, if i run it the noob suddenly dissapears from his place. I look in his model, sometimes everything is away except left leg, sometimes vice versa. Whats the problem?!
((Even though the parts "are still there" in the explorer, i cant find them.)) |
|
|
| Report Abuse |
|
|
Intern33t
|
  |
| Joined: 19 Nov 2010 |
| Total Posts: 1530 |
|
|
| 10 Jun 2014 01:00 PM |
Im so sad now.
I tried to find some parts... i found them. All parts were up in the sky at some position like 34003.348 Y. All flew down and went awy, but LeftLeg was still there. I tried to get it back to earth using Move, But after 5 secs of moving the game crashed! And i didnt save, my last save was when i first created the game! Why?! It was so hard work.. |
|
|
| Report Abuse |
|
|