Ayrun
|
  |
| Joined: 27 Jul 2012 |
| Total Posts: 181 |
|
|
| 02 Aug 2012 09:55 PM |
I have an NPC, with a Head, Torso, and "Eye."
I want this "Eye" to fly around to specific locations using :MoveTo() (and raycasting) and I want it to look in it's direction.
I was told BodyGyro would help me with the looking, but it does not. At all.
Any recommendations? |
|
|
| Report Abuse |
|
|
| |
|
|
| 02 Aug 2012 09:57 PM |
"2. accept that there's no such thing as raycasting"
ORLY? |
|
|
| Report Abuse |
|
|
Ayrun
|
  |
| Joined: 27 Jul 2012 |
| Total Posts: 181 |
|
|
| 02 Aug 2012 10:00 PM |
"Recommendations? 1. close your account 2. accept that there's no such thing as raycasting 3. stop failing at Lua."
1. You're funny. 2. Yes there is. 3. "Stop* "failing?" at Lua."
4. Learn proper English and grammar. Also learn to script. Also learn to help. 5. Get off the Forums.
There is not enough facepalm in this thread. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Ayrun
|
  |
| Joined: 27 Jul 2012 |
| Total Posts: 181 |
|
|
| 02 Aug 2012 10:15 PM |
"You're* right. As* a result, the rest of your family should join us for scripting help to amply supply the rest of the facepalm that you alone fail to supply."
I am willing to disregard the inadequate facepalm for sufficient assistance in the purpose of this thread.
Anyone know how to make something fly through script? I'm not using specific points to CFrame it to because I want a smooth motion. |
|
|
| Report Abuse |
|
|
Ayrun
|
  |
| Joined: 27 Jul 2012 |
| Total Posts: 181 |
|
|
| 02 Aug 2012 10:16 PM |
| Is there any way to completely remove gravity from a specific Humanoid? |
|
|
| Report Abuse |
|
|
Ayrun
|
  |
| Joined: 27 Jul 2012 |
| Total Posts: 181 |
|
| |
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
| |
|
|
| 02 Aug 2012 11:30 PM |
| Gravity is made by mass, and mass (in roblox) comes from the part sizes multiplied together. I would suggest using body postions and body velocities instead. :? |
|
|
| Report Abuse |
|
|
Ayrun
|
  |
| Joined: 27 Jul 2012 |
| Total Posts: 181 |
|
|
| 03 Aug 2012 12:04 AM |
Would anyone like to explain BodyPositions and BodyVelocities?
I don't use the class of "Body" seeing as it has failed me on numerous occasions.
Example: BodyGyros in attempt to make a part face a location: Failed. |
|
|
| Report Abuse |
|
|
omzig
|
  |
| Joined: 18 Jun 2008 |
| Total Posts: 578 |
|
|
| 03 Aug 2012 12:09 AM |
Nonono.
Use BodyGyros to lock its position in the air (using the y axis), and then use MoveTo. Not sure if that will work, but it could. |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2012 12:18 AM |
| Body* objects are extremely buggy and hard to use. You're almost always better off manually setting the CFrame instead of using a Body* object. |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2012 12:28 AM |
| When using gyros [most] of the time you have to use positions as well. |
|
|
| Report Abuse |
|
|
Ayrun
|
  |
| Joined: 27 Jul 2012 |
| Total Posts: 181 |
|
|
| 03 Aug 2012 12:29 AM |
Agreed with arceusinator.
Also, if you were to do what omzig said, how would I go about it? I set the Y of the maxTorque to 100. Nothing I set the y of the cframe.p to 100. Nothing.
What do I do? |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2012 12:31 AM |
> MasteriMorty
Fail troll is fail. |
|
|
| Report Abuse |
|
|
Ayrun
|
  |
| Joined: 27 Jul 2012 |
| Total Posts: 181 |
|
| |
|
Ubayla
|
  |
| Joined: 01 Dec 2008 |
| Total Posts: 157 |
|
|
| 03 Aug 2012 01:35 AM |
Simple, CFraming with Linear Interpolation. You could even use Lerp :P
[Ubayla]was here[/Ubayla] |
|
|
| Report Abuse |
|
|
Ayrun
|
  |
| Joined: 27 Jul 2012 |
| Total Posts: 181 |
|
|
| 03 Aug 2012 02:28 AM |
@Ubayla
I'm sorry, what? Is there a page on the wiki for this? Never heard of Lerp. Lol
I was thinking using raycasting, making points along the way and simply CFraming that way... Not a smooth movement, but pretty close... |
|
|
| Report Abuse |
|
|
Ayrun
|
  |
| Joined: 27 Jul 2012 |
| Total Posts: 181 |
|
|
| 03 Aug 2012 03:24 AM |
Bump.
Anyone want to define Lerp for me? Or explain CFrame Linear Interpolation?
Should I just raycast locations between destinations? |
|
|
| Report Abuse |
|
|