Everseen
|
  |
| Joined: 29 Apr 2011 |
| Total Posts: 475 |
|
|
| 20 Jul 2011 10:01 PM |
I'm using a Vector3Value for the speed. I set it to 0,-35,0
Here are the lines: while true do v=script.Parent.Parent.Parent.Speed.Value script.Parent.Velocity = script.Parent.CFrame:vectorToWorldSpace(Vector3.new(v)) wait(1) end
Help please.
The other post was teh wrong forum. |
|
|
| Report Abuse |
|
|
PsychoBob
|
  |
| Joined: 08 Jul 2009 |
| Total Posts: 11047 |
|
| |
|
Everseen
|
  |
| Joined: 29 Apr 2011 |
| Total Posts: 475 |
|
| |
|
SDuke524
|
  |
| Joined: 29 Jul 2008 |
| Total Posts: 6267 |
|
|
| 20 Jul 2011 10:59 PM |
| So what is it supposed to do and what is going wrong? Why does nobody include that anymore. |
|
|
| Report Abuse |
|
|
Everseen
|
  |
| Joined: 29 Apr 2011 |
| Total Posts: 475 |
|
|
| 20 Jul 2011 11:06 PM |
This script is supposed to make the brick its in a conveyor.(Coasters ftw) I grouped two of the same bricks which both have the script, and cloned the group, grouped it again, and inserted a Vector3Value. |
|
|
| Report Abuse |
|
|
Everseen
|
  |
| Joined: 29 Apr 2011 |
| Total Posts: 475 |
|
|
| 20 Jul 2011 11:08 PM |
| But the brick still doesn't have velocity |
|
|
| Report Abuse |
|
|
Everseen
|
  |
| Joined: 29 Apr 2011 |
| Total Posts: 475 |
|
| |
|
Everseen
|
  |
| Joined: 29 Apr 2011 |
| Total Posts: 475 |
|
| |
|
Everseen
|
  |
| Joined: 29 Apr 2011 |
| Total Posts: 475 |
|
| |
|
Everseen
|
  |
| Joined: 29 Apr 2011 |
| Total Posts: 475 |
|
| |
|
SDuke524
|
  |
| Joined: 29 Jul 2008 |
| Total Posts: 6267 |
|
|
| 21 Jul 2011 10:55 PM |
try using
script.Parent.lookVector*Speed
see if that works. |
|
|
| Report Abuse |
|
|
Everseen
|
  |
| Joined: 29 Apr 2011 |
| Total Posts: 475 |
|
|
| 21 Jul 2011 11:25 PM |
| I'm using a cylindermesh so It has to use vector3, for the cylinder mesh point Up. |
|
|
| Report Abuse |
|
|
Everseen
|
  |
| Joined: 29 Apr 2011 |
| Total Posts: 475 |
|
| |
|
squibs47
|
  |
| Joined: 14 Feb 2010 |
| Total Posts: 339 |
|
|
| 22 Jul 2011 12:59 PM |
| toWorldSpace? What's that? Or is it nothing. if It is, you guys mde me ask a stupid question |
|
|
| Report Abuse |
|
|
SDuke524
|
  |
| Joined: 29 Jul 2008 |
| Total Posts: 6267 |
|
|
| 22 Jul 2011 01:00 PM |
"I'm using a cylindermesh so It has to use vector3, for the cylinder mesh point Up."
So is the brick supposed to move through it? |
|
|
| Report Abuse |
|
|
Everseen
|
  |
| Joined: 29 Apr 2011 |
| Total Posts: 475 |
|
|
| 23 Jul 2011 06:47 PM |
| No. It's a brick. With a cylindermesh. Instead of it's front facing forward, it's the top. |
|
|
| Report Abuse |
|
|
GASSYFART
|
  |
| Joined: 13 Jul 2010 |
| Total Posts: 184 |
|
| |
|
Everseen
|
  |
| Joined: 29 Apr 2011 |
| Total Posts: 475 |
|
| |
|
Everseen
|
  |
| Joined: 29 Apr 2011 |
| Total Posts: 475 |
|
|
| 23 Jul 2011 07:28 PM |
| Most of the people are viewing. No posts D: |
|
|
| Report Abuse |
|
|
Everseen
|
  |
| Joined: 29 Apr 2011 |
| Total Posts: 475 |
|
|
| 23 Jul 2011 07:41 PM |
| Help would be REALLY REALLY nice. |
|
|
| Report Abuse |
|
|
Phizo
|
  |
| Joined: 26 Jun 2009 |
| Total Posts: 269 |
|
|
| 23 Jul 2011 07:47 PM |
I'm not really sure what the problem is. Give this a go.
while true do v = script.Parent.Parent.Parent.Speed.Value = "50" script.Parent.Velocity = script.Parent.CFrame:vectorToWorldSpace(Vector3.new(v)) wait(1) end
|
|
|
| Report Abuse |
|
|
Everseen
|
  |
| Joined: 29 Apr 2011 |
| Total Posts: 475 |
|
|
| 23 Jul 2011 07:51 PM |
| That won't work. Because "Speed" is a vector3 value. I want to set a group of tracks the same velocity using just ONE vector3value. |
|
|
| Report Abuse |
|
|
Everseen
|
  |
| Joined: 29 Apr 2011 |
| Total Posts: 475 |
|
| |
|
|
| 23 Jul 2011 09:22 PM |
while true do v=script.Parent.Parent.Parent.Speed.Value script.Parent.Velocity = Vector3.new(v) wait(1) end
Try that..? |
|
|
| Report Abuse |
|
|
Everseen
|
  |
| Joined: 29 Apr 2011 |
| Total Posts: 475 |
|
|
| 23 Jul 2011 10:44 PM |
| The track rotates too, so if I rotate it sideways, it'll go to wrong direction. |
|
|
| Report Abuse |
|
|